~ / rigs / devinilabs / claude-code-init

devinilabs/claude-code-init

A clean, copy-paste .claude/ starter for Claude Code — CLAUDE.md, agents, hooks, skills, MCP, settings. Set it up before you write a single line of code.

↗ GitHub ★ 1 MIT updated 4mo ago project Claude Code Claude plugin
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~10.6k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ claude mcp add playwright -- npx -y @playwright/mcp@latest
$ claude mcp add _example_database -e YOUR_API_TOKEN=... -- npx -y your-mcp-server --project your-project
$ npx degit devinilabs/claude-code-init/.claude ./rig-claude-code-init  # 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.

$ claude mcp add playwright -- npx -y @playwright/mcp@latest
$ claude mcp add _example_database -e YOUR_API_TOKEN=... -- npx -y your-mcp-server --project your-project
$ npx degit devinilabs/claude-code-init/.claude/skills/api-health .claude/skills/api-health
$ npx degit devinilabs/claude-code-init/.claude/skills/code-review .claude/skills/code-review
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/devinilabs/claude-code-init/main/.claude/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/log-analyzer.md https://raw.githubusercontent.com/devinilabs/claude-code-init/main/.claude/agents/log-analyzer.md
$ curl -fsSL --create-dirs -o .claude/agents/researcher.md https://raw.githubusercontent.com/devinilabs/claude-code-init/main/.claude/agents/researcher.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(git push:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/pre-deploy-guard.sh"
          }
        ]
      }
    ]
  }
}

MCP servers (2)

serversourceest. tokens
Playwright MCP · "playwright" npm 7.5k
your-mcp-server · "_example_database"
env: YOUR_API_TOKEN
npm 2.5k

Skills (2)

Subagents (3)

code-reviewer
model: opus
Reviews a diff for bugs, security issues, and convention violations. Returns only a prioritized summary, keeping the main context clean.
log-analyzer
model: sonnet
Parses runtime logs and error reports to find the root cause of a production incident. Returns the likely cause and the offending file, nothing else.
researcher
model: sonnet
Researches a question on the web (API specs, library docs, pricing) and returns a cited synthesis. Use for anything that needs fetching and reading many sources without polluting the main context.

Hooks (4)

eventmatcherruns
SessionStart*.claude/hooks/session-start.sh
PreToolUseBash.claude/hooks/pre-deploy-guard.sh
PostToolUseWrite|Edit.claude/hooks/post-edit-format.sh
Stop*afplay /System/Library/Sounds/Ping.aiff

Slash commands (1)

/ship

Permissions

deny (1)
Bash(git push:*)
ask (0)
—
allow (9)
Bash(npm run lint)
Bash(npm run build)
Bash(npm test)
Read
Edit
Write
WebFetch
WebSearch
mcp__playwright__*

Similar rigs

copied ✓