~ / rigs / mark-brannan / claude

mark-brannan/claude

The Claude Code layer of a personal setup (hooks, skills, settings), as a public reference implementation. Claude here means Claude Code, not the model.

↗ GitHub ★ 0 AGPL-3.0 updated 1d ago project Claude Code
stack: Python
share on X
ARCHETYPE
Skill Collector
Ten-plus skills loaded on demand. A procedural-knowledge library.
CONTEXT TAX · EVERY TURN
~8.4k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 22/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit mark-brannan/claude/.claude ./rig-claude  # 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 mark-brannan/claude/skills/agora .claude/skills/agora
$ npx degit mark-brannan/claude/skills/arete-check .claude/skills/arete-check
$ npx degit mark-brannan/claude/skills/card-helper .claude/skills/card-helper
$ npx degit mark-brannan/claude/skills/card-write .claude/skills/card-write
$ npx degit mark-brannan/claude/skills/critical-review .claude/skills/critical-review
$ npx degit mark-brannan/claude/skills/curia .claude/skills/curia
$ npx degit mark-brannan/claude/skills/doc-settledness-check .claude/skills/doc-settledness-check
$ npx degit mark-brannan/claude/skills/handoff .claude/skills/handoff
$ npx degit mark-brannan/claude/skills/iada .claude/skills/iada
$ npx degit mark-brannan/claude/skills/lastword .claude/skills/lastword
$ npx degit mark-brannan/claude/skills/maxims-check .claude/skills/maxims-check
$ npx degit mark-brannan/claude/skills/npm-first-publish .claude/skills/npm-first-publish
$ npx degit mark-brannan/claude/skills/orchestrate .claude/skills/orchestrate
$ npx degit mark-brannan/claude/skills/pickup .claude/skills/pickup
$ npx degit mark-brannan/claude/skills/prt .claude/skills/prt
$ npx degit mark-brannan/claude/skills/reconcile .claude/skills/reconcile
$ npx degit mark-brannan/claude/skills/scoping .claude/skills/scoping
$ npx degit mark-brannan/claude/skills/substantive-check .claude/skills/substantive-check
$ npx degit mark-brannan/claude/skills/summary .claude/skills/summary
$ npx degit mark-brannan/claude/skills/sweep .claude/skills/sweep
$ npx degit mark-brannan/claude/skills/worklist .claude/skills/worklist
$ npx degit mark-brannan/claude/skills/wrapup .claude/skills/wrapup

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:*)",
      "Skill(mergify:mergify-stack)",
      "Artifact",
      "SearchPlugins",
      "SuggestPluginInstall",
      "SuggestSkills",
      "ScheduleWakeup"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "in=$(cat); [ -n \"${SPEND_GATE_USD:-}${SPEND_GATE_TOKENS:-}\" ] || exit 0; h=\"$HOME/.claude/hooks/spend-gate.py\"; { [ -f \"$h\" ] && printf '%s' \"$in\" | python3 \"$h\"; } && exit 0; o=\"${SPEND_GATE_HANDOFF:-HANDOFF.md}\"; f=$(printf '%s' \"$in\" | t"
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/no-unsigned-push.py\"; { [ -f \"$h\" ] && python3 \"$h\"; } || printf '%s\\n' '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"no-unsigned-push.py is missing from "
          },
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/npm-publish-auth.py\"; [ -f \"$h\" ] && python3 \"$h\" || true"
          }
        ]
      },
      {
        "matcher": "mcp__claude-code-remote__add_repo",
        "hooks": [
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/guard-add-repo.py\"; [ -f \"$h\" ] && python3 \"$h\"; true"
          }
        ]
      },
      {
        "matcher": "mcp__.*__(send_later|create_trigger)",
        "hooks": [
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/no-persistent-polling.py\"; [ -f \"$h\" ] && python3 \"$h\" || true"
          }
        ]
      },
      {
        "matcher": "Bash|mcp__.*__update_pull_request_branch",
        "hooks": [
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/no-update-branch.py\"; [ -f \"$h\" ] && python3 \"$h\" || true"
          }
        ]
      },
      {
        "matcher": "mcp__.*__subscribe_pr_activity",
        "hooks": [
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/no-late-pr-subscribe.py\"; [ -f \"$h\" ] && python3 \"$h\" || true"
          }
        ]
      },
      {
        "matcher": "Bash|mcp__.*github.*__.*",
        "hooks": [
          {
            "type": "command",
            "command": "h=\"$HOME/.claude/hooks/pr-ownership-context.py\"; [ -f \"$h\" ] && python3 \"$h\" || true"
          }
        ]
      }
    ]
  }
}

Skills (22)

Hooks (38)

eventmatcherruns
PreToolUse*in=$(cat); [ -n "${SPEND_GATE_USD:-}${SPEND_GATE_TOKENS:-}" ] || exit 0; h="$HOME/.claude/hooks/spend-gate.py"; { [ -f "$h" ] && printf '%s' "$in" | python3 "$h"; } && exit 0; o="${SPEND_GATE_HANDOFF:-HANDOFF.md}"; f=$(printf '%s' "$in" | t
PreToolUseBashh="$HOME/.claude/hooks/no-unsigned-push.py"; { [ -f "$h" ] && python3 "$h"; } || printf '%s\n' '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"no-unsigned-push.py is missing from
PreToolUsemcp__claude-code-remote__add_repoh="$HOME/.claude/hooks/guard-add-repo.py"; [ -f "$h" ] && python3 "$h"; true
PreToolUsemcp__.*__(send_later|create_trigger)h="$HOME/.claude/hooks/no-persistent-polling.py"; [ -f "$h" ] && python3 "$h" || true
PreToolUseBashh="$HOME/.claude/hooks/npm-publish-auth.py"; [ -f "$h" ] && python3 "$h" || true
PreToolUseBash|mcp__.*__update_pull_request_branchh="$HOME/.claude/hooks/no-update-branch.py"; [ -f "$h" ] && python3 "$h" || true
PreToolUsemcp__.*__subscribe_pr_activityh="$HOME/.claude/hooks/no-late-pr-subscribe.py"; [ -f "$h" ] && python3 "$h" || true
PreToolUseBash|mcp__.*github.*__.*h="$HOME/.claude/hooks/pr-ownership-context.py"; [ -f "$h" ] && python3 "$h" || true
Stop*h="$HOME/.claude/hooks/clone-sync.py"; [ -f "$h" ] && python3 "$h"; true
Stop*p=$(cat); [ "$(printf '%s' "$p" | jq -r '.stop_hook_active // false' 2>/dev/null)" = true ] && exit 0; h="$HOME/.claude/hooks/pr-threads-gate.py"; { [ -f "$h" ] && printf '%s' "$p" | python3 "$h"; } || printf '%s\n' '{"decision":"block","re
Stop*p=$(cat); h="$HOME/.claude/hooks/branch-home-gate.py"; { [ -f "$h" ] && printf '%s' "$p" | python3 "$h"; } || { if command -v jq >/dev/null 2>&1; then active=$(printf '%s' "$p" | jq -r '.stop_hook_active // false' 2>/dev/null); else active=
Stop*h="$HOME/.claude/hooks/stop-sequence.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null || true
Stop*h="$HOME/.claude/hooks/no-prose-gate.py"; [ -f "$h" ] && python3 "$h"; true
Stop*h="$HOME/.claude/hooks/demo-line-gate.py"; [ -f "$h" ] && python3 "$h"; true
PostToolUse*h="$HOME/.claude/hooks/metrics-live.py"; [ -f "$h" ] && python3 "$h" posttooluse 0 show || true
PostToolUseAskUserQuestionh="$HOME/.claude/hooks/curia-roll.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null; true
PostToolUseEdit|Write|MultiEdith="$HOME/.claude/hooks/prose-budget-edit.py"; [ -f "$h" ] && python3 "$h" || true
PostToolUseEdit|Write|MultiEdith="$HOME/.claude/hooks/scratch-mirror.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null || true
PostToolUseBash|mcp__.*__(create_pull_request|merge_pull_request|update_pull_request|update_pull_request_branch|push_files|create_oh="$HOME/.claude/hooks/measure-git-events.py"; [ -f "$h" ] && python3 "$h"; true
PostToolUseBash|mcp__.*__(create_pull_request|merge_pull_request|update_pull_request|update_pull_request_branch|push_files|create_oh="$HOME/.claude/hooks/log-commit.py"; [ -f "$h" ] && python3 "$h"; true
PostToolUseBash|mcp__.*__(create_pull_request|merge_pull_request|update_pull_request|update_pull_request_branch|push_files|create_oh="$HOME/.claude/hooks/clone-sync.py"; [ -f "$h" ] && python3 "$h"; true
PostToolUseBashh="$HOME/.claude/hooks/log-gh-writes.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null || true
PermissionRequest*h="$HOME/.claude/hooks/permission-request-log.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null || true
PermissionRequest*h="$HOME/.claude/hooks/subagent-permission-approve.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null || true
SubagentStop*h="$HOME/.claude/hooks/metrics-live.py"; [ -f "$h" ] && python3 "$h" subagentstop 0 show || true
SubagentStop*h="$HOME/.claude/hooks/release-subagent-branch.py"; [ -f "$h" ] && python3 "$h" 2>/dev/null || true
SessionStart*h="$HOME/.claude/hooks/session-start-seed-refresh.py"; [ -f "$h" ] && python3 "$h" || true
SessionStart*h="$HOME/.claude/hooks/claim-stamp.py"; [ -f "$h" ] && python3 "$h" session-start || true
SessionStart*h="$HOME/.claude/hooks/session-start-continuity.py"; [ -f "$h" ] && python3 "$h" || true
SessionStart*h="$HOME/.claude/hooks/connector-budget.py"; [ -f "$h" ] && python3 "$h" || true

Plugins (3)

github@claude-plugins-officialsecurity-guidance@claude-plugins-officiallanguette@languette

Permissions

deny (7)
Bash(git reset --hard:*)
Skill(mergify:mergify-stack)
Artifact
SearchPlugins
SuggestPluginInstall
SuggestSkills
ScheduleWakeup
ask (0)
—
allow (48)
Bash(systemctl --user list-timers *)
Bash(systemctl --user show *)
Bash(git rev-list *)
Bash(git config core.hooksPath)
Bash(git add :*)
Bash(git branch -D claude/*)
Bash(git branch -d claude/*)
Bash(git commit :*)
Bash(git fetch *)
Bash(git merge-base *)
Bash(gh-resolve-thread:*)
Bash(npm run generate:check)
Bash(npm run typecheck)
Bash(npm test)
Bash(worklist *)
Bash(gh search *)
Bash(gh pr create *)
Bash(gh pr edit *)
Bash(shellcheck *)
Bash(yadm log *)
Bash(~/.claude/bin/agent-decision *)
Bash(~/.claude/bin/card-id *)
Bash(~/.claude/bin/pickup-list find *)
Bash(~/.claude/bin/scoping-lock check *)
Bash(~/.claude/bin/driver-start *)
Bash(~/.claude/bin/confer-start *)
Bash(~/.claude/bin/pickup-list)
Bash(~/.claude/bin/pickup-list *)
Bash(~/.claude/bin/pickup-list --all)
Bash(~/.claude/bin/pickup-list --oldest)
Bash(~/.claude/bin/pickup-list --closed)
Bash(~/.claude/bin/pickup-list show *)
Bash(~/.claude/bin/pr-blockers *)
Bash(~/.claude/bin/prose-budget *)
Bash(~/.claude/bin/worklist)
Bash(~/.claude/bin/worklist *)
Bash(~/.claude/bin/work-item *)
Bash(~/.claude/bin/worker-start *)
Bash(~/.claude/bin/work-item *)
Bash(work-item *)
Bash(pr-blockers *)
Bash(~/.claude/bin/apply-edits)
Bash(apply-edits)
Bash(~/.claude/bin/post-comment *)
Bash(post-comment *)
Bash(worker-start *)
Bash(pickup-list handoff *)
Bash(~/.claude/bin/gh-resolve-thread *)

Similar rigs

copied ✓