~ / rigs / CreatmanCEO / claude-code-antiregression-setup

CreatmanCEO/claude-code-antiregression-setup

Stop Claude Code from breaking your projects. Ready-to-use CLAUDE.md templates, subagents, hooks, and anti-regression configs.

↗ GitHub ★ 11 mit updated 5mo ago personal setup Claude Code
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~96 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

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-reviewerReviews code changes for quality, security, and regressions. Use before commits.
plannerResearches codebase and creates detailed implementation plans. Use before any complex task to prevent regressions.
testerWrites and runs tests to prevent regressions. Use after any code changes.

Hooks (2)

eventmatcherruns
PreToolUseBash(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)
PostToolUseWrite|Editecho '[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

copied ✓