build-codebase-knowledge
Installation
SKILL.md
Build Codebase Knowledge
Maintain a compact, evidence-backed repository-intelligence layer (context.md, architecture.md, index.json, manifest.json) and run a deterministic multi-stage task resolver to locate target code with minimum token and context overhead.
Source code remains authoritative. Generated knowledge is an index and navigation aid, never a substitute for verifying implementation details.
Execution Rules
- Check Freshness First: Run
python scripts/cli.py statusbefore initial exploration. - Run Resolver for Tasks: Execute
python scripts/cli.py resolve "<task>"before conducting broad repository searches. - Read Minimum Source Slice: Follow the resolver's ordered read plan. Read only high-confidence candidates first.
- Verify Implementation: Verify behavior and dynamic details in primary source files before making implementation decisions.
- Incremental Refresh After Writes: Call
python scripts/cli.py refresh --changed-file <file>immediately after finishing edits. - No-Op Protection: Do not regenerate fresh artifacts. Do not read every file listed in
index.json.