
leechen298/code2skill
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Generate Function, MCP, Agent Skill, and offline test packages from existing code; installable as a DeepSeek Harness bundle.
Обзор
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. This repository is distinct from ant-intl/Code2Skill, a research implementation for synthesizing source-grounded procedural skill records and retrieval indexes from code; the two projects serve different purposes. 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. - Generates capabilities from business invocation points that actually exist in source code.
README
Показан фрагмент оригинального README. Открыть оригинал.
Code2Skill
English | 简体中文
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.
This repository is distinct from ant-intl/Code2Skill, a research implementation for synthesizing source-grounded procedural skill records and retrieval indexes from code; the two projects serve different purposes.
Current release: v1.2.0.
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 completable goals within a user-specified page, directory, feature, or public entry point.
- Places field provenance, selected-record handoffs between tools, request assembly, and deterministic transformations in Functions.
- Generates a Skill for each primary goal while reusing the necessary Functions and MCP tools.
- Defaults to offline technical validation and does not call live business APIs.
Supported Agents
You can run Code2Skill with mainstream coding agents such as Codex, Claude Code, and Kimi Code. Generated Skills can be installed in Codex, Claude Code, Cursor, OpenClaw, and other environments that support Agent Skills.
See the skills CLI compatibility list for more environments. To perform live business operations, register the generated MCP server as described in each package’s MCP-SETUP.md.
Installation
Install all three Skills with the standard Agent Skills CLI:
npx skills add leechen298/Code2Skill \
--skill code2skill-generate code2skill-review-flow code2skill-review-source \
--agent "$AGENT_ID" \
--global \
--yes
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.
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add leechen298/code2skill