You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: disable_plugin_hooks toggle, setup template references, Linux stat
- Add disable_plugin_hooks config key to vaultguard.sh (closesagenticnotetaking#23)
- Fix setup skill to read hook templates instead of improvising (fixes
double-execution when both plugin and project hooks exist)
- Fix stat -f ambiguity on Linux in session-orient.sh (closesagenticnotetaking#16)
Copy file name to clipboardExpand all lines: skills/setup/SKILL.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1416,7 +1416,24 @@ For Claude Code, add to `.claude/settings.json` (using additive merge).
1416
1416
1417
1417
**Critical:** The old flat format (`"type": "command"` at the matcher level) is rejected by Claude Code. Each event must use the nested structure: `"EventName": [{ "matcher": "...", "hooks": [{ "type": "command", "command": "..." }] }]`.
1418
1418
1419
-
Generate all four hook scripts: session-orient.sh, session-capture.sh, validate-note.sh, auto-commit.sh.
1419
+
Generate all four hook scripts by reading and vocabulary-transforming the templates:
- Replace `{{NOTES_DIR:-notes}}` with the vocabulary-mapped notes directory
1428
+
- Replace `{{INBOX_DIR:-inbox}}` with the vocabulary-mapped inbox directory
1429
+
- Replace `{{OBS_THRESHOLD:-10}}` with the configured observation threshold (default 10)
1430
+
- Replace `{{TENSION_THRESHOLD:-5}}` with the configured tension threshold (default 5)
1431
+
- Replace `/{DOMAIN:rethink}`, `/{DOMAIN:reduce}`, `/{DOMAIN:reflect}` with vocabulary-mapped skill names
1432
+
- Replace `{{DOMAIN:note}}`, `{{DOMAIN:topic_map}}` with vocabulary-mapped terms
1433
+
- Remove `{{IF_SELF_SPACE}}` / `{{END_IF_SELF_SPACE}}` comment markers (keep content if self-space is active, remove block if not)
1434
+
- Remove `{{IF_DISCOVERY_NUDGE}}` / `{{END_IF_DISCOVERY_NUDGE}}` comment markers (keep content if discovery nudge is active, remove block if not)
1435
+
1436
+
Write the transformed scripts to `.claude/hooks/`. CRITICAL: Do NOT generate hook scripts from scratch or improvise their content. The templates contain session tracking, context injection, and condition checks that must be preserved.
0 commit comments