89 lines
3.3 KiB
JSON
89 lines
3.3 KiB
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "write_to_file|edit_file|run_command|bash",
|
|
"hooks": [
|
|
{
|
|
"name": "wiki-hard-gate",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/.gemini/antigravity-cli/hooks/wiki_hard_gate.py",
|
|
"description": "Enforces SKILL.md Output-Format Hard Gate (G1..G4) on writes to docs/superpowers/specs/*.md plus shell-redirect bypass guard.",
|
|
"timeout": 10000
|
|
},
|
|
{
|
|
"name": "wiki-claim-gate",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/dev/llm-wiki-private/.claude/hooks/wiki_claim_gate.py --antigravity",
|
|
"description": "Claim-traceability gate (Spec A/B) — same script as Claude/Codex, {decision} output.",
|
|
"timeout": 30000
|
|
},
|
|
{
|
|
"name": "wiki-structure-pre",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/dev/llm-wiki-private/.claude/hooks/wiki_structure_lint.py --pre --antigravity",
|
|
"description": "Structure pre-gate (Spec A) — blocks ghost wikilinks before write.",
|
|
"timeout": 30000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"BeforeTool": [
|
|
{
|
|
"matcher": "write_to_file|edit_file|run_command|bash|write_file|replace",
|
|
"hooks": [
|
|
{
|
|
"name": "wiki-hard-gate",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/.gemini/antigravity-cli/hooks/wiki_hard_gate.py",
|
|
"description": "Gemini CLI alias of the same hook — fires under BeforeTool naming.",
|
|
"timeout": 10000
|
|
},
|
|
{
|
|
"name": "wiki-claim-gate",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/dev/llm-wiki-private/.claude/hooks/wiki_claim_gate.py --antigravity",
|
|
"description": "Claim-traceability gate (BeforeTool alias).",
|
|
"timeout": 30000
|
|
},
|
|
{
|
|
"name": "wiki-structure-pre",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/dev/llm-wiki-private/.claude/hooks/wiki_structure_lint.py --pre --antigravity",
|
|
"description": "Structure pre-gate (BeforeTool alias).",
|
|
"timeout": 30000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"AfterTool": [
|
|
{
|
|
"matcher": "write_to_file|edit_file|write_file|replace",
|
|
"hooks": [
|
|
{
|
|
"name": "wiki-structure-hook",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/dev/llm-wiki-private/.claude/hooks/wiki_structure_lint.py --hook --antigravity",
|
|
"description": "Structure fix-up gate (Spec A) — completion-declared docs missing sections → deny→retry.",
|
|
"timeout": 30000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"AfterAgent": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"name": "wiki-verdict-stats-gate",
|
|
"type": "command",
|
|
"command": "python3 /home/donghyeon/dev/llm-wiki-private/.claude/hooks/wiki_claim_gate.py --antigravity",
|
|
"description": "Judge verdict/stats schema gate (Spec B/C) — inspects prompt_response, malformed → deny→retry.",
|
|
"timeout": 10000
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|