~ / rigs / diegosvart / main-base-claude-code

diegosvart/main-base-claude-code

Claude Code project template with inception agent, specialized subagents, and quality-enforced workflows. From idea to codebase in one structured discovery session.

↗ GitHub ★ 0 no license updated 7mo ago project Claude Code
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~52 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 diegosvart/main-base-claude-code/.claude ./rig-main-base-claude-code  # 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/architecture.md https://raw.githubusercontent.com/diegosvart/main-base-claude-code/docs/adrs-004-to-007/.claude/agents/architecture.md
$ curl -fsSL --create-dirs -o .claude/agents/backend.md https://raw.githubusercontent.com/diegosvart/main-base-claude-code/docs/adrs-004-to-007/.claude/agents/backend.md
$ curl -fsSL --create-dirs -o .claude/agents/dba.md https://raw.githubusercontent.com/diegosvart/main-base-claude-code/docs/adrs-004-to-007/.claude/agents/dba.md
$ curl -fsSL --create-dirs -o .claude/agents/frontend.md https://raw.githubusercontent.com/diegosvart/main-base-claude-code/docs/adrs-004-to-007/.claude/agents/frontend.md
$ curl -fsSL --create-dirs -o .claude/agents/tl-orchestrator.md https://raw.githubusercontent.com/diegosvart/main-base-claude-code/docs/adrs-004-to-007/.claude/agents/tl-orchestrator.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 (5)

architecture>
backend>
dba>
frontend>
tl-orchestrator>

Hooks (4)

eventmatcherruns
SessionStart*echo '=== SESSION START ===' && (git branch --show-current 2>/dev/null || echo '(not a git repo)') && echo '' && echo '--- Recent Commits (last 5) ---' && (git log --oneline -5 2>/dev/null || echo '(no git history)') && echo '' && echo '⚡ P
PostToolUseWriteFILE=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('file_path',''))" 2>/dev/null); if echo "$FILE" | grep -q '\.py$'; then ruff format "$FILE" 2>/dev/null; ruff check --fix "$FILE" 2>/dev/null;
PostToolUseBashCMD=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('command','')[:120])" 2>/dev/null); echo "[audit] bash: $CMD" >> .claude/session-audit.log 2>/dev/null; true
Stop*osascript -e 'display notification "Task complete" with title "Claude Code"' 2>/dev/null || notify-send 'Claude Code' 'Task complete' 2>/dev/null || echo '[claude] Task complete'; true

Slash commands (6)

/close-phase/commit/create-pr/deploy/new-feature/review

Similar rigs

copied ✓