~ / rigs / CapeOfGoodCode / prepush-ci

CapeOfGoodCode/prepush-ci

Run the full CI check in the pre-push hook — and let pull request CI skip commits that provably passed it. Built for AI coding agents.

↗ GitHub ★ 10 MIT updated 1mo ago project Claude CodeCodex Claude plugin
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~3.6k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 18/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit CapeOfGoodCode/prepush-ci/.claude ./rig-prepush-ci  # 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 CapeOfGoodCode/prepush-ci/.claude/skills/openspec-apply-change .claude/skills/openspec-apply-change
$ npx degit CapeOfGoodCode/prepush-ci/.claude/skills/openspec-archive-change .claude/skills/openspec-archive-change
$ npx degit CapeOfGoodCode/prepush-ci/.claude/skills/openspec-explore .claude/skills/openspec-explore
$ npx degit CapeOfGoodCode/prepush-ci/.claude/skills/openspec-propose .claude/skills/openspec-propose
$ npx degit CapeOfGoodCode/prepush-ci/.claude/skills/openspec-sync-specs .claude/skills/openspec-sync-specs
$ npx degit CapeOfGoodCode/prepush-ci/skills/prepush-ci-setup .claude/skills/prepush-ci-setup

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",
        "hooks": [
          {
            "type": "command",
            "command": "uv run --no-project --quiet python \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\""
          }
        ]
      }
    ]
  }
}

Skills (6)

Hooks (2)

eventmatcherruns
PreToolUseBashuv run --no-project --quiet python "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py"
PostToolUseWrite|Edituv run --directory "$CLAUDE_PROJECT_DIR" --quiet python "$CLAUDE_PROJECT_DIR/.claude/hooks/ruff-after-edit.py"

Slash commands (5)

/opsx/apply/opsx/archive/opsx/explore/opsx/propose/opsx/sync

Similar rigs

copied ✓