用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/UnicomAI/wanwu --skill mcp2skill命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
【首选技能】凡涉及知识网络的任何操作,优先使用 bkn-creator,不要直接触发 create-bkn。 bkn-creator 是 BKN 全生命周期管理器,负责流程路由识别、阶段门禁、子流程编排与结果回执。 覆盖新增、查找、更新、删除(CRUD)并采用渐进式执行。 触发词:创建知识网络、新建BKN、BKN建模、本体建模、对象类、关系类、动作类、 概念组、BKN文件、BKN push、BKN pull、对象类绑定、关系类映射、 对象类提取、关系类提取、实体关系抽取、 知识网络查询、知识网络更新、知识网络删除。 不应触发:仅查询平台功能、Agent 对话、Vega/Catalog 操作、 健康巡检、数据源连接器等非 BKN 生命周期操作时,应由 ontology-core 等其他技能处理。
Guides creation of BKN (Business Knowledge Network) definition files following v2.0.1 spec. Covers network, object_type, relation_type, action_type, concept_group. Use when creating knowledge networks, BKN files, object types, relation types, action types, concept groups, or when user asks to model business knowledge in BKN format. When ontology-core is also loaded, use it to run ontology CLI (bkn push) after files exist.
操作 知识网络(BKN)— 构建知识网络、查询 Schema/实例、语义搜索、执行 Action。 操作数据源与数据视图 — 数据源连接与查询、原子/自定义视图浏览与 SQL 查询。 操作 Vega 可观测平台 — 查询 Catalog/资源/连接器类型、健康巡检。 当用户提到"知识网络"、"知识图谱"、"查询对象类"、"执行 Action"、 "数据源"、"数据视图"、"原子视图"、"Catalog"、"Vega"、 "健康检查"、"巡检"等意图时自动使用。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mcp2skill |
| description | 将 MCP Server 的工具列表转换为 Skill 格式的结构化 Markdown 文档 |
使用mcp2skill命令(已内置)将 MCP Server 的工具定义转换为 Skill 格式,生成 SKILL.md 概览和每个工具的详情文档。
| Name | Type | Required | Description |
|---|---|---|---|
streamableUrl | string | Conditional | MCP Server Streamable HTTP 端点 URL(与 sseUrl 至少填一个) |
sseUrl | string | Conditional | MCP Server SSE 端点 URL(与 streamableUrl 至少填一个) |
name | string | No | Skill 名称,留空时从工具列表自动推断 |
description | string | No | Skill 描述,留空时自动生成 |
transport | string | No | 传输类型:streamable(默认)或 sse |
output | string | No | 输出目录,默认当前目录 |
timeout | string | No | 连接超时时间,默认 30s |
apiAuth | object | No | API 认证配置 |
headers | object | No | 自定义 HTTP 请求头,键值对格式 |
apiAuth Properties| Name | Type | Required | Description |
|---|---|---|---|
apiAuth.authType | string | No | 认证类型:none(默认)、api_key_query(URL 参数)、api_key_header(请求头) |
apiAuth.apiKeyQueryParam | string | No | URL 查询参数名(authType 为 api_key_query 时使用,如 key) |
apiAuth.apiKeyValue | string | No | API Key 值(连接时使用,生成输出中会被替换为占位符) |
apiAuth.apiKeyHeader | string | No | 请求头名称(authType 为 api_key_header 时使用,默认 Authorization) |
apiAuth.apiKeyHeaderPrefix | string | No | 请求头前缀:bearer、basic 或自定义 |
mcp2skill name=天气查询 streamableUrl=http://192.168.0.21:8081/mcp/server/streamable?key=xxx description="查询天气" output=./skills
mcp2skill name=地图服务 sseUrl=http://192.168.0.21:8081/mcp/server/sse transport=sse description="地图服务" output=./skills
mcp2skill name=天气查询 streamableUrl=http://example.com/mcp/server/streamable description="查询天气" 'apiAuth={"authType":"api_key_query","apiKeyQueryParam":"key","apiKeyValue":"my-secret-key"}'
mcp2skill name=天气查询 streamableUrl=http://example.com/mcp/server/streamable description="查询天气" 'apiAuth={"authType":"api_key_header","apiKeyHeaderPrefix":"bearer","apiKeyValue":"my-token"}'
mcp2skill name=天气查询 streamableUrl=http://example.com/mcp/server/streamable description="查询天气" 'headers={"X-Custom-Header":"value"}'
转换成功后,在输出目录下生成:
{output}/{skillName}/
├── SKILL.md # Skill 入口概览
├── scripts/
│ └── mcp_client.py # 自动生成的 MCP Python 客户端
└── references/
└── operations/ # 每个工具一个详情文件
└── {tool-name}.md