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.
field: Developer tools
stack: Python
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
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)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Read|Edit|Write|MultiEdit|NotebookEdit|Grep|Bash | python3 "$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
pulore/claude-code-codex-config
Claude Code and Codex in one repo: one AGENTS.md, shared skills, guarded config and one shell hook
Fort Knox 540 tok · · Q42
igalarzab/dotfiles
My local configuration
Minimalist 572 tok · · Q0
OrchestratorInc/agent-orchestrator
Run and supervise teams of coding agents from planning to merge. Any harness (Claude code, codex, +25 more). Desktop, web, mobile, and cloud agents.
Pragmatist 3.5k tok · · Q10
brieucdlf/dotdotdots
My personal config
Automator 481 tok · · Q15