Claude Code Project Bootstrap
Claude Code skill pack: project bootstrap with hooks and guardrails, 45+ point project audit, and structured multi-phase planning with codebase analysis. Includes /bootstrap, /audit-project, and /init-planning commands.
Install / Use
/learn @damoli1103/Claude Code Project BootstrapQuality Score
Category
Development & EngineeringSupported Platforms
README
Claude Code Project Bootstrap
A skill pack for Claude Code that sets up guardrails, hooks, and git workflow automation for any development project.
Claude Code is Anthropic's CLI tool that lets Claude work directly in your terminal — reading files, running commands, editing code. This skill pack adds safety rails so Claude can work autonomously without accidentally breaking things.
- Blocks destructive commands (force push,
rm -rf,git reset --hard) - Gates commits behind passing builds and tests
- Protects sensitive files (
.env, credentials, keys) - Enforces git conventions (feature branches, conventional commits)
- Scans for hardcoded secrets in every written file
- Auto-formats code after writes (prettier, ruff, rustfmt, etc.)
Works with any stack: Node/TS, Python, Rust, Go, Swift/Xcode, and more.
Quick Start
Install the plugin:
# Add as a marketplace source
claude plugin marketplace add https://github.com/damoli1103/claude-code-project-bootstrap
# Install the plugin
claude plugin install claude-code-project-bootstrap
Then open Claude Code in your project directory and run:
/bootstrap
Claude asks for your project name, stack, and visibility, then creates a GitHub repo with hooks, guardrails, and a CLAUDE.md — ready to go.
Skills Included
| Skill | Command | What It Does |
|-------|---------|-------------|
| claude-code-project-bootstrap | (auto-loaded) | Knowledge base with hook scripts, templates, and patterns. Claude reads this automatically when relevant. |
| bootstrap | /bootstrap | Interactive setup wizard. Creates GitHub repo, hooks, CLAUDE.md from scratch. |
| audit-project | /audit-project | Audits an existing project against best practices. Reports PASS/WARN/FAIL and offers to fix gaps. |
| init-planning | /init-planning | Sets up structured .planning/ directory with project definition, codebase analysis, requirements, and roadmap for multi-phase projects. |
What Gets Created
/bootstrap output
your-project/
├── .claude/
│ ├── hooks/
│ │ ├── validate-bash.sh # blocks destructive commands, gates commits, validates messages + branches
│ │ ├── protect-files.sh # blocks writes to sensitive files
│ │ ├── build-check.sh # auto-detects stack, runs build + tests
│ │ ├── scan-secrets.sh # warns on hardcoded secrets in written files
│ │ ├── session-check.sh # verifies hooks setup on session start
│ │ └── auto-format.sh # formats files after write (if formatters installed)
│ ├── statusline.sh # context window monitor (progressive color)
│ ├── settings.json # hook wiring + statusline (committed to git)
│ └── settings.local.json # user allow-list (NOT committed)
├── .gitignore
├── README.md
├── CLAUDE.md # project instructions for Claude
└── ...
/init-planning output
.planning/
├── PROJECT.md # What we're building, core value, constraints
├── REQUIREMENTS.md # REQ-IDs with phase traceability
├── ROADMAP.md # Phases, plans, success criteria, progress
├── STATE.md # Current position, velocity, decisions, blockers
├── .continue-here.md # Session resume point
├── config.json # Workflow preferences
├── codebase/ # Brownfield analysis (7 docs)
│ ├── ARCHITECTURE.md # Layers, patterns, data flow
│ ├── STRUCTURE.md # Directory layout, file purposes
│ ├── STACK.md # Languages, frameworks, deps
│ ├── CONVENTIONS.md # Naming, code style, patterns
│ ├── TESTING.md # Test framework, coverage, strategy
│ ├── CONCERNS.md # Tech debt, risks, fragile areas
│ └── INTEGRATIONS.md # APIs, data storage, external services
└── phases/
└── NN-phase-name/
├── NN-CONTEXT.md # Phase decisions + boundary
├── NN-PP-PLAN.md # Executable plan with must_haves
├── NN-PP-SUMMARY.md # Post-execution summary
└── NN-VERIFICATION.md # Phase quality gate
Commands
/bootstrap — Set Up a New Project
The bootstrap wizard walks you through creating a fully-configured Claude Code project. It:
- Asks you for project name, stack (Node/TS, Python, Rust, Go, Swift/Xcode), visibility (public/private), and description
- Creates a GitHub repo (or uses your existing one)
- Generates
.gitignore,README.md, andCLAUDE.mdtailored to your stack - Installs 6 hooks in
.claude/hooks/(see Hook Reference below) - Wires hooks in
.claude/settings.json - Explains permission tiers and lets you choose a level
- Commits and pushes the initial setup
If the project already has a git repo, README, or other files, the wizard skips those steps instead of overwriting.
/audit-project — Check Your Setup
Run this on any existing project to verify its Claude Code setup against best practices. Checks 45+ items across 7 areas:
| Area | What It Checks | |------|---------------| | Git & GitHub | Repo exists, remote configured, .gitignore complete | | README | Exists, has description, install instructions, contributing guide | | Hooks | All 6 hooks exist, are executable, have correct patterns and behaviors | | settings.json | PreToolUse, PostToolUse, SessionStart hooks wired, portable paths, timeouts set | | settings.local | Exists, not committed to git | | CLAUDE.md | Has all required sections (context, architecture, change protocol, git workflow) | | Security | No .env or credentials committed |
Reports results as a PASS/WARN/FAIL table and offers to fix everything it finds.
/init-planning — Structured Project Planning
Use this for multi-phase projects that need organized planning. It:
- Detects whether you're in a brownfield (existing code) or greenfield project
- Maps the codebase (brownfield only) — creates 7 analysis documents covering architecture, stack, conventions, testing, concerns, integrations, and structure
- Deep questions (2-4 rounds) to understand goals, priorities, constraints, and scope
- Creates planning files — PROJECT.md, REQUIREMENTS.md, ROADMAP.md, STATE.md
- Saves workflow preferences in config.json (parallel agents, pause between phases, auto-commit)
The must_haves system: Each plan declares observable truths, required artifacts, and key links that must be verified after execution. This gives executing agents unambiguous success criteria — no guessing about what "done" means.
Session continuity: When .planning/.continue-here.md exists, Claude reads it at session start and resumes where the last session left off. STATE.md tracks decisions and blockers across sessions.
Wave-based parallel execution: Plans in the same wave with non-overlapping files can run in parallel via multiple agents. After all agents complete, a single build verification confirms everything works together.
Integration with superpowers skills: init-planning creates project-level structure; superpowers skills (brainstorming, writing-plans, dispatching-parallel-agents, etc.) handle task-level execution within that structure.
How Hooks Work
Claude Code hooks are shell scripts that run at specific points in the tool lifecycle. They read JSON from stdin and control execution via exit codes:
| Hook Event | When It Runs | Scripts |
|------------|-------------|---------|
| PreToolUse | Before a tool executes | validate-bash.sh (Bash), protect-files.sh (Write/Edit) |
| PostToolUse | After a tool executes | scan-secrets.sh (Write/Edit), auto-format.sh (Write/Edit) |
| SessionStart | When a session begins | session-check.sh |
Exit codes control execution:
| Exit Code | Meaning |
|-----------|---------|
| 0 | Allow — tool proceeds |
| 1 | Soft block — Claude sees error, may retry |
| 2 | Hard block — tool execution denied |
The hooks are registered in .claude/settings.json (committed to git, shared with team). The settings.local.json (per-user permission allow-list) is NOT committed.
Hook Reference
| Hook | Trigger | Blocking? | What It Does |
|------|---------|-----------|-------------|
| validate-bash.sh | PreToolUse (Bash) | Yes (exit 2) | Blocks rm -rf, force push, git reset --hard, git checkout main, git clean -f. Validates branch names and commit messages. Gates commits behind build-check.sh. Warns on large diffs (>30 files or >1000 lines). Blocks Bash file writes (cp, mv, tee, redirects) to sensitive paths. |
| protect-files.sh | PreToolUse (Write/Edit) | Yes (exit 2) | Blocks writes to .env, credentials.json, secrets.yaml, *.key, *.pem. Blocks writes outside the project directory. Allows .claude/ paths. |
| build-check.sh | Called by validate-bash.sh | Yes (exit 1) | Auto-detects stack (Node, Rust, Go, Python, Xcode) and runs the appropriate build + test commands. Only runs on git commit. |
| scan-secrets.sh | PostToolUse (Write/Edit) | No (exit 0) | Scans written files for API keys, tokens, private keys, JWTs, and hardcoded secret assignments. Warns but never blocks. |
| session-check.sh | SessionStart | No (exit 0) | Verifies hooks directory, CLAUDE.md, and all 6 hook scripts exist and are executable. Suggests /audit-project if anything is missing. |
| auto-format.sh | PostToolUse (Write/Edit) | No (exit 0) | Runs available formatters: prettier (JS/TS), ruff or black (Python), rustfmt (Rust), swiftformat (Swift), gofmt (Go). Silently skips if formatter not installed. |
Supported Stacks
The build-check hook auto-detects your stack and runs the right commands:
| Stack | Build Command | Test Command |
|-------|--------------|-------------|
| Node/TS | npm run build | npm test |
| Python | python -m py_compile | pytest |
| Rust | cargo build | cargo test |
| Go | go build ./... | go test ./... |
|
Related Skills
node-connect
337.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.1kCommit, push, and open a PR
