Project Bootstrap
Automated setup skill for bootstrapping Claude Code in any project. Detects whether you're in a greenfield or brownfield project, identifies the tech stack, copies relevant skills from your skill library, and creates specialized engineer agents.
Configuration
This skill uses hardcoded paths for personal use:
- Skill Library:
C:\Users\coper\Documents\GitHub\agent-skills\skills
- Unpack Destination:
.claude/skills/ in the current project
Workflow
Phase 1: Project Detection
- Check if
.claude/ exists (indicates brownfield with some setup)
- Check for common project files:
package.json, pyproject.toml, go.mod, Cargo.toml, etc.
- If no project files found → greenfield project
- If project files found → brownfield project
Phase 2: Information Gathering
For Greenfield Projects:
- Search for README.md, specs, or planning documents
- If found, extract project intent from those files
- If not found or unclear, use AskUserQuestion to interview user about:
- What are you building?
- Primary language/framework?
- Backend, frontend, or full-stack?
- Any specific libraries or tools needed?
For Brownfield Projects:
- Spawn Explore sub-agent to analyze codebase (stack, structure, patterns)
- Spawn Explore sub-agent to check existing
.claude/ setup (agents, skills, commands)
- Wait for both reports before proceeding
Phase 3: Skill Selection
- Read
references/skill-categories.md for available skills mapping
- Match project stack to relevant skills using keyword matching
- Always include
best-practices skill if available
- Present selections to user via AskUserQuestion for confirmation
- User can add/remove skills from the selection
Phase 4: Skill Deployment
- Create
.claude/skills/ directory if needed
- Copy selected
.skill files from skill library
- Unpack each skill (extract zip to folder, delete .skill file)
- Verify unpacked structure (SKILL.md exists)
Phase 5: Agent Creation
Automatically create agents without further confirmation (per user preference).
CRITICAL: Agent Prompt Quality
Each agent must have a rich, comprehensive system prompt following the agent creation architect framework. DO NOT create basic or minimal prompts. Each agent prompt should include:
- Expert Persona: A compelling identity with deep domain knowledge
- Core Intent: Clear purpose and success criteria
- Comprehensive Instructions: Methodologies, best practices, edge case handling
- Decision Frameworks: How to approach choices and trade-offs
- Quality Control: Self-verification steps and output expectations
- Workflow Patterns: Step-by-step process for task execution
Agent Types to Create:
Engineer Agents (1-3 based on stack):
- Create stack-specific engineers (e.g.,
typescript-engineer, python-engineer)
- Include best-practices skill reference
- Include relevant library skills
- Use rich prompts from
references/agent-templates.md
Code Quality Agents:
- Create
code-quality agent for the primary language
- Include linting/formatting skills (biome, ruff, etc.)
- Include best-practices skill
- Define clear quality checklist and verification steps
Library-Specific Agents (if applicable):
- Create agents for major frameworks (react, angular, express, etc.)
- Only if corresponding skill was copied
- Keep minimal (don't create agent for every skill)
- Include framework-specific patterns and best practices
See references/agent-templates.md for comprehensive agent creation patterns with rich prompts.
Phase 6: Validation & Summary
- Run
scripts/validate_setup.py to check all skills and agents
- Report any issues found
- Print summary of what was set up:
- Skills copied and unpacked
- Agents created
- Any issues or warnings
Decision Framework
When to Ask vs. Automate
| Situation |
Action |
| Greenfield with no specs |
Ask about project intent |
| Skill selection |
Always confirm with user |
| Agent creation |
Fully automatic |
| Unclear stack |
Ask for clarification |
| Multiple valid approaches |
Ask for preference |
Stack Detection Keywords
| Keyword |
Skills to Suggest |
typescript, javascript |
typescript-best-practices, biome, vite |
react |
react-19, react-ecosystem skills |
python |
python-best-practices, ruff-dev, pytest |
go |
go-best-practices |
rust |
rust-dev |
angular |
angular skill |
fastapi |
fastapi skill |
express |
express skill |
Scripts
scripts/validate_setup.py
Validates all unpacked skills and agents in .claude/:
- Checks SKILL.md exists in each skill folder
- Validates agent YAML frontmatter
- Reports missing or malformed files
scripts/unpack_skill.py
Unpacks a .skill file to a directory:
python scripts/unpack_skill.py <source.skill> <destination-dir>
References
- references/skill-categories.md - Complete mapping of skill library categories and stacks
- references/agent-templates.md - Templates for creating engineer and quality agents
1---2name: project-bootstrap3description: Bootstrap Claude Code setup for greenfield (new) or brownfield (existing) projects. Automatically detects project type, copies relevant skills from your skill library, and creates engineer agents with best practices skills. Use when starting work on a new project or wanting to upgrade an existing project's Claude Code setup with skills and agents.4---56# Project Bootstrap78Automated setup skill for bootstrapping Claude Code in any project. Detects whether you're in a greenfield or brownfield project, identifies the tech stack, copies relevant skills from your skill library, and creates specialized engineer agents.910## Configuration1112This skill uses hardcoded paths for personal use:13- **Skill Library**: `C:\Users\coper\Documents\GitHub\agent-skills\skills`14- **Unpack Destination**: `.claude/skills/` in the current project1516## Workflow1718### Phase 1: Project Detection19201. Check if `.claude/` exists (indicates brownfield with some setup)212. Check for common project files: `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, etc.223. If no project files found → **greenfield project**234. If project files found → **brownfield project**2425### Phase 2: Information Gathering2627**For Greenfield Projects:**281. Search for README.md, specs, or planning documents292. If found, extract project intent from those files303. If not found or unclear, use AskUserQuestion to interview user about:31 - What are you building?32 - Primary language/framework?33 - Backend, frontend, or full-stack?34 - Any specific libraries or tools needed?3536**For Brownfield Projects:**371. Spawn Explore sub-agent to analyze codebase (stack, structure, patterns)382. Spawn Explore sub-agent to check existing `.claude/` setup (agents, skills, commands)393. Wait for both reports before proceeding4041### Phase 3: Skill Selection42431. Read `references/skill-categories.md` for available skills mapping442. Match project stack to relevant skills using keyword matching453. Always include `best-practices` skill if available464. Present selections to user via AskUserQuestion for confirmation475. User can add/remove skills from the selection4849### Phase 4: Skill Deployment50511. Create `.claude/skills/` directory if needed522. Copy selected `.skill` files from skill library533. Unpack each skill (extract zip to folder, delete .skill file)544. Verify unpacked structure (SKILL.md exists)5556### Phase 5: Agent Creation5758Automatically create agents without further confirmation (per user preference).5960**CRITICAL: Agent Prompt Quality**6162Each agent must have a rich, comprehensive system prompt following the agent creation architect framework. DO NOT create basic or minimal prompts. Each agent prompt should include:63641. **Expert Persona**: A compelling identity with deep domain knowledge652. **Core Intent**: Clear purpose and success criteria663. **Comprehensive Instructions**: Methodologies, best practices, edge case handling674. **Decision Frameworks**: How to approach choices and trade-offs685. **Quality Control**: Self-verification steps and output expectations696. **Workflow Patterns**: Step-by-step process for task execution7071**Agent Types to Create:**7273**Engineer Agents (1-3 based on stack):**74- Create stack-specific engineers (e.g., `typescript-engineer`, `python-engineer`)75- Include best-practices skill reference76- Include relevant library skills77- Use rich prompts from `references/agent-templates.md`7879**Code Quality Agents:**80- Create `code-quality` agent for the primary language81- Include linting/formatting skills (biome, ruff, etc.)82- Include best-practices skill83- Define clear quality checklist and verification steps8485**Library-Specific Agents (if applicable):**86- Create agents for major frameworks (react, angular, express, etc.)87- Only if corresponding skill was copied88- Keep minimal (don't create agent for every skill)89- Include framework-specific patterns and best practices9091See `references/agent-templates.md` for comprehensive agent creation patterns with rich prompts.9293### Phase 6: Validation & Summary94951. Run `scripts/validate_setup.py` to check all skills and agents962. Report any issues found973. Print summary of what was set up:98 - Skills copied and unpacked99 - Agents created100 - Any issues or warnings101102## Decision Framework103104### When to Ask vs. Automate105106| Situation | Action |107|-----------|--------|108| Greenfield with no specs | Ask about project intent |109| Skill selection | Always confirm with user |110| Agent creation | Fully automatic |111| Unclear stack | Ask for clarification |112| Multiple valid approaches | Ask for preference |113114### Stack Detection Keywords115116| Keyword | Skills to Suggest |117|---------|------------------|118| `typescript`, `javascript` | typescript-best-practices, biome, vite |119| `react` | react-19, react-ecosystem skills |120| `python` | python-best-practices, ruff-dev, pytest |121| `go` | go-best-practices |122| `rust` | rust-dev |123| `angular` | angular skill |124| `fastapi` | fastapi skill |125| `express` | express skill |126127## Scripts128129### scripts/validate_setup.py130131Validates all unpacked skills and agents in `.claude/`:132- Checks SKILL.md exists in each skill folder133- Validates agent YAML frontmatter134- Reports missing or malformed files135136### scripts/unpack_skill.py137138Unpacks a .skill file to a directory:139```bash140python scripts/unpack_skill.py <source.skill> <destination-dir>141```142143## References144145- **references/skill-categories.md** - Complete mapping of skill library categories and stacks146- **references/agent-templates.md** - Templates for creating engineer and quality agents