Skip to content

leechen298/Code2Skill

31Last commit Aug 15, 2026

Code2Skill DSH plugin

Code2Skill is a collection of installable Agent Skills that analyze user-authorized source code to generate Functions, MCP tools, workflow Skills, and offline tests. It helps coding agents understand business functionality and produce reusable capabilities for other agents. The generated artifacts can be installed in environments like Codex, Claude Code, Cursor, and OpenClaw.

How to install the Code2Skill DSH plugin

dsh plugin --profile web add github:leechen298/Code2Skill#v1.1.3

Copying does not run this command. Review the repository and version before installing the Code2Skill DSH plugin.

Code2Skill DSH plugin data source

Code2Skill DSH plugin snapshot date: Aug 16, 2026

discovered

What the Code2Skill DSH plugin can do

  • Generates Functions, MCP tools, workflow Skills, and offline tests from existing source code.
  • Supports frontend, backend, or full-stack projects with user-authorized scope.
  • Produces Skills that guide agents in using generated capabilities.
  • Provides two independent review Skills: code2skill-review-flow and code2skill-review-source.

Where the Code2Skill DSH plugin fits

  • Transform a legacy frontend application into agent-callable business functions.
  • Generate MCP tools from backend API invocation points without writing new code.
  • Create workflow Skills that let agents complete multi-step business tasks.
  • Review generated workflows to ensure users can achieve primary goals.

Who the Code2Skill DSH plugin is for

  • Developers who want to expose existing application logic as agent capabilities.
  • Teams building coding agents that need to understand and use business functionality from source code.

Code2Skill DSH plugin limitations

  • Code2Skill produces first drafts; it does not validate every business rule or real environment.
  • Results depend on the generation model, source completeness, and authorized scope.
  • Offline tests do not replace real API or deployment acceptance testing.
  • Generated MCP servers must be registered separately according to their own MCP-SETUP.md files.

Code2Skill DSH plugin: from the repository README

Quoted from the leechen298/Code2Skill README, the upstream source of the Code2Skill DSH plugin. Copyright remains with the original authors.

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

Read the full READMERepository license: MIT

Code2Skill DSH plugin questions

How do I install Code2Skill as a DSH plugin?

Run the command `dsh plugin --profile web add github:leechen298/Code2Skill#v1.1.3` in your terminal. Make sure you have DeepSeek Harness installed and the target profile is selected. After installation, you can invoke the three Skills: code2skill-generate, code2skill-review-flow, and code2skill-review-source.

What agents does Code2Skill work with?

Code2Skill can be run with mainstream coding agents such as Codex, Claude Code, and Kimi Code. The generated Skills can be installed in Codex, Claude Code, Cursor, OpenClaw, and other environments that support Agent Skills. Check the `skills` CLI compatibility list for more environments.

Do I need to register MCP servers separately?

Yes, generated MCP servers must be registered separately according to the instructions in each package's MCP-SETUP.md file. The Skill installation, MCP server connection, and live business workflow validation are three separate states that need to be handled individually.

Can Code2Skill generate production-ready capabilities?

Code2Skill produces runnable, editable first drafts of business capabilities. It does not prove that every business rule or real environment has been validated. You should review generated outputs, use the review Skills, and perform real API or deployment acceptance testing before using in production.

How do I authorize source roots for Code2Skill?

When invoking the generation Skill, explicitly authorize the source roots it may inspect. For example, use a prompt like 'Authorized source roots: <frontend>, <backend>, <protocol>, and <service/message/task directories>.' The Skill will only analyze code within those authorized paths.