~ / rigs / Whosnoory / greenprint

Whosnoory/greenprint

Make Claude Code physically unable to claim a bug fix it can't prove. A zero-setup TDD gate: it blocks edits until a failing test reproduces the bug (RED) and won't let the turn finish until it passes (GREEN). git + python3 only.

↗ GitHub ★ 2 MIT updated 4mo ago project Claude Code
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~164 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit Whosnoory/greenprint/.claude ./rig-greenprint  # 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.

$ npx degit Whosnoory/greenprint/.claude/skills/greenprint .claude/skills/greenprint
$ npx degit Whosnoory/greenprint/.claude/skills/repro .claude/skills/repro

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": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/greenprint.py\" pretooluse"
          }
        ]
      }
    ]
  }
}

Skills (2)

Hooks (3)

eventmatcherruns
PreToolUseEdit|Write|MultiEditpython3 "$CLAUDE_PROJECT_DIR/.claude/hooks/greenprint.py" pretooluse
PostToolUseEdit|Write|MultiEdit|Bashpython3 "$CLAUDE_PROJECT_DIR/.claude/hooks/greenprint.py" posttooluse
Stop*python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/greenprint.py" stop

Similar rigs

copied ✓