Starter Project Generator
Tip: For a full app launch workflow with staged build plans and agent team assignments, use /launch-app instead. This skill is for quick scaffolding without detailed planning.
Instructions
IMPORTANT: Execute immediately. If the user provided a category argument, start building. If not, ask the user to choose a template using AskUserQuestion - do NOT print a menu and wait.
Parse arguments:
$1 = category: saas, api, components, cli, ecommerce, game
$2 = project name (if not provided, ask the user)
If no category was provided, use AskUserQuestion to ask which template they want:
- SaaS Web App - Full-stack Next.js with auth and dashboard
- API Service - Node.js REST API with testing
- Component Library - React components with Storybook
- CLI Tool - Command-line application
- E-Commerce Store - Next.js store with Stripe integration
- Browser Game - Canvas/Phaser game
Once you have category and name, proceed immediately to Step 1.
Step 1: Set Up Template Configuration
Based on the category, determine tech stack and which agents to copy:
| Category |
Tech Stack |
Agents |
| saas |
Next.js 14, TypeScript, Tailwind, NextAuth, Drizzle |
All |
| api |
Node.js, Express, TypeScript, Vitest |
explore/*, plan/architecture-planner, implement/api-developer, implement/test-writer, implement/debugger |
| components |
React, TypeScript, Storybook, Vitest, CSS Modules |
explore/pattern-finder, plan/feature-planner, implement/component-builder, implement/test-writer, design/ui-ux-designer |
| cli |
Node.js, TypeScript, Commander.js, Vitest |
explore/pattern-finder, implement/test-writer, implement/debugger |
| ecommerce |
Next.js 14, TypeScript, Stripe, Drizzle |
All |
| game |
TypeScript, Phaser.js, Vite |
explore/codebase-explorer, implement/component-builder, implement/debugger, design/ui-ux-designer |
Step 2: Select CLAUDE.md Template
Map category to template file:
- saas/ecommerce →
templates/claude-md/nextjs-app.md
- api →
templates/claude-md/api-service.md
- components →
templates/claude-md/node-library.md
- cli →
templates/claude-md/cli-tool.md
- game →
templates/claude-md/game-browser.md
Step 3: Create Project Directory
PROJECT_NAME=$(echo "$PROJECT_NAME" | tr '[:upper:]' '[:lower:]' | tr '_' '-' | tr ' ' '-')
TARGET_DIR="../$PROJECT_NAME"
if [ -d "$TARGET_DIR" ]; then
echo "❌ Directory already exists: $TARGET_DIR"
exit 1
fi
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR" || exit 1
git init -q
echo "✓ Created project directory and initialized git"
Step 4: Copy Agents and Skills
Copy agents from ~/.claude/agents/ to .claude/agents/ based on the agent list for this category (from Step 1).
Copy these workflow skills from ~/.claude/skills/ to .claude/skills/:
- Core:
ship, verify-work, organize-commits, track-progress
- Development:
create-plan, plan-status, generate-tests, performance-check
- Git:
worktree-create, worktree-sync, worktree-cleanup
Step 5: Phase 1 - Setup & Planning
Create plans/active directory
Invoke /create-plan using the Skill tool with name "getting-started" and template "guide"
Use the Task tool to invoke architecture-planner agent: "Design a [TEMPLATE_NAME] project called [PROJECT_NAME] with tech stack: [TECH_STACK]. Include: project structure, data models (if applicable), API endpoints, component hierarchy"
Step 6: Phase 2 - Design
Invoke both agents in parallel using the Task tool in a single message:
ui-ux-designer - "Create a design system for [PROJECT_NAME] ([TEMPLATE_NAME]) with: professional color palette (not AI-generic), typography scale, spacing system, component designs for Button/Input/Card, layout structure appropriate for [TEMPLATE_NAME]"
feature-planner - "Plan the initial features for [PROJECT_NAME] ([TEMPLATE_NAME]). Break down into small tasks for the getting-started plan. Map each task to the appropriate agent"
Step 7: Phase 3 - Implementation
Generate base configuration files (package.json, tsconfig.json, etc.) based on the category
Create CLAUDE.md from the template selected in Step 2:
- Copy template, replace placeholders ([Project Name], etc.) with actual values
- Fill in tech stack, update project structure, add category-specific patterns
- Follow quality standards from
docs/best-practices/claude-md-authoring.md
Use the Task tool to invoke api-developer agent: "Create initial API endpoints for [PROJECT_NAME]: health check at /api/health, auth endpoints (if applicable), one CRUD resource, include Zod validation and error handling"
Use the Task tool to invoke component-builder agent: "Build UI components for [PROJECT_NAME]: apply the design system, include TypeScript props, add accessibility features, create loading/error states, build Button/Input/Card and layout components"
Step 8: Phase 4 - Testing & Quality
Use the Task tool to invoke test-writer agent: "Create comprehensive tests for [PROJECT_NAME]: API endpoint tests, UI component tests, utility tests"
Invoke /generate-tests using the Skill tool to fill any remaining coverage gaps
Invoke both in parallel using the Skill tool in a single message:
/verify-work - validate code quality and security
/performance-check - identify performance issues
Fix any blocking issues found.
Step 9: Phase 5 - Verification
Invoke three agents in parallel using the Task tool in a single message:
- codebase-explorer - verify project structure matches the architecture design
- dependency-analyzer - validate all dependencies are correct
- pattern-finder - ensure code patterns are consistent
Step 10: Phase 6 - Ship
Invoke /organize-commits using the Skill tool to create logical commit history:
chore: initial project setup
feat(db): add database schema (if applicable)
feat(api): add API endpoints
feat(ui): add design system and components
test: add comprehensive test coverage
docs: add CLAUDE.md and README
Invoke /track-progress using the Skill tool to record the generation
Step 11: Display Results
echo "================================================================"
echo "✅ Successfully created [TEMPLATE_NAME]: [PROJECT_NAME]"
echo "================================================================"
echo ""
echo "📁 Location: $TARGET_DIR"
echo "📋 Getting-started plan: plans/active/getting-started/plan.md"
echo ""
echo "🎯 Agents used: architecture-planner, ui-ux-designer, api-developer,"
echo " component-builder, test-writer, codebase-explorer, dependency-analyzer,"
echo " pattern-finder, feature-planner"
echo ""
echo "Next steps:"
echo " 1. cd ../$PROJECT_NAME"
echo " 2. npm install"
echo " 3. npm run dev"
echo ""
echo "💡 Commands:"
echo " /plan-status - View your getting-started plan"
echo " /worktree-create - Parallel feature development"
echo " /ship - End-of-session workflow"
Template Reference
| Category |
Template |
Tech Stack |
| saas |
SaaS Web App |
Next.js 14, TypeScript, Tailwind, NextAuth, Drizzle |
| api |
API Service |
Node.js, Express, TypeScript, Vitest |
| components |
Component Library |
React, TypeScript, Storybook, Vitest, CSS Modules |
| cli |
CLI Tool |
Node.js, TypeScript, Commander.js, Vitest |
| ecommerce |
E-Commerce Store |
Next.js 14, TypeScript, Stripe, Drizzle |
| game |
Browser Game |
TypeScript, Phaser.js, Vite |
What Gets Created
All projects include:
- CLAUDE.md - Generated from template following best practices
- .claude/agents/ - Relevant agents for the project type
- .claude/skills/ - Development workflow skills
- plans/active/getting-started/ - Initial development plan
- README.md - Setup and development instructions
- Git repository - Initialized with logical commit history
Tips
- Choose the right template: Match your project type to get relevant agents
- Review the plan: Each template includes suggested first features
- Explore the agents: Check
.claude/agents/ to see what's available
- Use the skills: Workflow skills help maintain code quality
- Customize freely: The generated project is yours to modify
1---2name: starter-project3description: Generate starter projects pre-configured with Claude Code agents and skills. Choose from SaaS app, API service, component library, CLI tool, e-commerce, or browser game templates.4---56# Starter Project Generator78> **Tip:** For a full app launch workflow with staged build plans and agent team assignments, use `/launch-app` instead. This skill is for quick scaffolding without detailed planning.910## Instructions1112**IMPORTANT: Execute immediately. If the user provided a category argument, start building. If not, ask the user to choose a template using AskUserQuestion - do NOT print a menu and wait.**1314Parse arguments:15- `$1` = category: `saas`, `api`, `components`, `cli`, `ecommerce`, `game`16- `$2` = project name (if not provided, ask the user)1718If no category was provided, use AskUserQuestion to ask which template they want:19- **SaaS Web App** - Full-stack Next.js with auth and dashboard20- **API Service** - Node.js REST API with testing21- **Component Library** - React components with Storybook22- **CLI Tool** - Command-line application23- **E-Commerce Store** - Next.js store with Stripe integration24- **Browser Game** - Canvas/Phaser game2526Once you have category and name, proceed immediately to Step 1.2728---2930### Step 1: Set Up Template Configuration3132Based on the category, determine tech stack and which agents to copy:3334| Category | Tech Stack | Agents |35|----------|-----------|--------|36| saas | Next.js 14, TypeScript, Tailwind, NextAuth, Drizzle | All |37| api | Node.js, Express, TypeScript, Vitest | explore/*, plan/architecture-planner, implement/api-developer, implement/test-writer, implement/debugger |38| components | React, TypeScript, Storybook, Vitest, CSS Modules | explore/pattern-finder, plan/feature-planner, implement/component-builder, implement/test-writer, design/ui-ux-designer |39| cli | Node.js, TypeScript, Commander.js, Vitest | explore/pattern-finder, implement/test-writer, implement/debugger |40| ecommerce | Next.js 14, TypeScript, Stripe, Drizzle | All |41| game | TypeScript, Phaser.js, Vite | explore/codebase-explorer, implement/component-builder, implement/debugger, design/ui-ux-designer |4243---4445### Step 2: Select CLAUDE.md Template4647Map category to template file:48- saas/ecommerce → `templates/claude-md/nextjs-app.md`49- api → `templates/claude-md/api-service.md`50- components → `templates/claude-md/node-library.md`51- cli → `templates/claude-md/cli-tool.md`52- game → `templates/claude-md/game-browser.md`5354---5556### Step 3: Create Project Directory5758```bash59PROJECT_NAME=$(echo "$PROJECT_NAME" | tr '[:upper:]' '[:lower:]' | tr '_' '-' | tr ' ' '-')60TARGET_DIR="../$PROJECT_NAME"6162if [ -d "$TARGET_DIR" ]; then63 echo "❌ Directory already exists: $TARGET_DIR"64 exit 165fi6667mkdir -p "$TARGET_DIR"68cd "$TARGET_DIR" || exit 169git init -q70echo "✓ Created project directory and initialized git"71```7273---7475### Step 4: Copy Agents and Skills7677Copy agents from `~/.claude/agents/` to `.claude/agents/` based on the agent list for this category (from Step 1).7879Copy these workflow skills from `~/.claude/skills/` to `.claude/skills/`:80- Core: `ship`, `verify-work`, `organize-commits`, `track-progress`81- Development: `create-plan`, `plan-status`, `generate-tests`, `performance-check`82- Git: `worktree-create`, `worktree-sync`, `worktree-cleanup`8384---8586### Step 5: Phase 1 - Setup & Planning87881. Create `plans/active` directory89902. **Invoke `/create-plan`** using the Skill tool with name "getting-started" and template "guide"91923. Use the Task tool to invoke **architecture-planner** agent: "Design a [TEMPLATE_NAME] project called [PROJECT_NAME] with tech stack: [TECH_STACK]. Include: project structure, data models (if applicable), API endpoints, component hierarchy"9394---9596### Step 6: Phase 2 - Design9798**Invoke both agents in parallel** using the Task tool in a single message:991001. **ui-ux-designer** - "Create a design system for [PROJECT_NAME] ([TEMPLATE_NAME]) with: professional color palette (not AI-generic), typography scale, spacing system, component designs for Button/Input/Card, layout structure appropriate for [TEMPLATE_NAME]"1011022. **feature-planner** - "Plan the initial features for [PROJECT_NAME] ([TEMPLATE_NAME]). Break down into small tasks for the getting-started plan. Map each task to the appropriate agent"103104---105106### Step 7: Phase 3 - Implementation1071081. Generate base configuration files (package.json, tsconfig.json, etc.) based on the category1091102. Create CLAUDE.md from the template selected in Step 2:111 - Copy template, replace placeholders ([Project Name], etc.) with actual values112 - Fill in tech stack, update project structure, add category-specific patterns113 - Follow quality standards from `docs/best-practices/claude-md-authoring.md`1141153. Use the Task tool to invoke **api-developer** agent: "Create initial API endpoints for [PROJECT_NAME]: health check at /api/health, auth endpoints (if applicable), one CRUD resource, include Zod validation and error handling"1161174. Use the Task tool to invoke **component-builder** agent: "Build UI components for [PROJECT_NAME]: apply the design system, include TypeScript props, add accessibility features, create loading/error states, build Button/Input/Card and layout components"118119---120121### Step 8: Phase 4 - Testing & Quality1221231. Use the Task tool to invoke **test-writer** agent: "Create comprehensive tests for [PROJECT_NAME]: API endpoint tests, UI component tests, utility tests"1241252. **Invoke `/generate-tests`** using the Skill tool to fill any remaining coverage gaps1261273. **Invoke both in parallel** using the Skill tool in a single message:128 - `/verify-work` - validate code quality and security129 - `/performance-check` - identify performance issues130131Fix any blocking issues found.132133---134135### Step 9: Phase 5 - Verification136137**Invoke three agents in parallel** using the Task tool in a single message:1381391. **codebase-explorer** - verify project structure matches the architecture design1402. **dependency-analyzer** - validate all dependencies are correct1413. **pattern-finder** - ensure code patterns are consistent142143---144145### Step 10: Phase 6 - Ship1461471. **Invoke `/organize-commits`** using the Skill tool to create logical commit history:148 - `chore: initial project setup`149 - `feat(db): add database schema` (if applicable)150 - `feat(api): add API endpoints`151 - `feat(ui): add design system and components`152 - `test: add comprehensive test coverage`153 - `docs: add CLAUDE.md and README`1541552. **Invoke `/track-progress`** using the Skill tool to record the generation156157---158159### Step 11: Display Results160161```bash162echo "================================================================"163echo "✅ Successfully created [TEMPLATE_NAME]: [PROJECT_NAME]"164echo "================================================================"165echo ""166echo "📁 Location: $TARGET_DIR"167echo "📋 Getting-started plan: plans/active/getting-started/plan.md"168echo ""169echo "🎯 Agents used: architecture-planner, ui-ux-designer, api-developer,"170echo " component-builder, test-writer, codebase-explorer, dependency-analyzer,"171echo " pattern-finder, feature-planner"172echo ""173echo "Next steps:"174echo " 1. cd ../$PROJECT_NAME"175echo " 2. npm install"176echo " 3. npm run dev"177echo ""178echo "💡 Commands:"179echo " /plan-status - View your getting-started plan"180echo " /worktree-create - Parallel feature development"181echo " /ship - End-of-session workflow"182```183184---185186## Template Reference187188| Category | Template | Tech Stack |189|----------|----------|-----------|190| saas | SaaS Web App | Next.js 14, TypeScript, Tailwind, NextAuth, Drizzle |191| api | API Service | Node.js, Express, TypeScript, Vitest |192| components | Component Library | React, TypeScript, Storybook, Vitest, CSS Modules |193| cli | CLI Tool | Node.js, TypeScript, Commander.js, Vitest |194| ecommerce | E-Commerce Store | Next.js 14, TypeScript, Stripe, Drizzle |195| game | Browser Game | TypeScript, Phaser.js, Vite |196197## What Gets Created198199All projects include:200- **CLAUDE.md** - Generated from template following best practices201- **.claude/agents/** - Relevant agents for the project type202- **.claude/skills/** - Development workflow skills203- **plans/active/getting-started/** - Initial development plan204- **README.md** - Setup and development instructions205- **Git repository** - Initialized with logical commit history206207## Tips208209- **Choose the right template**: Match your project type to get relevant agents210- **Review the plan**: Each template includes suggested first features211- **Explore the agents**: Check `.claude/agents/` to see what's available212- **Use the skills**: Workflow skills help maintain code quality213- **Customize freely**: The generated project is yours to modify