🧩 Agent SkillAgent Skill

为 AI Agent 注入金蝶 ERP 知识 Inject Kingdee ERP Knowledge into Your AI Agent

为支持 Skill 机制的 AI Agent(Claude Code、openclaw、hermes 等)注入金蝶云星空的表单字段、查询模式和工作流知识,大幅减少试错次数。配合 kingdee-k3cloud-mcp 使用效果最佳。

Gives any Skill-capable AI agent (Claude Code, openclaw, hermes, etc.) the form fields, query patterns, and workflow knowledge it needs to use Kingdee K3Cloud correctly — pairs best with kingdee-k3cloud-mcp.

CI License Release

整体架构

Architecture

Skill 与 MCP 的分工

Skill vs. MCP: division of labor

Skill(本项目) = 知识库 + 工作流决策树,让 Agent 自动掌握正确的 API 用法,避免字段名错误。MCP Server = 执行引擎,提供 15 个实际的 API 工具,适用于所有 MCP 客户端。两者可分别使用,但在支持 Skill 机制的 Agent(Claude Code、openclaw、hermes 等)中组合使用效果最佳。

Skill (this project) = knowledge base + workflow decision trees, so the agent picks the right API usage automatically. MCP Server = the execution engine with 15 real API tools, usable from any MCP client. Best combined inside a Skill-capable agent (Claude Code, openclaw, hermes, etc.).

AI Agent (Skill installed) │ Knowledge injection (form IDs, field names, workflows) ▼ Agent + MCP tools (query_bill_json, view_bill, ...) │ Kingdee Web API ▼ 金蝶云星空 K3Cloud
使用纯 MCP 客户端? 如果你使用 Claude Desktop、Cursor、Cline、Cherry Studio 等不支持 Skill 机制的 MCP 客户端,直接配置 kingdee-k3cloud-mcp 即可使用全部工具,无需安装本 Skill;本 Skill 面向支持 Skill 机制的 AI Agent(Claude Code、openclaw、hermes 等),提供额外的领域知识增强。
Using a plain MCP client? If you use Claude Desktop, Cursor, Cline, Cherry Studio, or another MCP client without Skill support, just configure kingdee-k3cloud-mcp directly — no Skill install needed. This Skill is for any Skill-capable AI agent (Claude Code, openclaw, hermes, etc.) that wants extra domain knowledge on top.

安装方式

Installation

三种安装方式

Three ways to install

手动安装(推荐)

Manual install (recommended)

前往 Releases 页面下载 kingdee-k3cloud.skill,放入你的 Agent 的 skills 目录(Claude Code 为 ~/.claude/skills/),重启生效。

Download kingdee-k3cloud.skill from the latest release, drop it in your agent's skills directory (Claude Code uses ~/.claude/skills/), then restart.

Skill Hub(即将支持)

Skill Hub (coming soon)

待 Anthropic Skill Hub 正式上架后,可在支持的客户端中搜索 kingdee 一键安装。

Once Anthropic's Skill Hub launches, search kingdee in a supporting client for one-click install.

从源码安装

Build from source

克隆仓库后运行 make build 打包,将生成的 .skill 文件复制到 skills 目录。

Clone the repo, run make build to package, then copy the resulting .skill file into your skills directory.

# 从源码安装Build from source
git clone https://github.com/adamzhang1987/kingdee-k3cloud-skill.git
cd kingdee-k3cloud-skill
make build
cp kingdee-k3cloud.skill ~/.claude/skills/

覆盖场景

Coverage

这个 Skill 能帮你做什么

What this Skill covers

🔍

ERP 数据查询

ERP Data Queries

销售订单、采购订单、库存、物料、客户、供应商。

Sales orders, purchase orders, inventory, materials, customers, suppliers.

📊

经营日报生成

Daily Report Generation

标准 5 步查询流程,最优 token 路径。

A standardized 5-step query flow optimized for token usage.

👤

客户信息管理

Customer Management

客户查询、生日筛选、类别/专员映射。

Customer lookups, birthday filters, category/rep mappings.

📝

单据操作

Bill Operations

创建、提交、审核、反审核、下推。

Create, submit, audit, unaudit, push.

🛠️

错误排查

Error Troubleshooting

字段名验证、500 错误处理、数据量控制。

Field-name verification, 500-error handling, result-size control.

📈

分析工作流

Analysis Workflows

销售分析、库存分析、订单追踪、周期性报表。

Sales analysis, inventory analysis, order tracking, periodic reports.

设计理念

Design Philosophy

Progressive Disclosure(渐进式披露)

Progressive Disclosure

主文件保持精简(<300 行),详细的字段验证表、查询模板、错误处理等放在 references/ 中按需引用。

The main file stays lean (<300 lines); detailed field tables, query templates, and error handling live in references/ and load on demand.

层级Level 内容Content 加载时机Loaded When
Level 1 Skill name + descriptionSkill name + description 始终在上下文中Always in context
Level 2 SKILL.md(140 行)SKILL.md (140 lines) Skill 触发时加载Loaded when the skill triggers
Level 3 references/ 详细文档references/ detail docs 按需加载Loaded on demand

目录结构

Directory Structure

Skill 内容一览

What's inside

kingdee-k3cloud/ ├── SKILL.md 主文件:核心原则、表单速查、字段规则main file: core principles, form lookup, field rules └── references/ ├── verified-fields.md 已验证字段大全verified field catalog ├── daily-report-workflow.md 经营日报标准查询流程daily report workflow ├── customer-query-guide.md 客户查询专题customer query guide ├── common-errors.md 常见错误及解决方案common errors & fixes ├── sales-analysis-workflow.md 销售分析工作流sales analysis workflow ├── inventory-analysis-workflow.md 库存分析工作流inventory analysis workflow ├── order-tracking-workflow.md 订单追踪工作流order tracking workflow ├── periodic-report-workflow.md 周期性报表工作流periodic report workflow └── customization-guide.md 自定义与扩展指南customization guide