Project Scaffold
by @cmanfre7
Generate new projects with standardized structure, tooling, and configuration for web, API, mobile, CLI, or browser extension apps.
clawhub install project-scaffoldπ About This Skill
project-scaffold
Scaffold new projects with best-practice structure, tooling, and configuration.
Usage
When Colt (or you) needs to start a new project, use this skill to generate the full boilerplate.
Decision Tree
Ask or infer the project type:
Web App (React / Next.js)
my-app/
βββ src/
β βββ app/ # Next.js app router
β βββ components/ # Reusable UI components
β βββ lib/ # Utilities, helpers, API clients
β βββ styles/ # Global styles, Tailwind config
β βββ types/ # TypeScript type definitions
βββ public/ # Static assets
βββ tests/ # Test files
βββ .gitignore
βββ .eslintrc.json
βββ tailwind.config.ts
βββ tsconfig.json
βββ package.json
βββ README.md
Init commands:
npx create-next-app@latest my-app --typescript --tailwind --eslint --app --src-dir
cd my-app && npm install
API / Backend (FastAPI)
my-api/
βββ app/
β βββ __init__.py
β βββ main.py # FastAPI app entry
β βββ routers/ # Route modules
β βββ models/ # Pydantic models / DB models
β βββ services/ # Business logic
β βββ config.py # Settings / env vars
βββ tests/
βββ .gitignore
βββ pyproject.toml
βββ requirements.txt
βββ README.md
Init commands:
mkdir my-api && cd my-api
uv init && uv pip install fastapi uvicorn
Mobile App (SwiftUI)
MyApp/
βββ MyApp/
β βββ App.swift
β βββ ContentView.swift
β βββ Models/
β βββ Views/
β βββ ViewModels/
β βββ Services/
βββ MyAppTests/
βββ MyAppUITests/
βββ README.md
Init: Use Xcode or swift package init --type executable
CLI Tool (Node / Python)
my-cli/
βββ src/
β βββ index.ts # Entry point
βββ bin/
β βββ my-cli # Executable wrapper
βββ tests/
βββ .gitignore
βββ tsconfig.json
βββ package.json
βββ README.md
Browser Extension
my-extension/
βββ src/
β βββ background.ts
β βββ content.ts
β βββ popup/
β β βββ popup.html
β β βββ popup.ts
β β βββ popup.css
β βββ options/
βββ icons/
βββ manifest.json
βββ .gitignore
βββ tsconfig.json
βββ package.json
βββ README.md
Post-Scaffold Checklist
After generating structure:
1. git init && git add -A && git commit -m "Initial scaffold"
2. Create .gitignore appropriate to the project type
3. Set up linting config (ESLint / Ruff)
4. Add a basic README with project name and setup instructions
5. Add a basic test file to verify the test runner works
Asset Templates
.gitignore (universal base)
node_modules/
__pycache__/
.env
.env.local
dist/
build/
.next/
*.pyc
.DS_Store
*.log
coverage/
π‘ Examples
When Colt (or you) needs to start a new project, use this skill to generate the full boilerplate.