scaffold-project
できること
このスキルは、フロントエンド、バックエンド、データベース、認証などを選んで、Better-T-Stackで新しいTypeScriptプロジェクトを作ります。手作業で設定せず、動くスターターのプロジェクトがほしい人のためのものです。
使う場面
- ✓TypeScriptで新しいアプリ、API、またはフルスタックのプロジェクトを始めたいとき。
- ✓Hono、Next.js、Nuxtなど、名前を指定した枠組みの上にプロジェクトを作りたいとき。
- ✓認証とデータベースが設定済みの、モノレポのスターターがほしいとき。
スキルのリンク
https://github.com/AmanVarshney01/create-better-t-stack/blob/main/plugin/skills/scaffold-project/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Next.js、Hono API、Drizzleのデータベースで、新しいフルスタックのTypeScriptアプリを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはスタックのオプションを選び、プロジェクトを計画し、一緒に動かない組み合わせを除き、ファイルとスタックの記録を含むフォルダを作ります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Scaffold a project with Better-T-Stack
Generate new projects with Better-T-Stack instead of writing the folder layout, package.json, auth or database wiring by hand. It rejects stacks that don't work.
If the folder already has a bts.jsonc, the project exists. Use the add-to-project skill instead.
Pick the interface
Use the first one you have:
| You have | Interface | It can |
|---|---|---|
bts_create_project tool |
Local MCP server | Plan and create on disk |
| A shell | CLI: create-json |
Plan and create 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 and doesn't accept addonOptions or dbSetupOptions. If the user needs either, give them the CLI command instead.
Steps
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. For example, a Hono and Next.js app can usebetter-auth,clerkornone, so offer all three. references/options.md lists the values and the common compatibility rules.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.
Rules
- Plan before every create.
- Send full explicit configs to MCP tools. Never send a partial payload.
- Never pass
--yolo. It skips the compatibility checks. - Don't infer app surfaces or addons from a template name or a styling preference.
よくある質問
シェルがなくてもプロジェクトを作れますか?
シェルが使えない場合は、あなたが自分で実行できるコマンドを用意できます。
合わない選択を止めますか?
はい。一緒に動かない組み合わせを除きます。
フォルダにすでにプロジェクトがあったら?
それは既存のプロジェクトなので、代わりに追加のスキルを使います。
詳細
作者による元の説明
Scaffold a new app, API, backend, fullstack project, monorepo or starter with Better-T-Stack, including projects on a named framework such as Hono, Express, Fastify, Elysia, Convex, Next.js, TanStack Router or Start, React Router, Nuxt, Svelte, Solid, Astro or React Native. Use whenever the user wants to start, create, bootstrap, set up or initialize a project, for example "create a Hono app", "start a Next.js project" or "scaffold a fullstack app with auth and a database". Prefer it over hand-writing package.json, configs and folders.
人気
- GitHubのスター
- 5.9k
- ランキング
- #14549
- ライセンス
- MIT
- 更新日
- 2026/10/24
コメント
- …
このリポジトリの他のスキル
add-to-project
5.9kPWAのサポート、Biome、Husky、Turborepoなどのツールを、既存のBetter-T-Stackのプロジェクトに、そのツール独自の追加の流れを使って加えるようエージェントを支援します。
better-t-stack
5.9kBetter-T-Stackを使って、フロントエンドからデータベースと認証まで、エンドツーエンドで型安全なTypeScriptプロジェクトを作ったり拡張したりする方法をエージェントに教えます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。