bro-mcp-loop
Skill3 starsChanged 3 months agoMITView on GitHub
Điều phối vòng lặp khép kín (Autonomous Multi-Agent Loop) giữa Lead Planner (Codex/Cursor), Executor (Antigravity) và Hội đồng Review Triad (Code, UI, QA) qua chuẩn bro-mcp. Kích hoạt khi cần lập plan, giao việc, code, test và review tự động sửa lỗi cho đến khi hoàn thành.
In this repository65 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/bro-skills.mdcCursor rule
- .agents/skills/llms.txtllms.txt
- brandkitSkill
- ci-security-scanning-with-strixSkill
- design-taste-frontendSkill
- fix-security-vulnerabilities-with-strixSkill
- full-output-enforcementSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- industrial-brutalist-uiSkill
- managed-pentesting-with-strixSkill
- minimalist-uiSkill
- penetration-testing-with-strixSkill
- ponytailSkill
- redesign-existing-projectsSkill
- speckit.ai-engineerSkill
- speckit.analyzeSkill
- speckit.architectureSkill
- speckit.backendSkill
- speckit.backlogSkill
- speckit.checkerSkill
- speckit.checklistSkill
- speckit.clarifySkill
- speckit.constitutionSkill
- speckit.contentSkill
- speckit.databaseSkill
- speckit.dddSkill
- speckit.debugSkill
- speckit.devopsSkill
- speckit.diffSkill
- speckit.event-realtimeSkill
- speckit.frontendSkill
- speckit.game-embeddedSkill
- speckit.game-native-jsSkill
- speckit.geoSkill
- speckit.identity-accessSkill
- speckit.identitySkill
- speckit.implementSkill
- speckit.mapSkill
- speckit.migrateSkill
- speckit.payment-fintechSkill
- speckit.planSkill
- speckit.quizmeSkill
- speckit.reviewerSkill
- speckit.roadmapSkill
- speckit.securitySkill
- speckit.seoSkill
- speckit.specifySkill
- speckit.sre-observabilitySkill
- speckit.statusSkill
- speckit.tasksSkill
- speckit.taskstoissuesSkill
- speckit.testerSkill
- The first 60 shown.
The file
Files
🔁 bro-mcp: Autonomous Multi-Agent Loop Skill
Skill này đóng gói toàn bộ quy trình phối hợp khép kín giữa các AI Agent mà người dùng không cần phải nhớ hay gọi thủ công từng MCP tool.
🎯 Khi Nào Kích Hoạt Skill Này?
- Khi người dùng yêu cầu: "Chạy loop làm tính năng X", "Dùng bro-mcp", "Giao cho Antigravity code rồi Codex review", hoặc gõ
/bro-mcp-loop. - Khi cần phát triển tính năng mới với yêu cầu nghiêm ngặt: Có kiểm thử tự động, có review độc lập và tự động sửa bug khi có phản hồi.
🚦 Quy Trình Vận Hành 4 Bước Tự Động (Auto-Orchestration)
Bước 1: Kiểm Tra Kết Nối (Pre-flight Check)
- Xác nhận server
bro-mcpđang hoạt động tạihttp://localhost:3088/health. - Nếu server chưa chạy, nhắc người dùng bật container:
docker compose up -dtạif:\wedabro\bro-mcp.
Bước 2: Vai Trò Lead Planner (Codex / Cursor) — Lập Kế Hoạch & Giao Task
- Phân tích yêu cầu của người dùng, phân rã WBS và xác định kiến trúc.
- Thiết lập 2 - 4 tiêu chí Acceptance Criteria (AC) rõ ràng dạng Given-When-Then.
- Tự động gọi tool MCP:
bro_dispatch_task({ "title": "<Tên tính năng ngắn gọn>", "description": "<Mô tả kiến trúc và các ràng buộc kỹ thuật>", "acceptanceCriteria": [ "AC1: <Tiêu chí bắt buộc 1>", "AC2: <Tiêu chí bắt buộc 2>" ], "assignedTo": "antigravity", "maxIterations": 3 }) - Báo cáo cho người dùng mã
taskIdđã được giao thành công ở trạng tháiDISPATCHED.
Bước 3: Vai Trò Executor (Antigravity) — Nhận Việc & Thi Công
- Tự động gọi tool MCP:
bro_fetch_task({ "taskId": "<taskId>" }) - Đọc toàn bộ specs, tiêu chí AC và hướng dẫn sửa lỗi (nếu đang ở vòng lặp revision).
- Trực tiếp thực thi:
- Sửa/tạo file mã nguồn, không để lại placeholder hoặc
TODO. - Chạy kiểm thử tự động trong Docker hoặc terminal.
- Chụp ảnh giao diện UI / Generative UI render (nếu có frontend).
- Sửa/tạo file mã nguồn, không để lại placeholder hoặc
- Tự động gọi tool MCP nộp sản phẩm:
bro_submit_for_review({ "taskId": "<taskId>", "gitDiff": "<toàn bộ mã thay đổi>", "testResults": "<log kết quả chạy test tự động>", "uiArtifacts": ["<đường dẫn ảnh giao diện nếu có>"], "notes": "<tóm tắt các tiêu chí AC đã hoàn thành>" }) - Trạng thái task chuyển sang
UNDER_REVIEW.
Bước 4: Thẩm Định Review Triad & Vòng Lặp Sửa Lỗi (Quality Gate)
Server bro-mcp tự động tổng hợp kết quả thẩm định từ 3 chuyên gia:
- Code & Security Review (Codex/Claude): Kiểm tra syntax, Clean Code, bảo mật.
- Visual & UI Review (Claude Vision/Cursor): Kiểm tra responsive, CSS, alignment.
- Feature & QA Review (Claude QA): Đối soát từng mục trong Acceptance Criteria.
🔴 Nếu Bị Từ Chối (Score < 80 hoặc có BLOCKER):
- Task chuyển sang
NEEDS_REVISION. - Loop Controller tự động xuất vé lỗi chi tiết (Actionable Revision Ticket).
- Hành động: Antigravity tự động đọc vé lỗi bằng
bro_fetch_task, tiến hành sửa triệt để các lỗi được chỉ ra, và gọi lạibro_submit_for_review(Vòng lặp tiếp diễn).
🟢 Nếu Được Phê Duyệt (Tất cả PASS & Score >= 80):
- Task chuyển sang
APPROVED. - Lead Agent tự động gọi:
bro_complete_task({ "taskId": "<taskId>" }) - Báo cáo người dùng: Tính năng đã hoàn thành xuất sắc và sẵn sàng merge/commit!
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
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.

