better-t-stack
できること
このスキルは、Better-T-Stackを使い、選んだ部品から型安全なTypeScriptプロジェクトを生成する方法を説明します。手で配線せず、一貫して動くスタックがほしい開発者のためのものです。
使う場面
- ✓選んだスタックで、アプリ、API、またはフルスタックのプロジェクトを始めたいとき。
- ✓既存のBetter-T-Stackのプロジェクトに、データベース、認証、アドオンを追加したいとき。
- ✓一緒に動かない組み合わせがないか、スタックを確認したいとき。
スキルのリンク
https://github.com/AmanVarshney01/create-better-t-stack/blob/main/skills/better-t-stack/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Better-T-Stackを使って、React、tRPC、Drizzle、Better Authで型安全なプロジェクトを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは環境に合ったツールを使い、スタックを計画し、ディスク上にプロジェクトを作るか実行するコマンドを渡し、そのプロジェクトのファイルにスタックを記録します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
どのスタックを扱いますか?
Next.js、Nuxt、Svelte、Hono、Express、Convexなど、多くの枠組みを扱います。
セットアップを手で書きますか?
いいえ。手で設定を書く代わりに、選んだ部品からプロジェクトを生成します。
既存のプロジェクトに追加できますか?
はい。すでにスタックの記録があるプロジェクトに、アドオンを追加できます。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 5.9k
- ランキング
- #14550
- ライセンス
- MIT
- 更新日
- 2026/10/24
コメント
- …
このリポジトリの他のスキル
add-to-project
5.9kPWAのサポート、Biome、Husky、Turborepoなどのツールを、既存のBetter-T-Stackのプロジェクトに、そのツール独自の追加の流れを使って加えるようエージェントを支援します。
scaffold-project
5.9kBetter-T-Stackを使い、互いに機能する枠組みを選び、壊れた組み合わせを避けて、新しいフルスタックまたはAPIのプロジェクトを作るようエージェントを支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。