/tooling:new-projectfrom tooling
Scaffold a new project from a natural-language description. Infers the best 2026 tech stack from the description (or asks when ambiguous), runs the canonical scaffolding command (uv init / bun create / cargo new / flutter create / sv create / create-next-app / etc.), writes a type-appropriate README and stack-specific .gitignore, creates an initial commit, and optionally creates a GitHub repo. Use WHENEVER the user says /new-project, "create a new project", "scaffold a project", "start a new repo", "bootstrap a project", "new Rust/Python/Next/React/Flutter project", or describes something they want to build from scratch. Triggers on - /new-project, new project, scaffold, bootstrap, spin up a project, start a repo, create a repo, make me a project, initialize a project, generate a project skeleton.
Ships in tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pipeline: Clarify → Decide → Safety-check → Scaffold → Customize → [GitHub] → Report.
Everything runs inline — no subagents. Scaffolding is fast, sequential, deterministic.
BUN_INSTALL~/projects/NAME (matches goto tmux switcher convention).envrc stub for projects needing env varsTomasPalsson/sst skill — do not duplicate SST knowledge here.new-project binary exists but this skill supersedes it (TUI cannot be driven non-interactively)Read $ARGUMENTS for free-form description and optional flags (--name, --stack, --dir, --no-github, --dry-run).
Check .claude/workflow-state.local.md. If it exists with type: new-project, resume from the first incomplete phase. Otherwise proceed.
Classify unknowns as load-bearing vs cosmetic.
| Assumption | Load-bearing? |
|---|---|
| Project name | YES — directory name, package name, repo name |
| Stack | YES — different scaffolding commands |
Location (if not ~/projects/NAME) | YES — hard to undo |
| GitHub intent + visibility | YES — gh repo create can't be undone |
| Template variant (e.g., Vite react vs react-swc) | No — cosmetic |
| License | No — add later |
| README description text | No — editable |
Stack inference — if description unambiguously names a stack or type, SKIP asking stack:
Use the signal table in references/stack-decisions.md. Common high-confidence signals:
cargo new --binuv init (+ --package if CLI)bun create next-appbun create vite ... --template react-tsnpx sv createnpm create astro@latestflutter create --template=skeletonbun create hono/sst skill/sstIf the description is truly ambiguous between two stacks (e.g., "backend API" without language context), ASK. Do not guess.
If description is vague enough to need clarification, ask all load-bearing unknowns in ONE batched message — never sequential wizard:
Before I scaffold this, a few things to confirm:
- Project name:
<inferred>? (or what would you prefer)- Stack:
<inferred>? (or different)- Location:
~/projects/<name>? (or current dir / specify)- GitHub: create a private repo after scaffolding, or skip?
Anything else I should know?
Skip this gate when the user said "just do it" / "go" / "you decide" OR the description is fully explicit. In that case, show the Pre-Execution Summary (Stage 3) instead.
Read references/scaffold-commands.md in full before proceeding. Do not guess commands from memory — the 2026 syntax differs from older tutorials for nearly every tool.
Also load references/stack-decisions.md IF the description didn't already unambiguously name a stack at Stage 1. Do NOT load if the stack was explicit — skip straight to scaffold-commands.md.
For the chosen stack, determine:
scaffold-commands.mduv init defaults to flat; for a CLI use --package so you get src/ layout + [project.scripts] entry.git — cargo new and uv init do; bun create typically does notBefore touching the filesystem, show:
About to create:
Name: <name>
Stack: <stack + exact command>
Location: <abs path>
GitHub: <private|public|skip>
Steps:
1. <scaffold command>
2. Write README.md, .gitignore (stack-specific), .env.example (if needed), .envrc (if needed), CLAUDE.md (minimal)
3. git init -b main (if not already) + initial commit (Conventional Commits)
4. [GitHub step — separate HARD GATE]
Proceed?
Skip this if the user already explicitly approved ("go", "just do it"). Never skip if any load-bearing value was inferred silently.
HARD GATE — Directory existence:
test -d "<TARGET_DIR>" && echo EXISTS
If it exists: ABORT. Do not overwrite. Tell the user to pick a different name or remove the existing directory.
Run the scaffold command (exact syntax already loaded from scaffold-commands.md at Stage 2). Keep the command inline in the Bash call — do not generate scripts.
Error recovery — common scaffold failures:
| Symptom | Cause | Recovery |
|---|---|---|
command not found: bun / uv / cargo / flutter | Tool not installed | Tell user which tool to install (curl -fsSL https://bun.sh/install | bash, curl -LsSf https://astral.sh/uv/install.sh | sh, etc.). Do NOT proceed. |
fatal: empty ident name on git commit | Git user not configured | Run git config user.name / user.email check first; if missing, abort and tell user to set globally |
| Scaffold command exits non-zero, partial dir exists | Network, permission, or tool bug | rm -rf "<TARGET_DIR>" — rollback. Report exact command + stderr. |
gh: To get started with GitHub CLI, please run: gh auth login (Stage 6 only) | Not authenticated | Abort Stage 6. Tell user to run gh auth login. Keep the local scaffold — don't delete it. |
| Target is on a different filesystem / permission denied | Unusual --dir | Abort before any work; ask user for a writable path |
Always rollback partial directories on mid-pipeline failure:
rm -rf "<TARGET_DIR>"
Do NOT leave broken scaffolds on disk.
Write each file only if the scaffold tool didn't already create it, or if theirs is inadequate.
Read references/readme-templates.md in full before writing README.md. Use the template matching the stack (library / CLI / web-app / service). Do not produce a 200-line README — match the template, fill blanks, leave TODO: stubs for unknowns.
Also skim references/anti-patterns.md before writing any supporting file — it lists the landmines (gitignore ordering, .env.example importance, incompatible tool combos).
Universal rules (apply regardless of template):
$ prefix)Create .gitignore BEFORE git init — entries don't affect already-tracked files. If the scaffold tool already wrote one, audit it for stack-specific omissions commonly missed:
| Stack | Commonly missed |
|---|---|
| Python | .ruff_cache/, .mypy_cache/, htmlcov/, *.egg-info/ |
| Node/TS | .next/, .turbo/, .vercel/, dist/, .env.local |
| Rust | target/ is huge (10GB+) — must be there |
| All | .env, .env.*.local |
Do NOT add OS/editor files (.DS_Store, .vscode/, .idea/) to project .gitignore — those belong in the user's global gitignore.
If the project is likely to use env vars (Python service, Node API, any web app, anything with a database or LLM API), write .env.example with placeholder values and inline comments. Missing .env.example is the #1 onboarding friction cause. It costs nothing to create.
Real values never pass through chat. Leave .env.example as placeholders and have the user fill .env in their own shell (read -rs X && printf 'X=%s\n' "$X" >> .env) or through a /wizard stage; check a value by prefix or length, never by printing it. The full rule is secrets.md in the flow plugin's skills/shared/ directory (flow's /flow:next and /flow:spec follow it too).
If .env will exist, write .envrc with dotenv (direnv is active in user's shell).
Write a ~30-line CLAUDE.md with: stack, primary commands (run/test/lint), any non-obvious conventions. Do not be comprehensive — user can run /init later to elaborate.
One-question test: does this touch patent-heavy domains (crypto, video codecs, ML, container orchestration) OR are corporate contributors likely? → Apache-2.0. Otherwise → MIT. For Rust crates, prefer MIT OR Apache-2.0 dual-license (ecosystem convention). Default: MIT unless user indicated otherwise.
git init -b main # only if scaffold tool didn't already
git add -A
git commit -m "chore: initial scaffold
Scaffolded with: <tool> <command>
Stack: <stack summary>
"
Do NOT use "initial commit" — use Conventional Commits format so later commitlint doesn't reject history rewrites.
Do NOT scaffold CI, Docker, pre-commit hooks, or commitlint at init time unless the user explicitly asked. These are premature before there's code to check.
Only runs if user opted into GitHub. Even if they said yes in Stage 1, confirm again here with the exact command:
Ready to create GitHub repository:
Name: TomasPalsson/<name>
Visibility: private
Will push: main branch (1 commit)
This will run:
gh repo create <name> --private --source=. --push
Confirm?
On explicit confirmation:
gh repo create <name> --private --source=. --push --description "<short description>"
The --source=. --push single-command pattern handles remote add + initial push. Do NOT split into three commands unless gh is unavailable.
Never pass these flags to gh repo create — they don't exist: --default-branch, --add-topic, --enable-discussions. For topics/discussions, use gh api after creation.
If declined: record, skip, proceed to Stage 7.
Created: <absolute path>
Stack: <stack>
GitHub: <url or "skipped">
Run it:
cd <path>
<primary run command>
Suggested next:
<1-3 stack-relevant next steps, e.g., "add first test", "run /sst if this becomes serverless">
Delete .claude/workflow-state.local.md on success.
test -d before any scaffolding command.gh repo create without explicit Stage-6 confirmation — even if the user said yes earlier. Show the exact command.rm -rf the scaffold target on mid-pipeline error.git add before .gitignore exists with .env in it. .gitignore does not affect already-tracked files — the ordering matters.new-project Go binary — it is a TUI, cannot be driven non-interactively, and will hang the session.Other anti-patterns (tool mixing, stale templates, setup.py, Pages Router, etc.) are covered in references/anti-patterns.md.
Each stage above specifies exactly when to load a reference. Summary:
| Reference | Loaded by |
|---|---|
scaffold-commands.md | Stage 2 — always |
stack-decisions.md | Stage 1 — only if description is ambiguous |
readme-templates.md | Stage 5a — always |
anti-patterns.md | Stage 5 — skim before writing supporting files |
Load with the Read tool. Do NOT pre-load all references at Stage 0 — wait for the stage that needs each one. This keeps the orchestrator context lean.
/sst — default deployment path for web/API projects. After base scaffold completes, if the user indicated deployment is relevant OR the project type is clearly deployable (web app, API, service), offer: "Deployment target is AWS via SST by default. Run /sst now to add SST v3 to this project at <path>?" Hand off there — do not duplicate SST config knowledge in this skill. If the user says they don't need deploy yet, skip./init — after scaffold completion, suggest the user run /init if they want a more comprehensive CLAUDE.md./flow:spec — suggested next step when the user is ready to build their first feature.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tomaspalsson/flow --plugin tooling16 skills in this plugin
/agent-architectureArchitecture and token-economics for Claude agents: workflow vs agent vs multi-agent selection; subagent count; tool & MCP design; prompt caching; model routing; context-window blowup; AgentCore Runtime/Memory/Gateway/Identity/Code Interpreter/Observability. Use when: agent is too expensive/slow/forgets/loops; cutting token spend (caching, compaction, tool-result clearing, dynamic tool loading); context rot; tool count/federation; managing agent memory. Delivers Anthropic decision trees, exact token-cost mechanics, and AgentCore primitive mappings. Do NOT use for AgentCore deployment mechanics (containers, port 8080, ARM64, IAM, OAuth decorators, session backends) — use strands-agentcore instead./agent-evalsMUST use for evaluating LLM and agent systems — design, build, and operate trustworthy, cost-controlled evals. Use when: evaluating/benchmarking an LLM, agent, RAG, or chatbot; building an eval suite, golden dataset, or LLM-as-a-judge; choosing deterministic vs model-graded evals; judging whether a score change is real vs noise or picking sample sizes; setting up evals in CI/CD or cutting eval cost; grading agent trajectories vs outcomes or tool-call accuracy; evaluating on AWS AgentCore or Bedrock. Keywords: LLM-as-a-judge, golden dataset, pass@k, pass^k, eval harness, RAG triad, hallucination/faithfulness eval, agent trajectory eval, tool-call accuracy, eval flaky/noisy, is my eval significant, AgentCore Evaluations, Bedrock Evaluations, are my evals good, how do I eval my agent./clean-codeThis skill embodies the principles of "Clean Code" by Robert C. Martin (Uncle Bob). Use it to transform "code that works" into "code that is clean."/cocoindexThis skill should be used when building data processing pipelines with CocoIndex, a Python library for incremental data transformation. Use when the task involves processing files/data into databases, creating vector embeddings, building knowledge graphs, ETL workflows, or any data pipeline requiring automatic change detection and incremental updates. CocoIndex is Python-native (supports any Python types), has no DSL, and uses version 1.0.0 or later./gh-cliGitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line./icelandicWrite, translate, fix or proofread Icelandic that reads like a native wrote it, and keep the English words Icelanders actually say (product names, UI labels, IT terms like API, deploy, prompt, token) instead of translating them. Use whenever writing or translating into Icelandic, when the user writes in Icelandic, or asks to check, fix, laga, yfirfara or proofread Icelandic text, or asks about Icelandic grammar or spelling. Keywords: Icelandic, íslenska, translate to Icelandic, Icelandic email, correct my Icelandic, proofread Icelandic.