From e1dbf0e6cd5460e22a083542b3090994356f2691 Mon Sep 17 00:00:00 2001 From: Claude Fable 5 Date: Sun, 19 Jul 2026 00:46:00 +0200 Subject: [PATCH] graphify: CLAUDE.md-Sektion + PreToolUse-Hooks, graphify-out/ gitignored MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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 Claude-Session: https://claude.ai/code/session_0155v2aT8AG1kZDQEZiCLBWC --- .claude/settings.json | 24 ++++++++++++++++++++++++ .gitignore | 3 +++ CLAUDE.md | 9 +++++++++ 3 files changed, 36 insertions(+) create mode 100644 .claude/settings.json create mode 100644 CLAUDE.md diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..e6f54a3 --- /dev/null +++ b/.claude/settings.json @@ -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" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index cd36888..ff5c054 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..417efeb --- /dev/null +++ b/CLAUDE.md @@ -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 ""` when graphify-out/graph.json exists. Use `graphify path "" ""` for relationships and `graphify explain ""` 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).