跳到主要内容
知仓学习社ZHICANG

extract

Builds the gauntlet knowledge base from AST extraction and AI enrichment. Use when initializing or refreshing codebase knowledge for challenges.

不碰外部(只输出文字)无严重或高危命中athola/claude-night-market

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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

  1. Identify target directory: use the current working directory

or a user-specified path

  1. Run AST extraction: invoke the extractor script
   python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extractor.py <target-dir>
  1. AI enrichment: for each extracted entry, enhance the detail

field with natural language explanation of business logic, data

flow, architectural role, and rationale

  1. Cross-reference: link related entries across modules by

matching imports, shared types, and data flow paths

  1. Merge with annotations: preserve existing curated entries

in .gauntlet/annotations/

  1. Save: write to .gauntlet/knowledge.json
  1. Report: show summary by category, coverage gaps, difficulty

distribution

Exit Criteria

  • [ ] .gauntlet/knowledge.json exists 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 detail field 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

  1. business_logic (weight 7)
  2. architecture (weight 6)
  3. data_flow (weight 5)
  4. api_contract (weight 4)
  5. pattern (weight 3)
  6. dependency (weight 2)
  7. error_handling (weight 1)

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。