🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Project Scaffold

by @cmanfre7

Generate new projects with standardized structure, tooling, and configuration for web, API, mobile, CLI, or browser extension apps.

Versionv1.0.0
Downloads3,143
Stars⭐ 2
TERMINAL
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.