~ / rigs / HGInsights / claude-code-setup

HGInsights/claude-code-setup

Production-tested Claude Code harness configuration: hooks, skills, subagents, and automated review loops

share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~1.9k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
1/5
No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit HGInsights/claude-code-setup/.claude ./rig-claude-code-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/code-reviewer.md https://raw.githubusercontent.com/HGInsights/claude-code-setup/master/templates/.claude/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/plan-reviewer.md https://raw.githubusercontent.com/HGInsights/claude-code-setup/master/templates/.claude/agents/plan-reviewer.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 7,204 rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(rm -rf *)",
      "Read(**/*.pem)",
      "Bash(rm -rf /)",
      "Bash(git push --force:*)",
      "Bash(sudo *)",
      "Read(.env)",
      "Bash(rm -rf /*)",
      "Read(./.env.*)",
      "Read(~/.aws/**)",
      "Bash(git push --force*)",
      "Bash(rm -rf:*)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(sudo:*)",
      "Bash(git reset --hard*)",
      "Bash(git reset --hard:*)",
      "Read(.env.*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(rm:*)",
      "Bash(git rebase *)",
      "Bash(wget *)",
      "Bash(npm publish:*)",
      "Bash(git commit *)",
      "Bash(gh pr merge *)"
    ]
  }
}

Subagents (2)

code-reviewer
model: opus
Reviews code changes (git diff or PR) against this repo's conventions. Tries an external reviewer CLI first; on failure or credit exhaustion, falls back to an in-model review. Spawned by the fix-issue
plan-reviewer
model: opus
Reviews an implementation plan against this repo's architecture patterns and conventions. Tries an external reviewer CLI first; on failure or credit exhaustion, falls back to an in-model review. Spawn

Slash commands (4)

/create-pr/task-to-github-issue/fix-issue/task-to-github-issue

Permissions

deny (0)
—
ask (0)
—
allow (20)
Bash(git status)
Bash(git diff:*)
Bash(git log:*)
Bash(git add:*)
Bash(git commit:*)
Bash(git push:*)
Bash(git checkout:*)
Bash(git branch:*)
Bash(git stash:*)
Bash(gh pr create:*)
Bash(gh pr view:*)
Bash(gh pr edit:*)
Bash(gh pr diff:*)
Bash(gh issue view:*)
Bash(gh issue list:*)
Bash(gh issue create:*)
Bash(gh issue comment:*)
Bash(gh label list:*)
Bash(npx --yes markdownlint-cli2:*)
Bash(.claude/hooks/codex-safe.sh:*)

Similar rigs

copied ✓