agentsclimarketplace

Scaffold

Skill robzilla1738/roberts-skills/plugins/scaffold/skills/scaffold

Greenfield or extend a Next.js app with Tailwind v4, tRPC, TanStack Query, optional Clerk, Neon/Drizzle, Vercel, and intake-selected add-ons (AI SDK, Resend, Stripe, Sentry, PostHog) fully installed and build-green. Use for /scaffold or new project setup.From its SKILL.md

Install
npx -y skills add robzilla1738/roberts-skills --skill scaffold

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • reads credentialsReads from 2 credential sources: `.env.local` and 1 more.
  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.5 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it

Stack Scaffold

Workflow skill for greenfielding a Next.js + Tailwind v4 + tRPC + TanStack Query + Neon/Drizzle + Vercel app, with optional Clerk auth — driven by product intake so the foundation matches what you are building.

Read this hub first, run product intake, then open only the spokes for your profile.

Mission

Deliver a fully configured repo matching intake: core stack (Phases 0–8) plus every selected add-on installed and wired (Phase 9). No product business logic beyond integration demos/stubs. Phase 10 verification (typecheck, lint, test, build, smoke tests) must pass before the skill is complete.

Non-negotiables

  1. Product intake first — ask what you are building; record scaffold profile before create-next-app. See intake-product-profiles.md.
  2. App Router only — no Pages Router for new apps.
  3. Package manager — default pnpm; pin Node 22.x and pnpm >=10 <11 unless intake says npm.
  4. Environmentlib/env.ts (Zod); secrets in .env.local; committed .env.example. No raw process.env in lib/ elsewhere.
  5. Server boundary — DB and tRPC routers are server-only; import "server-only" where appropriate.
  6. Safe tRPC errorsAppError + Zod mapped in formatter; never leak stacks.
  7. Clerk on Next 16proxy.ts + clerkMiddleware when auth is enabled.
  8. Lazy databasegetDb() must not throw at import time when DATABASE_URL is missing.
  9. Scaffold profile in README — record profile ID, stack choices, installed add-ons, and production-habits.md checklist.
  10. Intake add-ons are installed — when add-ons are not none, run Phase 9 (phase-integrations.md); do not leave them README-only.

When to use

  • Starting a SaaS dashboard, internal tool, or API-first Next app
  • Adding tRPC + Drizzle + Clerk to an empty Next.js repo
  • User invokes /scaffold

When not to use

  • Marketing-only → the web-marketing-landing skill
  • Supabase / Prisma-first → custom plan (not default spokes)
  • Expo / mobile-only → separate skill
  • macOS / non-Next → out of scope

Intake router

ProfileSummary
saas-dashboardDefault — Clerk, full stack, shadcn, foundations
internal-toolFull stack; simpler shell; optional dev auth bypass
api-firsttRPC + DB; minimal UI; auth optional
marketing-onlyRedirect web-marketing-landing
extend-existingGap-fill only

Details: intake-product-profiles.md.

Phase bundle

Execute in order. Details: phases-greenfield.md.

StepSpoke
0intake-product-profiles.md
1–2stack-and-tooling.md
2bfoundation-env-and-errors.md
2cfoundation-testing.md
3foundation-ui.md + file-tree-and-conventions.md
4database-neon-drizzle.md
5trpc-and-query.md
6auth-clerk-optional.md (if auth)
7App shell — file-tree-and-conventions.md
8vercel-and-env.md
9phase-integrations.md + ai-sdk-and-integrations.md — skip only if add-ons = none
10verification-checklist.md
postproduction-habits.md — document remaining launch habits in README

Skip phases per profile (e.g. api-first skips shadcn and often auth). Never skip Phase 9 when intake lists add-ons.

After Phase 10, recommend /review via the autoreview skill (/review).

Spoke index

FileContents
intake-product-profiles.mdProduct question, profiles, intake template
intake-and-variants.mdExtend-existing, monorepo, out-of-scope
stack-and-tooling.mdVersions, create-next-app, scripts
foundation-env-and-errors.mdlib/env.ts, lib/errors.ts
foundation-testing.mdVitest
foundation-ui.mdshadcn vs minimal
phases-greenfield.mdPhases 0–10
phase-integrations.mdPhase 9 — install intake add-ons
file-tree-and-conventions.mdCanonical tree
database-neon-drizzle.mdNeon, Drizzle
trpc-and-query.mdtRPC server, client, route
auth-clerk-optional.mdClerk
vercel-and-env.mdDeploy
verification-checklist.mdBuild gate
production-habits.mdPost-scaffold checklist
ai-sdk-and-integrations.mdAI SDK streaming, Resend, Stripe, provider/env patterns

Related skills

  • the autoreview skill (/review)
  • the web-marketing-landing skill
  • clerk-auth (global) — deep Clerk patterns

Default stack

LayerPackage / tool
RuntimeNode 22.x, pnpm 10.x
FrameworkNext.js 16, React 19, TypeScript 5.9+
CSSTailwind CSS 4
APItRPC 11, @trpc/tanstack-react-query, TanStack Query 5, superjson, zod
TestingVitest
Auth@clerk/nextjs 7 (profile-dependent)
DBNeon, Drizzle
DeployVercel
AI (intake)ai, @ai-sdk/react — Phase 9
Email / billing (intake)resend, stripe — Phase 9
Observability (intake)@sentry/nextjs, posthog-js — Phase 9

Verify latest minors on npm when scaffolding.

What ships with it: 17 files

71.2 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.