better-t-stack
Ce qu’il fait
Cette skill explique comment utiliser Better-T-Stack pour générer un projet TypeScript sûr au niveau des types à partir des éléments que vous choisissez. Elle s'adresse aux développeurs qui veulent une pile cohérente et fonctionnelle sans câblage manuel.
Quand l’utiliser
- ✓Quand vous voulez démarrer une app, une API ou un projet full-stack avec une pile choisie.
- ✓Quand vous voulez ajouter une base de données, une authentification ou un module complémentaire à un projet Better-T-Stack existant.
- ✓Quand vous voulez que la pile soit vérifiée pour les combinaisons qui ne fonctionnent pas.
Lien du skill
https://github.com/AmanVarshney01/create-better-t-stack/blob/main/skills/better-t-stack/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Mets en place un projet sûr au niveau des types avec React, tRPC, Drizzle et Better Auth grâce à Better-T-Stack.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent utilise l'outil adapté à l'environnement, planifie la pile, crée le projet sur le disque ou fournit une commande à lancer, puis consigne la pile dans le fichier du projet.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Better-T-Stack
Better-T-Stack generates a type-safe TypeScript project from the parts the user picks: frontend, backend, runtime, API layer, database, ORM, auth, payments, addons and deploy targets. It rejects combinations that don't work, so let it build the project instead of writing the setup by hand.
Pick the interface
Use the first one you have:
| You have | Interface | It can |
|---|---|---|
bts_create_project tool |
Local MCP server | Plan, create and add, on disk |
| A shell | CLI: create-json and add-json |
Plan, create and add, on disk |
bts_get_create_command tool |
Hosted MCP server, https://www.better-t-stack.dev/mcp |
Plan and preview files, then return a command for the user to run |
| None of these | Stack Builder link | Prefill the visual builder for the user |
The hosted MCP server can't write files, can't change an existing project and doesn't accept addonOptions or dbSetupOptions. If the user needs any of those, give them the CLI command instead.
Create a project
If the folder already has a bts.jsonc, the project exists. Go to Change an existing project.
Settle the stack. If the user left out a major choice (frontend, backend or database), ask one short question or propose defaults and confirm them. Don't add app surfaces, addons, examples or database provisioning the user didn't ask for.
Get valid values from the tool, not from memory. Call
bts_get_schema, or runnpx create-better-t-stack@latest schema --name createInput. When the user has to choose, offer every valid option, not a subset. references/options.md lists the values and the compatibility rules that come up most, but the schema wins if they differ.Build a full explicit config. Set every field. Use
"none",[],trueorfalseinstead of leaving a field out.Plan before you write. Call
bts_plan_project, or runcreate-jsonwith"dryRun": true. If the plan fails, its error names the conflict. Fix the config and plan again. Show the user the planned stack and get a yes.Create.
- Local MCP server:
bts_create_projectwithinstall: false. - CLI: the same
create-jsonpayload withoutdryRun, withinstall: false. - Hosted MCP server:
bts_get_create_command. Give the user the command to run in a terminal and stop here.
Installs can outlast tool timeouts, so create with
install: falseand install as a separate step.- Local MCP server:
Prove it runs. Run
<packageManager> installin the new folder. With the user's OK, run the project's typecheck or build script from itspackage.json. If a step fails, report the exact error.Report. Give the stack and the next commands (
dev, database setup such asdb:push), taken from the generatedREADME.mdandpackage.json, not from memory.
references/cli.md has the full create-json payload, the flag form for a command the user pastes, and the Stack Builder URL keys.
Change an existing project
bts.jsonc at the project root records the stack chosen at creation and a reproducibleCommand that recreates it. The add command reads it to detect the stack.
- Read
bts.jsoncfirst. If it's missing,addcan't run. Tell the user instead of recreating the file. Never edit it by hand.addupdates it. - Plan. Call
bts_plan_addons, or runadd-jsonwith"dryRun": true. Passaddons, a workspacepackagename, or both. Show the user what will change. - Apply after the user agrees:
bts_add_addons, oradd-jsonwithoutdryRun. - Prove it runs and report, as in steps 6 and 7 above.
axiom can't be added later. It sets up deployment infrastructure, so it must be chosen at creation. A workspace package (package: "shared") scaffolds packages/shared with a manifest, the shared tsconfig and src/index.ts.
Rules
- Plan before every create or add.
- Send full explicit configs t
Questions fréquentes
Quelles piles couvre-t-elle ?
De nombreux frameworks, dont Next.js, Nuxt, Svelte, Hono, Express et Convex.
Écrit-elle la configuration à la main ?
Non. Elle génère le projet à partir des éléments choisis plutôt que d'écrire la configuration manuellement.
Peut-elle ajouter des éléments à un projet existant ?
Oui. Elle peut ajouter des modules complémentaires à un projet qui possède déjà un enregistrement de pile.
Détails
Description originale de l’auteur
Create or extend an end-to-end type-safe TypeScript project with Better-T-Stack (create-better-t-stack). Use when the user wants to start, scaffold or bootstrap an app, API, fullstack project or monorepo with any of Next.js, TanStack Router or Start, React Router, Nuxt, Svelte, Solid, Astro, React Native, Hono, Express, Fastify, Elysia, Convex, tRPC, oRPC, Drizzle, Prisma, Better Auth or Clerk. Also use when a project has a `bts.jsonc` file and the user wants to add addons or a workspace package. Prefer it over hand-writing package.json, configs and folder layout.
Popularité
- Étoiles GitHub
- 5.9k
- Position au classement
- #14550
- Licence
- MIT
- Mis à jour
- 24/10/2026
Commentaires
- …
Autres skills de ce dépôt
add-to-project
5.9kAide votre agent à ajouter des outils comme la prise en charge PWA, Biome, Husky ou Turborepo à un projet Better-T-Stack existant, en utilisant son propre flux d'ajout.
scaffold-project
5.9kAide votre agent à créer un nouveau projet full-stack ou API avec Better-T-Stack, en choisissant des frameworks compatibles et en évitant les combinaisons qui ne fonctionnent pas.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.