~ / rigs / codeitwisely / drupal-claude-kit

codeitwisely/drupal-claude-kit

Minimal Claude Code setup for Drupal 10/11 projects — pre-commit hooks, guardrails, CLAUDE.md template

↗ GitHub ★ 3 MIT updated 5mo ago personal setup Claude Code
share on X
ARCHETYPE
Minimalist
Lean instructions, few tools, tiny context tax. Lets the model think.
CONTEXT TAX · EVERY TURN
~749 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Protects secrets · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit codeitwisely/drupal-claude-kit/.claude ./rig-drupal-claude-kit  # 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.

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 origin dev)",
      "Bash(git push origin main)",
      "Bash(git push origin master)",
      "Bash(git push --force*)",
      "Bash(git reset --hard*)",
      "Bash(git clean -f*)",
      "Bash(ddev delete*)",
      "Bash(composer require *)",
      "Bash(ddev drush en *)",
      "Bash(npm install *)",
      "Bash(pip install *)",
      "Bash(curl * | bash)",
      "Bash(wget * | bash)",
      "Bash(rm -rf *)",
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)",
      "Read(~/.gnupg/**)",
      "Read(~/.config/gcloud/**)",
      "Bash(cat ~/.ssh/*)",
      "Bash(cat ~/.aws/*)",
      "Bash(cat ~/.gnupg/*)",
      "Bash(grep * ~/.ssh/*)",
      "Bash(grep * ~/.aws/*)"
    ]
  }
}

Permissions

deny (23)
Bash(git push origin dev)
Bash(git push origin main)
Bash(git push origin master)
Bash(git push --force*)
Bash(git reset --hard*)
Bash(git clean -f*)
Bash(ddev delete*)
Bash(composer require *)
Bash(ddev drush en *)
Bash(npm install *)
Bash(pip install *)
Bash(curl * | bash)
Bash(wget * | bash)
Bash(rm -rf *)
Read(~/.ssh/**)
Read(~/.aws/**)
Read(~/.gnupg/**)
Read(~/.config/gcloud/**)
Bash(cat ~/.ssh/*)
Bash(cat ~/.aws/*)
Bash(cat ~/.gnupg/*)
Bash(grep * ~/.ssh/*)
Bash(grep * ~/.aws/*)
ask (0)
—
allow (14)
Bash(ddev *)
Bash(git status)
Bash(git diff*)
Bash(git log*)
Bash(git checkout -b *)
Bash(git add *)
Bash(git commit*)
Bash(git fetch*)
Bash(git pull*)
Bash(git push origin feature/*)
Bash(git push origin fix/*)
Bash(ls *)
Bash(find *)
Bash(grep *)

Similar rigs

copied ✓