scaffold
The file list for a new project skeleton, in order. Use for the scaffold thread of operator step 4.
Files1
View on GitHubSKILL.md.claude/skills/scaffold/SKILL.md
GitHubScaffold
Stack for new projects (moved here from CLAUDE.md, S11a): an existing repo's choices win. New: TypeScript, Node 24, npm; Nuxt 4 or Vue 3 + Vite, Pinia, Tailwind v4, @nuxtjs/i18n (de, en); D1/SQLite or Postgres with prepared statements; Vitest, Playwright, vue-tsc. Deploys: publish. Know-how by domain: docs/MAP.md (Expertise); story games with renders: docs/game-pipeline.md first.
One thread, branch scaffold, one PR. Read PLAN.md first: it names the framework, whether the app
has D1, logins, payments and which languages. Skip a line only when PLAN.md says the app doesn't
need it, and say so in the PR. Follow the order; each step commits on its own.
.node-version:24.package.json:type: module,engines.node >=24, scriptsdev,lint,typecheck,test,build,check(= lint + typecheck + unit tests, no browser tests), andverify(= lint + typecheck + test + build).verifystarts with a secret scan, scriptsecrets=! git grep -nIE '(sk|rk)_live_[A-Za-z0-9]|whsec_[A-Za-z0-9]{16}|AKIA[0-9A-Z]{16}|BEGIN [A-Z ]*PRIVATE KEY|ghp_[A-Za-z0-9]{30}' -- . ':(exclude)*.md' ':(exclude)package-lock.json'(cloud threads have no secret hook, so CI is the net). D1 apps adddeployanddeploy:preview(step 6).- Framework per PLAN.md: Nuxt 4 (SSR or static) or Vue 3 + Vite (SPA/PWA). Plus Tailwind v4,
Pinia,
@nuxtjs/i18nwithde(default) anden, Vitest,vue-tsc, and Playwright when PLAN.md has e2e criteria. UI text goes through i18n from the first page (a literal@,{,}or|in a locale string is written{'@'}etc.). app/skeleton: one home page, the layout, the two legal routes (step 8), a health route/api/configreturning the buildcommit(WORKERS_CI_COMMIT_SHA) for the live check.design/DESIGN.mdanddesign/refs/from the design team's pick (empty folder with a.gitkeepuntil the design thread delivers), with its## Barsection filled (operator/roles/designer.md, UI/UX bar); no UI beyond the skeleton before that.wrangler.jsoncper thepublishskill:name,workers_devandpreview_urlstrue, apreviewsblock (even empty), D1DBplus<name>-previewwith committed ids when PLAN.md has data. D1 scripts:deploy= migrate live,wrangler deploy, migrate preview;deploy:preview= migrate preview,wrangler preview. The Workers Builds commands (Buildnpm run check && npm run build, Deploy, Preview) and the live check by commit go into brief (b) exactly aspublishwrites them.- Repo setup from
onboard-project:CLAUDE.md(under 60 lines),.claude/settings.json,.claude/skills/verify/SKILL.md, and.github/workflows/ci.ymlrunning onlynpm run verify(no keys in GitHub). The loop's inbox from the operator'stemplates/loop/:scripts/loop.mjsand.github/workflows/loop.yml(its only key, the read-only report token, lives in theloopGitHub environment); the app's error and feedback tables and the owner report come with the first slice that has users (docs/LOOP.md). - Impressum and Datenschutz pages per the
legalskill, in German and English, linked from the footer of every page; texts with placeholders for what only yskills can supply. PLAN.md,features.json,PROGRESS.mdfrom the operator'stemplates/(PLAN.md and features.json already exist from step 3 ofoperator; copy the rest)..env.examplewith every variable the code reads and no values (VITE_*andNUXT_PUBLIC_*are public);.gitignorewithnode_modules,.output,.nuxt,dist,.env*(not.env.example),.dev.vars,.wrangler,.shots/.README.md, ten lines at most: what it is,npm install,npm run dev,npm run verify, where it deploys.- Per-project plugins via
toolbox(claude plugin install <id> --scope project), only what PLAN.md's picks name.
PR checklist
-
npm run verifypasses locally; CI is green. - Every step above is done or named as skipped with the PLAN.md line that allows it.
- No secret, no real
.env, no value in.env.example. - Phone (390px) and desktop (1440px) screenshots of the home page in the PR.
Its gate is CI only (gate.md); don't merge, the gate does.