graphify: CLAUDE.md-Sektion + PreToolUse-Hooks, graphify-out/ gitignored
`graphify claude install` im Monorepo: graphify-Abschnitt an (neue) CLAUDE.md angehängt und PreToolUse-Hooks in .claude/settings.json registriert (Graph-Check vor Such-/Lesetools, Auto-Rebuild nach Code-Änderungen). Der generierte graphify-out/ (AST-Graph über 741 Code-Dateien, ~10 MB) wird nicht versioniert. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0155v2aT8AG1kZDQEZiCLBWC
This commit is contained in:
parent
f3a1ca6693
commit
e1dbf0e6cd
24
.claude/settings.json
Normal file
24
.claude/settings.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
"matcher": "Bash|Grep",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "/Users/stwaidele/.local/bin/graphify hook-guard search"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "Read|Glob",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "/Users/stwaidele/.local/bin/graphify hook-guard read"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -14,3 +14,6 @@ apps/api/data/
|
||||
# Font catalog WOFF2 + generated stylesheet — fetched at build time
|
||||
# (ADR 0016, deploy/fonts/build-fonts.mjs), never committed.
|
||||
apps/web/public/fonts/
|
||||
|
||||
# graphify knowledge graph (generated)
|
||||
graphify-out/
|
||||
|
||||
9
CLAUDE.md
Normal file
9
CLAUDE.md
Normal file
@ -0,0 +1,9 @@
|
||||
## graphify
|
||||
|
||||
This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.
|
||||
|
||||
Rules:
|
||||
- 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.
|
||||
- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
|
||||
- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
|
||||
- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost).
|
||||
Loading…
Reference in New Issue
Block a user