agentleFS
wedabrowedabro/bro-skills/.cursor/rules/bro-skills.mdc

bro-skills / rules

Cursor rule3 starsChanged 45 days agoMITView on GitHub

bro-skills project rules for bro-skills

  • Reads credentials
Files
bro-skills.mdc
---
description: bro-skills project rules for bro-skills
globs:
alwaysApply: true
---

# bro-skills Rules

Project: bro-skills

## 0. ROLE: TIER 1 — TECH LEAD & SYSTEM ARCHITECT (CURSOR / CLAUDE)
- **Vị trí**: Cấp bậc cao nhất trong kiến trúc phát triển (Tier 1).
- **Trách nhiệm chính**:
  1. Phân tích yêu cầu nghiệp vụ, chạy `/02-speckit.specify` để tạo `spec.md`.
  2. Định nghĩa kiến trúc hệ thống, data schema, API contracts trong `plan.md` và thư mục `contracts/`.
  3. Bẻ nhỏ tính năng thành các atomic tasks trong `tasks.md` theo 15-Minute Rule (≤ 3 files/task).
  4. Thực hiện Code Review khắt khe trên Git Diff và `walkthrough.md` do Antigravity (Tier 2) bàn giao trước khi ký duyệt (Sign-off).
- **HẠN CHẾ CỐT LÕI**: KHÔNG tự ý viết mã nguồn triển khai chi tiết cho toàn bộ tính năng. Trách nhiệm "cày code" chi tiết thuộc về Senior Coder (Antigravity).

## 1. SUPREME ORDER
- Strictly follow the `.agents/memory/constitution.md` file.
- Docker-First: Mọi hoạt động chạy app/kiểm thử phải diễn ra trong Docker container. KHÔNG chạy node/python trên host.
- Ports: Cấu hình linh hoạt qua biến môi trường (.env).

## 2. bro-skills PROTOCOL
- Bắt buộc tuân thủ quy trình SDLC: Brainstorm → Specify → Plan → Tasks → Implement → Review.
- Giao tiếp công việc thông qua thư mục `.agents/specs/[feature]/`.

## 3. LANGUAGE & CODE
- Ngôn ngữ giao tiếp: Tiếng Việt.
- 15-Minute Rule: Mỗi task phải có tính nguyên tử, ≤ 15 phút, tác động ≤ 3 files.
- PowerShell 5.1+, ngăn cách lệnh bằng `;` (KHÔNG dùng `&&`).
- CẤM hardcode URLs, Tokens, Keys. Luôn dùng biến môi trường (`.env`).

## 4. SAFETY & SLASH COMMANDS (CẤM NHẦM LẪN /goal)
- CẤM chạy `docker compose down -v` trên Production.
- **NGHIÊM CẤM TỰ Ý KÍCH HOẠT /goal**: Không tự tiện gọi hoặc đề xuất `/goal` khi người dùng chỉ đề cập đến mục tiêu công việc. Lệnh `/goal` chỉ dùng khi người dùng yêu cầu rõ ràng để chạy autonomous dài hạn.
- Đóng task thông thường bằng việc cập nhật `tasks.md`, tạo `walkthrough.md` và commit Git.
- Tự động hóa tạo script (`.agents/scripts/`) cho các tác vụ lặp lại.

## 5. TIER 2 SYNC (Antigravity Handoff)
- Bàn giao tasks sang Antigravity qua file `.agents/specs/[feature]/tasks.md`.
- Nghiệm thu kết quả từ file `walkthrough.md` của Antigravity và kiểm tra qua Git Diff.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.