A skill for extracting a complete feature implementation chain from a codebase and generating a technical development document with business logic, data flow, exception handling, and Mermaid diagrams. Works with any AI coding agent.
npx skills add addxing/function-extractionThis repo follows the DeepSeek Harness (DSH) Skill format. Clone it into a skills directory and it will be auto-discovered:
# User-level install (available in all projects)
git clone https://github.com/addxing/function-extraction ~/.dsh/skills/function-extraction
# Project-level install (current project only)
git clone https://github.com/addxing/function-extraction .dsh/skills/function-extractionDSH hot-reloads the skills directory after cloning; the skill becomes available in new sessions.
Or install it as an official bundle plugin in one line (requires pnpm; restart the web app afterwards):
dsh plugin --profile web add "github:addxing/function-extraction#main"After installing the skill, ask your AI agent to use it when you need a feature-level implementation document:
Use $function-extraction to document the login flow implementation.
For best results, provide:
- the feature name
- the entry file, class, method, route, page, button text, or other clues
- the expected output language or documentation scope, if different from the default
If the entry point is missing, the skill guides the agent to search the codebase and ask you to confirm the correct entry before continuing.
This skill guides an agent to:
- confirm the target feature and entry point
- trace the implementation from entry to completion
- identify key business logic, data flow, state changes, and exception handling
- generate a technical development document using
template.md - include Mermaid flowcharts, sequence diagrams, and dependency graphs when useful
SKILL.md- the skill instructionstemplate.md- the output document templateLICENSE.txt- Apache 2.0 license
See README.zh.md.