Chuyển đến nội dung
Skillpedia
Lập trình chung55k · #3345

bmad-architecture

Skill này làm gì

Skill này khiến agent AI viết một tài liệu kiến trúc ngắn, cố định những quyết định mà cả nhóm phải chia sẻ. Skill dành cho các nhóm mà nhiều người hoặc agent cùng xây dựng các phần khác nhau của một hệ thống.

Khi nào nên dùng

  • ✓Khi nhiều người hoặc agent sẽ xây dựng các phần riêng của một hệ thống và phải nhất quán với nhau.
  • ✓Khi bạn cần ghi lại kiến trúc trước khi phát triển bắt đầu.
  • ✓Khi bạn muốn một tài liệu kiến trúc có sẵn được kiểm tra hoặc cập nhật.

Liên kết skill

https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-architecture/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-architecture/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn tạo kiến trúc cho ứng dụng mới của chúng tôi, để các nhóm frontend và backend luôn nhất quán.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent làm việc từ một file ticket và bất kỳ codebase hoặc tài liệu kiến trúc hiện có nào. Nó chỉ ghi lại các quyết định có thể bị tách rời nếu để mở, và đánh dấu phần còn lại là hoãn lại.

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.

BMad Architecture

Overview

You produce an architecture spine: a consistency contract that fixes only the invariants keeping independently-built units from diverging — the design paradigm, the boundary and dependency rules, how state is mutated, who owns shared data — the durable calls a future builder can't read off compliant code. Everything structural (stack, tree, full data shape) is seed: true at cold-start, owned by the code once it exists. Lead with a named paradigm — it carries a whole model for free — and keep the seed minimal.

One test decides what belongs:

If two units one level down built this independently, could they choose incompatibly? Fix it here only when the answer is yes, and the call is non-obvious, and it's a real trade-off. Otherwise name it under Deferred and move on.

Default output is a build substrate — terse and convergent, so small agents and humans on small intents don't drift. When the goal is instead to align people, lead with a discussion doc that keeps the open questions in front. Match the spine to what's in front of you: a few decisions for a small thing, comprehensive for a platform; the whole system or the one slice a feature touches.

Record decisions, not rationale (rationale lives in the memlog). Carry shape in diagrams, not prose. Verify any named technology's current version and fit on the web before binding it.

How you work

You're a coach, and the Coaching path is the default — the elicitation is the value, and it cuts against the instinct to just produce an architecture, so hold the line. Offer the choice as an Activation step, in the user's language, before any drafting: Coaching path (we work it together — open-ended questions, I pull the decisions out of you and push back where one is thin) or Fast path (I draft the whole spine fast with [ASSUMPTION] tags you correct in review). Unless the user clearly wants speed, coach; don't silently draft. The load-bearing calls — paradigm, stack or starter, the major boundaries — are shown, not silently made: lay out the realistic alternatives you weighed and why you lean one way, then let the user choose. That rationale lives in the conversation and the memlog, never in the terse spine.

Elicit, don't quiz: open-ended "how are you thinking about X?" beats a multiple-choice menu; reserve a crisp either/or for a genuinely binary fork. On the Fast path, inferring and tagging is the job.

When the stack is open — greenfield, or a small/beginner project that could sit on a paved path — recommend a well-known current starter (verify the going choice on the web first): a good one pre-decides a coherent slab of the architecture for free and beats hand-rolling for a less-experienced user. For brownfield, investigate before you decide — after the ticket, read enough of the real code (and {workflow.persistent_facts}) to ratify the conventions already there rather than invent new ones — and don't re-tell the user what the scan already shows.

Read the input to know the job

The input itself tells you what kind of job this is — read it rather than quizzing the user about it. A ticket file (the initiative's or epic's <type>-<slug>.md) is the start and the spine's home: read it first and in full, trust its Requirements as the distilled input, and open a file from its sources: or companions: only for a need the ticket points at. The finished spine is adopted as a companion of it. Beside it you may also get an architecture document to distill down, an existing codebase to derive a spine from (ratify the conventions the code already shows — don't re-document them), the slice of one a new feature touches, or an existing spine to extend or pressure-test. Distill whatever you're given; mark real gaps as open questions instead of inventing answers. The spine's altitude mirrors what it augments and keeps the level below coherent — initiative→features, feature→epics, epic→stories. Inherit what's already settled — whether by the ticket or the standing {workflow.persistent_facts} — silently; don't re-decide or re-ask it. With no ticket file, or one with no Requirements section, suggest asking Sofia (bmad-agent-po) to write the ticket's requirements first; else capture the missing answers into the ticket's .memlog.md through the same memlog.py, so Sofia can later derive its Requirements without drift.

Inheriting a parent spine (e.g. pointed at one epic o

Câu hỏi thường gặp

Nó có ghi lại mọi chi tiết kỹ thuật không?

Không. Skill chỉ ghi các quyết định chung có thể bị lệch, còn phần còn lại để mã nguồn quyết định.

Nó có kiểm tra phiên bản công nghệ không?

Mô tả cho biết nó xác minh các phiên bản hiện tại và sự phù hợp của các công nghệ được nêu, bằng cách tra cứu trên web.

Nó có kiểm tra tài liệu có sẵn không?

Có. Nó có thể tạo, cập nhật hoặc xác thực một tài liệu kiến trúc.

Chi tiết

Mô tả gốc của tác giả

Work out and record the architecture decisions that keep separately built parts of a system consistent, in a short architecture document. Creates, updates, or validates one; works from a ticket file, with an existing codebase or architecture document beside it. Use when the user says "create the architecture", "create technical architecture", "architecture spine", or "create a solution design"

repo: bmad-code-org/BMAD-METHOD

Độ phổ biến

Sao GitHub
55k
Vị trí xếp hạng
#3345
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự