~ / rigs / front-factory / brigade

front-factory/brigade

Claude Code, organized like a kitchen brigade.

↗ GitHub ★ 1 MIT updated 12d ago project Claude Code
field: unknown workflow: Git & commits
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~400 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 26/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit front-factory/brigade/.claude ./rig-brigade  # 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 front-factory/brigade/.claude/skills/audit .claude/skills/audit
$ npx degit front-factory/brigade/.claude/skills/feature .claude/skills/feature
$ npx degit front-factory/brigade/.claude/skills/session-start .claude/skills/session-start
$ curl -fsSL --create-dirs -o .claude/agents/git-operator.md https://raw.githubusercontent.com/front-factory/brigade/main/.claude/agents/git-operator.md
$ curl -fsSL --create-dirs -o .claude/agents/implementer.md https://raw.githubusercontent.com/front-factory/brigade/main/.claude/agents/implementer.md
$ curl -fsSL --create-dirs -o .claude/agents/git-operator.md https://raw.githubusercontent.com/front-factory/brigade/main/templates/web/.claude/agents/git-operator.md
$ curl -fsSL --create-dirs -o .claude/agents/implementer.md https://raw.githubusercontent.com/front-factory/brigade/main/templates/web/.claude/agents/implementer.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 reset --hard:*)",
      "Bash(git push --force:*)",
      "Bash(git push -f:*)",
      "Bash(git clean -f:*)",
      "Bash(git branch -D:*)",
      "Bash(rm -rf /:*)",
      "Bash(rm -rf ~:*)",
      "Read(./.env*)",
      "Read(./**/*.pem)",
      "Read(./**/*.key)",
      "Read(./package-lock.json)",
      "Read(./pnpm-lock.yaml)",
      "Read(./yarn.lock)",
      "Read(./bun.lock)",
      "Read(./bun.lockb)",
      "Read(./.git/**)",
      "Read(./**/*.map)",
      "Read(./**/*.min.js)",
      "Bash(git reset --hard:*)",
      "Bash(git push --force:*)",
      "Bash(git push -f:*)",
      "Bash(git clean -f:*)",
      "Bash(git branch -D:*)",
      "Bash(rm -rf /:*)",
      "Bash(rm -rf ~:*)",
      "Read(./.env*)",
      "Read(./**/*.pem)",
      "Read(./**/*.key)",
      "Read(./package-lock.json)",
      "Read(./pnpm-lock.yaml)",
      "Read(./yarn.lock)",
      "Read(./bun.lock)",
      "Read(./bun.lockb)",
      "Read(./.git/**)",
      "Read(./**/*.map)",
      "Read(./**/*.min.js)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git merge:*)",
      "Bash(git rebase:*)",
      "Bash(git push:*)",
      "Bash(git merge:*)",
      "Bash(git rebase:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "sh \"$CLAUDE_PROJECT_DIR/.claude/hooks/run-node.sh\" \"$CLAUDE_PROJECT_DIR/.claude/hooks/git-guard.mjs\""
          },
          {
            "type": "command",
            "command": "sh \"$CLAUDE_PROJECT_DIR/.claude/hooks/run-node.sh\" \"$CLAUDE_PROJECT_DIR/.claude/hooks/git-guard.mjs\""
          }
        ]
      }
    ]
  }
}

Skills (3)

Subagents (4)

git-operator
model: haiku
Git only, once the work is done and the user has approved. Never edits code.
implementer
model: sonnet
Development only, as briefed by the main session. Never runs git write commands.
git-operator
model: haiku
Git only, once the work is done and the user has approved. Never edits code.
implementer
model: sonnet
Development only, as briefed by the main session. Never runs git write commands.

Hooks (4)

eventmatcherruns
SessionStart*sh "$CLAUDE_PROJECT_DIR/.claude/hooks/run-node.sh" "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.mjs"
PreToolUseBashsh "$CLAUDE_PROJECT_DIR/.claude/hooks/run-node.sh" "$CLAUDE_PROJECT_DIR/.claude/hooks/git-guard.mjs"
SessionStart*sh "$CLAUDE_PROJECT_DIR/.claude/hooks/run-node.sh" "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.mjs"
PreToolUseBashsh "$CLAUDE_PROJECT_DIR/.claude/hooks/run-node.sh" "$CLAUDE_PROJECT_DIR/.claude/hooks/git-guard.mjs"

Slash commands (8)

/brigade-effort/brigade-language/brigade-reference-branch/brigade-settings/brigade-effort/brigade-language/brigade-reference-branch/brigade-settings

Permissions

deny (36)
Bash(git reset --hard:*)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git clean -f:*)
Bash(git branch -D:*)
Bash(rm -rf /:*)
Bash(rm -rf ~:*)
Read(./.env*)
Read(./**/*.pem)
Read(./**/*.key)
Read(./package-lock.json)
Read(./pnpm-lock.yaml)
Read(./yarn.lock)
Read(./bun.lock)
Read(./bun.lockb)
Read(./.git/**)
Read(./**/*.map)
Read(./**/*.min.js)
Bash(git reset --hard:*)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git clean -f:*)
Bash(git branch -D:*)
Bash(rm -rf /:*)
Bash(rm -rf ~:*)
Read(./.env*)
Read(./**/*.pem)
Read(./**/*.key)
Read(./package-lock.json)
Read(./pnpm-lock.yaml)
Read(./yarn.lock)
Read(./bun.lock)
Read(./bun.lockb)
Read(./.git/**)
Read(./**/*.map)
Read(./**/*.min.js)
ask (6)
Bash(git push:*)
Bash(git merge:*)
Bash(git rebase:*)
Bash(git push:*)
Bash(git merge:*)
Bash(git rebase:*)
allow (14)
Bash(git status:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git show:*)
Bash(npm run:*)
Bash(npm test:*)
Bash(npm install:*)
Bash(git status:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git show:*)
Bash(__PACKAGE_MANAGER__ run:*)
Bash(__PACKAGE_MANAGER__ test:*)
Bash(__PACKAGE_MANAGER__ install:*)

Similar rigs

copied ✓