code-graph
Code Graph
Build a persistent .claude/codegraph.md index so any future task can read one file and know exactly where to look. Scripts do all structural extraction — the agent only writes purpose summaries.
Quick Start
# 1. Run the scanner (does all file discovery, export + import extraction)
node <skill-dir>/scripts/scan.js > .claude/codegraph.draft.md
# 2. Check if existing graph is still fresh
bash <skill-dir>/scripts/check-stale.sh # exits 0 if fresh, 1 if stale
# 3. Agent annotates the draft with purpose summaries → saves as codegraph.md
Workflow
1. Check freshness first
More from rockclaver/systemcraft
refactor-codebase
Incrementally refactor and rearchitect a codebase toward a scalable structure using a phased plan. Use when the user wants to restructure code, improve architecture, reduce coupling, reorganize modules, or migrate toward a cleaner design without breaking the working system.
16find-code
Locate files and code using grep and shell scripts — never by AI scanning. Returns exact file paths and line numbers so the agent can jump directly to the location. Use whenever the agent needs to find a function, class, variable, import, file, or any pattern in the codebase. Code and file discovery must always be a tool call, never an AI guess.
15dockerize-and-deploy
Dockerize a repository and produce production-grade deployment scripts, a docker-compose setup with properly configured volumes, and a pre-flight validation shell script. Use when the user wants to containerize an app, add Docker support, write a deployment pipeline, set up docker-compose, configure volumes, or deploy to production with Docker.
15grill-me
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
14prd-to-plan
Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".
14write-a-prd
Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.
14