Add Tooling to Project
Adds addons, tooling or packages to an existing Better-T-Stack project.
Install
npx skills add AmanVarshney01/create-better-t-stack --skill add-to-project -g -a claude-code -y- Repository
- AmanVarshney01/create-better-t-stack5.9k
- Category
- Engineering
- Updated
- 11d ago
- License
- MIT
- Context cost
- Lightabout 630 tokens
- Runs scripts
- No, instructions only
What it does
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.
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.
