brain-bootstrap/claude-code-brain-bootstrap
🧠 Give Claude Code the operating context it's missing: persistent rules, enforced hooks, on-demand skills and deep knowledge of your codebase.
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details
Copy this rig
# review before running: this installs third-party code
$ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude ./rig-claude-code-brain-bootstrap # 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 brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/ask .claude/skills/ask $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/bootstrap .claude/skills/bootstrap $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/brainstorming .claude/skills/brainstorming $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/careful .claude/skills/careful $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/checkpoint .claude/skills/checkpoint $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/clean-worktrees .claude/skills/clean-worktrees $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/cleanup .claude/skills/cleanup $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/cocoindex-code .claude/skills/cocoindex-code $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/code-review-graph .claude/skills/code-review-graph $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/codebase-memory .claude/skills/codebase-memory $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/codeburn .claude/skills/codeburn $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/context .claude/skills/context $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/cross-layer-check .claude/skills/cross-layer-check $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/db .claude/skills/db $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/debug .claude/skills/debug $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/deps .claude/skills/deps $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/diff .claude/skills/diff $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/docker .claude/skills/docker $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/git .claude/skills/git $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/health .claude/skills/health $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/issue-triage .claude/skills/issue-triage $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/lint .claude/skills/lint $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/maintain .claude/skills/maintain $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/mcp .claude/skills/mcp $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/migrate .claude/skills/migrate $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/mr .claude/skills/mr $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/plan .claude/skills/plan $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/playwright .claude/skills/playwright $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/pr-triage .claude/skills/pr-triage $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/receiving-code-review .claude/skills/receiving-code-review $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/repo-recap .claude/skills/repo-recap $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/research .claude/skills/research $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/resume .claude/skills/resume $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/review .claude/skills/review $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/root-cause-trace .claude/skills/root-cause-trace $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/serena .claude/skills/serena $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/serve .claude/skills/serve $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/squad-plan .claude/skills/squad-plan $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/status .claude/skills/status $ npx degit brain-bootstrap/claude-code-brain-bootstrap/.claude/skills/subagent-driven-development .claude/skills/subagent-driven-development
$ curl -fsSL --create-dirs -o .claude/agents/plan-challenger.md https://raw.githubusercontent.com/brain-bootstrap/claude-code-brain-bootstrap/main/.claude/agents/plan-challenger.md $ curl -fsSL --create-dirs -o .claude/agents/research.md https://raw.githubusercontent.com/brain-bootstrap/claude-code-brain-bootstrap/main/.claude/agents/research.md $ curl -fsSL --create-dirs -o .claude/agents/reviewer.md https://raw.githubusercontent.com/brain-bootstrap/claude-code-brain-bootstrap/main/.claude/agents/reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/security-auditor.md https://raw.githubusercontent.com/brain-bootstrap/claude-code-brain-bootstrap/main/.claude/agents/security-auditor.md $ curl -fsSL --create-dirs -o .claude/agents/session-reviewer.md https://raw.githubusercontent.com/brain-bootstrap/claude-code-brain-bootstrap/main/.claude/agents/session-reviewer.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(git push *)",
"Bash(git push)",
"Bash(rm -rf /*)",
"Bash(rm -rf .*)",
"Bash(docker rm *)",
"Bash(docker rmi *)",
"Bash(kubectl delete *)",
"Edit(.idea/*)",
"Write(.idea/*)",
"Write(.env)",
"Write(.env.*)",
"Edit(.env)",
"Edit(.env.*)",
"Write(yarn.lock)",
"Write(package-lock.json)",
"Write(pnpm-lock.yaml)",
"Write(bun.lockb)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "\"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/config-protection.sh"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/rtk-rewrite.sh"
},
{
"type": "command",
"command": "\"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/pre-commit-quality.sh"
},
{
"type": "command",
"command": "\"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/terminal-safety-gate.sh"
}
]
},
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "\"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/suggest-compact.sh"
}
]
},
{
"matcher": "Glob|Grep",
"hooks": [
{
"type": "command",
"command": "[ -f graphify-out/graph.json ] && echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"additionalContext\":\"graphify: Knowledge graph exists. Read graphify-out/GRAPH_REPORT.md for god nodes and community structure before searching raw "
}
]
}
]
}
} Skills (46)
askbootstrapbrainstormingcarefulcheckpointclean-worktreescleanupcocoindex-codecode-review-graphcodebase-memorycodeburncontextcross-layer-checkdbdebugdepsdiffdockergithealthissue-triagelintmaintainmcpmigratemrplanplaywrightpr-triagereceiving-code-reviewrepo-recapresearchresumereviewroot-cause-traceserenaservesquad-planstatussubagent-driven-developmenttddticketupdate-code-indexworktree-statusworktreewriting-skills
Subagents (5)
| plan-challenger model: opus | Adversarial plan review before implementation. Attacks plans across 5 dimensions (Assumptions, Missing Cases, Security, Architecture Fit, Complexity Creep), then self-refutes to eliminate false positi |
| research | Deep codebase exploration and analysis. Delegates read-only research to a separate context window, preserving the main conversation for implementation. Use for tracing code paths, finding patterns, ga |
| reviewer model: opus | Expert code reviewer for MR analysis. Runs the 10-point review protocol in an isolated context, checking cross-layer consistency, transaction safety, enum completeness, and test coverage. Returns a st |
| security-auditor model: opus | > |
| session-reviewer | > |
Hooks (17)
| event | matcher | runs |
|---|---|---|
| SessionStart | startup|resume|clear | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/session-start.sh |
| SessionStart | compact | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/on-compact.sh |
| PreCompact | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/pre-compact.sh |
| PreToolUse | Write|Edit|MultiEdit | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/config-protection.sh |
| PreToolUse | Bash | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/rtk-rewrite.sh |
| PreToolUse | Bash | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/pre-commit-quality.sh |
| PreToolUse | Bash | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/terminal-safety-gate.sh |
| PreToolUse | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/suggest-compact.sh |
| PreToolUse | Glob|Grep | [ -f graphify-out/graph.json ] && echo '{"hookSpecificOutput":{"hookEventName":"PreToolUse","additionalContext":"graphify: Knowledge graph exists. Read graphify-out/GRAPH_REPORT.md for god nodes and community structure before searching raw |
| UserPromptSubmit | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/identity-reinjection.sh |
| SubagentStop | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/subagent-stop.sh |
| Stop | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/tdd-loop-check.sh |
| Stop | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/stop-batch-format.sh |
| Stop | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/exit-nudge.sh |
| PostToolUse | Edit|Write|MultiEdit | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/edit-accumulator.sh |
| PostToolUse | Write | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/warn-missing-test.sh |
| PermissionDenied | * | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/permission-denied.sh |
Slash commands (31)
/ask/bootstrap/build/checkpoint/clean-worktrees/cleanup/context/db/debug/deps/diff/docker/git/health/lint/maintain/mcp/migrate/mr/plan/research/resume/review/serve/squad-plan/status/test/ticket/update-code-index/worktree-status/worktree
Permissions
deny (17)
Bash(git push *)
Bash(git push)
Bash(rm -rf /*)
Bash(rm -rf .*)
Bash(docker rm *)
Bash(docker rmi *)
Bash(kubectl delete *)
Edit(.idea/*)
Write(.idea/*)
Write(.env)
Write(.env.*)
Edit(.env)
Edit(.env.*)
Write(yarn.lock)
Write(package-lock.json)
Write(pnpm-lock.yaml)
Write(bun.lockb)
ask (0)
—
allow (61)
Bash(git *)
Bash(grep *)
Bash(find *)
Bash(cat *)
Bash(head *)
Bash(tail *)
Bash(wc *)
Bash(sort *)
Bash(diff *)
Bash(awk *)
Bash(sed *)
Bash(ls *)
Bash(echo *)
Bash(pwd)
Bash(mkdir *)
Bash(jq *)
Bash(curl *)
Bash(chmod *)
Bash(date *)
Bash(timeout *)
Bash(touch *)
Bash(mv *)
Bash(cp *)
Bash(rm claude/tasks/*)
Bash(xargs *)
Bash(tr *)
Bash(cut *)
Bash(uniq *)
Bash(comm *)
Bash(env *)
Bash(test *)
Bash(printf *)
Bash(which *)
Bash(file *)
Bash(realpath *)
Bash(dirname *)
Bash(basename *)
Bash(bash *)
Bash(setsid *)
Bash(tar *)
Bash(node *)
Bash(tee *)
Bash(stat *)
Bash(claude *)
Bash(python3 *)
Bash(python *)
Bash(pip *)
Bash(pip3 *)
Bash(uvx *)
Bash(uv *)
Bash(cargo *)
Bash(npx *)
Bash(rtk *)
Bash(ccc *)
Bash(graphify *)
Bash(codeburn *)
Bash(code-review-graph *)
Bash(codebase-memory-mcp *)
Edit
Write
Similar rigs
tercel/code-forge
Complete development workflow — from TDD-driven implementation plans to execution, debugging, code review, git worktree management, branch lifecycle, and parallel agent dispatch.
Skill Collector 110 tok ·
pruthvidarji1993/ai-automation-jira
AI-assisted dev workflow: Jira ticket in, reviewed PR out. Claude Code plugin + GitHub Copilot prompts with human approval gates (plan, diff).
Pragmatist 2.0k tok ·
wangqiqi/cursor-ai
无关用户, 无关系统, 无关项目,开箱复制即用! code faster, code better;
Skill Collector 2.8k tok ·
Jkudjo/oh-my-cursor
Workflow layer for Cursor — structured skills, MCP state, and tmux parallel agents
Skill Collector 684 tok ·