~ / rigs / marcuslannister / claude-code-settings

marcuslannister/claude-code-settings

Claude Code settings, hooks, and skills

↗ GitHub ★ 0 MIT updated today personal setup Claude CodeCopilot Claude plugin
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~1.7k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · Sandbox or ask-first rules · details

Copy this rig

# review before running: this installs third-party code
$ npx degit marcuslannister/claude-code-settings/agents ./rig-claude-code-settings/agents
$ npx degit marcuslannister/claude-code-settings/hooks ./rig-claude-code-settings/hooks

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 marcuslannister/claude-code-settings/plugins/autonomous-skill/skills/autonomous-skill .claude/skills/autonomous-skill
$ npx degit marcuslannister/claude-code-settings/plugins/codex-skill/skills/codex-skill .claude/skills/codex-skill
$ npx degit marcuslannister/claude-code-settings/plugins/kiro-skill/skills/kiro-skill .claude/skills/kiro-skill
$ npx degit marcuslannister/claude-code-settings/plugins/nanobanana-skill/skills/nanobanana-skill .claude/skills/nanobanana-skill
$ npx degit marcuslannister/claude-code-settings/plugins/spec-kit-skill/skills/spec-kit-skill .claude/skills/spec-kit-skill
$ npx degit marcuslannister/claude-code-settings/plugins/youtube-transcribe-skill/skills/youtube-transcribe-skill .claude/skills/youtube-transcribe-skill
$ curl -fsSL --create-dirs -o .claude/agents/command-creator.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/command-creator.md
$ curl -fsSL --create-dirs -o .claude/agents/deep-reflector.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/deep-reflector.md
$ curl -fsSL --create-dirs -o .claude/agents/github-issue-fixer.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/github-issue-fixer.md
$ curl -fsSL --create-dirs -o .claude/agents/insight-documenter.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/insight-documenter.md
$ curl -fsSL --create-dirs -o .claude/agents/instruction-reflector.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/instruction-reflector.md
$ curl -fsSL --create-dirs -o .claude/agents/pr-reviewer.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/pr-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/ui-engineer.md https://raw.githubusercontent.com/marcuslannister/claude-code-settings/main/agents/ui-engineer.md

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(rm -rf:*)",
      "Bash(rm -fr:*)",
      "Read(.env)",
      "Read(.env.*)",
      "Read(**/.env)",
      "Read(**/.env.*)",
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)",
      "Read(**/*credential*)",
      "Read(**/*secret*)",
      "Read(**/*.pem)",
      "Read(**/*.key)"
    ],
    "ask": [
      "Bash(sudo:*)",
      "Bash(chmod 777:*)",
      "Bash(git push --force:*)",
      "Bash(git push -f:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean -fd:*)",
      "Bash(npm publish:*)",
      "Bash(eval:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "\"$HOME/.claude/hooks/block-git-destructive.sh\""
          },
          {
            "type": "command",
            "command": "\"$HOME/.claude/hooks/block-env-dump.sh\""
          },
          {
            "type": "command",
            "command": "\"$HOME/.claude/hooks/enforce-modern-cli.sh\""
          },
          {
            "type": "command",
            "command": "\"$HOME/.claude/hooks/gh-json.sh\""
          },
          {
            "type": "command",
            "command": "\"$HOME/.claude/hooks/redirect-to-anvil.sh\""
          }
        ]
      },
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "if [ -z \"${HOME-}\" ]; then case \"${OSTYPE-}\" in msys*|cygwin*|win32*) printf '{}\\n'; if [ -z \"${ORCA_AGENT_HOOK_PORT-}\" ] || [ -z \"${ORCA_AGENT_HOOK_TOKEN-}\" ] || [ -z \"${ORCA_PANE_KEY-}\" ]; then exit 0; fi; { command -p cat 2>/dev/null || "
          }
        ]
      }
    ]
  }
}

Skills (6)

Subagents (7)

command-creatorExpert at creating new Claude Code custom commands with proper structure and best practices. Use when needing to create well-structured custom commands.
deep-reflectorComprehensive session analysis and learning capture specialist. Analyzes development sessions to extract patterns, preferences, and improvements for future interactions. Use after significant work ses
github-issue-fixerGitHub issue resolution specialist. Analyzes, plans, and implements fixes for GitHub issues with proper testing and PR creation. Use when fixing specific GitHub issues.
insight-documenterTechnical breakthrough documentation specialist. Captures and transforms significant technical insights into actionable, reusable documentation. Use when documenting important discoveries, optimizatio
instruction-reflectorAnalyzes and improves Claude Code instructions in CLAUDE.md. Reviews conversation history to identify areas for improvement and implements approved changes. Use to optimize AI assistant instructions b
pr-reviewerExpert code reviewer for GitHub pull requests. Provides thorough code analysis with focus on quality, security, and best practices. Use when reviewing PRs for code quality and potential issues.
ui-engineerExpert UI/frontend developer for creating, modifying, or reviewing frontend code, UI components, and user interfaces. Use when building React components, responsive designs, or any frontend developmen

Hooks (20)

eventmatcherruns
PreToolUseBash"$HOME/.claude/hooks/block-git-destructive.sh"
PreToolUseBash"$HOME/.claude/hooks/block-env-dump.sh"
PreToolUseBash"$HOME/.claude/hooks/enforce-modern-cli.sh"
PreToolUseBash"$HOME/.claude/hooks/gh-json.sh"
PreToolUseBash"$HOME/.claude/hooks/redirect-to-anvil.sh"
PreToolUse*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
SessionStart*bash "$HOME/.claude/hooks/herdr-agent-state.sh" session
SessionStart*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
UserPromptSubmit*codegraph prompt-hook
UserPromptSubmit*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
Stop*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
StopFailure*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
SubagentStart*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
SubagentStop*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
TeammateIdle*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostToolUse*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostToolUseFailure*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PermissionRequest*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostCompact*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
SessionEnd*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||

Plugins (5)

codex@openai-codexmattpocock-skills@mattpocockponytail@ponytailnowledge-mem@nowledge-communityeli5@claude-community

Permissions

deny (12)
Bash(rm -rf:*)
Bash(rm -fr:*)
Read(.env)
Read(.env.*)
Read(**/.env)
Read(**/.env.*)
Read(~/.ssh/**)
Read(~/.aws/**)
Read(**/*credential*)
Read(**/*secret*)
Read(**/*.pem)
Read(**/*.key)
ask (8)
Bash(sudo:*)
Bash(chmod 777:*)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git reset --hard:*)
Bash(git clean -fd:*)
Bash(npm publish:*)
Bash(eval:*)
allow (14)
Skill(codex-skill)
Skill(claude-code-settings:codex-skill)
Skill(nanobanana-skill)
Skill(claude-code-settings:nanobanana-skill)
Skill(youtube-transcribe-skill)
Skill(claude-code-settings:youtube-transcribe-skill)
Skill(autonomous-skill)
Skill(claude-code-settings:autonomous-skill)
Bash(codex:*)
Bash(eza:*)
Bash(fd:*)
Bash(rg:*)
Bash(echo:*)
mcp__codegraph__*

Similar rigs

copied ✓