跳到正文
Skillpedia
通用编程55k · #3345

bmad-architecture

它能做什么

这个技能让 AI 智能体编写一份简短的架构文档,确定团队必须共享的决策。适合多人或多个智能体分别构建同一系统不同部分的团队。

适用场景

  • ✓当多人或多个智能体将分别构建同一系统的不同部分,并需要保持一致的时候。
  • ✓当你需要在开发开始前记录架构的时候。
  • ✓当你想检查或更新现有架构文档的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-architecture/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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"

repo: bmad-code-org/BMAD-METHOD

热度

GitHub 星标
55k
排名
#3345
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能