<< All versions
Skill v1.0.0
currentLLM-judged scan90/100alizainx/intelligence-systems-skills/callgraph-slice-codebase-archaeology
──Details
PublishedOctober 21, 2026 at 03:46 PM
Content Hashsha256:ca66309bb123267e...
Git SHA5d098c90c1e6
──Files
Files (1 file, 1.9 KB)
SKILL.md1.9 KBactive
SKILL.md · 26 lines · 1.9 KB
version: "1.0.0" name: callgraph-slice-codebase-archaeology id: ISS-183 token_budget: 700 chain_with: [binary-search-git-bisect-root-cause, strangler-fig-multi-file-refactoring, lexer-pratt-lr-glr-parsers] description: "Rapid multi-million-line codebase comprehension: entry-point callgraph tracing, core data-structure ownership mapping, backward program slicing, and invariant extraction."
callgraph-slice-codebase-archaeology (ISS-183)
1. First-Principles Invariant
- Data-Structure First Archaeology Law: Do not read a large codebase file-by-file alphabetically; within 5 minutes, locate: (1) the core domain structs/tables (
grepfor primary state definitions), (2) the ingress entry point (main, router, syscall table, event loop), and (3) trace ONE representative request end-to-end from ingress to persistence (vertical slice).
2. Fast-Pass Low-Token Protocol (Web & Coding Agents)
- Build a compact architectural mental map (
<= 30lines) documenting module boundaries, thread/lock ownership, memory lifetimes, and error propagation conventions before editing a single line.
3. Zero-Bug & Zero-Vulnerability Guards
- Use Backward Program Slicing from the target symptom/output variable $(v, ext{line } L)$ along control and data dependencies to isolate the
< 1%of code that can causally affect it. - Inspect existing unit/integration tests and git blame (
git log -S <symbol> -p) to uncover unwritten historical invariants and bug regressions. - Identify trust boundaries, global mutable singletons, and implicit initialization order dependencies.
- Verify hypotheses about runtime dispatch (virtual methods, callbacks, dependency injection) by adding a targeted assertion or trace log rather than guessing.
- Document discovered architectural invariants directly in the task scratchpad so subsequent edits never violate them.
4. Verification Gate
python3 -c 'import ast; ...'