leechen298/Code2Skill
Generate Functions, MCP tools, workflow Skills, and offline test packages from user-authorized source code.
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. It 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), identifies independently completable goals inside a page/directory/feature, and places field provenance, selected-record handoffs, request assembly and deterministic transformations in Functions.
Install
dsh plugin --profile web add github:leechen298/Code2Skill#v1.2.0README DeepSeek Harness section: install the three Skills as a Bundle in a selected profile with the tagged GitHub form. The general Agent Skills CLI form installs the same three skills into any Agent Skills-compatible agent: npx skills add leechen298/Code2Skill --skill code2skill-generate code2skill-review-flow code2skill-review-source --agent "$AGENT_ID" --global --yes. Routine generation only needs code2skill-generate; the two review Skills run independently. Generated business MCP servers must still be registered separately per each package's MCP-SETUP.md. README notes version strict-export-v1 legacy compatibility mode still emits zh-CN documentation.
Compatibility
DSH web profile for the bundle form; generated Skills can also be installed in Codex, Claude Code, Cursor, OpenClaw and other environments that support Agent Skills (see the skills CLI compatibility list). Defaults to offline technical validation and does not call live business APIs.
Details
- Repo: leechen298/Code2Skill
- Category: Development & Runtime
- Stars: 0
- Version: v1.2.0 (GitHub release tag; install form is the tagged GitHub repo — no npm release claimed)
- Last push: 2026-08-27
- First seen: 2026-07-17
Recent updates
Current release v1.2.0. The three Skills are code2skill-generate (generates Functions, MCP tools, workflow Skills and offline tests), code2skill-review-flow (checks whether a user can complete the main goals through the generated workflows) and code2skill-review-source (reviews request fields, transformations and invocation chains against the authorized source). Skill instructions and default generated-document templates are available in English and Chinese; user-facing output follows the language of the request.
FAQ
- How do I install Code2Skill in DeepSeek Harness?
- Run dsh plugin --profile web add github:leechen298/Code2Skill#v1.2.0 to install the three Skills as a Bundle in a profile.
- Does Code2Skill call my live business APIs?
- No — it defaults to offline technical validation and does not call live business APIs. To perform live operations you must register the generated MCP server as described in each package's MCP-SETUP.md.
- Can Code2Skill be used with agents other than DeepSeek Harness?
- Yes. The Skills can be generated with mainstream coding agents such as Codex, Claude Code and Kimi Code, and generated Skills install in Codex, Claude Code, Cursor, OpenClaw and other Agent Skills-compatible environments.