Xpersona
B

Budget Data Model Skills

CLAWHUB · Unverified

提供预算系统数据模型的完整定义,包括所有表名、字段名、数据类型等。当用户需要查询预算相关数据模型结构、编写数据查询脚本、或需要了解特定表的字段信息时使用此技能。 Skill: Budget Data Model Skills Owner: lan2898408767 Summary: 提供预算系统数据模型的完整定义,包括所有表名、字段名、数据类型等。当用户需要查询预算相关数据模型结构、编写数据查询脚本、或需要了解特定表的字段信息时使用此技能。 Tags: budget:1.0.0, data-model:1.0.0, database:1.0.0, finance:1.0.0, latest:1.0.0, schema:1.0.0 Version history: v1.0.0 | 2026-03-28T02:51:02.836Z | user 初始版本 - 提供预算系统的完整数据模型定义,包含 68 个数据表 Archive index: Archive v1.0.0: 5 files, 11868 bytes Files: package.json (821b), reference

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171zfb64w6rnnwcbc72p7ecxx83pw2h:shucheng-budget-data-model
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lan2898408767-shucheng-budget-data-model/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,212 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: budget-data-model
description: "提供预算系统数据模型的完整定义,包括所有表名、字段名、数据类型等。当用户需要查询预算相关数据模型结构、编写数据查询脚本、或需要了解特定表的字段信息时使用此技能。"
metadata: { "openclaw": { "emoji": "📊", "requires": { "bins": [] } } }
---

# 预算系统数据模型技能

提供预算系统的完整数据模型定义,包含 68 个数据表的详细结构信息。

## 何时使用

✅ **使用此技能的情况:**

- "预算管理表有哪些字段?"
- "查询预算数据需要用到哪些表?"
- "帮我写一个查询预算数据的脚本"
- "预算表的表名是什么?"
- "需要了解预算系统的数据库结构"
- "某字段在哪个表里?"

## 数据模型结构

每个数据模型包含以下信息:

- **table_id**: 表标识(数据库表名)
- **table_name**: 表显示名(中文别名)
- **fields**: 字段列表,每个字段包含:
  - **field_id**: 字段标识(数据库字段名)
  - **field_name**: 字段显示名(中文别名)
  - **data_type**: 数据类型(string/number/integer/datetime/date/array)
  - **length**: 长度/精度
  - **is_required**: 是否必填
  - **is_editable**: 是否可编辑

## 主要数据表分类

### 预算基础表
- 预算主表
- 预算版本
- 预算公式
- 预算科目

### 费用预算表
- 单位成本
- 成本预算
- 毛利预算
- 费用明细

### 业务预算表
- 维修计划
- 培训计划
- 附加服务
- 航材储备

### 报表相关表
- 预算报表主表
- 预算报表明细
- 预算执行报表

### 辅助表
- 预算科目值表
- 预算公式明细
- 飞机预算方案

## 数据查询规范

### 1. 使用 DataModelUtils 查询

```groovy
// 单条查询
def 数据 = DataModelUtils.getCIByPK("表名", ['ID': 值])

// 多条查询
def 数据列表 = DataModelUtils.getCIByAttr("表名", ['字段名': 值])

// SQL 查询
def sql = """SELECT * FROM "表名" WHERE 条件"""
def 结果 = DataModelUtils.queryForListMap(sql, null)
```

### 2. 字段命名规范

- 使用中文变量名(如 `def 预算数据`)
- 字段访问使用 `dataFieldMap.字段名`
- ID 字段通常为 `ID` 或 `表名 id`

### 3. 常见字段类型

| 类型 | 说明 | 示例 |
|------|------|------|
| string | 字符串 | '预算名称' |
| number | 数字(含小数) | 1000.00 |
| integer | 整数 | 2024 |
| datetime | 日期时间 | ${currTime} |
| date | 日期 | '2024-01-01' |
| array | 数组 | ['值 1', '值 2'] |

## 常用数据表说明

### 预算主表
用于存储预算的基本信息,包含预算名称、状态、创建时间等。

### 预算版本表
用于存储预算的不同版本,支持版本管理和历史追溯。

### 单位成本表
存储各单位的成本数据,包含月份、项目、金额等字段。

### 成本预算表
存储成本预算数据,支持多维度预算编制。

### 维修计划表
存储飞机维修计划,包含飞机号、客户编号、维修项目等。

### 培训计划表
存储培训计划信息,包含培训人员、时间、项目等。

## 数据模型文件

完整的数据模型定义存储在 `references/data_models.json` 文件中,包含所有 68 个数据表的详细字段信息。

## 使用示例

### 示例 1:查询预算主表数据

```groovy
def 预算数据 = DataModelUtils.getCIByPK("预算主表", ['ID': 预算 ID])
def 预算名称 = 预算数据.dataFieldMap.预算名称
def 状态 = 预算数据.dataFieldMap.状态
```

### 示例 2:查询某飞机的维修计划

```groovy
def 维修计划列表 = DataModelUtils.getCIByAttr("维修计划表", ['飞机号': 飞机号])
for (计划 in 维修计划列表) {
    println "维修项目:" + 计划.dataFieldMap.维修项目
}
```

### 示例 3:汇总某单位某月的成本

```groovy
def sql = """
    SELECT SUM("金额") AS 总成本
    FROM "单位成本表"
    WHERE "单位 id" = ? AND "月份" = ?
"""
def 结果 = DataModelUtils.queryForListMap(sql, [单位 ID, 月份])
def 总成本 = 结果 [0].总成本
```

## 注意事项

1. **表名和字段名**:使用数据模型中定义的准确名称
2. **数据类型**:注意区分 string、number、integer 等类型
3. **必填字段**:创建数据时确保必填字段有值
4. **ID 字段**:主键字段通常为 ID 或 表名 id,长度为 128
5. **关联查询**:通过 id 字段进行表间关联

## 相关文件

- `references/data_models.json` - 完整数据模型定义(68 个表)

_meta.json

{
  "ownerId": "kn732jew717rwtrtw0w80fkbmh83pjw6",
  "slug": "shucheng-budget-data-model",
  "version": "1.0.0",
  "publishedAt": 1774666262836
}

skill-card.md

## Description:

Provides a Chinese-language budget-system data model reference, including table names, field names, data types, constraints, and query examples for 68 tables.

This skill is ready for commercial/non-commercial use.

## Publisher:

[lan2898408767](https://clawhub.ai/user/lan2898408767)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, analysts, and agents use this skill to answer budget-system schema questions and draft narrow database query snippets from the bundled table and field definitions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Generated queries against real budget or finance data could expose unauthorized or excessive data if used too broadly.

Mitigation: Confirm authorization, keep queries narrow, and avoid exporting unrelated bulk data.

Risk: Static schema references may differ from the current production database.

Mitigation: Validate table names, field names, and required fields against the current system before executing generated scripts.

Risk: Generated scripts can still have operational impact even though the skill contains no executable payload.

Mitigation: Review generated scripts before execution and test against non-production data when possible.

## Reference(s):

- [Budget data model definitions](references/data_models.json)
- [ClawHub skill page](https://clawhub.ai/lan2898408767/skills/shucheng-budget-data-model)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, guidance]

**Output Format:** [Markdown text with Groovy and SQL query examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Uses a static Chinese-language schema reference; no bundled executables, credentials, network payloads, or persistence behavior are reported by security evidence.]

## Skill Version(s):

1.0.0 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

package.json

{
  "name": "budget-data-model",
  "version": "1.0.0",
  "description": "提供预算系统的完整数据模型定义,包含 68 个数据表的详细结构信息。包括表名、字段名、数据类型、约束等。",
  "author": "Lan2898408767",
  "license": "MIT",
  "tags": ["budget", "data-model", "database", "finance", "schema"],
  "homepage": "https://clawhub.com/skills/budget-data-model",
  "repository": {
    "type": "git",
    "url": ""
  },
  "keywords": [
    "预算系统",
    "数据模型",
    "数据库结构",
    "财务管理",
    "表结构",
    "字段定义"
  ],
  "category": "Data & Analytics",
  "main": "SKILL.md",
  "files": [
    "SKILL.md",
    "references/**/*"
  ],
  "scripts": {
    "test": "echo \"No tests specified\""
  },
  "engines": {
    "openclaw": ">=1.0.0"
  }
}

Sponsored

Ads related to Budget Data Model Skills and adjacent AI workflows.