bmad-architecture

bmad-code-org/bmad-method

Создание архитектуры: компактный каркас инвариантов, обеспечивающий согласованность всего построенного на нём, в формате, нужном для задачи. Используется, когда пользователь говорит «create the architecture», «create technical architecture», «architecture spine» или «create a solution design».

Инструмент создаёт архитектурный «спайн» — контракт согласованности, фиксирующий только инварианты (парадигма, границы и зависимости, мутация состояния, владение общими данными), которые независимо собранные модули не должны нарушить. По умолчанию работает в режиме коучинга: вытаскивает решения открытыми вопросами, а не молча черновичит; ключевые развилки (парадигма, стек, границы) показывает с альтернативами и отдаёт выбор пользователю. Все решения пишутся одной строкой в append-only .memlog.md через uv run memlog.py, а сам спайн дистиллируется из него в конце; при наследовании родительского спайна его AD считаются обязательными, и противоречащий им новый AD выносится как конфликт.

Звёзды55 494
Авторbmad-code-org
Установок16,5K

Установка

SKILL.md

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 — 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 spec package (SPEC.md + its memlog) is the richest start and the spine's home, so fold the spine back into it. But you'll also get a raw idea, a sprawling 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. Prefer a .memlog.md over re-reading the source it came from. 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 input (a spec, prd) or the standing {workflow.persistent_facts} — silently; don't re-decide or re-ask it. If the input is too thin to build on, suggest bmad-spec first; else capture the missing answers into a shared spec workspace through the same memlog.py, so bmad-spec can later derive SPEC.md without drift.

Inheriting a parent spine (e.g. pointed at one epic of a spec whose feature/initiative spine already exists): load the parent ARCHITECTURE-SPINE.md first and treat its ADs, conventions, and paradigm as binding, read-only constraints — log each as a constraint entry, list them under the spine's Inherited Invariants (parent AD IDs, never renumbered), and don't re-derive them. Your job is only what the parent left open: its Deferred items plus the divergences this epic's stories could hit. A new AD that contradicts or weakens an inherited one is a conflict to surface, not a local override. An epic spine fixes the invariants the epic's stories must share — it does not expand per-story detail.

How a run works

The memlog (.memlog.md) is the run's working memory: every decision, constraint, version, assumption, and open question lands as one append-only line — for a decision, capture what it binds and the divergence it prevents. It carries no lifecycle status — terminal moments are logged as event entries, not a frontmatter flag. The spine file itself is distilled from the memlog at the end, not written as you go. Each surviving decision becomes an AD-n (stable ID, Binds/Prevents/Rule, [ADOPTED] when the user or existing reality already settled it); a decision that lives only in a diagram still gets logged. Resume a prior run by reloading its memlog.

Writes go through the shared script (don't read the file back except on resume):

  • uv run {project-root}/_bmad/scripts/memlog.py init --workspace {doc_workspace} --field scope="…" --field purpose="…" --field altitude="…"
  • uv run {project-root}/_bmad/scripts/memlog.py append --workspace {doc_workspace} --type <decision|constraint|version|assumption|question|direction|event> --text "…"

Resolution rules

  • Bare paths and {skill-root} (e.g. references/headless.md) resolve from this skill's installed directory.
  • {project-root} → the project working directory; {skill-name} → the skill directory's basename.
  • {workflow.<name>} → a merged customize.toml field; {doc_workspace} → the bound run folder.
  • Forward slashes only. Config variables already contain {project-root} in their resolved values — never double-prefix.

On Activation

Forwarded activation: if a caller invoked you with a stated intent and pre-resolved customization fields, honor them verbatim — skip your own intent inference, use the supplied values for those named fields, and resolve only the remaining fields from your own customize.toml.

  1. Resolve customization: uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow (on failure read {skill-root}/customize.toml, use defaults). Run {workflow.activation_steps_prepend}, then {workflow.activation_steps_append}. Hold {workflow.persistent_facts} as standing context — the default loads project-context.md, load-bearing for brownfield — and consult {workflow.external_sources} on demand.
  2. Resolve config: uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} (merges _bmad/config.toml, _bmad/config.user.toml, and the _bmad/custom/ overrides). From the merged JSON resolve {user_name}, {communication_language}, {document_output_language}, {project_name} (under core), {planning_artifacts} (under modules.bmm), and {date}; missing keys take neutral defaults, never block.
  3. Headless (no interactive user) → follow references/headless.md for the whole run. Otherwise greet {user_name} in {communication_language}. Detect the intent from the conversation and input — create (the default), update an existing spine, or validate one (see those sections). If the real ask is requirements / UX / a capability contract / epic breakdown / an agent, invoke the bmad-prd, bmad-ux, bmad-spec, bmad-create-epics-and-stories, or bmad-workflow-builder (if the BMad Builder module is installed) skill instead.
  4. If a run folder for this target already exists under {workflow.spine_output_path}, offer to resume from its memlog rather than restart.
  5. Interactive create: offer the working mode in {communication_language} — Coaching path (default) or Fast path (see How you work) — before any drafting; default to Coaching unless the user asks for speed.
  6. Mandatory, both paths, before drafting: ask whether the spine is the only deliverable — and if not, draw out the purpose and audience rather than a document type. "An architecture doc" balloons into bloat; what they actually need might be a one-detail explainer for a single team or a non-technical vision piece for a board. Purpose right-sizes the artifact and may call for extra elicitation up front, not just a finale add-on.

For a new spine, bind {doc_workspace} to {workflow.spine_output_path}/{workflow.run_folder_pattern}/, seed ARCHITECTURE-SPINE.md from {workflow.spine_template}, run memlog.py init, and tell the user the path. At epic altitude, scope the folder to the epic (set run_folder_pattern per customize.toml) so per-epic runs don't collide.

Reviewer Gate

The spine's pre-handoff review — full mechanics in references/reviewer-gate.md. Load it when finalizing or validating: a deterministic lint_spine.py pass, then a rubric walker (good-spine checklist) + every {workflow.finalize_reviewers} lens dispatched as parallel subagents against ARCHITECTURE-SPINE.md, scaled to stakes. At Finalize you apply the clear fixes; under the Validate intent you deliver a bespoke HTML report and then get user input.

Finalize

Walk the sequence; reviewer fixes land before polish.

  1. Distill. Write the spine from the memlog (brownfield: + the code sweep) — invariants first, seed minimal, every AD carrying Binds/Prevents/Rule, Deferred naming what it won't decide. No placeholders; never invent to fill a gap. The template's <!-- --> notes are guidance — act on them, then strip them; the finished spine carries no template comment, and only the diagrams that convey the structure (as many as the altitude needs, valid mermaid). Sweep the breadth the altitude owns — every structural dimension is decided, deferred, or an open question; a whole dimension left silent (e.g. the operational/environmental envelope: deployment & environments, infra/provider strategy, operations) is the failure, not a clean spine. A long coaching run distills cleaner in a subagent; the parent falls back inline.
  2. Reconcile inputs. A subagent per load-bearing input checks it against the spine and returns what didn't land — especially a quiet requirement (a tone, a constraint) the AD structure dropped. Before the gate.
  3. Reviewer pass. Run the Reviewer Gate (references/reviewer-gate.md). Resolve before polish.
  4. Triage. Open questions and [ASSUMPTION] tags: blockers (unsafe for what's next) resolved one at a time; the rest deferred with a revisit condition in the memlog.
  5. Renderings & polish. The spine is the build deliverable; with it and the memlog now in place, produce any additional human-facing artifact the user needs, scoped to the purpose and audience drawn out up front. The up-front question already flagged whether one's needed; if it wasn't, still offer one here, seeding concrete options: an interactive HTML+SVG deck to walk a team through the architecture and drive discussion, a fuller HTML/md solution design, a C4 set, or a view of how the work splits across teams/epics. Build only what they pick, right-sized to that purpose; apply {workflow.doc_standards} polish to that prose only, never to the spine.
  6. External handoffs. Run {workflow.external_handoffs}; surface returned URLs/IDs. Offer to invoke the bmad-spec skill to adopt the spine as a companion, keeping AD IDs stable so downstream can cite them.
  7. Close. Set the spine's own frontmatter status: final, updated: {date}; log a memlog.py append --type event --text "spine finalized" (the memlog has no status field). Share paths. Next, lead with bmad-spec — recommend adopting/refreshing the spine as a spec companion (always the top recommendation when a spec was an input, and a useful next step even when it wasn't), then bmad-create-epics-and-stories or — epic altitude — bmad-create-story; or invoke bmad-help to route.
  8. Run {workflow.on_complete}.

Update

Amend an existing spine or provided artifact. Resume from its .memlog.md (the authority on what was decided), not the rendered spine. Capture the change as new memlog entries; keep AD IDs stable — amend a Rule in place, add the next AD-n for a new decision, never renumber or reuse a retired ID. Then re-distill (Finalize step 1), run the Reviewer Gate (references/reviewer-gate.md), and close as in Finalize. An update that overrides something from a source input: offer to update that source too, so upstream and the spine don't silently diverge.

Validate

Отдельный сценарий — критический разбор существующего spine без его изменения. Запустите Reviewer Gate (references/reviewer-gate.md) для него и предоставьте индивидуальный HTML-отчёт, затем предложите включить результаты в Update. (На этапе Finalize тот же гейт выполняется как ваша собственная проверка перед передачей, где вы применяете исправления вместо составления отчёта.)

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: bmad-architecture](https://darkplay.ru/ai/skills/bmad-code-org-bmad-method-bmad-architecture)

Описание

Создай архитектуру: компактный стержень инвариантов, который обеспечивает согласованность всего построенного на нём, спроецированный в формат, нужный для работы. Используй, когда пользователь говорит "create the architecture", "create technical architecture", "architecture spine" или "create a solution design".

Из того же репозитория

bmad-dev-story Выполняет реализацию истории по спецификации с заполненным контекстом. Используется, когда ★55,5K bmad-domain-research Проводит исследование предметной области и отрасли. Используется, когда пользователь хочет ★55,5K bmad-check-implementation-readiness Проверяет полноту спецификаций PRD, UX, архитектуры и эпиков. Используется, когда пользова ★55,5K bmad-market-research Проводит исследование рынка конкурентов и клиентов. Используется, когда пользователю нужно ★55,5K bmad-sprint-status Суммирует статус спринта и выявляет риски. Используется, когда пользователь говорит «check ★55,5K bmad-quick-dev Реализует любое намерение пользователя, требование, историю, исправление ошибки или запрос ★55,5K bmad-technical-research Проводит техническое исследование технологий и архитектуры. Используется, когда пользовате ★55,5K bmad-generate-project-context Создание project-context.md с правилами для ИИ. Используется, когда пользователь говорит « ★55,5K

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Architectaffaan-m · Специалист по архитектуре ПО для проектирования систем, масштабируемости и принятия…
225 587 ★
Code Architectaffaan-m · Проектирует архитектуру функций, анализируя существующие паттерны и соглашения кодовой…
225 587 ★
Code Exploreraffaan-m · Глубоко анализирует существующие функции кодовой базы, прослеживая пути выполнения…
225 587 ★
Flutter Revieweraffaan-m · Ревьюер кода Flutter и Dart: виджеты, управление состоянием, идиомы и архитектура.
225 587 ★
Java Revieweraffaan-m · Ревьюер Java для Spring Boot и Quarkus: архитектура, JPA, безопасность и конкурентность.
225 587 ★
Kotlin Revieweraffaan-m · Ревьюер Kotlin и Android/KMP: корутины, Compose, архитектура и типичные ошибки.
225 587 ★
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
225 587 ★
Vue Revieweraffaan-m · Ревьюер Vue.js: Composition API, реактивность, архитектура компонентов, Pinia, Nuxt.
225 587 ★
feature-devanthropics · Полный рабочий процесс разработки функций со специализированными агентами для изучения…
34 комп.
ruflo-adrruvnet · Управление жизненным циклом ADR: создание, индексация, замена и связывание Architecture…
240 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8