CreatmanCEO/claude-code-antiregression-setup
Stop Claude Code from breaking your projects. Ready-to-use CLAUDE.md templates, subagents, hooks, and anti-regression configs.
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
Copy this rig
# review before running: this installs third-party code
$ npx degit CreatmanCEO/claude-code-antiregression-setup/.claude ./rig-claude-code-antiregression-setup # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/CreatmanCEO/claude-code-antiregression-setup/main/.claude/agents/code-reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/planner.md https://raw.githubusercontent.com/CreatmanCEO/claude-code-antiregression-setup/main/.claude/agents/planner.md $ curl -fsSL --create-dirs -o .claude/agents/tester.md https://raw.githubusercontent.com/CreatmanCEO/claude-code-antiregression-setup/main/.claude/agents/tester.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash(git commit*)",
"hooks": [
{
"type": "command",
"command": "echo '[HOOK] Running tests before commit...' && python -m pytest tests/ -x --timeout=60 2>&1 | tail -30 || (echo '{\"block\": true, \"message\": \"Tests are failing. Fix all test failures before committing.\"}' 1>&2 && exit 2)"
}
]
}
]
}
} Subagents (3)
| code-reviewer | Reviews code changes for quality, security, and regressions. Use before commits. |
| planner | Researches codebase and creates detailed implementation plans. Use before any complex task to prevent regressions. |
| tester | Writes and runs tests to prevent regressions. Use after any code changes. |
Hooks (2)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash(git commit*) | echo '[HOOK] Running tests before commit...' && python -m pytest tests/ -x --timeout=60 2>&1 | tail -30 || (echo '{"block": true, "message": "Tests are failing. Fix all test failures before committing."}' 1>&2 && exit 2) |
| PostToolUse | Write|Edit | echo '[HOOK] File modified. Remember: run tests before committing.' |
Permissions
deny (0)
—
ask (0)
—
allow (16)
Bash(python -m pytest*)
Bash(npm test*)
Bash(npm run*)
Bash(npx *)
Bash(pip install*)
Bash(git add*)
Bash(git commit*)
Bash(git diff*)
Bash(git status*)
Bash(git log*)
Bash(git branch*)
Bash(ls*)
Bash(cat*)
Bash(find*)
Bash(grep*)
Bash(make*)
Similar rigs
stavrespasov/claude-code-os-lite
A free, installable starter setup for Claude Code: 10 workflow commands, 2 agents, and the hook that ends --no-verify commits. MIT.
Pragmatist 101 tok ·
Joan266/claude-dotfiles
—
Pragmatist 831 tok ·
tylerjkells/claude-dotfiles
—
Pragmatist 579 tok ·
BillDX/spicy-to-dark-factory-starter
Workshop starter for 'From Spicy Autocomplete to Dark Factory: Agentic Coding in Practice' — a FastAPI mini-app with a full Claude Code harness (agents, slash commands, hooks, sandbox settings) and self-paced exercises.
Orchestrator 706 tok ·