extract
Builds the gauntlet knowledge base from AST extraction and AI enrichment. Use when initializing or refreshing codebase knowledge for challenges.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Extract Codebase Knowledge
Build or rebuild the .gauntlet/knowledge.json knowledge base.
When NOT To Use
- Tribal knowledge no parser can see (use
gauntlet:curate) - Building the code graph (use
gauntlet:graph-build)
Steps
- Identify target directory: use the current working directory
or a user-specified path
- Run AST extraction: invoke the extractor script
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extractor.py <target-dir>
- AI enrichment: for each extracted entry, enhance the
detail
field with natural language explanation of business logic, data
flow, architectural role, and rationale
- Cross-reference: link related entries across modules by
matching imports, shared types, and data flow paths
- Merge with annotations: preserve existing curated entries
in .gauntlet/annotations/
- Save: write to
.gauntlet/knowledge.json
- Report: show summary by category, coverage gaps, difficulty
distribution
Exit Criteria
- [ ]
.gauntlet/knowledge.jsonexists and is valid JSON after the
skill completes; entries from .gauntlet/annotations/ are merged
and not overwritten
- [ ] Report shows entry counts broken down by all 7 categories
(business_logic, architecture, data_flow, api_contract, pattern,
dependency, error_handling) with coverage gaps identified
- [ ] Each extracted entry has a
detailfield containing a natural
language explanation (not just the raw AST node name)
- [ ] Cross-reference links between related entries are present for
modules sharing imports, shared types, or data flow paths
Category Priority
- business_logic (weight 7)
- architecture (weight 6)
- data_flow (weight 5)
- api_contract (weight 4)
- pattern (weight 3)
- dependency (weight 2)
- error_handling (weight 1)
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
同一个仓库里的其他技能
- claude-code-plugin-reference
- night-market-architecture-contract
- night-market-build-and-env
- night-market-change-control
- night-market-collective-memory
- night-market-completion-integrity-campaign
- night-market-config-catalog
- night-market-debugging-playbook
- night-market-diagnostics-toolkit
- night-market-docs-and-writing
- night-market-failure-archaeology
- night-market-model-and-harness-updates