code-graph
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Build and query a persistent code graph for the target project. Uses graphify (Tree-sitter + Louvain clustering) for deterministic structural extraction, then the model adds semantic annotations. Use when the user says build graph, code graph, dependency graph, impact analysis, or when other skills need structured code understanding before proceeding.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- kekzl/imptheir own version, first seen Oct 4, 2026
- aniruddha-adhikary/skillstheir own version, first seen Aug 16, 2026
- kekzl/cplusplus-cuda-graphtheir own version, first seen Aug 3, 2026
- alinaqi/maggytheir own version, first seen Jun 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- alinaqi/maggy★ 707same name
- kekzl/imp★ 44same name
- aniruddha-adhikary/skills★ 7same name
- kekzl/cplusplus-cuda-graph★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/lean.mdcCursor rule
- aiops-implementSkill
- aiops-setupSkill
- aiopsSkill
- architect-designSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- exploreSkill
- file-refactorSkill
- gitopsSkill
- grillingSkill
- grill-with-docsSkill
- handoffSkill
- improve-codebase-architectureSkill
- leanSkill
- prototypeSkill
- pruneSkill
- reviewSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- ui-mockupSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Do not copy graph.json into .scratch/.
- Very specific: line 49
Prefer update over build when graph exists
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Graph
Build, query, and incrementally update a persistent knowledge graph for the target project. Infrastructure — other skills consume it via query; Flow Conductor checks freshness on session start.
Two-tier extraction
| Tier | Tool | Role |
| Structural | graphify | AST nodes, edges, communities, confidence — deterministic |
| Semantic | Model | Purpose, depth, impact — contextual |
graphify parses; the model annotates. Never replace graphify structural data with grep guesses.
Prerequisites
prerequisites.md — install graphifyy via uv/pipx/pip. Non-blocking if user declines.
Storage
| Path | Source | Purpose |
graphify-out/graph.json | graphify | Structural graph |
.scratch/graph/annotations.json | Model | Semantic layer |
Do not copy graph.json into .scratch/. Schema: graph-schema.md.
Operations
Detailed steps: build-steps.md.
/code-graph build— full scan + semantic annotation/code-graph query <subcommand>— read-only; patterns in query-patterns.md/code-graph update— incremental via graphify cache
Constraints
- graphify is the structural backbone — no grep-based dependency guessing
- Model adds semantic layer only; never override graphify edges
- Prefer
updateoverbuildwhen graph exists - Non-blocking on graphify failure — warn and continue
- Confidence-aware: EXTRACTED (1.0) vs INFERRED (0.5) vs AMBIGUOUS (0.2)
Flow Conductor
aiops-graph.js hook suggests /code-graph build when stale. Architecture health runs graph_build phase first (phases.py) — build when missing/stale, skip when fresh, user may decline (organic fallback in /improve-codebase-architecture).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

