Install
openclaw skills install sfe-ws-data-viewerSFE维盛专属数据查询工具,用于快速查询维盛专属采集项目报表的数据,如客户管理年度跟踪表、医院管理年度跟踪表、开发管理年度跟踪表等特定项目的明细报表或汇总报表
openclaw skills install sfe-ws-data-viewer本文件提供能力宪章 + 能力树 + 按需加载规则。详细参数与流程见各模块 references/ 与 openapi/。
当前版本: v0.1
接口版本: 所有业务接口统一使用 /erp-open-api/* 前缀,通过 appKey 鉴权。
能力概览(1 块能力):
sfe-ws:维盛专属数据查询统一规范:
cms-auth-skills/SKILL.mdcms-auth-skills/SKILL.md授权依赖:
appKey 时,先尝试读取 cms-auth-skills/SKILL.mdcms-auth-skills/SKILL.md 中的鉴权规则准备 appKeynpx clawhub@latest install cms-auth-skills --forcenpx clawhub@latest install https://github.com/spzwin/cms-auth-skills.git --force输入完整性规则(强制):
year 和 quarter 参数范围建议工作流(简版):
SKILL.md 与 cms-auth-skills/SKILL.md,明确能力范围、鉴权与安全约束。openapi/<module>/api-index.md。openapi/<module>/<endpoint>.md 获取入参/出参/Schema。examples/<module>/README.md 组织话术与流程。scripts/<module>/<endpoint>.py 执行接口调用,获取 TOON 编码后的结果。所有接口调用必须通过脚本执行,不允许跳过脚本直接调用 API。脚本使用规则(强制):
openapi/<module>/<endpoint>.md 都必须有对应的 scripts/<module>/<endpoint>.py,不允许"暂无脚本"。scripts/common/toon_encoder.py 编码后再输出,不允许直接输出原始 JSON。scripts/ 下的脚本均可脱离 AI Agent 直接在命令行运行。openapi/<module>/api-index.md。openapi/ 文档为准,脚本仅负责编排调用流程。cms-auth-skills/SKILL.md。意图路由与加载规则(强制):
api-index.md。宪章(必须遵守):
SKILL.md 只描述"能做什么"和"去哪里读",不写具体接口参数。SKILL.md + cms-auth-skills/SKILL.md,只有触发某模块时才加载该模块的 openapi、examples 与 scripts。api-index.md 仅做索引。模块路由与能力索引:
| 用户意图(示例) | 模块 | 能力摘要 | 模块说明 | 接口文档 | 脚本 |
|---|---|---|---|---|---|
| "查询客户管理年度跟踪表数据" | sfe-ws | 查询客户管理年度跟踪表 | ./references/sfe-ws/README.md | ./openapi/sfe-ws/api-index.md | ./scripts/sfe-ws/hcp-manage-yearly-tracking.py |
| "查询医院管理年度跟踪表数据" | sfe-ws | 查询医院管理年度跟踪表 | ./references/sfe-ws/README.md | ./openapi/sfe-ws/api-index.md | ./scripts/sfe-ws/hco-manage-yearly-tracking.py |
| "查询开发管理年度跟踪表数据" | sfe-ws | 查询开发管理年度跟踪表 | ./references/sfe-ws/README.md | ./openapi/sfe-ws/api-index.md | ./scripts/sfe-ws/dev-manage-yearly-tracking.py |
能力树(实际目录结构):
sfe-ws-data-viewer/
├── SKILL.md
├── references/
│ └── sfe-ws/README.md
├── openapi/
│ └── sfe-ws/
│ ├── api-index.md
│ ├── hcp-manage-yearly-tracking.md
│ ├── hco-manage-yearly-tracking.md
│ └── dev-manage-yearly-tracking.md
├── examples/
│ └── sfe-ws/README.md
└── scripts/
├── common/toon_encoder.py
└── sfe-ws/
├── README.md
├── hcp-manage-yearly-tracking.py
├── hco-manage-yearly-tracking.py
└── dev-manage-yearly-tracking.py