Template
Extract patterns from 18 projects across two machines (12 local infra + 6 remote personal/business via ssh survey). Ship a reusable Gitea template with AGENTS.md, 5 Crush PreToolUse hooks, git pre-commit/pre-push, a generalized rules engine, shared bash library, Makefile, lifecycle scripts, and gardening loop. Includes the canonical BASELINE-PROMPT.md (13 sections) and PATTERNS.md (standardization scorecard). The repo self-applies: it passes its own shellcheck (zero info-level), make fast, and all check-rules.sh checks. 💘 Generated with Crush Assisted-by: Crush via Crush <crush@charm.land>
33 lines
682 B
JSON
33 lines
682 B
JSON
{
|
|
"$schema": "https://charm.land/crush.json",
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "^todos$",
|
|
"command": "./hooks/block-todos.sh",
|
|
"timeout": 10
|
|
},
|
|
{
|
|
"matcher": "^bash$",
|
|
"command": "./hooks/enforce-bash.sh",
|
|
"timeout": 10
|
|
},
|
|
{
|
|
"matcher": "^(edit|write|multiedit)$",
|
|
"command": "./hooks/enforce-rules.sh",
|
|
"timeout": 10
|
|
},
|
|
{
|
|
"matcher": "^bash$",
|
|
"command": "./hooks/audit-before-git.sh",
|
|
"timeout": 30
|
|
},
|
|
{
|
|
"matcher": ".*",
|
|
"command": "./hooks/exit-protocol.sh",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
}
|