Skip to content

Commit 20f7fbc

Browse files
committed
docs: document graphify workflow
Add repository guidance for using the local graphify knowledge graph when answering codebase questions. Ignore local .codex and graphify-out artifacts so generated graph data and local skill files stay out of future commits.
1 parent 76c4ed2 commit 20f7fbc

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
builddir/
66
dist/
77
crates/aetheris-app/libs/
8+
.codex/
9+
graphify-out/

AGENTS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,16 @@ Before finishing a change, check:
136136
- warnings are not introduced;
137137
- user-facing strings are concise and GNOME-style;
138138
- docs and workflows describe behavior that is actually implemented.
139+
140+
## graphify
141+
142+
This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.
143+
144+
When the user types `/graphify`, use the installed graphify skill or instructions before doing anything else.
145+
146+
Rules:
147+
- For codebase questions, first run `graphify query "<question>"` when graphify-out/graph.json exists. Use `graphify path "<A>" "<B>"` for relationships and `graphify explain "<concept>"` for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output.
148+
- Dirty graphify-out/ files are expected after hooks or incremental updates; dirty graph files are not a reason to skip graphify. Only skip graphify if the task is about stale or incorrect graph output, or the user explicitly says not to use it.
149+
- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
150+
- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
151+
- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost).

0 commit comments

Comments
 (0)