add-to-project
できること
このスキルは、Better-T-Stackで作られたプロジェクトに、そのツール自身の追加のコマンドを使って、ツールや機能を加えます。手作業で配線せず、既存のBetter-T-Stackのプロジェクトを拡張したい開発者のためのものです。
使う場面
- ✓プロジェクトにbts.jsoncファイルがあり、ツールや機能を追加したいとき。
- ✓Better-T-Stackのプロジェクトに、リントやgitのフック、文書サイトを追加したいとき。
- ✓既存のプロジェクトに、共有のワークスペースのパッケージを追加したいとき。
スキルのリンク
https://github.com/AmanVarshney01/create-better-t-stack/blob/main/plugin/skills/add-to-project/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のBetter-T-Stackのプロジェクトに、PWAのサポートとBiomeを追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはスタックのファイルを読み、ドライラン(試し実行)で変更を計画し、選んだアドオンを適用して、スタックのファイルを最新に保ちます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Add to an existing Better-T-Stack project
Add tooling to a Better-T-Stack project with its add flow instead of wiring it by hand. For a new project, use the scaffold-project skill.
bts.jsonc at the project root records the stack chosen at creation and a reproducibleCommand that recreates it. The add flow reads it to detect the stack and updates it afterwards.
Pick the interface
bts_add_addonstool: the local MCP server.- A shell: the CLI's
add-json. - Neither: give the user the command
bunx create-better-t-stack@latest add --addons <names>, using the project's package runner.
The hosted MCP server can't change an existing project.
Steps
Read
bts.jsonc. It tells you the current stack. If it's missing,addcan't run. Tell the user instead of recreating the file. Never edit it by hand.Check nested options. Some addons take options in
addonOptions: the Fumadocs template, search and AI chat, the WXT and OpenTUI templates, the MCP addon's servers and agents, and the Skills addon's sources. Get their shape frombts_get_schemaornpx create-better-t-stack@latest schema --name addonOptions.Plan. Call
bts_plan_addons, or run:npx create-better-t-stack@latest add-json --json '{ "projectDir": "./my-app", "addons": ["pwa", "biome"], "dryRun": true }'Pass
addons, a workspacepackagename, or both. Show the user what will change, including any conflict the plan reports.Apply after the user agrees:
bts_add_addons, oradd-jsonwithoutdryRun.Prove it runs. Run
<packageManager> install. With the user's OK, run the project's typecheck or build script. Report the exact error if a step fails.Report what changed and the follow-up commands.
What can be added
Addons: pwa, tauri, electrobun, starlight, fumadocs, biome, oxlint, ultracite, husky, lefthook, turborepo, nx, vite-plus, mcp, skills, opentui, wxt, evlog.
turborepo,nxandvite-plusare task runners. A project can have one.axiomcan't be added later. It sets up deployment infrastructure, so it must be chosen at creation. If the user asks for it, say so instead of planning it.- A workspace package (
package: "shared", oradd --package shared) scaffoldspackages/sharedwith a manifest, the shared tsconfig andsrc/index.ts.
Rules
- Plan before every apply.
- Don't add addons the user didn't ask for.
- Never hand-edit
bts.jsonc.
よくある質問
bts.jsoncファイルがない場合は?
追加の流れは実行できないため、エージェントはファイルを作り直さず、その旨を伝えます。
先にドライランをしますか?
はい。適用する前に変更を計画します。
新しいプロジェクト向けですか?
いいえ。新しいプロジェクトには、別のscaffoldスキルを使います。
詳細
作者による元の説明
Add addons, tooling or a workspace package to an existing Better-T-Stack project, such as PWA, Tauri, Starlight or Fumadocs docs, Biome, Oxlint, Ultracite, Husky, Lefthook, Turborepo, Nx, the MCP or Skills addon, or a shared `packages/<name>`. Use when the project has a `bts.jsonc` file and the user wants to extend it or add tooling.
人気
- GitHubのスター
- 5.9k
- ランキング
- #14548
- ライセンス
- MIT
- 更新日
- 2026/10/24
コメント
- …
このリポジトリの他のスキル
scaffold-project
5.9kBetter-T-Stackを使い、互いに機能する枠組みを選び、壊れた組み合わせを避けて、新しいフルスタックまたはAPIのプロジェクトを作るようエージェントを支援します。
better-t-stack
5.9kBetter-T-Stackを使って、フロントエンドからデータベースと認証まで、エンドツーエンドで型安全なTypeScriptプロジェクトを作ったり拡張したりする方法をエージェントに教えます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。