add-to-project
Skill này làm gì
Skill này thêm công cụ và tính năng vào một dự án được tạo bằng Better-T-Stack, bằng chính lệnh add của công cụ. Skill dành cho lập trình viên muốn mở rộng dự án Better-T-Stack có sẵn mà không phải nối thủ công.
Khi nào nên dùng
- ✓Khi dự án có file bts.jsonc và bạn muốn thêm một công cụ hoặc tính năng vào đó.
- ✓Khi bạn muốn thêm lint, git hook hoặc trang tài liệu vào dự án Better-T-Stack.
- ✓Khi bạn muốn thêm một gói workspace dùng chung vào dự án hiện có.
Liên kết skill
https://github.com/AmanVarshney01/create-better-t-stack/blob/main/plugin/skills/add-to-project/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thêm hỗ trợ PWA và Biome vào dự án Better-T-Stack của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc file stack của dự án, lên kế hoạch thay đổi bằng lượt chạy thử, rồi áp dụng các addon đã chọn để file stack luôn được cập nhật.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nếu dự án không có file bts.jsonc thì sao?
Luồng add không thể chạy, nên agent sẽ báo cho bạn thay vì tạo lại file đó.
Skill có chạy thử trước không?
Có. Skill lên kế hoạch thay đổi trước khi áp dụng.
Skill này có dành cho dự án mới không?
Không. Với dự án mới, skill khởi tạo riêng được dùng.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 5.9k
- Vị trí xếp hạng
- #14548
- Giấy phép
- MIT
- Cập nhật
- 24/10/2026
Bình luận
- …
Thêm skill từ kho mã này
scaffold-project
5.9kGiúp agent của bạn tạo dự án full-stack hoặc API mới bằng Better-T-Stack, chọn các framework hoạt động cùng nhau và bỏ qua các tổ hợp lỗi.
better-t-stack
5.9kDạy agent của bạn tạo hoặc mở rộng dự án TypeScript an toàn kiểu từ đầu đến cuối với Better-T-Stack, từ frontend đến cơ sở dữ liệu và xác thực.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.