bmad-architecture
它能做什么
这个技能让 AI 智能体编写一份简短的架构文档,确定团队必须共享的决策。适合多人或多个智能体分别构建同一系统不同部分的团队。
适用场景
- ✓当多人或多个智能体将分别构建同一系统的不同部分,并需要保持一致的时候。
- ✓当你需要在开发开始前记录架构的时候。
- ✓当你想检查或更新现有架构文档的时候。
技能链接
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-architecture/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想为我们的新应用创建架构文档,让前端和后端团队保持一致。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体以工单文件以及任何现有代码库或架构文档为基础工作。它只记录那些如果不确定就可能产生分歧的决策,并将其余内容标注为延后决定。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
常见问题
它会记录每一个技术细节吗?
不会。该技能只记录可能产生分歧的共享决策,其余内容留给代码来定义。
它会检查技术版本吗?
说明中提到,它会在网上核实所列技术的当前版本及其适用性。
它可以检查现有文档吗?
可以。它可以创建、更新或验证架构文档。
详情
作者的原始描述
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"
热度
- GitHub 星标
- 55k
- 排名
- #3345
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
bmad-advanced-elicitation
55k帮你的智能体通过批判性方法推动草稿深入思考,并提出一个修改方案,由你选择接受或拒绝。
bmad-agent-analyst
55k让你的智能体扮演 Mary,一位商业分析师,负责市场调研、竞争分析,并把模糊的需求整理成清晰的需求。
bmad-agent-architect
55k让你的智能体扮演 Winston,一位系统架构师,把需求转化为实用的技术设计,并解释其中的取舍。
bmad-agent-dev
55k让你的智能体扮演 Amelia,一位资深软件工程师,按照测试优先的步骤实现已批准的用户故事,并逐项检查验收标准。