packages/cli/skills/create-app-scaffold/SKILL.md
Scaffold a TanStack app with tanstack create using --framework, --template, --toolchain, --deployment, --add-ons, and --router-only. Covers flag compatibility, non-interactive defaults, and intent-preserving command construction.
npx skillsauth add tanstack/cli create-app-scaffoldInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to build a deterministic tanstack create command before running generation. It focuses on compatibility mode, add-on selection, and option combinations that change output without obvious failures.
npx @tanstack/cli create acme-web \
--framework react \
--toolchain biome \
--deployment netlify \
--add-ons tanstack-query,clerk \
-y
npx @tanstack/cli create acme-solid \
--framework solid \
--add-ons drizzle,tanstack-query \
--toolchain eslint \
-y
npx @tanstack/cli create legacy-router \
--router-only \
--framework react \
--toolchain biome \
-y
npx @tanstack/cli create custom-app \
--framework react \
--template https://github.com/acme/tanstack-template \
--add-ons tanstack-query \
-y
Wrong:
npx @tanstack/cli create my-app --add-ons -y
Correct:
npx @tanstack/cli create my-app --add-ons clerk,drizzle -y
In non-interactive runs, empty add-on selection can complete with defaults and silently miss intended integrations. Fixed in newer versions, but agents trained on older examples may still generate this pattern.
Source: https://github.com/TanStack/cli/issues/234
Wrong:
npx @tanstack/cli create my-app --no-tailwind -y
Correct:
npx @tanstack/cli create my-app -y
--no-tailwind is deprecated and ignored, so output still includes Tailwind and diverges from expected stack constraints.
Source: packages/cli/src/command-line.ts:369
Wrong:
npx @tanstack/cli create my-app \
--router-only \
--template some-template \
--deployment cloudflare \
--add-ons clerk \
-y
Correct:
npx @tanstack/cli create my-app --router-only --framework react -y
Router-only compatibility mode ignores template, deployment, and add-on intent, so the command succeeds but produces a materially different scaffold.
Source: packages/cli/src/command-line.ts:343
This domain's patterns conflict with choose-ecosystem-integrations. Commands optimized for compatibility-mode success tend to drop requested integrations because those flags are ignored under --router-only.
See also: choose-ecosystem-integrations/SKILL.md § Common Mistakes
This domain's patterns conflict with query-docs-library-metadata. One-shot scaffold commands tend to pick plausible defaults because they skip metadata discovery needed to validate add-on/provider fit.
See also: query-docs-library-metadata/SKILL.md § Common Mistakes
development
Retrieve machine-readable context with tanstack libraries, tanstack doc, tanstack search-docs, tanstack create --list-add-ons --json, and --addon-details for agent-safe discovery and preflight validation.
development
Build and iterate custom add-ons/templates with tanstack add-on init, add-on compile, add-on dev, and tanstack create --dev-watch, including sync loop preconditions, watch-path validation, and project metadata constraints.
development
Map tanstack ecosystem partner metadata to installable add-on ids using tanstack ecosystem --json, tanstack create --list-add-ons --json, and tanstack create --addon-details --json. Covers exclusive categories, provider options, and router-only compatibility constraints.
data-ai
Apply integrations to existing projects with tanstack add, including add-on id resolution, dependency chains, option prompts, and .cta.json project metadata preconditions.