From 32ccceb5485dab511d0434edf8c745a5a13ccf5c Mon Sep 17 00:00:00 2001 From: bastien Date: Thu, 23 Apr 2026 16:06:44 +0200 Subject: [PATCH] fix(gitignore): un-ignore shared .claude/{tasks,memory,audits}/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous rule (.claude/) ignored everything under .claude/, making the new governance files invisible to git. Switches to a wildcard pattern with explicit negations: tasks/memory/audits/settings.json become trackable; settings.local.json and agent-memory/ stay per-machine. Commits existing .claude/settings.json which now falls under the tracked scope. Verified with git check-ignore: - .claude/memory/decisions.md → exit 1 (not ignored) ✓ - .claude/tasks/TODO.md → exit 1 (not ignored) ✓ - .claude/settings.local.json → exit 0 (ignored) ✓ - .claude/agent-memory/ → exit 0 (ignored) ✓ Co-Authored-By: Claude Opus 4.7 (1M context) --- .claude/settings.json | 15 +++++++++++++++ .gitignore | 10 +++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..f69c7c6 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,15 @@ +{ + "hooks": { + "PreToolUse": [ + { + "matcher": "Glob|Grep", + "hooks": [ + { + "type": "command", + "command": "[ -f graphify-out/graph.json ] && echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"additionalContext\":\"graphify: Knowledge graph exists. Read graphify-out/GRAPH_REPORT.md for god nodes and community structure before searching raw files.\"}}' || true" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2c9d901..870a7cd 100644 --- a/.gitignore +++ b/.gitignore @@ -57,7 +57,15 @@ skills/find-skills skills-disabled/ # Local project config (per-machine, not shared) -.claude/ +.claude/* +!.claude/tasks/ +!.claude/memory/ +!.claude/audits/ +!.claude/settings.json +# But keep local stuff ignored within .claude/ +.claude/settings.local.json +.claude/agent-memory/ +.claude/gstack/ # Generated outputs graphify-out/