function-extraction
其他 活跃维护

function-extraction

addxing/function-extraction

AI编程代理的功能链路提取Skill,可从项目代码中提取具体功能的完整实现链路,生成覆盖业务逻辑、数据流、异常处理、模块依赖的开发文档,自带Mermaid图表辅助理解。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
Apache-2.0
开源协议
14 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:addxing/function-extraction
git clone https://github.com/addxing/function-extraction.git
git clone git@github.com:addxing/function-extraction.git
README.md main

Function Extraction

skills.sh

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.

Install

npx skills add addxing/function-extraction

DeepSeek Harness

This 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-extraction

DSH 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"

Usage

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.

What It Does

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

Files

  • SKILL.md - the skill instructions
  • template.md - the output document template
  • LICENSE.txt - Apache 2.0 license

Chinese Documentation

See README.zh.md.