用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/luokai0/ai-agent-skills-by-luo-kai --skill budget-data-model命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Writers Room Story Engine mega-skill. Creates, structures, drafts, and revises compelling standalone stories from zero using premise generation, audience engagement, thematic design, character arcs, Story Spine structure, causal beats, worldbuilding in service of story, scene construction, and revision diagnostics. Use when developing short stories, standalone fiction, scripts, or narrative concepts from scratch or when improving weak drafts.
Browse Airtable bases and tables, inspect records, create records, and manage fields, comments, and table actions — powered by ClawLink.
Alibaba Cloud DNS (Alidns) CLI skill. Use to query, add, and update DNS records via aliyun-cli, including CNAME setup for Function Compute custom domains.
基于 SOC 职业分类
正在显示 SKILL.md
| name | budget-data-model |
| description | 提供预算系统数据模型的完整定义,包括所有表名、字段名、数据类型等。当用户需要查询预算相关数据模型结构、编写数据查询脚本、或需要了解特定表的字段信息时使用此技能。 |
| metadata | {"openclaw":{"emoji":"📊","requires":{"bins":[]}}} |
提供预算系统的完整数据模型定义,包含 68 个数据表的详细结构信息。
✅ 使用此技能的情况:
每个数据模型包含以下信息:
// 单条查询
def 数据 = DataModelUtils.getCIByPK("表名", ['ID': 值])
// 多条查询
def 数据列表 = DataModelUtils.getCIByAttr("表名", ['字段名': 值])
// SQL 查询
def sql = """SELECT * FROM "表名" WHERE 条件"""
def 结果 = DataModelUtils.queryForListMap(sql, null)
def 预算数据)dataFieldMap.字段名ID 或 表名 id| 类型 | 说明 | 示例 |
|---|---|---|
| string | 字符串 | '预算名称' |
| number | 数字(含小数) | 1000.00 |
| integer | 整数 | 2024 |
| datetime | 日期时间 | ${currTime} |
| date | 日期 | '2024-01-01' |
| array | 数组 | ['值 1', '值 2'] |
用于存储预算的基本信息,包含预算名称、状态、创建时间等。
用于存储预算的不同版本,支持版本管理和历史追溯。
存储各单位的成本数据,包含月份、项目、金额等字段。
存储成本预算数据,支持多维度预算编制。
存储飞机维修计划,包含飞机号、客户编号、维修项目等。
存储培训计划信息,包含培训人员、时间、项目等。
完整的数据模型定义存储在 references/data_models.json 文件中,包含所有 68 个数据表的详细字段信息。
def 预算数据 = DataModelUtils.getCIByPK("预算主表", ['ID': 预算 ID])
def 预算名称 = 预算数据.dataFieldMap.预算名称
def 状态 = 预算数据.dataFieldMap.状态
def 维修计划列表 = DataModelUtils.getCIByAttr("维修计划表", ['飞机号': 飞机号])
for (计划 in 维修计划列表) {
println "维修项目:" + 计划.dataFieldMap.维修项目
}
def sql = """
SELECT SUM("金额") AS 总成本
FROM "单位成本表"
WHERE "单位 id" = ? AND "月份" = ?
"""
def 结果 = DataModelUtils.queryForListMap(sql, [单位 ID, 月份])
def 总成本 = 结果 [0].总成本
references/data_models.json - 完整数据模型定义(68 个表)