
leechen298/Code2Skill
31最近提交 2026年8月15日
Code2Skill DSH 插件
Code2Skill 是一组可安装的 Agent Skills,通过分析用户授权的源代码来生成 Functions、MCP 工具、工作流 Skills 和离线测试。它帮助编码代理理解业务功能,并生成可供其他代理复用的能力。生成的产物可安装到 Codex、Claude Code、Cursor、OpenClaw 等环境中。
如何安装 Code2Skill DSH 插件
dsh plugin --profile web add github:leechen298/Code2Skill#v1.1.3复制不会执行命令。安装 Code2Skill DSH 插件前请核对仓库和版本。
Code2Skill DSH 插件数据来源
Code2Skill DSH 插件快照日期:2026年8月16日
discovered
Code2Skill DSH 插件能做什么
- 从现有源代码生成 Functions、MCP 工具、工作流 Skills 和离线测试。
- 支持前端、后端或全栈项目,且由用户授权范围控制。
- 生成指导代理如何使用已生成能力的 Skills。
- 提供两个独立的审查 Skill:code2skill-review-flow 和 code2skill-review-source。
Code2Skill DSH 插件适合哪些场景
- 将遗留前端应用转化为代理可调用的业务函数。
- 从后端 API 调用点生成 MCP 工具,无需编写新代码。
- 创建工作流 Skills,让代理完成多步骤业务任务。
- 审查生成的工作流,确保用户能够完成主要目标。
Code2Skill DSH 插件适合谁
- 希望将现有应用程序逻辑暴露为代理能力的开发者。
- 构建编码代理的团队,需要让代理理解并利用源代码中的业务功能。
Code2Skill DSH 插件的限制
- Code2Skill 生成初稿,不验证每个业务规则或真实环境。
- 结果取决于生成模型、源代码完整性和授权范围。
- 离线测试不能替代真实的 API 或部署验收测试。
- 生成的 MCP 服务器必须根据各自的 MCP-SETUP.md 文件单独注册。
Code2Skill DSH 插件的仓库 README 摘录
以下文字摘自 Code2Skill DSH 插件的上游仓库 leechen298/Code2Skill 的 README,版权归原作者,仅作引用。
English | [简体中文](README.zh-CN.md) Code2Skill is a collection of installable Agent Skills that helps coding agents understand business functionality in user-authorized frontend, backend, or full-stack source code, then generate Functions, MCP tools, workflow Skills, and offline tests for other agents to use. Current release: [v1.1.3](https://github.com/leechen298/Code2Skill/releases/tag/v1.1.3). ```text Existing application code ↓ Code2Skill Functions + MCP Tools + Skills + Tests ↓ An agent gathers the required information and completes the user's goal ``` Functions and MCP tools provide business capabilities. Skills guide an agent in using those capabilities. The consuming agent still decides whether to call a tool, what to clarify, how to interpret a response, and what to do next. ## What It Does - Generates capabilities from business invocation points that actually exist in source code. Client-backed features start from calls made by the client or consumer; projects without a client start from user-specified public APIs, RPCs, services, messages, or task entry points and follow their public request, response, and contract types as needed. - Identifies independently comp
阅读完整 README仓库许可: MIT
Code2Skill DSH 插件常见问题
如何将 Code2Skill 安装为 DSH 插件?
在终端中运行命令 `dsh plugin --profile web add github:leechen298/Code2Skill#v1.1.3`。确保已安装 DeepSeek Harness 并选择了目标配置文件。安装后,您可以使用三个 Skill:code2skill-generate、code2skill-review-flow 和 code2skill-review-source。
Code2Skill 支持哪些代理?
Code2Skill 可以与主流编码代理一起使用,如 Codex、Claude Code 和 Kimi Code。生成的 Skills 可以安装在 Codex、Claude Code、Cursor、OpenClaw 以及其他支持 Agent Skills 的环境中。更多环境请参考 `skills` CLI 兼容性列表。
是否需要单独注册 MCP 服务器?
是的,生成的 MCP 服务器必须根据每个包中 MCP-SETUP.md 文件的说明单独注册。Skill 安装、MCP 服务器连接和实时业务工作流验证是三个独立的状态,需要分别处理。
Code2Skill 能生成生产就绪的能力吗?
Code2Skill 生成的是可运行、可编辑的业务能力初稿。它不能证明每个业务规则或真实环境都经过验证。在生产中使用前,应审查生成的输出,使用审查 Skill,并执行真实的 API 或部署验收测试。
如何为 Code2Skill 授权源代码根目录?
在调用生成 Skill 时,明确授权它可能检查的源代码根目录。例如,使用提示语 '授权源代码根目录:<frontend>, <backend>, <protocol>, 以及 <service/message/task 目录>。' 该 Skill 只会分析这些授权路径内的代码。