~ / rigs / RohiRIK / claude-code-config

RohiRIK/claude-code-config

Personal Claude Code global config — hooks, agents, skills, commands

↗ GitHub ★ 10 MIT updated 3mo ago personal setup Claude CodeCodex
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~2.8k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Blocks destructive commands · Pre-tool screening hook · details

Copy this rig

# review before running: this installs third-party code
$ npx degit RohiRIK/claude-code-config/agents ./rig-claude-code-config/agents
$ npx degit RohiRIK/claude-code-config/commands ./rig-claude-code-config/commands
$ npx degit RohiRIK/claude-code-config/skills ./rig-claude-code-config/skills
$ npx degit RohiRIK/claude-code-config/hooks ./rig-claude-code-config/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 RohiRIK/claude-code-config/skills/PreCommitSanitize .claude/skills/PreCommitSanitize
$ npx degit RohiRIK/claude-code-config/skills/WorkflowGuide .claude/skills/WorkflowGuide
$ curl -fsSL --create-dirs -o .claude/agents/architect.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/architect.md
$ curl -fsSL --create-dirs -o .claude/agents/build-error-resolver.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/build-error-resolver.md
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/code-simplifier.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/code-simplifier.md
$ curl -fsSL --create-dirs -o .claude/agents/database-reviewer.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/database-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/doc-updater.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/doc-updater.md
$ curl -fsSL --create-dirs -o .claude/agents/e2e-runner.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/e2e-runner.md
$ curl -fsSL --create-dirs -o .claude/agents/intune-summarizer.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/intune-summarizer.md
$ curl -fsSL --create-dirs -o .claude/agents/planner.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/planner.md
$ curl -fsSL --create-dirs -o .claude/agents/python-reviewer.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/python-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/refactor-cleaner.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/refactor-cleaner.md
$ curl -fsSL --create-dirs -o .claude/agents/security-reviewer.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/security-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/tdd-guide.md https://raw.githubusercontent.com/RohiRIK/claude-code-config/main/agents/tdd-guide.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "tool == \"Skill\"",
        "hooks": [
          {
            "type": "command",
            "command": "bun ~/.claude/hooks/SkillGuard/SkillGuard.ts"
          }
        ]
      },
      {
        "matcher": "tool == \"Bash\" && tool_input.command matches \"git \"",
        "hooks": [
          {
            "type": "command",
            "command": "bun ~/.<redacted>.ts"
          }
        ]
      },
      {
        "matcher": "tool == \"Bash\" && tool_input.command matches \"(npm run dev|pnpm( run)? dev|yarn dev|bun run dev)\"",
        "hooks": [
          {
            "type": "command",
            "command": "bun ~/.claude/hooks/DevServerBlocker/DevServerBlocker.ts"
          }
        ]
      },
      {
        "matcher": "tool == \"Bash\" && tool_input.command matches \"(npm (install|test)|pnpm (install|test)|yarn (install|test)|bun (install|t",
        "hooks": [
          {
            "type": "command",
            "command": "bun ~/.claude/hooks/TmuxSuggest/TmuxSuggest.ts"
          }
        ]
      },
      {
        "matcher": "tool == \"Write\" && tool_input.file_path matches \"\\\\.(md|txt)$\" && !(tool_input.file_path matches \"README\\\\.md|CLAUDE\\\\.m",
        "hooks": [
          {
            "type": "command",
            "command": "bun ~/.claude/hooks/WriteBlocker/WriteBlocker.ts"
          }
        ]
      },
      {
        "matcher": "tool == \"Edit\" || tool == \"Write\"",
        "hooks": [
          {
            "type": "command",
            "command": "bun ~/.claude/hooks/SuggestCompact/SuggestCompact.ts"
          }
        ]
      }
    ]
  }
}

Skills (2)

Subagents (13)

architect
model: opus
Software architecture specialist for system design, scalability, and technical decision-making. Use PROACTIVELY when planning new features, refactoring large systems, or making architectural decisions
build-error-resolver
model: opus
Build and TypeScript error resolution. Use PROACTIVELY when build fails or type errors occur. Minimal diffs only, no architectural edits — green build fast.
code-reviewer
model: opus
General code review for quality and maintainability, immediately after writing or modifying code. Routes: Python changes → python-reviewer; security-sensitive code → security-reviewer; post-impl clean
code-simplifier
model: opus
Post-implementation cleanup. Use PROACTIVELY after completing a feature or fix. Simplifies and verifies changed files only — not repo-wide (use refactor-cleaner for that).
database-reviewer
model: sonnet
PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing SQL, creating migrations, designing schemas, or troubleshooting database p
doc-updater
model: opus
Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Runs /update-codemaps and /update-docs, generates docs/CODEMAPS/*, updates READMEs and guides.
e2e-runner
model: opus
Playwright E2E specialist. Use PROACTIVELY to generate, maintain, and run E2E tests. Quarantines flaky tests, uploads artifacts, keeps critical user flows green.
intune-summarizer
model: sonnet
Summarizes Intune screenshots, policy exports, or config text into structured Monday.com/Notion updates. Use when Intune content needs to be shared with the team.
planner
model: opus
Codebase-driven planning for complex features and refactoring — plans from code exploration alone. For memory-informed planning that recalls past LTM decisions first, use openltm:planner instead.
python-reviewer
model: sonnet
Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.
refactor-cleaner
model: opus
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely r
security-reviewer
model: opus
Security review specialist. Use PROACTIVELY after writing code handling user input, auth, APIs, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, OWASP Top 10.
tdd-guide
model: opus
Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.

Hooks (14)

eventmatcherruns
PreToolUsetool == "Skill"bun ~/.claude/hooks/SkillGuard/SkillGuard.ts
PreToolUsetool == "Bash" && tool_input.command matches "git "bun ~/.<redacted>.ts
PreToolUsetool == "Bash" && tool_input.command matches "(npm run dev|pnpm( run)? dev|yarn dev|bun run dev)"bun ~/.claude/hooks/DevServerBlocker/DevServerBlocker.ts
PreToolUsetool == "Bash" && tool_input.command matches "(npm (install|test)|pnpm (install|test)|yarn (install|test)|bun (install|tbun ~/.claude/hooks/TmuxSuggest/TmuxSuggest.ts
PreToolUsetool == "Write" && tool_input.file_path matches "\\.(md|txt)$" && !(tool_input.file_path matches "README\\.md|CLAUDE\\.mbun ~/.claude/hooks/WriteBlocker/WriteBlocker.ts
PreToolUsetool == "Edit" || tool == "Write"bun ~/.claude/hooks/SuggestCompact/SuggestCompact.ts
UserPromptSubmit*bun ~/.claude/hooks/SessionAutoName/SessionAutoName.ts
UserPromptSubmit*bun ~/.claude/hooks/PrePlan/PrePlan.ts
PostToolUsetool == "Bash"bun ~/.claude/hooks/PRDetect/PRDetect.ts
PostToolUsetool == "Edit" && tool_input.file_path matches "\\.(ts|tsx|js|jsx)$"bun ~/.claude/hooks/PostEditCheck/PostEditCheck.ts
PostToolUsetool == "Edit" || tool == "Write"bun ~/.<redacted>.ts
Stop*bun ~/.claude/hooks/Cleanup/Cleanup.ts
SessionStart*"~/.claude/hooks/context-mode-cache-heal.mjs"
SessionStart*bun ~/.claude/hooks/SkillsMountCheck/SkillsMountCheck.ts

Slash commands (7)

/code-review/commit-push-pr/dev/e2e/plan/test-coverage/update-docs

Plugins (3)

context-mode@context-modecaveman@cavemanopenltm@OpenLtm

Permissions

deny (0)
—
ask (0)
—
allow (1)
mcp__plugin_openltm_memory

Similar rigs

copied ✓