/agent-resources:new-projectfrom agent-resources
Interviews for project context, then scaffolds a minimal Astro or Next.js app on Vercel with Tailwind, shadcn/ui, pnpm, Vitest, linting, AGENTS.md, README, CHANGELOG, and a GitHub repo under jcottam. Triggered by phrases like 'new project' or 'scaffold'.
Ships in agent-resources. 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.
None: SKILL.md is the whole skill.
Interview first. Understand the product, pick Astro or Next.js, and decide which extras belong in v0. Then scaffold the smallest working project, verify it, and push it. Everything else gets added later, one block at a time.
The user is a senior web developer. Skip explanations of basics. Ask only what you can't infer. Do not silently fill gaps in the stack.
Do not create a directory, run a generator, write app files, or open a repo until all of these are true:
If the user already answered something, don't re-ask. Partial answers are not permission to scaffold. If they say "just start" without a framework, still ask the discriminating questions, recommend one, and wait.
State the defaults. Only ask about them if the conversation contradicts them. Framework has no default.
| Concern | Choice |
|---|---|
| Framework | No default. Astro or Next.js — ask, then confirm. |
| Hosting | Vercel |
| Styling | Tailwind CSS |
| Components | shadcn/ui, base components customized in place (React; on Astro that means the React integration) |
| Package manager | pnpm |
| Tests | Vitest + Testing Library |
| Lint | ESLint, as the generator configures it |
| Repo | GitHub, jcottam org, private unless told otherwise |
Work in rounds. Don't dump the whole list. Don't implement between rounds. Ask in the conversation; if the host has a structured question tool, use it.
Ask:
Ask enough to recommend. Discriminators:
Recommend explicitly, with one or two lines of why:
src/) — app-led products, auth,
dashboards, mutations, React-default UIIf mixed, ask which shape v0 is. Do not pick one without confirmation.
For each extra that could apply, ask in v0 / later / out. Skip only when the purpose makes it nonsense. When in doubt, ask.
| Extra | Discriminators |
|---|---|
| Database | Supabase (Postgres, Auth, Realtime) vs Turso (libSQL / SQLite at the edge, lighter) vs none |
| Storage | Vercel Blob (simple, Vercel-native) vs Cloudflare R2 (scale, cost, S3, access outside Vercel) vs none |
| Resend vs none | |
| AI | Vercel AI Gateway through the AI SDK vs none |
| Edge and access | Cloudflare DNS / domains and/or Zero Trust (Access) vs none |
Do not install or configure an extra until the answer is in v0. "Later" is not a yes. Never add an extra because it appears on this list.
Print a short stack table: framework, defaults, each extra as in / later / out. Wait for go-ahead. Then scaffold.
@latest installers and resolve versions live. Never
pin from memory. No canary, beta, or RC.pnpm check and pnpm build pass before the first
push.Interview (see above). Stop here until the gate is met.
Scaffold the chosen framework. Pass flags rather than interactive
prompts. If a flag is rejected, check --help and current docs.
pnpm create next-app@latest <name> with TypeScript,
Tailwind, ESLint, App Router, src/, @/* alias.pnpm create astro@latest <name> with TypeScript (current
default), Tailwind, and the React integration. Add the official Vercel
adapter. Ensure @/* → ./src/* in tsconfig.pnpm dlx shadcn@latest init with defaults (Astro: current Astro
template / docs)."version": "0.1.0", packageManager (current pnpm), and
engines.node (current LTS) in package.json.Strip to zero. Replace the demo home page with a <main> holding an
<h1> (project name) and the purpose sentence. Delete demo assets in
public/. Set real title / metadata in the root layout. Add an empty
.env.example.
Base features.
next-themes
provider in the root layout. Astro: follow current shadcn Astro theming
(class on <html>, toggle as a React island). Do not invent a package.Chosen v0 extras. Only those marked in v0. Follow the provider's
current docs. Add variables to .env.example (and to Vercel by hand later
with vercel env add). Keep secrets in server-only modules. Skip this
step when every extra is later or out.
Tests and pnpm check.
<h1>. Add a
test for each v0 extra that introduced a code path.lint, typecheck (tsc --noEmit on Next.js; astro check
or current Astro equivalent), test (vitest run), test:watch, and
check running lint, typecheck, then test. Add ESLint if the generator
didn't.pnpm check and pnpm build; fix until green.Docs.
AGENTS.md: purpose, stack table (actual choices, including extras in /
later / out), commands, and conventions (build by addition, add shadcn
components through the CLI, server-only secrets stay out of client code,
new features ship with a test, pnpm check before commit). Under ~60
lines. Symlink CLAUDE.md to it.README.md: 8th-grade reading level. What it is, what it does, how to
run it, and how to check it. No badges or empty sections.CHANGELOG.md: # Changelog header, then ## [0.1.0] - <today> with
### Features listing "Initial project setup".Ship it.
gh repo create jcottam/<name> --private --source=. --push..github/workflows/check.yml that runs pnpm check on push and
pull request.vercel link and connect the Git repo. Confirm the first deployment
succeeds.Report the repo URL, the deployment URL, the pnpm check result, the
chosen framework, extras in / later / out, the resolved versions of the
framework, React, Tailwind, and shadcn, and any assumptions or skipped
steps.
When a later extra (Supabase, Turso, Resend, R2, Zero Trust, or anything new) becomes a feature, follow the provider's current docs, then:
.env.example and to Vercel by hand (vercel env add).pnpm check.Choices that need judgment when they come up:
provider/model) instead of installing provider SDKs one by one. On
Vercel, auth comes from OIDC (vercel env pull locally); use
AI_GATEWAY_API_KEY only outside Vercel.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (jcottam/agent-resources) — no native marketplace selected
npx claudepluginhub p/jcottam-agent-resources14 skills in this plugin
/advisorActivate rigorous, no-nonsense advisory mode for deep analysis, research, critical review, or honest assessment. Use when the user says "advise", "advise me", "give me your honest take", "don't sugarcoat", "be brutally honest", "rigorous mode", "devil's advocate", "second opinion", "challenge this", "stress-test this", "poke holes", "what am I missing", or any variation of wanting unfiltered expert analysis. Also use when the user asks a complex research question, requests a critical review of a plan or architecture, or wants a decision evaluated with full intellectual honesty rather than encouragement./babysit-prBabysit review comments on the current branch's pull request. Bugbot comes first: wait for its review, fix each valid finding, commit, and push. Handle every other open comment too, from human reviewers and other bots. Repeat for up to three rounds, or until nothing new is open. Use when the user says "babysit PR", "babysit this PR", "wait for Bugbot", "address review comments", "address Bugbot comments", "loop until Bugbot is clean", or wants open PR feedback fixed without merging./cleanup-hardenRuns a cleanup and hardening pass on an application or website covering security fixes, DRY consolidation, orphan and dead-code removal, doc drift, dependency audit, error handling, config validation, performance, and repo hygiene, without changing user-facing behavior. Use when the user asks to clean up, prune, harden, audit, tidy, or de-cruft a codebase, remove dead code, fix doc drift, or do a security pass./content-wireframeDraft a content wireframe for a website or page before any design or code. Produces a structured markdown document with real copy, section intent, and open decisions — approved by the user before implementation begins. Use when the user says "content first", "wireframe the copy", "words before design", "start with the content", "what should the page say", or when a website project lacks finalized copy and is jumping straight to visuals./hostUpload files to Cloudflare R2 and return a shareable public URL. Supports any file type (HTML, images, PDFs, etc.) with automatic slug generation, clipboard copy, and hosting history tracking. Use when the user says "host", "host this", "host file", "publish", "publish this", "share this file", "upload to R2", "make this public", "get a shareable link", "deploy this file", "put this online", or any variation of wanting to make a file publicly accessible via URL./orientOrient a developer to an unfamiliar codebase by systematically exploring its structure, purpose, features, conventions, and workflows. Produces a concise orientation document. Use when the user says "orient me", "what does this project do", "walk me through this codebase", "help me understand this repo", "onboard me", "give me the lay of the land", "codebase overview", or any variation of wanting to quickly understand a project they're new to.Other plugins' skills for the same job