Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:51:34 +08:00
commit acde81dcfe
59 changed files with 22282 additions and 0 deletions

63
hooks/hooks.json Normal file
View File

@@ -0,0 +1,63 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/enforce-story-context.py",
"description": "Ensure workflow commands have required story context"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/track-current-story.py",
"description": "Track story file as current workflow context"
}
]
},
{
"matcher": "Edit",
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/validate-story-updates.py",
"description": "Validate story file updates"
}
]
},
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/validate-required-sections.py",
"description": "Verify all required PRISM sections exist"
},
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/capture-file-context-obsidian.py",
"description": "Capture file changes to Obsidian memory vault"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/capture-commit-context-obsidian.py",
"description": "Capture git commit context to Obsidian memory vault"
}
]
}
]
}
}