scaffold-project
Skill này làm gì
Skill này tạo một dự án TypeScript mới bằng Better-T-Stack, chọn frontend, backend, cơ sở dữ liệu, xác thực và nhiều thứ khác. Skill dành cho người muốn có một dự án khởi đầu hoạt động được mà không phải thiết lập từng phần bằng tay.
Khi nào nên dùng
- ✓Khi bạn muốn bắt đầu một ứng dụng, API hoặc dự án full-stack mới bằng TypeScript.
- ✓Khi bạn muốn một dự án được xây dựng trên một framework cụ thể như Hono, Next.js hoặc Nuxt.
- ✓Khi bạn muốn một monorepo khởi đầu đã có sẵn xác thực và cơ sở dữ liệu.
Liên kết skill
https://github.com/AmanVarshney01/create-better-t-stack/blob/main/plugin/skills/scaffold-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
“Tạo một ứng dụng TypeScript full-stack mới với Next.js, API Hono và Drizzle cho cơ sở dữ liệu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chọn các tùy chọn stack, lên kế hoạch dự án, loại bỏ các tổ hợp không hoạt động, rồi tạo thư mục với các file và một file ghi nhận stack.
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.
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.
Câu hỏi thường gặp
Skill có tạo được dự án mà không có shell không?
Nếu không có shell, skill có thể chuẩn bị một lệnh để bạn tự chạy.
Skill có ngăn các lựa chọn không tương thích không?
Có. Skill từ chối các tổ hợp stack không hoạt động cùng nhau.
Nếu thư mục đã có dự án thì sao?
Khi đó là dự án hiện có, và skill add sẽ được dùng thay thế.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 5.9k
- Vị trí xếp hạng
- #14549
- Giấy phép
- MIT
- Cập nhật
- 24/10/2026
Bình luận
- …
Thêm skill từ kho mã này
add-to-project
5.9kGiúp agent của bạn thêm công cụ như hỗ trợ PWA, Biome, Husky hoặc Turborepo vào dự án Better-T-Stack hiện có bằng luồng add của chính nó.
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á.