AI Vibe Toolkit — CLAUDE.md Template
Copy file này vào root của project → Claude sẽ hiểu context và hành xử đúng.
Chỉnh sửa phần [TRONG NGOẶC] theo project của mày.
Project Context
- Project: [Tên project]
- Stack: [TypeScript/Python/React/Next.js/...]
- Mục tiêu: [Mô tả ngắn project làm gì]
Behavior Rules (Từ AI Vibe Toolkit)
Đừng quá hăng hái
Giải quyết đúng vấn đề được hỏi. Không tự ý thêm features, refactor code không liên quan, hay thay đổi files ngoài scope.
Đừng đồng ý vô điều kiện
Tập trung vào correctness. Nếu tôi sai thì nói thẳng — đừng reply "You're right" tự động.
Giải thích code đúng cách
Khi được hỏi về code:
- Mô tả code làm gì khi đứng độc lập
- Mô tả tương tác với phần còn lại của codebase
- Include parent function context
Code Rules
TypeScript (nếu dùng)
- Không dùng
any — dùng unknown hoặc type đúng
- Dùng enum thay string union khi có 3+ values
- ESM imports, không dùng
require()
Testing
- Pure functions mới → phải có unit tests
- Cover: happy path + edge cases + error cases
- Chạy tests thật, không assume pass
CSS / Tailwind (nếu dùng)
rem thay px
- Theme colors, không hardcode hex
- Không dùng: Inter, shadow-md mặc định, rounded-full + blue button generic
Frontend AI Rules (nếu làm UI)
Anti-patterns bị cấm:
- Font: Inter, Roboto, Arial, Open Sans
- Shadow: shadow-md / shadow-lg mặc định
- Button: rounded-full + blue primary generic
- Icons: Lucide thick-stroke standard
Dùng thay thế:
- Font: Geist, Satoshi, Cabinet Grotesk, Clash Display
- Shadow: diffuse, opacity < 0.05
- Motion: GSAP hoặc spring physics
- Icons: Phosphor Light, Remix Line
PR Review Checklist
Khi review code/PR, check:
- Breaking changes? (renamed commands, APIs, config keys)
- New dependencies? (maintained? vulnerabilities?)
- Error messages actionable không? (không generic "Unknown error")
- Input validation đủ chưa? (empty, whitespace, invalid format)
- New functions có tests không?
MCP Tools Available
[Uncomment những cái đã cài]
- Context7: docs up-to-date
- Brave Search: search web real-time
- Firecrawl: đọc website từ link
- Filesystem: đọc files local
- GitHub MCP: commit, PR, đọc repo
- Playwright: test web tự động
- Sequential Thinking: suy nghĩ step-by-step trước
Notes
[Thêm notes project-specific ở đây]
Template từ AI Vibe Toolkit — github.com/tano2026/AI-Vibe-Toolkit
1---2name: claude-md-template3description: "Vibe Toolkit skill: AI Vibe Toolkit — CLAUDE.md Template"4metadata:5 source: https://skillmd.com/skills/tano2026/claude-md-template6---78# AI Vibe Toolkit — CLAUDE.md Template910> Copy file này vào root của project → Claude sẽ hiểu context và hành xử đúng.11> Chỉnh sửa phần [TRONG NGOẶC] theo project của mày.1213---1415## Project Context1617- **Project:** [Tên project]18- **Stack:** [TypeScript/Python/React/Next.js/...]19- **Mục tiêu:** [Mô tả ngắn project làm gì]2021---2223## Behavior Rules (Từ AI Vibe Toolkit)2425### Đừng quá hăng hái26Giải quyết đúng vấn đề được hỏi. Không tự ý thêm features, refactor code không liên quan, hay thay đổi files ngoài scope.2728### Đừng đồng ý vô điều kiện29Tập trung vào correctness. Nếu tôi sai thì nói thẳng — đừng reply "You're right" tự động.3031### Giải thích code đúng cách32Khi được hỏi về code:331. Mô tả code làm gì khi đứng độc lập342. Mô tả tương tác với phần còn lại của codebase353. Include parent function context3637---3839## Code Rules4041### TypeScript (nếu dùng)42- Không dùng `any` — dùng `unknown` hoặc type đúng43- Dùng enum thay string union khi có 3+ values44- ESM imports, không dùng `require()`4546### Testing47- Pure functions mới → phải có unit tests48- Cover: happy path + edge cases + error cases49- Chạy tests thật, không assume pass5051### CSS / Tailwind (nếu dùng)52- `rem` thay `px`53- Theme colors, không hardcode hex54- Không dùng: Inter, shadow-md mặc định, rounded-full + blue button generic5556---5758## Frontend AI Rules (nếu làm UI)5960### Anti-patterns bị cấm:61- Font: Inter, Roboto, Arial, Open Sans62- Shadow: shadow-md / shadow-lg mặc định63- Button: rounded-full + blue primary generic64- Icons: Lucide thick-stroke standard6566### Dùng thay thế:67- Font: Geist, Satoshi, Cabinet Grotesk, Clash Display68- Shadow: diffuse, opacity < 0.0569- Motion: GSAP hoặc spring physics70- Icons: Phosphor Light, Remix Line7172---7374## PR Review Checklist7576Khi review code/PR, check:771. Breaking changes? (renamed commands, APIs, config keys)782. New dependencies? (maintained? vulnerabilities?)793. Error messages actionable không? (không generic "Unknown error")804. Input validation đủ chưa? (empty, whitespace, invalid format)815. New functions có tests không?8283---8485## MCP Tools Available8687[Uncomment những cái đã cài]88- Context7: docs up-to-date89- Brave Search: search web real-time 90- Firecrawl: đọc website từ link91- Filesystem: đọc files local92- GitHub MCP: commit, PR, đọc repo93- Playwright: test web tự động94- Sequential Thinking: suy nghĩ step-by-step trước9596---9798## Notes99100[Thêm notes project-specific ở đây]101102---103*Template từ AI Vibe Toolkit — github.com/tano2026/AI-Vibe-Toolkit*104