/claude-warden:warden-setupfrom claude-warden
Initialize Claude Warden in a project — creates governance files, seeds deny entries, and migrates from curl-install
Ships in claude-warden. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run this skill when setting up Warden in a new project or migrating from the old curl-installer.
.claude/CLAUDE.md, .claude/rules/, docs/SESSION-LOG.md, and seeds deny entries in .claude/settings.json.claude/hooks/, .claude/VERSION, .claude/config/), removes them, cleans stale hook/deny entries from settings.json, and preserves user filesWhen the user invokes /warden-setup or asks to set up Warden in their project:
Find and run the setup script. Try these in order:
# Option 1: Plugin env var (set during hook execution)
bash "$CLAUDE_PLUGIN_ROOT/scripts/warden-setup.sh"
# Option 2: Find in plugin cache (always works)
bash "$(find ~/.claude/plugins/cache -path '*/claude-warden/*/scripts/warden-setup.sh' 2>/dev/null | head -1)"
This runs against $CLAUDE_PROJECT_DIR by default. The script is idempotent — safe to run multiple times.
Available flags:
--force — Overwrite existing governance files (default: skip existing)--skip-deny — Don't add deny entries to settings.jsonTell the user what was created, skipped, or migrated. The script outputs this information.
After setup completes, tell the user:
Edit .claude/CLAUDE.md — This is a human-only file (protected by hooks and deny entries). Fill in project name, stack, current phase, and constraints. The template has placeholder sections to complete.
Customize config (optional) — Create .claude/warden.config.sh to override defaults:
# Example: customize protected files and directory rules
PROTECTED_FILES=(".claude/CLAUDE.md" ".claude/rules/*.md" ".claude/settings.json")
FORBIDDEN_DIRS=("temp" "tmp" "misc" "stuff" "old" "backup")
MAX_DIRECTORY_DEPTH=5
Restart Claude Code — New deny entries and governance files take effect on next session.
Additionally inform the user:
.claude/CLAUDE.md, .claude/rules/, and .claude/warden.config.sh were preservedsettings.jsonsettings.json looks correct: cat .claude/settings.jsonWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hawkanng/claude-warden --plugin claude-warden7 skills in this plugin
/warden-architectureProject directory structure template — approved directories, depth limits, forbidden patterns/warden-feedbackGovernance feedback tracking — gaps, friction, and improvement suggestions/warden-policyWarden governance constitution — defines policy areas, directive rules, and enforcement hierarchy/warden-second-opinionTwo-tier diagnostic protocol — spawns fresh subagents to analyze problems when stuck. Invoke manually or triggered by rabbit hole detection./warden-securitySecurity and privacy by design — GDPR principles, secure coding defaults, and data handling rules/warden-workflowDevelopment workflow protocol — PROPOSE, PLAN, BUILD, VERIFY, CLOSE phases with UAT checkpointsOther plugins' skills for the same job