aurostack-org/stacks/stack-new

Claude Code and agent skill by aurostack-org/stacks

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Scaffold a new project from the house templates — a NestJS API, an API + Node worker monorepo sharing one Prisma package, a single-app React frontend, a Turborepo React monorepo, a Next.js + Payload CMS site (business website or small shop), a Node background worker, or a Python worker — choosing which optional features to include. USE THIS whenever someone is starting a new codebase and says "new backend", "new API", "spin up a project", "start a new app", "scaffold", "bootstrap a service", "I…

Install

npx vskill@latest install aurostack-org/stacks/stack-new

SKILL.md

The same SKILL.md was published earlier as aurostack-org/stacks/stack-new.

Scaffolding a new project

House templates live in ${CLAUDE_PLUGIN_ROOT}/templates, driven by a zero-dependency Node CLI at ${CLAUDE_PLUGIN_ROOT}/cli/stack.mjs (the same CLI people run in a terminal as stack, from the @aurostack/stacks npm package).

Never hand-write this boilerplate. If a template covers the stack, generate from it — hand-copying drifts from the template immediately and loses the feature wiring the manifests encode.

How the templates work

Each template is subtractive: templates/<name>/files is a complete, runnable app with every optional feature switched on, annotated with @feature markers. Generating a project deletes what you did not ask for. That is why the template itself stays installable and testable — an additive pile of fragments never does.

The flow

1. Establish what they are building

Run node ${CLAUDE_PLUGIN_ROOT}/cli/stack.mjs list and, for the likely template, ... info <template> to see its features. Then ask only what you cannot infer:

  • Which template. Usually obvious from the request. A service with HTTP

endpoints is nest-api; background jobs with no HTTP surface are node-worker (or py-worker when the work belongs in Python — data processing, ML, scientific libraries).

An API and a Node worker that reads its tables is nest-monorepo: the same two stacks in one Turborepo workspace, sharing one Prisma package (packages/db) so the worker never needs the API's schema copied in. Prefer it over separate nest-api + node-worker repositories unless the two must release independently or belong to different owners. --without app-worker gives the API alone in that layout, with the worker addable later (stack add app-worker).

A browser UI is react-app or react-monorepo. Default to `react-app`. They are the same stack; the difference is deployment, so ask about that rather than about code:

react-appreact-monorepo
Deploymentsoneone per app
Auth screensroutes (/login)their own origin
Sessionplain cookiecross-subdomain cookie
Release cadencetogetherindependent per app

react-monorepo earns its extra moving parts when surfaces genuinely ship on different cadences, or one needs to scale or be locked down on its own. If they cannot say that is true, it isn't.

A site that its owner edits (a business website, a portfolio, a small shop, typically built for a client) is next-site: Next.js with Payload CMS inside it, no separate API. The owner manages pages, menus and images at /admin. --with shop adds products, cart, checkout and orders; the built-in manual payment method has the owner mark orders paid. Choose it over react-app + nest-api when the product is the site. When the product needs its own API (mobile clients, background jobs, domain logic beyond content and orders), it is the React templates and nest-api.

  • Project name and directory. The name defaults to the directory's

basename; --scope (npm scope, no @) defaults to the name.

  • Which optional features. Present the opt-in list and the defaults you

intend to drop. Do not enumerate every feature — name the handful that actually depend on what they said, and state the rest as "defaults".

Use AskUserQuestion when the answer changes the generated output. Do not ask about things with an obvious default.

2. Generate
node ${CLAUDE_PLUGIN_ROOT}/cli/stack.mjs new <template> <dir> \
--name <name> --scope <scope> [--port N] \
[--with a,b] [--without c,d]

Useful flags: --all (every optional feature), --dry-run (report only), --no-hooks (skip install / prisma generate / git init), --force (write into a non-empty directory).

Requirements resolve transitively, and disabling something another selected feature requires is a hard error rather than a silently broken project.

3. Report and hand over

Print the template's nextSteps, then say plainly:

  • which features are in and which were left out;
  • that .env was seeded from .env.example and still holds placeholders —

DATABASE_URL, BETTER_AUTH_SECRET and any credentials must be set before the app will boot, because config is Zod-validated at startup and a missing variable fails the process immediately;

  • for nest-api: yarn dc:up starts Postgres and Redis, then yarn db:migrate

creates the initial migration. The template ships no migrations — the first one is generated against the user's own schema;

  • for react-app / react-monorepo: VITE_APP_API_URL must point at the

backend. Vite inlines it at build time, so a built image is pinned to one environment — that is a build arg, not runtime config.

  • for next-site: generation already wrote .env with fresh

PAYLOAD_SECRET / PREVIEW_SECRET. yarn dc:up starts Postgres and Mailpit, yarn dev serves the site, and the first visit to /admin creates the owner's account. Payload owns the schema: there is no migrate step in development, but yarn payload migrate:create initial must run before the first deploy. With shop, the currency is GHS unless changed in src/lib/currency.ts before that first migration.

Offer the stack-setup skill to do that setup and verify the project boots.

The generated project records what produced it in stack.json, and ships its own guidance: a CLAUDE.md with its commands, layout and rules, and task skills in .claude/skills/ (add-resource, add-screen, add-worker, add-block…) covering only the features it has. Point at them: they are how the next session builds in the project the template's way.

Adding to a project after the fact

Use the stack-add skill: stack add <feature> merges exactly what a feature changes into an existing generated project, keeping the project's own edits. Choosing a feature now does not lock anything in.

When a template does not fit

Say so rather than forcing it. Generating a nest-api for something that is not a NestJS service leaves the user deleting more than they keep. Scaffold by hand, and if the shape recurs, suggest adding a template — see the stack-sync skill.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aurostack-org/stacks/stack-new/badge)](https://verified-skill.com/skills/aurostack-org/stacks/stack-new)

Something wrong with this skill or its page? Tell us.