codebase-graph
Skill4 starsChanged 7 months agoApache-2.0View on GitHub
Build a queryable knowledge graph of the codebase before generating or reviewing code, so "does this already exist?" is answered by evidence instead of a quick grep
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jskswamy/skillstheir own version, first seen Jul 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jskswamy/skills★ 3same 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 repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/code-review.mdcCursor rule
- .cursor/rules/db-design.mdcCursor rule
- .cursor/rules/debug.mdcCursor rule
- .cursor/rules/django-forge.mdcCursor rule
- .cursor/rules/dotnet-forge.mdcCursor rule
- .cursor/rules/flutter-forge.mdcCursor rule
- .cursor/rules/nestjs-forge.mdcCursor rule
- .cursor/rules/neuraforge.mdcCursor rule
- .cursor/rules/pr-review.mdcCursor rule
- .cursor/rules/react-forge.mdcCursor rule
- .cursor/rules/refactor.mdcCursor rule
- .cursor/rules/rn-forge.mdcCursor rule
- .cursor/rules/scaffold.mdcCursor rule
- .cursor/rules/spring-forge.mdcCursor rule
- .cursor/rules/test-forge.mdcCursor rule
- api-designSkill
- api-testingSkill
- architecture-reviewSkill
- changelogSkill
- code-reviewSkill
- db-designSkill
- debugSkill
- deps-auditSkill
- design-syncSkill
- devils-advocateSkill
- devopsSkill
- django-forgeSkill
- doc-generatorSkill
- documentationSkill
- domain-setupSkill
- dotnet-forgeSkill
- explainSkill
- feature-pipelineSkill
- flutter-forgeSkill
- fullstack-orchestratorSkill
- git-worktreesSkill
- load-testingSkill
- migrateSkill
- nestjs-forgeSkill
- performance-reviewSkill
- presentation-builderSkill
- product-managerSkill
- pr-reviewSkill
- react-forgeSkill
- refactorSkill
- rn-forgeSkill
- scaffoldSkill
- security-reviewSkill
- spring-forgeSkill
- test-forgeSkill
- ui-validationSkill
- video-creatorSkill
- workspace-protocolSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Before generating code in a codebase you haven't already mapped this session, and especially before creating a new file, entity, or service …
- Very specific: line 35
If graphify isn't on $PATH, skip this skill and fall back to plain search (Grep/Glob) — don't block on it.
- Very specific: line 56
Run graphify update . --code-only once at the start of a session touching an unfamiliar part of the codebase.
- Very specific: line 58
Before creating a new entity/service/component, graphify query for it by name or responsibility instead of assuming it doesn't exist.
- Very specific: line 60
Check GRAPH_REPORT.md's "God Nodes" and "Surprising Connections" sections when reviewing architecture — they surface coupling a reviewer …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codebase Graph
Backs the Reuse Decision Tree's first step — "search codebase, does something
similar exist?" (ARCHITECTURE_PRINCIPLES.md §3) and the Minimal Solution
Principle's second rung (MINIMAL_SOLUTION.md) — with a tool built for that
exact question: graphify
(package name on PyPI: graphifyy). Entirely optional — every forge/reviewer
agent works without it, this just makes "search first" scale past what grep
can reliably answer on a large or unfamiliar codebase.
When to Use It
Before generating code in a codebase you haven't already mapped this session, and especially before creating a new file, entity, or service — this is where "I didn't realize X already does this" gets caught before it ships as a duplicate.
Setup (once per machine)
uv tool install graphifyy
# or: pipx install graphifyy / pip install graphifyyIf graphify isn't on $PATH, skip this skill and fall back to plain
search (Grep/Glob) — don't block on it.
Usage
# Build the graph (local AST parsing only, no LLM/API key needed, no network call)
graphify update . --code-only
# Ask it directly instead of re-reading files by hand
graphify query "what handles order creation?"
graphify explain "OrderService"
graphify path "OrderController" "PaymentGateway"Output lands in graphify-out/ (graph.json, graph.html, GRAPH_REPORT.md)
— add graphify-out/ to .gitignore if it isn't already there, it's a local
cache, not something to commit.
How to Fold This Into Generation/Review
- Run
graphify update . --code-onlyonce at the start of a session touching an unfamiliar part of the codebase. - Before creating a new entity/service/component,
graphify queryfor it by name or responsibility instead of assuming it doesn't exist. - Check
GRAPH_REPORT.md's "God Nodes" and "Surprising Connections" sections when reviewing architecture — they surface coupling a reviewer skimming diffs would miss. - Re-run
graphify update .(same flags) after a batch of changes — it's incremental, not a full re-scan.
What This Doesn't Replace
Anti-pattern checks (rules/anti-patterns/{stack}.md), the architecture
reviewer, and the eval suite are unaffected — this is purely a search tool,
not a correctness check. A clean graph doesn't mean the code is right, only
that you know what else touches it before you change it.
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.

