~ / rigs / Wallisgareth004 / claude-code-team-setup-sample

Wallisgareth004/claude-code-team-setup-sample

A safe Claude Code setup for a team repo: permission rules, a guard hook, a CLAUDE.md template, an example skill and a pre-commit gitleaks scan, with 34 tests.

↗ GitHub ★ 0 MIT updated 12d ago personal setup Claude Code
stack: Python
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~321 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 43/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit Wallisgareth004/claude-code-team-setup-sample/.claude ./rig-claude-code-team-setup-sample  # 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 Wallisgareth004/claude-code-team-setup-sample/.claude/skills/pr-description .claude/skills/pr-description

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(./secrets/**)",
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)",
      "Edit(./.env)",
      "Edit(./.env.*)",
      "Edit(./secrets/**)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean:*)",
      "Bash(git branch -D:*)",
      "Bash(rm -rf:*)",
      "Bash(rm -r:*)",
      "Bash(sudo:*)",
      "Bash(npm publish:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Edit|Write|MultiEdit|NotebookEdit|Grep|Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\""
          }
        ]
      }
    ]
  }
}

Skills (1)

Hooks (1)

eventmatcherruns
PreToolUseRead|Edit|Write|MultiEdit|NotebookEdit|Grep|Bashpython3 "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py"

Permissions

deny (8)
Read(./.env)
Read(./.env.*)
Read(./secrets/**)
Read(~/.ssh/**)
Read(~/.aws/**)
Edit(./.env)
Edit(./.env.*)
Edit(./secrets/**)
ask (8)
Bash(git push:*)
Bash(git reset --hard:*)
Bash(git clean:*)
Bash(git branch -D:*)
Bash(rm -rf:*)
Bash(rm -r:*)
Bash(sudo:*)
Bash(npm publish:*)
allow (5)
Bash(git status)
Bash(git diff:*)
Bash(git log:*)
Bash(python3 -m pytest:*)
Bash(npm test)

Similar rigs

copied ✓