Skill-MCP
Skill-MCP 🚀
Die Skill-Registry der nächsten Generation für KI-Agenten und die Cognitive-Rule-Engine, die Skills als Daten behandelt Next-Gen AI Agent Skill Registry & Cognitive Rule Engine
📖 Kerngedanke und Architektur-Innovation
Das traditionelle Agent-Skill-Ökosystem steht vor zwei großen Branchenproblemen:
Ineffiziente Skillsuche – Einfacher Keyword-Abgleich kann die Long-Tail-Anforderungen nicht abdecken, und bei der Verkettung mehrerer Skills fehlen Abhängigkeitsauflösung und Datenflussplanung.
Fehlende regelbasierte Konventionen – Benennungskonventionen, Code-Review, tiefes Denken, Commit-Regeln und ähnliche „Rules“ werden von KI fast nie proaktiv aufgerufen, wenn kein eindeutiger Auslöser existiert.
Skill-MCP stellt die „Zweigleisige Skill-Architektur“ (Dual-Track Skill Architecture) vor:
┌───────────────────────────┐
│ AI Client (Claude/Cursor)│
└─────────────┬─────────────┘
│
skill_search("...")
│
▼
┌──────────────────────────────────────────────┐
│ Skill-MCP │
├──────────────────────┬───────────────────────┤
│ │ │
【按需检索】 ▼ ▼ 【强制注入】 │
┌─────────────────────────┐ ┌────────────────────────────┐ │
│ Tool Skills (工具型) │ │ Rule Skills (准则型) │ │
├─────────────────────────┤ ├────────────────────────────┤ │
│ • BM25 + 向量混合召回 │ │ • 跳过搜索竞争 │ │
│ • 多技能工作流 DAG 规划 │ │ • 随每次检索无条件跟车附带 │ │
│ • 沙箱隔离与 HITL 权限 │ │ • 强制规范 AI 思考与代码风格│ │
└───────────┬─────────────┘ └────────────┬───────────────┘ │
│ │ │
└──────────────────┬─────────────────┘ │
▼ │
┌──────────────────────┐ │
│ 统一 Payload 返回给 AI│ │
└──────────────────────┘ │
└──────────────────────────────────────────────┘Related MCP server: craft
📐 Skill-MCP-Skill-Standard (The Skill Standard)
Alle unter skills/ gespeicherten Skills folgen einem einheitlichen „Drei-in-Eins“-Organisationsstandard:
skills/<namespace>/<skill-name>/
├── skill.json # 1. 机器契约(元数据、IO Schema、权限、执行入口、skillType)
├── SKILL.md # 2. AI 执行 SOP 指南(角色定位、正反例、步骤规范)
└── scripts/ # 3. 可执行脚本工具(自动化校验器、数据抓取脚本、转换器等)
└── run.ts1. skill.json Vertragsdefinition
{
"schemaVersion": 1,
"name": "naming-conventions",
"namespace": "dev",
"version": "1.0.0",
"description": "代码与变量命名规范守门人:强制统一 AI 代码命名风格,约束布尔谓词、函数动词前缀与常量大写。",
"category": "dev",
"tags": ["naming-conventions", "code-style", "rules"],
"triggers": ["naming", "variable", "refactor", "code"],
"keywords": ["naming", "camelCase", "snake_case"],
"whenToUse": "在生成、重构或审查任何编程语言的代码时必须遵守",
"whenNotToUse": "编写纯文本说明或无代码生成的闲聊场景无需遵守",
// 核心区分:'tool' (按需搜索工具) | 'rule' (永远生效的准则)
"skillType": "rule",
"useCases": [
{ "task": "审查并规范生成的变量与函数命名" }
],
"preconditions": {},
"io": {
"input": { "semanticType": "text" },
"output": { "semanticType": "text" }
},
"capabilities": ["dev:naming-conventions"],
"consumes": [],
"dependencies": [],
"permissions": {
"fsRead": ["*"],
"fsWrite": [],
"network": [],
"tools": [],
"env": [],
"maxDurationMs": 5000,
"maxCostCents": 0,
"mutating": false
},
"entrypoint": {
"kind": "inline",
"code": "return { applied: true, rule: 'dev:naming-conventions' };"
},
"status": "active"
}2. SKILL.md Schreibregeln
Frontmatter: enthält
name,namespace,version,skillType,description.Positivregeln (Do's): Verbindliche Verhaltensregeln werden in Einzelpunkten aufgeführt.
Negativ-/Positiv-Vergleich (Bad vs. Good): Vergleichscodeblöcke müssen explizit angegeben werden, um Missverständnisse bei LLMs zu vermeiden.
🛠️ MCP-Tool-Matrix (9 Tools)
Tool | Zuständigkeit |
| Durchsucht Werkzeug-Skills hybrid und injiziert automatisch global gültige Regel-Skills ( |
| Zeigt die Abhängigkeitstopologie, Versionskonflikte, zyklische Abhängigkeiten und Datei-Hashwerte eines Skills an. |
| Ruft das vollständige |
| Plant auf Basis des Topologiegraphen und historischer Rezepte (Recipes) automatisch DAG-Datenflüsse und Workflows über mehrere Skills. |
| Führt Skills in einer sicheren Sandbox (Node/Inline/Shell) schrittweise aus, kontrolliert durch das Berechtigungsmodell (Broker). |
| Orchestriert vollständige Workflow-DAGs und unterstützt die zweistufige Human-in-the-Loop-Autorisierung (HITL). |
| Übermittelt Feedback zur Skill-Ausführung und löst via Thompson Sampling und Elo-Winrate eine dynamische Neugewinnung aus. |
| Registriert neue Skills dynamisch und unterstützt Inhaltsadressierung, TOFU-Signaturbindung und Qualität der Gates. |
| Zeigt historische Aufrufs, Gewinnraten, Elo-Punktezahlen und beliebte Skill-Rezepte an. |
🚀 Schnellstart
Systemanforderungen
Node.js:
>= 24.0.0(unterstützt nativ TypeScript Type Stripping und SQLite)
1. Lokale Ausführung (Stdio-Modus)
Direkt als lokalen MCP-Service in Claude Desktop oder Cursor integrieren:
# 安装依赖
npm install
# 运行测试套件(91 项自动化测试)
npm test
# 启动 Stdio MCP 服务
npm start2. Lokaler/Server-HTTP-Modus (Streamable HTTP / SSE)
# 启动 HTTP 服务,监听 0.0.0.0:3000
node src/main.ts --http --host 0.0.0.0 --port 3000Der Dienst ist unter http://127.0.0.1:3000/mcp verfügbar (unterstützt JSON-RPC und Server-Sent-Events-Sstreamere.
🐳 Docker-Bereitstellung
# 构建镜像
docker build -t skill-mcp:latest .
# 后台运行容器(数据持久化挂载)
docker run -d \
-p 3000:3000 \
--name skill-mcp \
-v $(pwd)/data:/app/data \
skill-mcp:latest🔌 Client-Konfigurationsbeispiel
Claude Desktops (claude_desktop_config.json)
Lokale Prozessvariante (Stdio):
{
"mcpServers": {
"skill-mcp": {
"command": "node",
"args": ["/path/to/Skill-mcp/src/main.ts"]
}
}
}Remote-Servervariante (HTTP):
{
"mcpServers": {
"remote-skill-mcp": {
"url": "http://your-server-ip:3000/mcp"
}
}
}🛡️ Integrierte Regel-Skalierungskologie (Built-in Rule Skills)
Aktuell sind 13 erstklassige kognitive und Engineering-gatekeeper-Regeln integriert:
🌟 Git-Commit-Konventionen:
dev:git-conventional-commits🌟 TypeScript-Typsicherheits-Guard:
dev:typescript-strict-guard🌟 Code-Benennungskonventionen:
dev:naming-conventions🌟 Code-Sicherheits-Review:
dev:code-review-guard🌟 SOLID-Architektur-Prinzipien:
arch:clean-code-solid🌟 Enterprise-RESTful-API:
web:restful-api-standard🌟 Moderne Web-Ästhetik:
design:modern-ui-aesthetics🧠 Vehrifikationskette (CoVe):
reasoning:chain-of-verification🧠 Dynamische Gedankenketten:
reasoning:sequential-thinking🧠 Toyota-5-Why:
reasoning:root-cause-5whys🧠 Advocatuia Dei (Adversarial Critic):
reasoning:adversarial-critic🧠 First-Principles-Ableitung:
reasoning:first-principles🧠 Mehrkriterien-Entscheidungsmatrix:
reasoning:decision-tradeoff-matrix
📄 Open-Source-Lizenz
Dieses Projekt wurde unter der MIT-Lizenz veröffentlicht.
Available Tools
9 toolsskill_feedbackA
报告执行结果与评分,驱动 bandit/Elo 排名与备选检索(学习闭环;会覆盖同一次 skill_run 的自动记账,不重复计数)。
Inputs: skill (required), outcome (required), task, runId, +5 more.
skill_getC
获取 skill 的完整包:manifest + SKILL.md 正文 + 文件清单 + 已解析依赖(渐进披露的正文环节)。
Inputs: key, name.
skill_inspectC
查看 skill 的 manifest、依赖树与权限清单(不含正文,成本低)。
Inputs: key, name.
skill_planC
把任务规划成 skill 组合的 workflow DAG(分解-检索-组合;无 LLM 时用能力闭包图搜索)。
Inputs: task (required), context.
skill_registerA
注册或升级 skill(append-only;v3:trust 模式需 Ed25519 签名,gate 模式下升级需自带 tests 过沙箱)。
Inputs: manifest (required), files, signature, publisherKey.
skill_runA
在权限沙箱中执行单个 skill。权限不足时返回 requiresApproval(两段式 HITL,approveAsks: true 授权后重试)。
Inputs: skill (required), task, inputs, timeoutMs, +2 more.
skill_searchA
按任务检索 skill:混合检索(BM25 + 向量 + RRF)+ 五维任务适配打分,返回带理由的候选列表。先做这个再动手。
Inputs: query (required), topK, context, filters.
skill_statsA
查看 skill 的评价指标:成功率(Wilson)、Elo、质量分、延迟成本,以及挖掘出的 workflow recipe。
Inputs: key.
workflow_runB
执行 skill_plan 产出的 DAG:拓扑序数据流、重试、检查点、整链授权。
Inputs: dag (required), task, inputs, approveAsks, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
每个工具对应一个明确的职责阶段:搜索、查看元信息、获取全文、规划、执行单技能、执行工作流、反馈、注册、查看统计,彼此边界清晰。workflow_run 与 skill_run 通过单个体与 DAG 执行明确区分,不易产生误选。
大多数工具遵循 skill_<action> 的模式,如 skill_search、skill_inspect、skill_register,具有较高的可预测性。但 workflow_run 没有使用 skill_ 前缀,且 skill_stats、skill_feedback 以名词而非动词结尾,存在少量风格不一致。
9 个工具覆盖了从发现、规划、执行到反馈、学习、注册、查询的完整闭环,每个工具都有独立且必要的职责。数量处于合理区间,没有冗余或缺失。
工具面覆盖了 skill 的生命周期:注册/升级、检索、检查、获取、单技能执行、工作流执行、反馈学习、统计评估。缺少删除/下架属于 append-only 设计下的有意限制,不构成明显缺口。
Maintenance
Related MCP Connectors
A registry for your team's agent skills: find, use, save and share them from any agent.
Governed AI agent skills — one library, distributed to devs and exposed to remote agents over MCP.
Skills and decision-tree workflows your AI agent can find and run, with a record of each run
AI agent marketplace for automated employees, workflows, skills, and tool orchestration.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to intelligently match tasks to skills through semantic embeddings, track skill effectiveness, detect skill gaps, and discover new skills from external sources.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to index and search local skill libraries, persist and resume task checkpoints, and run validated workflow plans with controlled approval and write permissions.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to dynamically retrieve and use authorized skills through the Model Context Protocol, with API key authentication, permission-based access control, REST administration, and audit logging.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to search, retrieve, score, compose, and verify reusable agent skills from the SkillForge registry via MCP.MIT