From claude-code-project-bootstrap
Use when user wants to set up a new project from scratch with Claude Code guardrails, GitHub repo, README, hooks, and git workflow. Triggered by /bootstrap command.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-project-bootstrap:bootstrapThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are bootstrapping a project for Claude Code development. Follow every step below in order. Do NOT skip steps. Ask the user when input is needed.
You are bootstrapping a project for Claude Code development. Follow every step below in order. Do NOT skip steps. Ask the user when input is needed.
REQUIRED REFERENCE: Read the full claude-code-project-bootstrap skill for hook scripts, templates, and patterns. This command is the execution flow — that skill is the knowledge base.
Ask the user (use AskUserQuestion with up to 4 questions):
If $ARGUMENTS is provided, infer what you can and only ask what's missing.
Check current state and act accordingly:
IF no .git directory:
→ git init
IF no GitHub remote:
→ gh repo create <name> --<visibility> --source=. --push --description "<desc>"
IF already has repo + remote:
→ Skip, confirm to user
If no .gitignore exists, create one. Always include:
# Claude Code
.claude/settings.local.json
# Secrets
.env
.env.*
*.key
*.pem
# OS
.DS_Store
Thumbs.db
Add stack-specific entries based on Step 1 answer:
node_modules/, dist/, .next/, coverage/__pycache__/, *.pyc, .venv/, *.egg-info/target/, Cargo.lock (if library)bin/, vendor/ (if not using modules)build/, DerivedData/, *.xcuserdata/If no README.md exists, generate one with:
If README exists, skip. Do NOT overwrite an existing README.
Create .claude/hooks/ with six scripts from the claude-code-project-bootstrap skill:
Make all executable: chmod +x .claude/hooks/*.sh
Create .claude/settings.json with:
Do NOT create or modify settings.local.json — that's user-specific.
Generate a CLAUDE.md tailored to the project:
git add .gitignore README.md CLAUDE.md .claude/hooks/ .claude/settings.json
git commit -m "chore(infra): bootstrap project with Claude Code hooks and workflow"
git push -u origin main
After setup, explain the three permission levels from the claude-code-project-bootstrap skill:
~/.claude/ (memory, plans); reads anywhere; destructive Bash commands and writes outside the project still prompt for approval~/.ssh, ~/.aws, ~/.gnupgExplain the risks of full auto-accept (unrestricted file access, bash commands run without confirmation, only deny-listed paths are protected). Recommend Balanced for most users.
Let the user choose. Do NOT create settings.local.json — just print the JSON so they can decide.
Print a summary:
npx claudepluginhub damoli1103/claude-code-project-bootstrap --plugin claude-code-project-bootstrapBootstraps new projects interactively (Node/TS scripted, others manual) or adds enforcement tooling (TDD, secret scanning, file limits, git hooks, CLAUDE.md) to existing projects.
Interactive wizard configures repositories for Claude Code best practices by creating CLAUDE.md, slash commands, agents, hooks, and permissions. Activates on 'setup claude', 'init claude', or repo setup requests.
Initializes new Python, Rust, or TypeScript projects interactively with git repo, GitHub workflows, pre-commit hooks, Makefile, and standard configs. Updates existing projects too.