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.
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
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)
openspec-apply-changeopenspec-archive-changeopenspec-exploreopenspec-proposeopenspec-sync-specsprepush-ci-setup
Hooks (2)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | uv run --no-project --quiet python "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" |
| PostToolUse | Write|Edit | uv 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
sathish316/pied-piper
Pied Piper is a team of AI SubAgents that can autonomously/semi-autonomously work on long-running or complex coding tasks with full End-to-end tracking and human-in-the-loop approvals. Subagents can run on Claude Code, Coding CLIs that supp
Pragmatist 271 tok · · Q0
sirshecomesthisway/squid-pet
Open-source living companion for AI-native coders — brings your agents to life, giving you a new interface to see, understand, and interact with AI agents.
Pragmatist 1.9k tok · · Q0
DavidDingXu/learn-ai-coding
面向程序员的 AI Coding 系统课程|42 篇完整文章 + 2 个可运行项目,覆盖 Codex / Claude Code、上下文工程、SDD / OpenSpec、测试调试、Skill / MCP 与真实需求交付。
Pragmatist 271 tok · · Q0
keith-nielsen/2026-AI-Value-Memory-Mining
Value Memory Mining personal knowledge system — OpenSpec SDD showcase + forkable vault template
Fort Knox 4.2k tok · · Q38