Skip to main content

How to use Code2Skill

Generate Function, MCP, Agent Skill, and offline test packages from existing code; installable as a DeepSeek Harness bundle.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Generate Function, MCP, Agent Skill, and offline test packages from existing code; installable as a DeepSeek Harness bundle.

— source: plugins.ai_summary

Install & verify

dsh plugin --profile web add github:leechen298/Code2Skill

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • 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.
  • code2skill-generate: generates Functions, MCP tools, workflow Skills, and offline tests.

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule