Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:09:26 +08:00
commit 71330f5583
76 changed files with 15081 additions and 0 deletions

48
hooks/gates.json.backup Normal file
View File

@@ -0,0 +1,48 @@
{
"gates": {
"plan-compliance": {
"description": "Verify work follows the active plan",
"on_pass": "CONTINUE",
"on_fail": "BLOCK"
},
"plugin-path": {
"description": "Verify plugin path resolution in subagents",
"on_pass": "CONTINUE",
"on_fail": "CONTINUE"
},
"check": {
"description": "Run project quality checks (formatting, linting, types)",
"keywords": ["lint", "check", "format", "quality", "clippy", "typecheck"],
"command": "echo '[PLACEHOLDER] Quality checks passed. TODO: Configure with actual project check command (e.g., mise run check, npm run lint, cargo clippy)'",
"on_pass": "CONTINUE",
"on_fail": "BLOCK"
},
"test": {
"description": "Run project test suite",
"keywords": ["test", "testing", "spec", "verify"],
"command": "echo '[PLACEHOLDER] Tests passed. TODO: Configure with actual project test command (e.g., mise run test, npm test, cargo test)'",
"on_pass": "CONTINUE",
"on_fail": "BLOCK"
},
"build": {
"description": "Run project build",
"keywords": ["build", "compile", "package"],
"command": "echo '[PLACEHOLDER] Build passed. TODO: Configure with actual project build command (e.g., mise run build, npm run build, cargo build)'",
"on_pass": "CONTINUE",
"on_fail": "CONTINUE"
}
},
"hooks": {
"UserPromptSubmit": {
"gates": ["check", "test", "build"]
},
"PostToolUse": {
"enabled_tools": ["Edit", "Write", "mcp__serena__replace_symbol_body"],
"gates": ["check"]
},
"SubagentStop": {
"enabled_agents": ["rust-agent", "code-review-agent", "ultrathink-debugger"],
"gates": ["check", "test"]
}
}
}