~ / rigs / MG-Cafe / claude-code-best-engineers-setup

MG-Cafe/claude-code-best-engineers-setup

Nine practices from the team that builds Claude Code: a fresh reviewer agent, ask before any push, hooks that fail closed, reviews that finish, effort per subagent and more. The setup from my YouTube video.

↗ GitHub ★ 0 no license updated 15d ago personal setup Claude Code
field: unknown workflow: PR / code review
stack: JavaScript
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~146 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 35/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit MG-Cafe/claude-code-best-engineers-setup/.claude ./rig-claude-code-best-engineers-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/reviewer.md https://raw.githubusercontent.com/MG-Cafe/claude-code-best-engineers-setup/main/.claude/agents/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": {
    "ask": [
      "Bash(git push *)",
      "Bash(gh pr create *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.cjs\""
          }
        ]
      }
    ]
  }
}

Subagents (1)

reviewerA code reviewer with a fresh context. Use it to review a diff against the task or spec. It has not seen the conversation, so it does not share its blind spots.

Hooks (1)

eventmatcherruns
PreToolUseBashnode "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.cjs"

Slash commands (2)

/converge-review/explain-change

Permissions

deny (0)
—
ask (2)
Bash(git push *)
Bash(gh pr create *)
allow (0)
—

Similar rigs

copied ✓