Дистилляция любого ввода намерения в ядро SPEC и сопутствующие части — канонический машинный контракт с проверкой сохранности для последующей работы. Используется, когда пользователь говорит «create a spec», «distill this into a spec», «validate this spec», «update the spec» или «break this into stories».

BMad Spec Overview — канонический трансформер для экосистемы BMad spec-kernel: принимает любой ввод (идею, PRD, GDD, RFC, транскрипт, письмо клиента) и формирует SPEC.md с пятью полями ядра (Why, Capabilities, Constraints, Non-goals, Success signal) плюс companion-файлы для деталей, не влезающих в ядро. Инструмент для команд и агентов BMad, которым нужен единый машиночитаемый контракт для нижестоящих скиллов. Ключевая деталь: SPEC.md и companion-файлы всегда выводятся из append-only журнала .memlog.md через скрипт memlog.py, поэтому ручное редактирование SPEC.md не поддерживается и перезаписывается при следующем прогоне.

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

Установка

SKILL.md

BMad Spec

Overview

Canonical transformer for the BMad spec-kernel ecosystem. Takes any intent input — vague idea, brain dump, PRD, GDD, RFC, brief, Slack thread, customer email, meeting transcript, mockups, mixed multi-source — and produces SPEC.md carrying the five-field kernel (Why, Capabilities, Constraints, Non-goals, Success signal) plus companion files for load-bearing content that does not fit or would bloat the kernel with expansive line-item detail. Together they are the machine contract every downstream BMad skill consumes.

Multiple skills may call to update the same spec over time.

Conventions

  • Bare paths (e.g. assets/spec-template.md) resolve from the skill root.
  • {skill-root} is this skill's install dir; {project-root} is the working dir.
  • {workflow.<name>} resolves to fields in customize.toml.

On Activation

  1. Resolve customization: uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow. On failure, read {skill-root}/customize.toml directly.
  2. Run {workflow.activation_steps_prepend}. Treat {workflow.persistent_facts} as foundational context (file: entries are loaded).
  3. 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}, {output_folder} (under core), and {date}.
  4. Detect mode. Headless when any of: no TTY, programmatic caller (another skill or non-interactive runner), or the first message pre-supplies all inputs and asks for an artifact path back. Interactive otherwise. In interactive mode, greet by {user_name} in {communication_language}, stay in that language, and mention that bmad-party-mode and bmad-advanced-elicitation are available for deeper exploration on any field.

Run {workflow.activation_steps_append}.

Activation is complete. If activation_steps_prepend or activation_steps_append were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.

Workspace

The spec is always a folder named {workflow.spec_output_path}/{workflow.run_folder_pattern}, resolving by default to {output_folder}/specs/spec-{slug}/.

{slug} describes the thing being specced, not the input shape:

  • Source artifact already carries a slug (e.g., prd-foo-bar-2026-05-23/): inherit (foo-bar).
  • Sparse, in-chat, or multi-source input: interactive asks; headless caller provides it as part of the input. If absent and underivable, headless blocks with error_code: "missing_slug".
  • Same slug = same folder. A second invocation with the same {slug} lands at the existing spec folder and updates in place, preserving capability IDs.

No input. Interactive: ask the user to share a file path, paste content, explain the idea in detail, or point to a source. Headless: respond with JSON containing error_code: "insufficient_intent".

Inside the spec folder:

<spec-folder>/
  SPEC.md                  ← uppercase, the kernel — DERIVED from .memlog.md, never hand-edited
  <companion-1>.md         ← optional, content-typed (e.g. glossary.md); spec-authored ones are derived too
  <companion-2>.md
  stories.yaml             ← optional, written only by Story Breakdown — fixed name, never in companions:
  .memlog.md               ← canonical, append-only memory; what SPEC.md is distilled from

Memory and derivation

.memlog.md is canonical — an append-only, chronological record of every decision, constraint, capability (with its stable CAP-N), assumption, open question, and bit of user direction, one line each in the order it happened, never edited or reordered. SPEC.md and every spec-authored companion are derived on each run from the memlog (the decision-of-record) plus the sources it cites for raw content — never hand-patched.

Deriving the contract from a living log instead of editing the contract in place is what lets the steps around the spec (PRD, UX, architecture, epics) run in any order and feed the same spec without merge drift: the log only accumulates, the artifact is re-rendered. So the spec is updated only by re-deriving it here — bmad-spec is its single writer; a hand-edit to SPEC.md from outside is unsupported and is overwritten on the next derive.

Writes go through the shared script — {project-root}/_bmad/scripts/memlog.py, the same location as resolve_customization.py (atomic; never read it back except to resume):

  • uv run {project-root}/_bmad/scripts/memlog.py init --workspace {spec-folder} --field topic="<what is being specced>" — once, at create.
  • uv run {project-root}/_bmad/scripts/memlog.py append --workspace {spec-folder} --type <decision|constraint|capability|assumption|question|direction|note|event> --text "<one-line gist, reason included>" — as each lands.
  • Terminal moments (a validation verdict, "spec finalized") are --type event entries; the memlog carries no status field.

The Operation

Read the input and its ancillary linked materials. If there is no input, follow the no-input branch in Workspace (ask or block). If a prior .memlog.md exists at the target folder, read it — the operation becomes an update, and the memlog (not the rendered SPEC.md) is the authority on what was decided and on capability IDs. Preserve those IDs; new capabilities get the next unused CAP-N; never reuse retired IDs. Otherwise this is a create, and the first move is memlog.py init.

When the input is structured and pre-sorted (a PRD with an addendum, a GDD, a brief produced by an upstream BMad skill), trust the authored separation: lift kernel-fitting content into SPEC.md, lift overflow into appropriately-named companions. When the input is mixed (a brain dump, a transcript, an RFC, a customer email), do the sorting yourself: walk each claim, apply the three-lens load-bearing test (Spec Law rule 7), and route to the kernel field or a companion.

Distill the input into the five-field kernel using {workflow.spec_template} as the skeleton. When input is rich, extract directly — no elicitation. When input is sparse, choose: express (best-effort distill, every gap becomes an open_questions[] entry) or guided (walk the five fields with the user one at a time). Headless defaults to express and logs the choice. Interactive asks.

A recognized domain implication the input leaves unaddressed is such a gap — name it as an open_questions[] entry (healthcare input silent on PHI/HIPAA, payments silent on PCI, control systems silent on fail-safe) and move on. Flag it; never invent the answer or coach toward it. If these dominate, the input is too thin — suggest bmad-prd.

Write lean from the first pass: every sentence must earn its place. Decoration costs tokens and dilutes downstream readers.

Log each decision, capability, constraint, and accepted change to .memlog.md as it is made — that running record is what the render reads. Because the log is append-only, a later entry supersedes an earlier one on the same point while the history stays intact. When two currently-live sources or companions disagree on the same field, or an either/or never got resolved, surface it to the user rather than silently choosing — the resolution is itself a new memlog entry.

If the input is genuinely too thin to distill (e.g. "an app for hikers" with no surrounding context), stop and suggest bmad-prd (or sibling ceremony skill). This skill distills; it does not coach.

Load-bearing

A claim is load-bearing if any consumer (downstream skill, implementing agent, verification pass) would change a decision without it.

Companions

When load-bearing content does not fit the five-field kernel, it lives in a companion. The kernel cites it; the companion holds it. Companions are part of the contract; every consumer reads companions: in SPEC.md frontmatter to discover them. Companions follow the same lean discipline as SPEC.md (Spec Law rule 8).

Spawn a companion when the content needs more than one kernel-shape line: multi-item catalogs (per-entity matrices like archetypes, drinks, modes, routes), tables, diagrams (always), editorial voice rules, long-form reference material the kernel cites by name (glossary, brownfield notes, project conventions). Single-line decision-benders stay in Constraints; intent+success pairs stay in Capabilities. If a kernel field is starting to bullet into sub-bullets, the content has outgrown the kernel and wants a companion.

Companions are either:

  • Spec-authored companions are written by bmad-spec and live as siblings of SPEC.md (e.g., glossary.md, patron-archetypes.md). bmad-spec owns them and may edit them on update operations.
  • Adopted companions are load-bearing artifacts written by an upstream skill that downstream still needs to read. bmad-spec references them into companions: by relative path but does NOT edit them (e.g., a DESIGN.md or EXPERIENCE.md from a UX run, an integration partner's API spec). The originating skill owns them.

Two rules govern companions:

  1. Name spec-authored companions for the content type they hold. glossary.md, <entity-class>.md (e.g. patron-archetypes.md, medication-routes.md, flight-modes.md), stack.md, conventions.md, brownfield.md, architecture-diagrams.md, state-machines.md, failure-modes.md, compliance-references.md. The principle: "a reader should know what is inside before opening it." Adopted companions keep whatever name their originating skill gave them.
  2. Diagrams always land in a companion, regardless of size. SPEC.md kernel holds prose only. Mermaid blocks, ASCII diagrams, and image references all live in a companion (e.g. architecture-diagrams.md), with sibling image files referenced from there.

Pre-existing project-wide docs (e.g. project-context.md) that downstream needs are listed as adopted companions, never duplicated into SPEC.md or a spec-authored companion.

stories.yaml, when produced, is spec-authored but deliberately not a companion — see Story Breakdown below.

Spec Law

Every spec must satisfy these eight rules. The operation aims for them; the self-validate sweep enforces them.

  1. Each capability has both intent and success. Missing either = not a capability.
  2. Intents describe WHAT, not HOW. Implementation prescription belongs in a companion (stack, conventions).
  3. Constraints actually bend design decisions. A "constraint" that rules nothing out is decoration.
  4. Non-goals are explicit. At least one. Absence means downstream skills fill the vacuum.
  5. Success signal is concrete enough to test or demonstrate against. "Users love it" doesn't qualify.
  6. Capability IDs are stable and unique. Never reused, never renumbered.
  7. Preservation. Every load-bearing source claim lands in SPEC.md or a companion. Wrapper ceremony does not.
  8. Lean prose. Every sentence carries load-bearing content. Cut decoration, hedges, backstory, throat-clearing. Applies to SPEC.md, companions, and .memlog.md.

Self-Validate

After every create or update, sweep the resulting artifact in two passes before presenting.

Pass 1 — Coherence. Judge the spec against Spec Law rules 1–6 and 8. For anything that fails or feels weak, attempt to fix it without inventing content the input did not support. Calls made without direct confirmation become assumptions[]; gaps that could not be filled become open_questions[].

Pass 2 — Preservation. Walk the source claim by claim. Confirm each load-bearing claim landed in SPEC.md or a companion. Wrapper-ceremony drops are logged under "Wrapper-only content" so the drop is on the record, not silent.

Record the verdict for each pass to .memlog.md (append --type event). In interactive mode, review it with the user. In headless mode, .memlog.md is one of the files returned, so the caller (or its downstream LLM) reads the verdict there.

Spec with no change signal

When the user points the skill at an existing spec folder (or its SPEC.md) with no change signal, offer to review assumptions or open questions, or determine what they want to do.

Story Breakdown (optional, interactive-only)

Requires SPEC.md on disk — run the normal Operation first if it doesn't exist yet. Headless runs never do this, even when the invocation text asks for it: if mode detection (On Activation, step 4) resolved headless, skip this section entirely and proceed with the normal headless response. In interactive mode, offer it at most once per run when the input reads as multiple independently shippable slices; a decline ends the offer for this run, not forever. Also run it on direct request ("break this into stories") whenever SPEC.md exists. When a spec update runs and stories.yaml exists, check the story descriptions against the updated spec; if any no longer matches, say so and offer to re-run Story Breakdown. The update itself never rewrites stories.yaml.

Either way, walk the capabilities and constraints with the user and propose a story per independently reviewable slice — this is a conversation, not a silent render. For each story, ask the user for spec_checkpoint, done_checkpoint, and any invoke_dev_with note rather than defaulting them silently; capturing that human judgment is what the fields are for. If the conversation surfaces load-bearing detail beyond dispatch notes (a constraint, a design decision), route it into SPEC.md or a companion — invoke_dev_with carries dispatch notes only (Spec Law rule 7 still applies).

The output is stories.yaml, a sibling of SPEC.md в папке spec, обнаруживаемой по этому фиксированному имени — та же конвенция, что и в SPEC.md и .memlog.md. Никогда не указывайте его в companions: и никогда не направляйте на него ключ frontmatter: companions несут контракт what-to-build, который читает каждый потребитель; stories.yaml является входными данными для того инструмента, который диспетчеризует истории.

Определения полей, правила валидности и проработанный пример находятся в assets/stories-schema.md. Перед записью или перезаписью файла проверьте каждую запись на соответствие этим правилам; исправляйте нарушения, а не представляйте файл, который им не соответствует. Запишите вердикт проверки в .memlog.md (append --type event), та же дисциплина, что и в Self-Validate.

Выводите stories.yaml из .memlog.md точно так же, как любой другой артефакт, созданный по спецификации: логируйте каждую предложенную историю (--type decision), когда пользователь с ней соглашается, затем рендерите. При последующем запуске против той же папки spec повторно выводите тем же способом, обрабатывая ids согласно семантике обновления схемы.

Вывод

Интерактивный — сообщите путь к папке spec в разговорной форме. Назовите количество возможностей, созданные companions и вердикт в одном-двух предложениях. Назовите также количество историй, если stories.yaml был записан в этом запуске. Если assumptions[] or open_questions[] не пусты, перечислите их (кратко — по одной строке на каждую) и предложите пользователю пройтись по ним. Дайте понять, что их устранение может обновить исходный вход (если это был файл), спецификацию или и то и другое — любую комбинацию, которую предпочтёт пользователь. Не вываливайте JSON и не представляйте стену вывода.

Headless — возвращайте JSON согласно assets/headless-schemas.md.

Запустите {workflow.on_complete} , если задано.

После того как Spec выведен

Любое обновление спецификации — разрешённые допущения, отвеченные открытые вопросы, прочие изменения — добавляется в .memlog.md по мере их появления. Когда изменение переопределяет что-то, пришедшее из исходного входа, предложите обновить и этот источник, чтобы upstream и спецификация не разошлись молча.

Конвенции frontmatter

  • companions: массив .md файлов, которые downstream ДОЛЖНЫ читать наряду с SPEC.md, чтобы иметь полный контракт. Пути могут указывать внутрь папки spec (companions, созданные по спецификации, такие как glossary.md) или вне её (adopted companions, такие как ../planning-artifacts/ux-designs/ux-foo-bar-2026-05-23/DESIGN.md). Разделение между созданными по спецификации и adopted неявно определяется путём; downstream обращается с обоими одинаково.
  • sources: массив путей к файлам, которые были полностью поглощены в SPEC, без остаточной ценности для downstream (например, PRD, каждое несущее утверждение которого теперь находится в ядре). Перечислены для аудита и для повторного чтения bmad-spec при обновлении. Downstream НЕ читает их. Файлы, которые downstream всё ещё нужно читать, относятся в companions:, а не сюда.
  • Не перечисляйте memlog, файлы README, организационные артефакты или любые операционные записи о том, как upstream-навыки создавали свои артефакты. Это не исходное содержимое; это метаданные процесса, которые потребителям downstream не нужны.

Вставить в README

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

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

Описание

Дистиллирует любой ввод о замысле в ядро SPEC + сопутствующие материалы — канонический, проверенный на сохранность машиночитаемый контракт для последующей работы. Используй, когда пользователь говорит "create a spec", "distill this into a spec", "validate this spec", "update the spec" или "break this into stories".

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

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 устан.
Похожее в других разделах каталога

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

mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
41 комп.
A11y Architectaffaan-m · Архитектор доступности, специализирующийся на соответствии WCAG 2.2 для веба и нативных…
225 587 ★
Architectaffaan-m · Специалист по архитектуре ПО для проектирования систем, масштабируемости и принятия…
225 587 ★
Build Error Resolveraffaan-m · Специалист по устранению ошибок сборки и TypeScript. Используйте ПРОАКТИВНО при сбое…
225 587 ★
Code Revieweraffaan-m · Эксперт по ревью кода. Проактивно проверяет код на качество, безопасность и…
225 587 ★
Cpp Build Resolveraffaan-m · Специалист по ошибкам сборки C++, CMake и линковки.
225 587 ★
Cpp Revieweraffaan-m · Ревьюер C++: безопасность памяти, современные идиомы, конкурентность, производительность.
225 587 ★
Csharp Revieweraffaan-m · Ревьюер C#: конвенции .NET, async, безопасность, nullable-типы, производительность.
225 587 ★
Dart Build Resolveraffaan-m · Специалист по ошибкам сборки Dart/Flutter, зависимостей и build_runner.
225 587 ★
Database Revieweraffaan-m · Специалист PostgreSQL: оптимизация запросов, схемы, безопасность, Supabase.
225 587 ★

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

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

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