diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 96a58fff3..e30519d15 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -20,7 +20,7 @@ "skills": [ "./src/core-skills/bmad-help", "./src/core-skills/bmad-brainstorming", - "./src/core-skills/bmad-distillator", + "./src/core-skills/bmad-spec", "./src/core-skills/bmad-party-mode", "./src/core-skills/bmad-shard-doc", "./src/core-skills/bmad-advanced-elicitation", diff --git a/.prettierignore b/.prettierignore index 013380044..604b5865f 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,3 +10,8 @@ _bmad*/ # IDE integration folders (user-specific, not in repo) .junie/ + +# Quality scan artifacts produced by bmad-workflow-builder +# (per-skill .analysis/ folders contain JSON/HTML reports that should +# not block commits with formatting checks) +**/.analysis/ diff --git a/docs/cs/reference/core-tools.md b/docs/cs/reference/core-tools.md index 1fca20336..a4c032ada 100644 --- a/docs/cs/reference/core-tools.md +++ b/docs/cs/reference/core-tools.md @@ -18,7 +18,7 @@ Spusťte jakýkoli základní nástroj zadáním jeho názvu skillu (např. `bma | [`bmad-help`](#bmad-help) | Task | Kontextové poradenství, co dělat dál | | [`bmad-brainstorming`](#bmad-brainstorming) | Workflow | Facilitace interaktivních brainstormingových sezení | | [`bmad-party-mode`](#bmad-party-mode) | Workflow | Orchestrace skupinových diskuzí více agentů | -| [`bmad-distillator`](#bmad-distillator) | Task | Bezeztrátová LLM-optimalizovaná komprese dokumentů | +| [`bmad-spec`](#bmad-spec) | Workflow | Distill any intent input into a SPEC kernel and companions, the canonical contract for downstream work (translation pending) | | [`bmad-advanced-elicitation`](#bmad-advanced-elicitation) | Task | Iterativní zdokonalování LLM výstupu | | [`bmad-review-adversarial-general`](#bmad-review-adversarial-general) | Task | Cynická revize hledající chybějící a chybné | | [`bmad-review-edge-case-hunter`](#bmad-review-edge-case-hunter) | Task | Vyčerpávající analýza větvících cest pro neošetřené hraniční případy | @@ -97,32 +97,6 @@ Kouzlo se děje v nápadech 50–100. Workflow povzbuzuje generování 100+ náp **Výstup:** Real-time multi-agentní konverzace s udržovanými osobnostmi agentů -## bmad-distillator - -**Bezeztrátová LLM-optimalizovaná komprese zdrojových dokumentů.** — Produkuje husté, tokenově efektivní destiláty, které zachovávají všechny informace pro následné LLM zpracování. Ověřitelné prostřednictvím round-trip rekonstrukce. - -**Použijte když:** - -- Dokument je příliš velký pro kontextové okno LLM -- Potřebujete tokenově efektivní verze výzkumů, specifikací nebo plánovacích artefaktů -- Chcete ověřit, že během komprese nebyly ztraceny žádné informace - -**Jak to funguje:** - -1. **Analýza** — Čte zdrojové dokumenty, identifikuje hustotu informací a strukturu -2. **Komprese** — Převádí prózu na hustý odrážkový formát, odstraňuje dekorativní formátování -3. **Ověření** — Kontroluje úplnost pro zajištění zachování všech informací -4. **Validace** (volitelné) — Round-trip rekonstrukční test dokazuje bezeztrátovou kompresi - -**Vstup:** - -- `source_documents` (povinné) — Cesty k souborům, složkám nebo glob vzory -- `downstream_consumer` (volitelné) — Co to konzumuje (např. „tvorba PRD“) -- `token_budget` (volitelné) — Přibližná cílová velikost -- `--validate` (příznak) — Spuštění round-trip rekonstrukčního testu - -**Výstup:** Destilátové markdown soubory s reportem kompresního poměru (např. „3.2:1“) - ## bmad-advanced-elicitation **Iterativní zdokonalování LLM výstupu metodami elicitace.** — Vybírá z knihovny elicitačních technik pro systematické zlepšování obsahu více průchody. diff --git a/docs/cs/reference/workflow-map.md b/docs/cs/reference/workflow-map.md index 4dd67dd83..7abbae330 100644 --- a/docs/cs/reference/workflow-map.md +++ b/docs/cs/reference/workflow-map.md @@ -37,7 +37,7 @@ Definujte, co budovat a pro koho. | Workflow | Účel | Produkuje | | --------------------------- | ---------------------------------------- | ------------ | | `bmad-create-prd` | Definice požadavků (FR/NFR) | `PRD.md` | -| `bmad-create-ux-design` | Návrh uživatelského zážitku (když záleží na UX) | `ux-spec.md` | +| `bmad-ux` | Návrh uživatelského zážitku (když záleží na UX) | `DESIGN.md`, `EXPERIENCE.md` | ## Fáze 3: Solutioning diff --git a/docs/cs/tutorials/getting-started.md b/docs/cs/tutorials/getting-started.md index 4aab934b9..f52f17c7e 100644 --- a/docs/cs/tutorials/getting-started.md +++ b/docs/cs/tutorials/getting-started.md @@ -150,7 +150,7 @@ Všechny workflow v této fázi jsou volitelné: - Spusťte `bmad-quick-dev` — zvládne plánování i implementaci v jednom workflow, přeskočte k implementaci :::note[UX Design (volitelné)] -Pokud má váš projekt uživatelské rozhraní, vyvolejte **UX-Designer agenta** (`bmad-agent-ux-designer`) a spusťte UX design workflow (`bmad-create-ux-design`) po vytvoření PRD. +Pokud má váš projekt uživatelské rozhraní, vyvolejte **UX-Designer agenta** (`bmad-agent-ux-designer`) a spusťte UX design workflow (`bmad-ux`) po vytvoření PRD. ::: ### Fáze 3: Solutioning (BMad Method/Enterprise) diff --git a/docs/fr/reference/core-tools.md b/docs/fr/reference/core-tools.md index 644a849fc..abcf43a9e 100644 --- a/docs/fr/reference/core-tools.md +++ b/docs/fr/reference/core-tools.md @@ -18,7 +18,7 @@ Exécutez n'importe quel outil principal en tapant son nom de compétence (par e | [`bmad-help`](#bmad-help) | Tâche | Obtenir des conseils contextuels sur la prochaine étape | | [`bmad-brainstorming`](#bmad-brainstorming) | Workflow | Faciliter des sessions de brainstorming interactives | | [`bmad-party-mode`](#bmad-party-mode) | Workflow | Orchestrer des discussions de groupe multi-agents | -| [`bmad-distillator`](#bmad-distillator) | Tâche | Compression sans perte optimisée pour LLM de documents | +| [`bmad-spec`](#bmad-spec) | Workflow | Distill any intent input into a SPEC kernel and companions (translation pending) | | [`bmad-advanced-elicitation`](#bmad-advanced-elicitation) | Tâche | Pousser la sortie LLM à travers des méthodes de raffinement itératives | | [`bmad-review-adversarial-general`](#bmad-review-adversarial-general) | Tâche | Revue cynique qui trouve ce qui manque et ce qui ne va pas | | [`bmad-review-edge-case-hunter`](#bmad-review-edge-case-hunter) | Tâche | Analyse exhaustive des chemins de branchement pour les cas limites non gérés | @@ -97,33 +97,6 @@ La magie se produit dans les idées 50–100. Le workflow encourage la générat **Sortie :** Conversation multi-agents en temps réel avec des personnalités d'agents maintenues -## bmad-distillator - -**Compression sans perte optimisée pour LLM de documents sources.** — Produit des distillats denses et efficaces en tokens qui préservent toute l'information pour la consommation par des LLM en aval. Vérifiable par reconstruction aller-retour. - -**Utilisez-le quand :** - -- Un document est trop volumineux pour la fenêtre de contexte d'un LLM -- Vous avez besoin de versions économes en tokens de recherches, spécifications ou artefacts de planification -- Vous voulez vérifier qu'aucune information n'est perdue pendant la compression -- Les agents auront besoin de référencer et de trouver fréquemment des informations dedans - -**Fonctionnement :** - -1. **Analyser** — Lit les documents sources, identifie la densité d'information et la structure -2. **Compresser** — Convertit la prose en format dense de liste de points, supprime le formatage décoratif -3. **Vérifier** — Vérifie l'exhaustivité pour s'assurer que toute l'information originale est préservée -4. **Valider** (optionnel) — Le test de reconstruction aller-retour prouve la compression sans perte - -**Entrée :** - -- `source_documents` (requis) — Chemins de fichiers, chemins de dossiers ou motifs glob -- `downstream_consumer` (optionnel) — Ce qui va le consommer (par ex., "création de PRD") -- `token_budget` (optionnel) — Taille cible approximative -- `--validate` (drapeau) — Exécuter le test de reconstruction aller-retour - -**Sortie :** Fichier(s) markdown distillé(s) avec rapport de ratio de compression (par ex., "3.2:1") - ## bmad-advanced-elicitation **Passer la sortie du LLM à travers des méthodes de raffinement itératives.** — Sélectionne depuis une bibliothèque de techniques d'élicitation pour améliorer systématiquement le contenu à travers multiples passages. diff --git a/docs/fr/reference/workflow-map.md b/docs/fr/reference/workflow-map.md index 857cde03f..c3c4156ce 100644 --- a/docs/fr/reference/workflow-map.md +++ b/docs/fr/reference/workflow-map.md @@ -48,7 +48,7 @@ Définissez ce qu'il faut construire et pour qui. | Workflow | Objectif | Produit | |-------------------------|---------------------------------------------------------|--------------| | `bmad-create-prd` | Définissez les exigences (FRs/NFRs)[^1] | `PRD.md`[^2] | -| `bmad-create-ux-design` | Concevez l'expérience utilisateur (lorsque l'UX compte) | `ux-spec.md` | +| `bmad-ux` | Concevez l'expérience utilisateur (lorsque l'UX compte) | `DESIGN.md`, `EXPERIENCE.md` | ## Phase 3 : Solutioning diff --git a/docs/fr/tutorials/getting-started.md b/docs/fr/tutorials/getting-started.md index 8d98a5cb6..75a4f08f3 100644 --- a/docs/fr/tutorials/getting-started.md +++ b/docs/fr/tutorials/getting-started.md @@ -150,7 +150,7 @@ Tous les workflows de cette phase sont optionnels. [**Pas sûr de quel outil uti - Exécutez `bmad-quick-dev` — il gère la planification et l'implémentation dans un seul workflow, passez directement à l'implémentation :::note[Design UX (Optionnel)] -Si votre projet a une interface utilisateur, invoquez l'**agent Designer UX** (`bmad-agent-ux-designer`) et exécutez le workflow de design UX (`bmad-create-ux-design`) après avoir créé votre PRD. +Si votre projet a une interface utilisateur, invoquez l'**agent Designer UX** (`bmad-agent-ux-designer`) et exécutez le workflow de design UX (`bmad-ux`) après avoir créé votre PRD. ::: ### Phase 3 : Solutioning (méthode BMad/Enterprise) diff --git a/docs/reference/core-tools.md b/docs/reference/core-tools.md index dbc690826..21a880901 100644 --- a/docs/reference/core-tools.md +++ b/docs/reference/core-tools.md @@ -18,7 +18,7 @@ Run any core tool by typing its skill name (e.g., `bmad-help`) in your IDE. No a | [`bmad-help`](#bmad-help) | Task | Get context-aware guidance on what to do next | | [`bmad-brainstorming`](#bmad-brainstorming) | Workflow | Facilitate interactive brainstorming sessions | | [`bmad-party-mode`](#bmad-party-mode) | Workflow | Orchestrate multi-agent group discussions | -| [`bmad-distillator`](#bmad-distillator) | Task | Lossless LLM-optimized compression of documents | +| [`bmad-spec`](#bmad-spec) | Workflow | Distill any intent input into a SPEC kernel and companions, the canonical contract for downstream work | | [`bmad-advanced-elicitation`](#bmad-advanced-elicitation) | Task | Push LLM output through iterative refinement methods | | [`bmad-review-adversarial-general`](#bmad-review-adversarial-general) | Task | Cynical review that finds what's missing and what's wrong | | [`bmad-review-edge-case-hunter`](#bmad-review-edge-case-hunter) | Task | Exhaustive branching-path analysis for unhandled edge cases | @@ -97,32 +97,36 @@ The magic happens in ideas 50–100. The workflow encourages generating 100+ ide **Output:** Real-time multi-agent conversation with maintained agent personalities -## bmad-distillator +## bmad-spec -**Lossless LLM-optimized compression of source documents.** — Produces dense, token-efficient distillates that preserve all information for downstream LLM consumption. Verifiable through round-trip reconstruction. +**Distill any intent input into the canonical SPEC contract for downstream work.** Takes a brief, PRD, GDD, RFC, brain dump, transcript, UX folder, or mixed multi-source input and produces a `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 the kernel. **Use it when:** -- A document is too large for an LLM's context window -- You need token-efficient versions of research, specs, or planning artifacts -- You want to verify no information is lost during compression -- Agents will need to frequently reference and find information in it +- You need to lock the WHAT before the HOW for any kind of work (software, game design, research, editorial, policy, business). +- You want a LLM Optimized succinct, no-fluff contract that downstream skills can consume without re-reading every upstream artifact. +- You want to validate or update an existing spec. **How it works:** -1. **Analyze** — Reads source documents, identifies information density and structure -2. **Compress** — Converts prose to dense bullet-point format, strips decorative formatting -3. **Verify** — Checks completeness to ensure all original information is preserved -4. **Validate** (optional) — Round-trip reconstruction test proves lossless compression +1. Reads the input and any ancillary linked materials. +2. Distills into the five-field kernel using a configurable template; routes overflow into appropriately-named companions. +3. Runs a two-pass self-validate (coherence rules, then preservation of every load-bearing source claim). +4. Writes `SPEC.md`, sibling companions, and a `.decision-log.md` under `{output_folder}/specs/spec-{slug}/`. + +Spec Law enforces eight rules: capabilities carry both intent and success; intents are WHAT not HOW; constraints actually bend decisions; non-goals are explicit; success signals are concrete; capability IDs are stable; every load-bearing source claim is preserved; prose is lean. **Input:** -- `source_documents` (required) — File paths, folder paths, or glob patterns -- `downstream_consumer` (optional) — What consumes this (e.g., "PRD creation") -- `token_budget` (optional) — Approximate target size -- `--validate` (flag) — Run round-trip reconstruction test +- `input` (required) — path or inline text. Vague idea, brain dump, PRD, GDD, RFC, brief, transcript, mockup folder, mixed multi-source. +- `slug` (optional) — required only when input is sparse and no slug is derivable from a source filename. +- `target_spec_path` (optional) — set to update an existing spec instead of creating a new one. -**Output:** Distillate markdown file(s) with compression ratio report (e.g., "3.2:1") +**Output:** Spec folder containing `SPEC.md`, any companion files, and a `.decision-log.md`. Headless callers receive a JSON response with the result status and the list of files written or modified. + +:::note[Mutation contract] +`bmad-spec` is the only writer of `SPEC.md` and of spec-authored companions. Other skills produce their own native artifacts and invoke `bmad-spec` headless when they need to express intent as the canonical contract or propose updates. +::: ## bmad-advanced-elicitation diff --git a/docs/reference/workflow-map.md b/docs/reference/workflow-map.md index e3368c7d4..6d71a3a1f 100644 --- a/docs/reference/workflow-map.md +++ b/docs/reference/workflow-map.md @@ -47,7 +47,7 @@ Define what to build and for whom. | Workflow | Purpose | Produces | |-------------------------|-------------------------------------------------------------------------------------|---------------------------------------------------| | `bmad-prd` | Create, update, or validate a PRD — facilitated discovery, three intents in one skill | Create/Update: `prd.md`, `addendum.md`, `decision-log.md`; Validate: `validation-report.html` + `.md` | -| `bmad-create-ux-design` | Design user experience (when UX matters) | `ux-spec.md` | +| `bmad-ux` | Design user experience (when UX matters) — DESIGN.md (visual) + EXPERIENCE.md (behavioral) spine pair | `DESIGN.md`, `EXPERIENCE.md`, `.decision-log.md` | :::tip[Three intents in one skill] `bmad-prd` handles the full PRD lifecycle. State your intent when invoking or the skill will ask: diff --git a/docs/tutorials/getting-started.md b/docs/tutorials/getting-started.md index 3806d28a6..869de2529 100644 --- a/docs/tutorials/getting-started.md +++ b/docs/tutorials/getting-started.md @@ -162,7 +162,7 @@ All workflows in this phase are optional. [**Not sure which to use?**](../explan - Run `bmad-quick-dev` — it handles planning and implementation in a single workflow, skip to implementation :::note[UX Design (Optional)] -If your project has a user interface, invoke the **UX-Designer agent** (`bmad-agent-ux-designer`) and run the UX design workflow (`bmad-create-ux-design`) after creating your PRD. +If your project has a user interface, invoke the **UX-Designer agent** (`bmad-agent-ux-designer`) and run the UX design workflow (`bmad-ux`) after creating your PRD. ::: ### Phase 3: Solutioning (BMad Method/Enterprise) diff --git a/docs/vi-vn/bmad-developer-guide.md b/docs/vi-vn/bmad-developer-guide.md index 84a3b5af0..01b95f9d8 100644 --- a/docs/vi-vn/bmad-developer-guide.md +++ b/docs/vi-vn/bmad-developer-guide.md @@ -694,15 +694,7 @@ Review kiểu "devil's advocate" — giả định vấn đề luôn tồn tại - Tìm những gì **còn thiếu**, không chỉ những gì sai - Trực giao với Edge Case Hunter -### 8.4. Distillator — Nén tài liệu cho LLM - -```bash -bmad-distillator -``` - -Khi tài liệu quá lớn (PRD dài, Architecture phức tạp), Distillator nén nội dung tối ưu cho LLM mà không mất thông tin quan trọng. - -### 8.5. Shard Large Documents — Tách file lớn +### 8.4. Shard Large Documents — Tách file lớn ```bash bmad-shard-doc diff --git a/docs/vi-vn/reference/core-tools.md b/docs/vi-vn/reference/core-tools.md index 4d15e3969..13ed5cbe3 100644 --- a/docs/vi-vn/reference/core-tools.md +++ b/docs/vi-vn/reference/core-tools.md @@ -18,7 +18,7 @@ Chạy bất kỳ công cụ cốt lõi nào bằng cách gõ tên skill của n | [`bmad-help`](#bmad-help) | Tác vụ | Nhận hướng dẫn có ngữ cảnh về việc nên làm gì tiếp theo | | [`bmad-brainstorming`](#bmad-brainstorming) | Quy trình | Tổ chức các phiên brainstorming có tương tác | | [`bmad-party-mode`](#bmad-party-mode) | Quy trình | Điều phối thảo luận nhóm nhiều agent | -| [`bmad-distillator`](#bmad-distillator) | Tác vụ | Nén tài liệu tối ưu cho LLM mà không mất thông tin | +| [`bmad-spec`](#bmad-spec) | Quy trình | Distill any intent input into a SPEC kernel and companions, the canonical contract for downstream work (translation pending) | | [`bmad-advanced-elicitation`](#bmad-advanced-elicitation) | Tác vụ | Đẩy đầu ra của LLM qua các vòng tinh luyện lặp | | [`bmad-review-adversarial-general`](#bmad-review-adversarial-general) | Tác vụ | Rà soát hoài nghi để tìm chỗ thiếu và chỗ sai | | [`bmad-review-edge-case-hunter`](#bmad-review-edge-case-hunter) | Tác vụ | Phân tích toàn bộ nhánh rẽ để tìm trường hợp biên chưa được xử lý | @@ -97,33 +97,6 @@ Chạy bất kỳ công cụ cốt lõi nào bằng cách gõ tên skill của n **Đầu ra:** Cuộc hội thoại nhiều agent theo thời gian thực, vẫn giữ nguyên cá tính từng agent -## bmad-distillator - -**Nén tài liệu nguồn tối ưu cho LLM mà không mất thông tin.** Công cụ này tạo ra các bản chưng cất dày đặc, tiết kiệm token nhưng vẫn giữ nguyên toàn bộ thông tin cho LLM dùng về sau. Có thể xác minh bằng tái dựng hai chiều. - -**Dùng khi:** - -- Một tài liệu quá lớn so với context window của LLM -- Bạn cần phiên bản tiết kiệm token của tài liệu nghiên cứu, đặc tả hoặc artifact lập kế hoạch -- Bạn muốn xác minh rằng không có thông tin nào bị mất trong quá trình nén -- Các agent sẽ cần tham chiếu và tìm thông tin trong đó thường xuyên - -**Cách hoạt động:** - -1. **Analyze** — Đọc tài liệu nguồn, nhận diện mật độ thông tin và cấu trúc -2. **Compress** — Chuyển văn xuôi thành dạng bullet dày đặc, bỏ trang trí không cần thiết -3. **Verify** — Kiểm tra tính đầy đủ để đảm bảo mọi thông tin gốc còn nguyên -4. **Validate** *(tùy chọn)* — Tái dựng hai chiều để chứng minh nén không mất mát - -**Đầu vào:** - -- `source_documents` *(bắt buộc)* — Đường dẫn file, thư mục hoặc mẫu glob -- `downstream_consumer` *(tùy chọn)* — Thành phần sẽ dùng đầu ra này, ví dụ "PRD creation" -- `token_budget` *(tùy chọn)* — Kích thước mục tiêu gần đúng -- `--validate` *(cờ)* — Chạy kiểm tra tái dựng hai chiều - -**Đầu ra:** Một hoặc nhiều file markdown distillate kèm báo cáo tỷ lệ nén, ví dụ `3.2:1` - ## bmad-advanced-elicitation **Đẩy đầu ra của LLM qua các phương pháp tinh luyện lặp.** Công cụ này chọn từ thư viện kỹ thuật elicitation để cải thiện nội dung một cách có hệ thống qua nhiều lượt. diff --git a/docs/vi-vn/reference/workflow-map.md b/docs/vi-vn/reference/workflow-map.md index c4023e481..109b88cad 100644 --- a/docs/vi-vn/reference/workflow-map.md +++ b/docs/vi-vn/reference/workflow-map.md @@ -37,7 +37,7 @@ Xác định cần xây gì và xây cho ai. | Quy trình | Mục đích | Tạo ra | | --------------------------- | ---------------------------------------- | ------------ | | `bmad-create-prd` | Xác định yêu cầu (FR/NFR) | `PRD.md` | -| `bmad-create-ux-design` | Thiết kế trải nghiệm người dùng khi UX là yếu tố quan trọng | `ux-spec.md` | +| `bmad-ux` | Thiết kế trải nghiệm người dùng khi UX là yếu tố quan trọng | `DESIGN.md`, `EXPERIENCE.md` | ## Giai đoạn 3: Định hình giải pháp diff --git a/docs/vi-vn/tutorials/getting-started.md b/docs/vi-vn/tutorials/getting-started.md index 6a33a6e0a..af1dacf12 100644 --- a/docs/vi-vn/tutorials/getting-started.md +++ b/docs/vi-vn/tutorials/getting-started.md @@ -150,7 +150,7 @@ Tất cả workflow trong phase này đều là tùy chọn. [**Chưa chắc nê - Chạy `bmad-quick-dev` — workflow này gộp cả planning và implementation trong một lần, nên bạn có thể chuyển thẳng sang triển khai :::note[Thiết kế UX (Tùy chọn)] -Nếu dự án của bạn có giao diện người dùng, hãy gọi **UX-Designer agent** (`bmad-agent-ux-designer`) và chạy workflow thiết kế UX (`bmad-create-ux-design`) sau khi tạo PRD. +Nếu dự án của bạn có giao diện người dùng, hãy gọi **UX-Designer agent** (`bmad-agent-ux-designer`) và chạy workflow thiết kế UX (`bmad-ux`) sau khi tạo PRD. ::: ### Phase 3: Solutioning (BMad Method/Enterprise) diff --git a/docs/zh-cn/reference/core-tools.md b/docs/zh-cn/reference/core-tools.md index 7e88db998..520a56305 100644 --- a/docs/zh-cn/reference/core-tools.md +++ b/docs/zh-cn/reference/core-tools.md @@ -18,7 +18,7 @@ sidebar: | [`bmad-help`](#bmad-help) | Task | 基于项目上下文推荐下一步 | | [`bmad-brainstorming`](#bmad-brainstorming) | Workflow | 引导式头脑风暴与想法扩展 | | [`bmad-party-mode`](#bmad-party-mode) | Workflow | 多智能体协作讨论 | -| [`bmad-distillator`](#bmad-distillator) | Task | 无损压缩文档,提升 LLM 消费效率 | +| [`bmad-spec`](#bmad-spec) | Workflow | Distill any intent input into a SPEC kernel and companions, the canonical contract for downstream work (translation pending) | | [`bmad-advanced-elicitation`](#bmad-advanced-elicitation) | Task | 通过多轮技法增强 LLM 输出 | | [`bmad-review-adversarial-general`](#bmad-review-adversarial-general) | Task | 对抗式问题发现审查 | | [`bmad-review-edge-case-hunter`](#bmad-review-edge-case-hunter) | Task | 边界与分支路径穷举审查 | @@ -80,29 +80,6 @@ sidebar: **输入:** 讨论主题(可指定希望参与的角色) **输出:** 多智能体实时对话过程 -## bmad-distillator - -**定位:** 在不丢失信息前提下压缩文档,降低 token 成本。 - -**适用场景:** -- 源文档超过上下文窗口 -- 需要把研究/规格材料转成高密度引用版本 -- 想验证压缩结果是否可逆 - -**工作机制:** -1. 分析源文档结构与信息密度 -2. 压缩为高密度结构化表达 -3. 校验信息完整性 -4. 可选执行往返重构验证(round-trip) - -**输入:** -- `source_documents`(必填) -- `downstream_consumer`(可选) -- `token_budget`(可选) -- `--validate`(可选标志) - -**输出:** 精馏文档 + 压缩比报告 - ## bmad-advanced-elicitation **定位:** 对已有 LLM 输出做第二轮深挖与改写强化。 diff --git a/docs/zh-cn/reference/workflow-map.md b/docs/zh-cn/reference/workflow-map.md index 75c23a2b4..be997ddf2 100644 --- a/docs/zh-cn/reference/workflow-map.md +++ b/docs/zh-cn/reference/workflow-map.md @@ -32,7 +32,7 @@ BMad Method(BMM)通过分阶段 workflow 逐步构建上下文,让智能 | Workflow | 目的 | 产出 | | --- | --- | --- | | `bmad-create-prd` | 明确 FR/NFR 与范围边界 | `PRD.md` | -| `bmad-create-ux-design` | 在 UX 复杂场景下补齐交互与体验方案 | `ux-spec.md` | +| `bmad-ux` | 在 UX 复杂场景下补齐交互与体验方案 | `DESIGN.md`, `EXPERIENCE.md` | ## 阶段 3:解决方案设计(Solutioning) diff --git a/docs/zh-cn/tutorials/getting-started.md b/docs/zh-cn/tutorials/getting-started.md index 2b37408cf..87db3c9d5 100644 --- a/docs/zh-cn/tutorials/getting-started.md +++ b/docs/zh-cn/tutorials/getting-started.md @@ -149,7 +149,7 @@ BMad-Help 将检测你已完成的内容,并准确推荐下一步该做什么 - 运行 `bmad-quick-dev` —— 它会在一个工作流里同时处理规划与实现,可直接进入实现阶段 :::note[UX 设计(可选)] -如果你的项目有用户界面,在创建 PRD 后调用 **UX-Designer 智能体**(`bmad-agent-ux-designer`),然后运行 UX 设计工作流(`bmad-create-ux-design`)。 +如果你的项目有用户界面,在创建 PRD 后调用 **UX-Designer 智能体**(`bmad-agent-ux-designer`),然后运行 UX 设计工作流(`bmad-ux`)。 ::: ### 阶段 3:解决方案设计(BMad Method/Enterprise) diff --git a/removals.txt b/removals.txt index 5a7659dd2..a694583e6 100644 --- a/removals.txt +++ b/removals.txt @@ -52,3 +52,8 @@ bmad-bmm-sprint-planning bmad-bmm-sprint-status bmad-bmm-technical-research bmad-bmm-validate-prd + +# Removed skills (post-v6.7.x) +# bmad-distillator: superseded by bmad-spec (universal intent distiller with +# preservation-validated contract for downstream skills). +bmad-distillator diff --git a/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md b/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md index 671079999..ecbc09419 100644 --- a/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md +++ b/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md @@ -61,7 +61,7 @@ Omit keys for artifacts that were not produced. ## Discovery -Conversationally surface what the user brings, why this brief exists, and the domain — echo back how each shapes your approach. Open with space for the full picture: invite a brain dump and ask up front for any source material they already have (memo, deck, transcript, prior brief, slack thread). Read what exists first; ask only what is missing. After the dump, a simple "anything else?" often surfaces what they almost forgot. Drill into specifics only after the broad shape is on the table; premature granular questions interrupt the dump and miss the room. Get a read on stakes early (passion project, internal pitch, investor input, public launch), and let that calibrate how hard you push. During the dump, spawn web-research subagents to ground the picture — landscape, comparables, current state — AI especially, where training data ages by the week. Subagent searches; parent gets a digest. Deep work (full market sizing, exhaustive teardowns) → suggest `bmad-market-research` or `bmad-domain-research`. +Conversationally surface what the user brings, why this brief exists, the domain, and the form-factor (mobile / web / desktop / multi-surface / hardware / API — what *is* this thing) — echo back how each shapes your approach. Open with space for the full picture: invite a brain dump and ask up front for any source material they already have (memo, deck, transcript, prior brief, slack thread). Read what exists first; ask only what is missing. After the dump, a simple "anything else?" often surfaces what they almost forgot. Drill into specifics only after the broad shape is on the table; premature granular questions interrupt the dump and miss the room. Get a read on stakes early (passion project, internal pitch, investor input, public launch), and let that calibrate how hard you push. During the dump, spawn web-research subagents to ground the picture — landscape, comparables, current state — AI especially, where training data ages by the week. Subagent searches; parent gets a digest. Deep work (full market sizing, exhaustive teardowns) → suggest `bmad-market-research` or `bmad-domain-research`. Once stakes are read and the dump is captured, offer the working mode in the user's language: diff --git a/src/bmm-skills/2-plan-workflows/bmad-agent-ux-designer/customize.toml b/src/bmm-skills/2-plan-workflows/bmad-agent-ux-designer/customize.toml index 80d2ed319..8554e06c3 100644 --- a/src/bmm-skills/2-plan-workflows/bmad-agent-ux-designer/customize.toml +++ b/src/bmm-skills/2-plan-workflows/bmad-agent-ux-designer/customize.toml @@ -57,4 +57,4 @@ principles = [ [[agent.menu]] code = "CU" description = "Guidance through realizing the plan for your UX to inform architecture and implementation" -skill = "bmad-create-ux-design" +skill = "bmad-ux" diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/SKILL.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/SKILL.md deleted file mode 100644 index 496473b1e..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/SKILL.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -name: bmad-create-ux-design -description: 'Plan UX patterns and design specifications. Use when the user says "lets create UX design" or "create UX specifications" or "help me plan the UX"' ---- - -# Create UX Design Workflow - -**Goal:** Create comprehensive UX design specifications through collaborative visual exploration and informed decision-making where you act as a UX facilitator working with a product stakeholder. - -## Conventions - -- Bare paths (e.g. `steps/step-01-init.md`) resolve from the skill root. -- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives). -- `{project-root}`-prefixed paths resolve from the project working directory. -- `{skill-name}` resolves to the skill directory's basename. - -## WORKFLOW ARCHITECTURE - -This uses **micro-file architecture** for disciplined execution: - -- Each step is a self-contained file with embedded rules -- Sequential progression with user control at each step -- Document state tracked in frontmatter -- Append-only document building through conversation - -## On Activation - -### Step 1: Resolve the Workflow Block - -Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow` - -**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver: - -1. `{skill-root}/customize.toml` — defaults -2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides -3. `{project-root}/_bmad/custom/{skill-name}.user.toml` — personal overrides - -Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append. - -### Step 2: Execute Prepend Steps - -Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding. - -### Step 3: Load Persistent Facts - -Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim. - -### Step 4: Load Config - -Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: -- Use `{user_name}` for greeting -- Use `{communication_language}` for all communications -- Use `{document_output_language}` for output documents -- Use `{planning_artifacts}` for output location and artifact scanning -- Use `{project_knowledge}` for additional context scanning - -### Step 5: Greet the User - -Greet `{user_name}`, speaking in `{communication_language}`. - -### Step 6: Execute Append Steps - -Execute each entry in `{workflow.activation_steps_append}` in order. - -Activation is complete. Begin the workflow below. - -## Paths - -- `default_output_file` = `{planning_artifacts}/ux-design-specification.md` - -## EXECUTION - -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` -- Read fully and follow: `./steps/step-01-init.md` to begin the UX design workflow. diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/customize.toml b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/customize.toml deleted file mode 100644 index f77520c83..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/customize.toml +++ /dev/null @@ -1,41 +0,0 @@ -# DO NOT EDIT -- overwritten on every update. -# -# Workflow customization surface for bmad-create-ux-design. Mirrors the -# agent customization shape under the [workflow] namespace. - -[workflow] - -# --- Configurable below. Overrides merge per BMad structural rules: --- -# scalars: override wins • arrays (persistent_facts, activation_steps_*): append -# arrays-of-tables with `code`/`id`: replace matching items, append new ones. - -# Steps to run before the standard activation (config load, greet). -# Overrides append. Use for pre-flight loads, compliance checks, etc. - -activation_steps_prepend = [] - -# Steps to run after greet but before the workflow begins. -# Overrides append. Use for context-heavy setup that should happen -# once the user has been acknowledged. - -activation_steps_append = [] - -# Persistent facts the workflow keeps in mind for the whole run -# (standards, compliance constraints, stylistic guardrails). -# Distinct from the runtime memory sidecar — these are static context -# loaded on activation. Overrides append. -# -# Each entry is either: -# - a literal sentence, e.g. "All designs must meet WCAG 2.1 AA accessibility standards." -# - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md" -# (glob patterns are supported; the file's contents are loaded and treated as facts). - -persistent_facts = [ - "file:{project-root}/**/project-context.md", -] - -# Scalar: executed when the workflow reaches Step 14 (Workflow Completion), -# after the UX design specification is finalized and status is updated. Override wins. -# Leave empty for no custom post-completion behavior. - -on_complete = "" diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-01-init.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-01-init.md deleted file mode 100644 index 2ec7ecb36..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-01-init.md +++ /dev/null @@ -1,135 +0,0 @@ -# Step 1: UX Design Workflow Initialization - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on initialization and setup only - don't look ahead to future steps -- 🚪 DETECT existing workflow state and handle continuation properly -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- 💾 Initialize document and update frontmatter -- 📖 Set up frontmatter `stepsCompleted: [1]` before loading next step -- 🚫 FORBIDDEN to load next step until setup is complete - -## CONTEXT BOUNDARIES: - -- Variables from workflow.md are available in memory -- Previous context = what's in output document + frontmatter -- Don't assume knowledge from other steps -- Input document discovery happens in this step - -## YOUR TASK: - -Initialize the UX design workflow by detecting continuation state and setting up the design specification document. - -## INITIALIZATION SEQUENCE: - -### 1. Check for Existing Workflow - -First, check if the output document already exists: - -- Look for file at `{planning_artifacts}/*ux-design-specification*.md` -- If exists, read the complete file including frontmatter -- If not exists, this is a fresh workflow - -### 2. Handle Continuation (If Document Exists) - -If the document exists and has frontmatter with `stepsCompleted`: - -- **STOP here** and load `./step-01b-continue.md` immediately -- Do not proceed with any initialization tasks -- Let step-01b handle the continuation logic - -### 3. Fresh Workflow Setup (If No Document) - -If no document exists or no `stepsCompleted` in frontmatter: - -#### A. Input Document Discovery - -Discover and load context documents using smart discovery. Documents can be in the following locations: -- {planning_artifacts}/** -- {output_folder}/** -- {product_knowledge}/** -- {project-root}/docs/** - -Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for `*foo*.md` and not found, also search for a folder called *foo*/index.md (which indicates sharded content) - -Try to discover the following: -- Product Brief (`*brief*.md`) -- Research Documents (`*prd*.md`) -- Project Documentation (generally multiple documents might be found for this in the `{product_knowledge}` or `docs` folder.) -- Project Context (`**/project-context.md`) - -Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules - -**Loading Rules:** - -- Load ALL discovered files completely that the user confirmed or provided (no offset/limit) -- If there is a project context, whatever is relevant should try to be biased in the remainder of this whole workflow process -- For sharded folders, load ALL files to get complete picture, using the index first to potentially know the potential of each document -- index.md is a guide to what's relevant whenever available -- Track all successfully loaded files in frontmatter `inputDocuments` array - -#### B. Create Initial Document - -Copy the template from `../ux-design-template.md` to `{planning_artifacts}/ux-design-specification.md` -Initialize frontmatter in the template. - -#### C. Complete Initialization and Report - -Complete setup and report to user: - -**Document Setup:** - -- Created: `{planning_artifacts}/ux-design-specification.md` from template -- Initialized frontmatter with workflow state - -**Input Documents Discovered:** -Report what was found: -"Welcome {{user_name}}! I've set up your UX design workspace for {{project_name}}. - -**Documents Found:** - -- PRD: {number of PRD files loaded or "None found"} -- Product brief: {number of brief files loaded or "None found"} -- Other context: {number of other files loaded or "None found"} - -**Files loaded:** {list of specific file names or "No additional documents found"} - -Do you have any other documents you'd like me to include, or shall we continue to the next step? - -[C] Continue to UX discovery" - -## NEXT STEP: - -After user selects [C] to continue, ensure the file `{planning_artifacts}/ux-design-specification.md` has been created and saved, and then load `./step-02-discovery.md` to begin the UX discovery phase. - -Remember: Do NOT proceed to step-02 until output file has been updated and user explicitly selects [C] to continue! - -## SUCCESS METRICS: - -✅ Existing workflow detected and handed off to step-01b correctly -✅ Fresh workflow initialized with template and frontmatter -✅ Input documents discovered and loaded using sharded-first logic -✅ All discovered files tracked in frontmatter `inputDocuments` -✅ User confirmed document setup and can proceed - -## FAILURE MODES: - -❌ Proceeding with fresh initialization when existing workflow exists -❌ Not updating frontmatter with discovered input documents -❌ Creating document without proper template -❌ Not checking sharded folders first before whole files -❌ Not reporting what documents were found to user - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-01b-continue.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-01b-continue.md deleted file mode 100644 index cd1df25f0..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-01b-continue.md +++ /dev/null @@ -1,127 +0,0 @@ -# Step 1B: UX Design Workflow Continuation - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on understanding where we left off and continuing appropriately -- 🚪 RESUME workflow from exact point where it was interrupted -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis of current state before taking action -- 💾 Keep existing frontmatter `stepsCompleted` values -- 📖 Only load documents that were already tracked in `inputDocuments` -- 🚫 FORBIDDEN to modify content completed in previous steps - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter are already loaded -- Previous context = complete document + existing frontmatter -- Input documents listed in frontmatter were already processed -- Last completed step = `lastStep` value from frontmatter - -## YOUR TASK: - -Resume the UX design workflow from where it was left off, ensuring smooth continuation. - -## CONTINUATION SEQUENCE: - -### 1. Analyze Current State - -Review the frontmatter to understand: - -- `stepsCompleted`: Which steps are already done -- `lastStep`: The most recently completed step number -- `inputDocuments`: What context was already loaded -- All other frontmatter variables - -### 2. Load All Input Documents - -Reload the context documents listed in `inputDocuments`: - -- For each document in `inputDocuments`, load the complete file -- This ensures you have full context for continuation -- Don't discover new documents - only reload what was previously processed - -### 3. Summarize Current Progress - -Welcome the user back and provide context: -"Welcome back {{user_name}}! I'm resuming our UX design collaboration for {{project_name}}. - -**Current Progress:** - -- Steps completed: {stepsCompleted} -- Last worked on: Step {lastStep} -- Context documents available: {len(inputDocuments)} files -- Current UX design specification is ready with all completed sections - -**Document Status:** - -- Current UX design document is ready with all completed sections -- Ready to continue from where we left off - -Does this look right, or do you want to make any adjustments before we proceed?" - -### 4. Determine Next Step - -Based on `lastStep` value, determine which step to load next: - -- If `lastStep = 1` → Load `./step-02-discovery.md` -- If `lastStep = 2` → Load `./step-03-core-experience.md` -- If `lastStep = 3` → Load `./step-04-emotional-response.md` -- Continue this pattern for all steps -- If `lastStep` indicates final step → Workflow already complete - -### 5. Present Continuation Options - -After presenting current progress, ask: -"Ready to continue with Step {nextStepNumber}: {nextStepTitle}? - -[C] Continue to Step {nextStepNumber}" - -## SUCCESS METRICS: - -✅ All previous input documents successfully reloaded -✅ Current workflow state accurately analyzed and presented -✅ User confirms understanding of progress -✅ Correct next step identified and prepared for loading - -## FAILURE MODES: - -❌ Discovering new input documents instead of reloading existing ones -❌ Modifying content from already completed steps -❌ Loading wrong next step based on `lastStep` value -❌ Proceeding without user confirmation of current state - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## WORKFLOW ALREADY COMPLETE? - -If `lastStep` indicates the final step is completed: -"Great news! It looks like we've already completed the UX design workflow for {{project_name}}. - -The final UX design specification is ready at {planning_artifacts}/ux-design-specification.md with all sections completed through step {finalStepNumber}. - -The complete UX design includes visual foundations, user flows, and design specifications ready for implementation. - -Would you like me to: - -- Review the completed UX design specification with you -- Suggest next workflow steps (like wireframe generation or architecture) -- Start a new UX design revision - -What would be most helpful?" - -## NEXT STEP: - -After user confirms they're ready to continue, load the appropriate next step file based on the `lastStep` value from frontmatter. - -Remember: Do NOT load the next step until user explicitly selects [C] to continue! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-02-discovery.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-02-discovery.md deleted file mode 100644 index e0a8f0bde..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-02-discovery.md +++ /dev/null @@ -1,190 +0,0 @@ -# Step 2: Project Understanding - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on understanding project context and user needs -- 🎯 COLLABORATIVE discovery, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating project understanding content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper project insights -- **P (Party Mode)**: Bring multiple perspectives to understand project context -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from step 1 are available -- Input documents (PRD, briefs, epics) already loaded are in memory -- No additional data files needed for this step -- Focus on project and user understanding - -## YOUR TASK: - -Understand the project context, target users, and what makes this product special from a UX perspective. - -## PROJECT DISCOVERY SEQUENCE: - -### 1. Review Loaded Context - -Start by analyzing what we know from the loaded documents: -"Based on the project documentation we have loaded, let me confirm what I'm understanding about {{project_name}}. - -**From the documents:** -{summary of key insights from loaded PRD, briefs, and other context documents} - -**Target Users:** -{summary of user information from loaded documents} - -**Key Features/Goals:** -{summary of main features and goals from loaded documents} - -Does this match your understanding? Are there any corrections or additions you'd like to make?" - -### 2. Fill Context Gaps (If no documents or gaps exist) - -If no documents were loaded or key information is missing: -"Since we don't have complete documentation, let's start with the essentials: - -**What are you building?** (Describe your product in 1-2 sentences) - -**Who is this for?** (Describe your ideal user or target audience) - -**What makes this special or different?** (What's the unique value proposition?) - -**What's the main thing users will do with this?** (Core user action or goal)" - -### 3. Explore User Context Deeper - -Dive into user understanding: -"Let me understand your users better to inform the UX design: - -**User Context Questions:** - -- What problem are users trying to solve? -- What frustrates them with current solutions? -- What would make them say 'this is exactly what I needed'? -- How tech-savvy are your target users? -- What devices will they use most? -- When/where will they use this product?" - -### 4. Identify UX Design Challenges - -Surface the key UX challenges to address: -"From what we've discussed, I'm seeing some key UX design considerations: - -**Design Challenges:** - -- [Identify 2-3 key UX challenges based on project type and user needs] -- [Note any platform-specific considerations] -- [Highlight any complex user flows or interactions] - -**Design Opportunities:** - -- [Identify 2-3 areas where great UX could create competitive advantage] -- [Note any opportunities for innovative UX patterns] - -Does this capture the key UX considerations we need to address?" - -### 5. Generate Project Understanding Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Executive Summary - -### Project Vision - -[Project vision summary based on conversation] - -### Target Users - -[Target user descriptions based on conversation] - -### Key Design Challenges - -[Key UX challenges identified based on conversation] - -### Design Opportunities - -[Design opportunities identified based on conversation] -``` - -### 6. Present Content and Menu - -Show the generated project understanding content and present choices: -"I've documented our understanding of {{project_name}} from a UX perspective. This will guide all our design decisions moving forward. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 5] - -**What would you like to do?** -[C] Continue - Save this to the document and move to core experience definition" - -### 7. Handle Menu Selection - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: `stepsCompleted: [1, 2]` -- Load `./step-03-core-experience.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document. Only after the content is saved to document, read fully and follow: `./step-03-core-experience.md`. - -## SUCCESS METRICS: - -✅ All available context documents reviewed and synthesized -✅ Project vision clearly articulated -✅ Target users well understood -✅ Key UX challenges identified -✅ Design opportunities surfaced -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not reviewing loaded context documents thoroughly -❌ Making assumptions about users without asking -❌ Missing key UX challenges that will impact design -❌ Not identifying design opportunities -❌ Generating generic content without real project insight -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -Remember: Do NOT proceed to step-03 until user explicitly selects 'C' from the menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-03-core-experience.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-03-core-experience.md deleted file mode 100644 index e14d3fd60..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-03-core-experience.md +++ /dev/null @@ -1,217 +0,0 @@ -# Step 3: Core Experience Definition - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on defining the core user experience and platform -- 🎯 COLLABORATIVE discovery, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating core experience content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper experience insights -- **P (Party Mode)**: Bring multiple perspectives to define optimal user experience -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Project understanding from step 2 informs this step -- No additional data files needed for this step -- Focus on core experience and platform decisions - -## YOUR TASK: - -Define the core user experience, platform requirements, and what makes the interaction effortless. - -## CORE EXPERIENCE DISCOVERY SEQUENCE: - -### 1. Define Core User Action - -Start by identifying the most important user interaction: -"Now let's dig into the heart of the user experience for {{project_name}}. - -**Core Experience Questions:** - -- What's the ONE thing users will do most frequently? -- What user action is absolutely critical to get right? -- What should be completely effortless for users? -- If we nail one interaction, everything else follows - what is it? - -Think about the core loop or primary action that defines your product's value." - -### 2. Explore Platform Requirements - -Determine where and how users will interact: -"Let's define the platform context for {{project_name}}: - -**Platform Questions:** - -- Web, mobile app, desktop, or multiple platforms? -- Will this be primarily touch-based or mouse/keyboard? -- Any specific platform requirements or constraints? -- Do we need to consider offline functionality? -- Any device-specific capabilities we should leverage?" - -### 3. Identify Effortless Interactions - -Surface what should feel magical or completely seamless: -"**Effortless Experience Design:** - -- What user actions should feel completely natural and require zero thought? -- Where do users currently struggle with similar products? -- What interaction, if made effortless, would create delight? -- What should happen automatically without user intervention? -- Where can we eliminate steps that competitors require?" - -### 4. Define Critical Success Moments - -Identify the moments that determine success or failure: -"**Critical Success Moments:** - -- What's the moment where users realize 'this is better'? -- When does the user feel successful or accomplished? -- What interaction, if failed, would ruin the experience? -- What are the make-or-break user flows? -- Where does first-time user success happen?" - -### 5. Synthesize Experience Principles - -Extract guiding principles from the conversation: -"Based on our discussion, I'm hearing these core experience principles for {{project_name}}: - -**Experience Principles:** - -- [Principle 1 based on core action focus] -- [Principle 2 based on effortless interactions] -- [Principle 3 based on platform considerations] -- [Principle 4 based on critical success moments] - -These principles will guide all our UX decisions. Do these capture what's most important?" - -### 6. Generate Core Experience Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Core User Experience - -### Defining Experience - -[Core experience definition based on conversation] - -### Platform Strategy - -[Platform requirements and decisions based on conversation] - -### Effortless Interactions - -[Effortless interaction areas identified based on conversation] - -### Critical Success Moments - -[Critical success moments defined based on conversation] - -### Experience Principles - -[Guiding principles for UX decisions based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated core experience content and present choices: -"I've defined the core user experience for {{project_name}} based on our conversation. This establishes the foundation for all our UX design decisions. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine the core experience definition -[P] Party Mode - Bring different perspectives on the user experience -[C] Continue - Save this to the document and move to emotional response definition" - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current core experience content -- Process the enhanced experience insights that come back -- Ask user: "Accept these improvements to the core experience definition? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current core experience definition -- Process the collaborative experience improvements that come back -- Ask user: "Accept these changes to the core experience definition? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-04-emotional-response.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Core user action clearly identified and defined -✅ Platform requirements thoroughly explored -✅ Effortless interaction areas identified -✅ Critical success moments mapped out -✅ Experience principles established as guiding framework -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Missing the core user action that defines the product -❌ Not properly considering platform requirements -❌ Overlooking what should be effortless for users -❌ Not identifying critical make-or-break interactions -❌ Experience principles too generic or not actionable -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-04-emotional-response.md` to define desired emotional responses. - -Remember: Do NOT proceed to step-04 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-04-emotional-response.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-04-emotional-response.md deleted file mode 100644 index 00edcedd8..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-04-emotional-response.md +++ /dev/null @@ -1,220 +0,0 @@ -# Step 4: Desired Emotional Response - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on defining desired emotional responses and user feelings -- 🎯 COLLABORATIVE discovery, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating emotional response content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper emotional insights -- **P (Party Mode)**: Bring multiple perspectives to define optimal emotional responses -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Core experience definition from step 3 informs emotional response -- No additional data files needed for this step -- Focus on user feelings and emotional design goals - -## YOUR TASK: - -Define the desired emotional responses users should feel when using the product. - -## EMOTIONAL RESPONSE DISCOVERY SEQUENCE: - -### 1. Explore Core Emotional Goals - -Start by understanding the emotional objectives: -"Now let's think about how {{project_name}} should make users feel. - -**Emotional Response Questions:** - -- What should users FEEL when using this product? -- What emotion would make them tell a friend about this? -- How should users feel after accomplishing their primary goal? -- What feeling differentiates this from competitors? - -Common emotional goals: Empowered and in control? Delighted and surprised? Efficient and productive? Creative and inspired? Calm and focused? Connected and engaged?" - -### 2. Identify Emotional Journey Mapping - -Explore feelings at different stages: -"**Emotional Journey Considerations:** - -- How should users feel when they first discover the product? -- What emotion during the core experience/action? -- How should they feel after completing their task? -- What if something goes wrong - what emotional response do we want? -- How should they feel when returning to use it again?" - -### 3. Define Micro-Emotions - -Surface subtle but important emotional states: -"**Micro-Emotions to Consider:** - -- Confidence vs. Confusion -- Trust vs. Skepticism -- Excitement vs. Anxiety -- Accomplishment vs. Frustration -- Delight vs. Satisfaction -- Belonging vs. Isolation - -Which of these emotional states are most critical for your product's success?" - -### 4. Connect Emotions to UX Decisions - -Link feelings to design implications: -"**Design Implications:** - -- If we want users to feel [emotional state], what UX choices support this? -- What interactions might create negative emotions we want to avoid? -- Where can we add moments of delight or surprise? -- How do we build trust and confidence through design? - -**Emotion-Design Connections:** - -- [Emotion 1] → [UX design approach] -- [Emotion 2] → [UX design approach] -- [Emotion 3] → [UX design approach]" - -### 5. Validate Emotional Goals - -Check if emotional goals align with product vision: -"Let me make sure I understand the emotional vision for {{project_name}}: - -**Primary Emotional Goal:** [Summarize main emotional response] -**Secondary Feelings:** [List supporting emotional states] -**Emotions to Avoid:** [List negative emotions to prevent] - -Does this capture the emotional experience you want to create? Any adjustments needed?" - -### 6. Generate Emotional Response Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Desired Emotional Response - -### Primary Emotional Goals - -[Primary emotional goals based on conversation] - -### Emotional Journey Mapping - -[Emotional journey mapping based on conversation] - -### Micro-Emotions - -[Micro-emotions identified based on conversation] - -### Design Implications - -[UX design implications for emotional responses based on conversation] - -### Emotional Design Principles - -[Guiding principles for emotional design based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated emotional response content and present choices: -"I've defined the desired emotional responses for {{project_name}}. These emotional goals will guide our design decisions to create the right user experience. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine the emotional response definition -[P] Party Mode - Bring different perspectives on user emotional needs -[C] Continue - Save this to the document and move to inspiration analysis" - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current emotional response content -- Process the enhanced emotional insights that come back -- Ask user: "Accept these improvements to the emotional response definition? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current emotional response definition -- Process the collaborative emotional insights that come back -- Ask user: "Accept these changes to the emotional response definition? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-05-inspiration.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Primary emotional goals clearly defined -✅ Emotional journey mapped across user experience -✅ Micro-emotions identified and addressed -✅ Design implications connected to emotional responses -✅ Emotional design principles established -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Missing core emotional goals or being too generic -❌ Not considering emotional journey across different stages -❌ Overlooking micro-emotions that impact user satisfaction -❌ Not connecting emotional goals to specific UX design choices -❌ Emotional principles too vague or not actionable -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-05-inspiration.md` to analyze UX patterns from inspiring products. - -Remember: Do NOT proceed to step-05 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-05-inspiration.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-05-inspiration.md deleted file mode 100644 index f6b06a64f..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-05-inspiration.md +++ /dev/null @@ -1,235 +0,0 @@ -# Step 5: UX Pattern Analysis & Inspiration - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on analyzing existing UX patterns and extracting inspiration -- 🎯 COLLABORATIVE discovery, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating inspiration analysis content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper pattern insights -- **P ( Party Mode)**: Bring multiple perspectives to analyze UX patterns -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Emotional response goals from step 4 inform pattern analysis -- No additional data files needed for this step -- Focus on analyzing existing UX patterns and extracting lessons - -## YOUR TASK: - -Analyze inspiring products and UX patterns to inform design decisions for the current project. - -## INSPIRATION ANALYSIS SEQUENCE: - -### 1. Identify User's Favorite Apps - -Start by gathering inspiration sources: -"Let's learn from products your users already love and use regularly. - -**Inspiration Questions:** - -- Name 2-3 apps your target users already love and USE frequently -- For each one, what do they do well from a UX perspective? -- What makes the experience compelling or delightful? -- What keeps users coming back to these apps? - -Think about apps in your category or even unrelated products that have great UX." - -### 2. Analyze UX Patterns and Principles - -Break down what makes these apps successful: -"For each inspiring app, let's analyze their UX success: - -**For [App Name]:** - -- What core problem does it solve elegantly? -- What makes the onboarding experience effective? -- How do they handle navigation and information hierarchy? -- What are their most innovative or delightful interactions? -- What visual design choices support the user experience? -- How do they handle errors or edge cases?" - -### 3. Extract Transferable Patterns - -Identify patterns that could apply to your project: -"**Transferable UX Patterns:** -Looking across these inspiring apps, I see patterns we could adapt: - -**Navigation Patterns:** - -- [Pattern 1] - could work for your [specific use case] -- [Pattern 2] - might solve your [specific challenge] - -**Interaction Patterns:** - -- [Pattern 1] - excellent for [your user goal] -- [Pattern 2] - addresses [your user pain point] - -**Visual Patterns:** - -- [Pattern 1] - supports your [emotional goal] -- [Pattern 2] - aligns with your [platform requirements] - -Which of these patterns resonate most for your product?" - -### 4. Identify Anti-Patterns to Avoid - -Surface what not to do based on analysis: -"**UX Anti-Patterns to Avoid:** -From analyzing both successes and failures in your space, here are patterns to avoid: - -- [Anti-pattern 1] - users find this confusing/frustrating -- [Anti-pattern 2] - this creates unnecessary friction -- [Anti-pattern 3] - doesn't align with your [emotional goals] - -Learning from others' mistakes is as important as learning from their successes." - -### 5. Define Design Inspiration Strategy - -Create a clear strategy for using this inspiration: -"**Design Inspiration Strategy:** - -**What to Adopt:** - -- [Specific pattern] - because it supports [your core experience] -- [Specific pattern] - because it aligns with [user needs] - -**What to Adapt:** - -- [Specific pattern] - modify for [your unique requirements] -- [Specific pattern] - simplify for [your user skill level] - -**What to Avoid:** - -- [Specific anti-pattern] - conflicts with [your goals] -- [Specific anti-pattern] - doesn't fit [your platform] - -This strategy will guide our design decisions while keeping {{project_name}} unique." - -### 6. Generate Inspiration Analysis Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## UX Pattern Analysis & Inspiration - -### Inspiring Products Analysis - -[Analysis of inspiring products based on conversation] - -### Transferable UX Patterns - -[Transferable patterns identified based on conversation] - -### Anti-Patterns to Avoid - -[Anti-patterns to avoid based on conversation] - -### Design Inspiration Strategy - -[Strategy for using inspiration based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated inspiration analysis content and present choices: -"I've analyzed inspiring UX patterns and products to inform our design strategy for {{project_name}}. This gives us a solid foundation of proven patterns to build upon. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's deepen our UX pattern analysis -[P] Party Mode - Bring different perspectives on inspiration sources -[C] Continue - Save this to the document and move to design system choice" - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current inspiration analysis content -- Process the enhanced pattern insights that come back -- Ask user: "Accept these improvements to the inspiration analysis? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current inspiration analysis -- Process the collaborative pattern insights that come back -- Ask user: "Accept these changes to the inspiration analysis? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Read fully and follow: `./step-06-design-system.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Inspiring products identified and analyzed thoroughly -✅ UX patterns extracted and categorized effectively -✅ Transferable patterns identified for current project -✅ Anti-patterns identified to avoid common mistakes -✅ Clear design inspiration strategy established -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not getting specific examples of inspiring products -❌ Surface-level analysis without deep pattern extraction -❌ Missing opportunities for pattern adaptation -❌ Not identifying relevant anti-patterns to avoid -❌ Strategy too generic or not actionable -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-06-design-system.md` to choose the appropriate design system approach. - -Remember: Do NOT proceed to step-06 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-06-design-system.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-06-design-system.md deleted file mode 100644 index d0b3ba60f..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-06-design-system.md +++ /dev/null @@ -1,253 +0,0 @@ -# Step 6: Design System Choice - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on choosing appropriate design system approach -- 🎯 COLLABORATIVE decision-making, not recommendation-only -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating design system decision content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper design system insights -- **P (Party Mode)**: Bring multiple perspectives to evaluate design system options -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Platform requirements from step 3 inform design system choice -- Inspiration patterns from step 5 guide design system selection -- Focus on choosing foundation for consistent design - -## YOUR TASK: - -Choose appropriate design system approach based on project requirements and constraints. - -## DESIGN SYSTEM CHOICE SEQUENCE: - -### 1. Present Design System Options - -Educate about design system approaches: -"For {{project_name}}, we need to choose a design system foundation. Think of design systems like LEGO blocks for UI - they provide proven components and patterns, ensuring consistency and speeding development. - -**Design System Approaches:** - -**1. Custom Design System** - -- Complete visual uniqueness -- Full control over every component -- Higher initial investment -- Perfect for established brands with unique needs - -**2. Established System (Material Design, Ant Design, etc.)** - -- Fast development with proven patterns -- Great defaults and accessibility built-in -- Less visual differentiation -- Ideal for startups or internal tools - -**3. Themeable System (MUI, Chakra UI, Tailwind UI)** - -- Customizable with strong foundation -- Brand flexibility with proven components -- Moderate learning curve -- Good balance of speed and uniqueness - -Which direction feels right for your project?" - -### 2. Analyze Project Requirements - -Guide decision based on project context: -"**Let's consider your specific needs:** - -**Based on our previous conversations:** - -- Platform: [platform from step 3] -- Timeline: [inferred from user conversation] -- Team Size: [inferred from user conversation] -- Brand Requirements: [inferred from user conversation] -- Technical Constraints: [inferred from user conversation] - -**Decision Factors:** - -- Need for speed vs. need for uniqueness -- Brand guidelines or existing visual identity -- Team's design expertise -- Long-term maintenance considerations -- Integration requirements with existing systems" - -### 3. Explore Specific Design System Options - -Dive deeper into relevant options: -"**Recommended Options Based on Your Needs:** - -**For [Your Platform Type]:** - -- [Option 1] - [Key benefit] - [Best for scenario] -- [Option 2] - [Key benefit] - [Best for scenario] -- [Option 3] - [Key benefit] - [Best for scenario] - -**Considerations:** - -- Component library size and quality -- Documentation and community support -- Customization capabilities -- Accessibility compliance -- Performance characteristics -- Learning curve for your team" - -### 4. Facilitate Decision Process - -Help user make informed choice: -"**Decision Framework:** - -1. What's most important: Speed, uniqueness, or balance? -2. How much design expertise does your team have? -3. Are there existing brand guidelines to follow? -4. What's your timeline and budget? -5. Long-term maintenance needs? - -Let's evaluate options based on your answers to these questions." - -### 5. Finalize Design System Choice - -Confirm and document the decision: -"Based on our analysis, I recommend [Design System Choice] for {{project_name}}. - -**Rationale:** - -- [Reason 1 based on project needs] -- [Reason 2 based on constraints] -- [Reason 3 based on team considerations] - -**Next Steps:** - -- We'll customize this system to match your brand and needs -- Define component strategy for custom components needed -- Establish design tokens and patterns - -Does this design system choice feel right to you?" - -### 6. Generate Design System Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Design System Foundation - -### 1.1 Design System Choice - -[Design system choice based on conversation] - -### Rationale for Selection - -[Rationale for design system selection based on conversation] - -### Implementation Approach - -[Implementation approach based on chosen system] - -### Customization Strategy - -[Customization strategy based on project needs] -``` - -### 7. Present Content and Menu - -Show the generated design system content and present choices: -"I've documented our design system choice for {{project_name}}. This foundation will ensure consistency and speed up development. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our design system decision -[P] Party Mode - Bring technical perspectives on design systems -[C] Continue - Save this to the document and move to defining experience - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current design system content -- Process the enhanced design system insights that come back -- Ask user: "Accept these improvements to the design system decision? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current design system choice -- Process the collaborative design system insights that come back -- Ask user: "Accept these changes to the design system decision? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-07-defining-experience.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Design system options clearly presented and explained -✅ Decision framework applied to project requirements -✅ Specific design system chosen with clear rationale -✅ Implementation approach planned -✅ Customization strategy defined -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not explaining design system concepts clearly -❌ Rushing to recommendation without understanding requirements -❌ Not considering technical constraints or team capabilities -❌ Choosing design system without clear rationale -❌ Not planning implementation approach -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-07-defining-experience.md` to define the core user interaction. - -Remember: Do NOT proceed to step-07 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-07-defining-experience.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-07-defining-experience.md deleted file mode 100644 index 279a359d8..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-07-defining-experience.md +++ /dev/null @@ -1,255 +0,0 @@ -# Step 7: Defining Core Experience - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on defining the core interaction that defines the product -- 🎯 COLLABORATIVE discovery, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating defining experience content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper experience insights -- **P (Party Mode)**: Bring multiple perspectives to define optimal core experience -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Core experience from step 3 provides foundation -- Design system choice from step 6 informs implementation -- Focus on the defining interaction that makes the product special - -## YOUR TASK: - -Define the core interaction that, if nailed, makes everything else follow in the user experience. - -## DEFINING EXPERIENCE SEQUENCE: - -### 1. Identify the Defining Experience - -Focus on the core interaction: -"Every successful product has a defining experience - the core interaction that, if we nail it, everything else follows. - -**Think about these famous examples:** - -- Tinder: "Swipe to match with people" -- Snapchat: "Share photos that disappear" -- Instagram: "Share perfect moments with filters" -- Spotify: "Discover and play any song instantly" - -**For {{project_name}}:** -What's the core action that users will describe to their friends? -What's the interaction that makes users feel successful? -If we get ONE thing perfectly right, what should it be?" - -### 2. Explore the User's Mental Model - -Understand how users think about the core task: -"**User Mental Model Questions:** - -- How do users currently solve this problem? -- What mental model do they bring to this task? -- What's their expectation for how this should work? -- Where are they likely to get confused or frustrated? - -**Current Solutions:** - -- What do users love/hate about existing approaches? -- What shortcuts or workarounds do they use? -- What makes existing solutions feel magical or terrible?" - -### 3. Define Success Criteria for Core Experience - -Establish what makes the core interaction successful: -"**Core Experience Success Criteria:** - -- What makes users say 'this just works'? -- When do they feel smart or accomplished? -- What feedback tells them they're doing it right? -- How fast should it feel? -- What should happen automatically? - -**Success Indicators:** - -- [Success indicator 1] -- [Success indicator 2] -- [Success indicator 3]" - -### 4. Identify Novel vs. Established Patterns - -Determine if we need to innovate or can use proven patterns: -"**Pattern Analysis:** -Looking at your core experience, does this: - -- Use established UX patterns that users already understand? -- Require novel interaction design that needs user education? -- Combine familiar patterns in innovative ways? - -**If Novel:** - -- What makes this different from existing approaches? -- How will we teach users this new pattern? -- What familiar metaphors can we use? - -**If Established:** - -- Which proven patterns should we adopt? -- How can we innovate within familiar patterns? -- What's our unique twist on established interactions?" - -### 5. Define Experience Mechanics - -Break down the core interaction into details: -"**Core Experience Mechanics:** -Let's design the step-by-step flow for [defining experience]: - -**1. Initiation:** - -- How does the user start this action? -- What triggers or invites them to begin? - -**2. Interaction:** - -- What does the user actually do? -- What controls or inputs do they use? -- How does the system respond? - -**3. Feedback:** - -- What tells users they're succeeding? -- How do they know when it's working? -- What happens if they make a mistake? - -**4. Completion:** - -- How do users know they're done? -- What's the successful outcome? -- What's next?" - -### 6. Generate Defining Experience Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## 2. Core User Experience - -### 2.1 Defining Experience - -[Defining experience description based on conversation] - -### 2.2 User Mental Model - -[User mental model analysis based on conversation] - -### 2.3 Success Criteria - -[Success criteria for core experience based on conversation] - -### 2.4 Novel UX Patterns - -[Novel UX patterns analysis based on conversation] - -### 2.5 Experience Mechanics - -[Detailed mechanics for core experience based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated defining experience content and present choices: -"I've defined the core experience for {{project_name}} - the interaction that will make users love this product. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine the core experience definition -[P] Party Mode - Bring different perspectives on the defining interaction -[C] Continue - Save this to the document and move to visual foundation - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current defining experience content -- Process the enhanced experience insights that come back -- Ask user: "Accept these improvements to the defining experience? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current defining experience -- Process the collaborative experience insights that come back -- Ask user: "Accept these changes to the defining experience? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-08-visual-foundation.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Defining experience clearly articulated -✅ User mental model thoroughly analyzed -✅ Success criteria established for core interaction -✅ Novel vs. established patterns properly evaluated -✅ Experience mechanics designed in detail -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not identifying the true core interaction -❌ Missing user's mental model and expectations -❌ Not establishing clear success criteria -❌ Not properly evaluating novel vs. established patterns -❌ Experience mechanics too vague or incomplete -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-08-visual-foundation.md` to establish visual design foundation. - -Remember: Do NOT proceed to step-08 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-08-visual-foundation.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-08-visual-foundation.md deleted file mode 100644 index 0cd390881..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-08-visual-foundation.md +++ /dev/null @@ -1,225 +0,0 @@ -# Step 8: Visual Foundation - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on establishing visual design foundation (colors, typography, spacing) -- 🎯 COLLABORATIVE discovery, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating visual foundation content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper visual insights -- **P (Party Mode)**: Bring multiple perspectives to define visual foundation -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Design system choice from step 6 provides component foundation -- Emotional response goals from step 4 inform visual decisions -- Focus on colors, typography, spacing, and layout foundation - -## YOUR TASK: - -Establish the visual design foundation including color themes, typography, and spacing systems. - -## VISUAL FOUNDATION SEQUENCE: - -### 1. Brand Guidelines Assessment - -Check for existing brand requirements: -"Do you have existing brand guidelines or a specific color palette I should follow? (y/n) - -If yes, I'll extract and document your brand colors and create semantic color mappings. -If no, I'll generate theme options based on your project's personality and emotional goals from our earlier discussion." - -### 2. Generate Color Theme Options (If no brand guidelines) - -Create visual exploration opportunities: -"If no existing brand guidelines, I'll create a color theme visualizer to help you explore options. - -🎨 I can generate comprehensive HTML color theme visualizers with multiple theme options, complete UI examples, and the ability to see how colors work in real interface contexts. - -This will help you make an informed decision about the visual direction for {{project_name}}." - -### 3. Define Typography System - -Establish the typographic foundation: -"**Typography Questions:** - -- What should the overall tone feel like? (Professional, friendly, modern, classic?) -- How much text content will users read? (Headings only? Long-form content?) -- Any accessibility requirements for font sizes or contrast? -- Any brand fonts we must use? - -**Typography Strategy:** - -- Choose primary and secondary typefaces -- Establish type scale (h1, h2, h3, body, etc.) -- Define line heights and spacing relationships -- Consider readability and accessibility" - -### 4. Establish Spacing and Layout Foundation - -Define the structural foundation: -"**Spacing and Layout Foundation:** - -- How should the overall layout feel? (Dense and efficient? Airy and spacious?) -- What spacing unit should we use? (4px, 8px, 12px base?) -- How much white space should be between elements? -- Should we use a grid system? If so, what column structure? - -**Layout Principles:** - -- [Layout principle 1 based on product type] -- [Layout principle 2 based on user needs] -- [Layout principle 3 based on platform requirements]" - -### 5. Create Visual Foundation Strategy - -Synthesize all visual decisions: -"**Visual Foundation Strategy:** - -**Color System:** - -- [Color strategy based on brand guidelines or generated themes] -- Semantic color mapping (primary, secondary, success, warning, error, etc.) -- Accessibility compliance (contrast ratios) - -**Typography System:** - -- [Typography strategy based on content needs and tone] -- Type scale and hierarchy -- Font pairing rationale - -**Spacing & Layout:** - -- [Spacing strategy based on content density and platform] -- Grid system approach -- Component spacing relationships - -This foundation will ensure consistency across all our design decisions." - -### 6. Generate Visual Foundation Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Visual Design Foundation - -### Color System - -[Color system strategy based on conversation] - -### Typography System - -[Typography system strategy based on conversation] - -### Spacing & Layout Foundation - -[Spacing and layout foundation based on conversation] - -### Accessibility Considerations - -[Accessibility considerations based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated visual foundation content and present choices: -"I've established the visual design foundation for {{project_name}}. This provides the building blocks for consistent, beautiful design. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our visual foundation -[P] Party Mode - Bring design perspectives on visual choices -[C] Continue - Save this to the document and move to design directions - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current visual foundation content -- Process the enhanced visual insights that come back -- Ask user: "Accept these improvements to the visual foundation? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current visual foundation -- Process the collaborative visual insights that come back -- Ask user: "Accept these changes to the visual foundation? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-09-design-directions.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Brand guidelines assessed and incorporated if available -✅ Color system established with accessibility consideration -✅ Typography system defined with appropriate hierarchy -✅ Spacing and layout foundation created -✅ Visual foundation strategy documented -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not checking for existing brand guidelines first -❌ Color palette not aligned with emotional goals -❌ Typography not suitable for content type or readability needs -❌ Spacing system not appropriate for content density -❌ Missing accessibility considerations -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-09-design-directions.md` to generate design direction mockups. - -Remember: Do NOT proceed to step-09 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-09-design-directions.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-09-design-directions.md deleted file mode 100644 index a07d9ecee..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-09-design-directions.md +++ /dev/null @@ -1,225 +0,0 @@ -# Step 9: Design Direction Mockups - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on generating and evaluating design direction variations -- 🎯 COLLABORATIVE exploration, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating design direction content -- 💾 Generate HTML visualizer for design directions -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper design insights -- **P (Party Mode)**: Bring multiple perspectives to evaluate design directions -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Visual foundation from step 8 provides design tokens -- Core experience from step 7 informs layout and interaction design -- Focus on exploring different visual design directions - -## YOUR TASK: - -Generate comprehensive design direction mockups showing different visual approaches for the product. - -## DESIGN DIRECTIONS SEQUENCE: - -### 1. Generate Design Direction Variations - -Create diverse visual explorations: -"I'll generate 6-8 different design direction variations exploring: - -- Different layout approaches and information hierarchy -- Various interaction patterns and visual weights -- Alternative color applications from our foundation -- Different density and spacing approaches -- Various navigation and component arrangements - -Each mockup will show a complete vision for {{project_name}} with all our design decisions applied." - -### 2. Create HTML Design Direction Showcase - -Generate interactive visual exploration: -"🎨 Design Direction Mockups Generated! - -I'm creating a comprehensive HTML design direction showcase at `{planning_artifacts}/ux-design-directions.html` - -**What you'll see:** - -- 6-8 full-screen mockup variations -- Interactive states and hover effects -- Side-by-side comparison tools -- Complete UI examples with real content -- Responsive behavior demonstrations - -Each mockup represents a complete visual direction for your app's look and feel." - -### 3. Present Design Exploration Framework - -Guide evaluation criteria: -"As you explore the design directions, look for: - -✅ **Layout Intuitiveness** - Which information hierarchy matches your priorities? -✅ **Interaction Style** - Which interaction style fits your core experience? -✅ **Visual Weight** - Which visual density feels right for your brand? -✅ **Navigation Approach** - Which navigation pattern matches user expectations? -✅ **Component Usage** - How well do the components support your user journeys? -✅ **Brand Alignment** - Which direction best supports your emotional goals? - -Take your time exploring - this is a crucial decision that will guide all our design work!" - -### 4. Facilitate Design Direction Selection - -Help user choose or combine elements: -"After exploring all the design directions: - -**Which approach resonates most with you?** - -- Pick a favorite direction as-is -- Combine elements from multiple directions -- Request modifications to any direction -- Use one direction as a base and iterate - -**Tell me:** - -- Which layout feels most intuitive for your users? -- Which visual weight matches your brand personality? -- Which interaction style supports your core experience? -- Are there elements from different directions you'd like to combine?" - -### 5. Document Design Direction Decision - -Capture the chosen approach: -"Based on your exploration, I'm understanding your design direction preference: - -**Chosen Direction:** [Direction number or combination] -**Key Elements:** [Specific elements you liked] -**Modifications Needed:** [Any changes requested] -**Rationale:** [Why this direction works for your product] - -This will become our design foundation moving forward. Are we ready to lock this in, or do you want to explore variations?" - -### 6. Generate Design Direction Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Design Direction Decision - -### Design Directions Explored - -[Summary of design directions explored based on conversation] - -### Chosen Direction - -[Chosen design direction based on conversation] - -### Design Rationale - -[Rationale for design direction choice based on conversation] - -### Implementation Approach - -[Implementation approach based on chosen direction] -``` - -### 7. Present Content and Menu - -Show the generated design direction content and present choices: -"I've documented our design direction decision for {{project_name}}. This visual approach will guide all our detailed design work. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our design direction -[P] Party Mode - Bring different perspectives on visual choices -[C] Continue - Save this to the document and move to user journey flows - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current design direction content -- Process the enhanced design insights that come back -- Ask user: "Accept these improvements to the design direction? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current design direction -- Process the collaborative design insights that come back -- Ask user: "Accept these changes to the design direction? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-10-user-journeys.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Multiple design direction variations generated -✅ HTML showcase created with interactive elements -✅ Design evaluation criteria clearly established -✅ User able to explore and compare directions effectively -✅ Design direction decision made with clear rationale -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not creating enough variation in design directions -❌ Design directions not aligned with established foundation -❌ Missing interactive elements in HTML showcase -❌ Not providing clear evaluation criteria -❌ Rushing decision without thorough exploration -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-10-user-journeys.md` to design user journey flows. - -Remember: Do NOT proceed to step-10 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-10-user-journeys.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-10-user-journeys.md deleted file mode 100644 index 1b9c06e96..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-10-user-journeys.md +++ /dev/null @@ -1,242 +0,0 @@ -# Step 10: User Journey Flows - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on designing user flows and journey interactions -- 🎯 COLLABORATIVE flow design, not assumption-based layouts -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating user journey content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper journey insights -- **P (Party Mode)**: Bring multiple perspectives to design user flows -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Design direction from step 9 informs flow layout and visual design -- Core experience from step 7 defines key journey interactions -- Focus on designing detailed user flows with Mermaid diagrams - -## YOUR TASK: - -Design detailed user journey flows for critical user interactions. - -## USER JOURNEY FLOWS SEQUENCE: - -### 1. Load PRD User Journeys as Foundation - -Start with user journeys already defined in the PRD: -"Great! Since we have the PRD available, let's build on the user journeys already documented there. - -**Existing User Journeys from PRD:** -I've already loaded these user journeys from your PRD: -[Journey narratives from PRD input documents] - -These journeys tell us **who** users are and **why** they take certain actions. Now we need to design **how** those journeys work in detail. - -**Critical Journeys to Design Flows For:** -Looking at the PRD journeys, I need to design detailed interaction flows for: - -- [Critical journey 1 identified from PRD narratives] -- [Critical journey 2 identified from PRD narratives] -- [Critical journey 3 identified from PRD narratives] - -The PRD gave us the stories - now we design the mechanics!" - -### 2. Design Each Journey Flow - -For each critical journey, design detailed flow: - -**For [Journey Name]:** -"Let's design the flow for users accomplishing [journey goal]. - -**Flow Design Questions:** - -- How do users start this journey? (entry point) -- What information do they need at each step? -- What decisions do they need to make? -- How do they know they're progressing successfully? -- What does success look like for this journey? -- Where might they get confused or stuck? -- How do they recover from errors?" - -### 3. Create Flow Diagrams - -Visualize each journey with Mermaid diagrams: -"I'll create detailed flow diagrams for each journey showing: - -**[Journey Name] Flow:** - -- Entry points and triggers -- Decision points and branches -- Success and failure paths -- Error recovery mechanisms -- Progressive disclosure of information - -Each diagram will map the complete user experience from start to finish." - -### 4. Optimize for Efficiency and Delight - -Refine flows for optimal user experience: -"**Flow Optimization:** -For each journey, let's ensure we're: - -- Minimizing steps to value (getting users to success quickly) -- Reducing cognitive load at each decision point -- Providing clear feedback and progress indicators -- Creating moments of delight or accomplishment -- Handling edge cases and error recovery gracefully - -**Specific Optimizations:** - -- [Optimization 1 for journey efficiency] -- [Optimization 2 for user delight] -- [Optimization 3 for error handling]" - -### 5. Document Journey Patterns - -Extract reusable patterns across journeys: -"**Journey Patterns:** -Across these flows, I'm seeing some common patterns we can standardize: - -**Navigation Patterns:** - -- [Navigation pattern 1] -- [Navigation pattern 2] - -**Decision Patterns:** - -- [Decision pattern 1] -- [Decision pattern 2] - -**Feedback Patterns:** - -- [Feedback pattern 1] -- [Feedback pattern 2] - -These patterns will ensure consistency across all user experiences." - -### 6. Generate User Journey Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## User Journey Flows - -### [Journey 1 Name] - -[Journey 1 description and Mermaid diagram] - -### [Journey 2 Name] - -[Journey 2 description and Mermaid diagram] - -### Journey Patterns - -[Journey patterns identified based on conversation] - -### Flow Optimization Principles - -[Flow optimization principles based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated user journey content and present choices: -"I've designed detailed user journey flows for {{project_name}}. These flows will guide the detailed design of each user interaction. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our user journey designs -[P] Party Mode - Bring different perspectives on user flows -[C] Continue - Save this to the document and move to component strategy - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current user journey content -- Process the enhanced journey insights that come back -- Ask user: "Accept these improvements to the user journeys? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current user journeys -- Process the collaborative journey insights that come back -- Ask user: "Accept these changes to the user journeys? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-11-component-strategy.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Critical user journeys identified and designed -✅ Detailed flow diagrams created for each journey -✅ Flows optimized for efficiency and user delight -✅ Common journey patterns extracted and documented -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not identifying all critical user journeys -❌ Flows too complex or not optimized for user success -❌ Missing error recovery paths -❌ Not extracting reusable patterns across journeys -❌ Flow diagrams unclear or incomplete -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-11-component-strategy.md` to define component library strategy. - -Remember: Do NOT proceed to step-11 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-11-component-strategy.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-11-component-strategy.md deleted file mode 100644 index 76926564a..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-11-component-strategy.md +++ /dev/null @@ -1,249 +0,0 @@ -# Step 11: Component Strategy - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on defining component library strategy and custom components -- 🎯 COLLABORATIVE component planning, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating component strategy content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper component insights -- **P (Party Mode)**: Bring multiple perspectives to define component strategy -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Design system choice from step 6 determines available components -- User journeys from step 10 identify component needs -- Focus on defining custom components and implementation strategy - -## YOUR TASK: - -Define component library strategy and design custom components not covered by the design system. - -## COMPONENT STRATEGY SEQUENCE: - -### 1. Analyze Design System Coverage - -Review what components are available vs. needed: -"Based on our chosen design system [design system from step 6], let's identify what components are already available and what we need to create custom. - -**Available from Design System:** -[List of components available in chosen design system] - -**Components Needed for {{project_name}}:** -Looking at our user journeys and design direction, we need: - -- [Component need 1 from journey analysis] -- [Component need 2 from design requirements] -- [Component need 3 from core experience] - -**Gap Analysis:** - -- [Gap 1 - needed but not available] -- [Gap 2 - needed but not available]" - -### 2. Design Custom Components - -For each custom component needed, design thoroughly: - -**For each custom component:** -"**[Component Name] Design:** - -**Purpose:** What does this component do for users? -**Content:** What information or data does it display? -**Actions:** What can users do with this component? -**States:** What different states does it have? (default, hover, active, disabled, error, etc.) -**Variants:** Are there different sizes or styles needed? -**Accessibility:** What ARIA labels and keyboard support needed? - -Let's walk through each custom component systematically." - -### 3. Document Component Specifications - -Create detailed specifications for each component: - -**Component Specification Template:** - -```markdown -### [Component Name] - -**Purpose:** [Clear purpose statement] -**Usage:** [When and how to use] -**Anatomy:** [Visual breakdown of parts] -**States:** [All possible states with descriptions] -**Variants:** [Different sizes/styles if applicable] -**Accessibility:** [ARIA labels, keyboard navigation] -**Content Guidelines:** [What content works best] -**Interaction Behavior:** [How users interact] -``` - -### 4. Define Component Strategy - -Establish overall component library approach: -"**Component Strategy:** - -**Foundation Components:** (from design system) - -- [Foundation component 1] -- [Foundation component 2] - -**Custom Components:** (designed in this step) - -- [Custom component 1 with rationale] -- [Custom component 2 with rationale] - -**Implementation Approach:** - -- Build custom components using design system tokens -- Ensure consistency with established patterns -- Follow accessibility best practices -- Create reusable patterns for common use cases" - -### 5. Plan Implementation Roadmap - -Define how and when to build components: -"**Implementation Roadmap:** - -**Phase 1 - Core Components:** - -- [Component 1] - needed for [critical flow] -- [Component 2] - needed for [critical flow] - -**Phase 2 - Supporting Components:** - -- [Component 3] - enhances [user experience] -- [Component 4] - supports [design pattern] - -**Phase 3 - Enhancement Components:** - -- [Component 5] - optimizes [user journey] -- [Component 6] - adds [special feature] - -This roadmap helps prioritize development based on user journey criticality." - -### 6. Generate Component Strategy Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Component Strategy - -### Design System Components - -[Analysis of available design system components based on conversation] - -### Custom Components - -[Custom component specifications based on conversation] - -### Component Implementation Strategy - -[Component implementation strategy based on conversation] - -### Implementation Roadmap - -[Implementation roadmap based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated component strategy content and present choices: -"I've defined the component strategy for {{project_name}}. This balances using proven design system components with custom components for your unique needs. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our component strategy -[P] Party Mode - Bring technical perspectives on component design -[C] Continue - Save this to the document and move to UX patterns - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current component strategy content -- Process the enhanced component insights that come back -- Ask user: "Accept these improvements to the component strategy? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current component strategy -- Process the collaborative component insights that come back -- Ask user: "Accept these changes to the component strategy? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-12-ux-patterns.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Design system coverage properly analyzed -✅ All custom components thoroughly specified -✅ Component strategy clearly defined -✅ Implementation roadmap prioritized by user need -✅ Accessibility considered for all components -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not analyzing design system coverage properly -❌ Custom components not thoroughly specified -❌ Missing accessibility considerations -❌ Component strategy not aligned with user journeys -❌ Implementation roadmap not prioritized effectively -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-12-ux-patterns.md` to define UX consistency patterns. - -Remember: Do NOT proceed to step-12 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-12-ux-patterns.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-12-ux-patterns.md deleted file mode 100644 index 08b78d29a..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-12-ux-patterns.md +++ /dev/null @@ -1,238 +0,0 @@ -# Step 12: UX Consistency Patterns - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on establishing consistency patterns for common UX situations -- 🎯 COLLABORATIVE pattern definition, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating UX patterns content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper pattern insights -- **P (Party Mode)**: Bring multiple perspectives to define UX patterns -- **C (Continue)**: Save the content to the document and proceed to next step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Component strategy from step 11 informs pattern decisions -- User journeys from step 10 identify common pattern needs -- Focus on consistency patterns for common UX situations - -## YOUR TASK: - -Establish UX consistency patterns for common situations like buttons, forms, navigation, and feedback. - -## UX PATTERNS SEQUENCE: - -### 1. Identify Pattern Categories - -Determine which patterns need definition for your product: -"Let's establish consistency patterns for how {{project_name}} behaves in common situations. - -**Pattern Categories to Define:** - -- Button hierarchy and actions -- Feedback patterns (success, error, warning, info) -- Form patterns and validation -- Navigation patterns -- Modal and overlay patterns -- Empty states and loading states -- Search and filtering patterns - -Which categories are most critical for your product? We can go through each thoroughly or focus on the most important ones." - -### 2. Define Critical Patterns First - -Focus on patterns most relevant to your product: - -**For [Critical Pattern Category]:** -"**[Pattern Type] Patterns:** -What should users see/do when they need to [pattern action]? - -**Considerations:** - -- Visual hierarchy (primary vs. secondary actions) -- Feedback mechanisms -- Error recovery -- Accessibility requirements -- Mobile vs. desktop considerations - -**Examples:** - -- [Example 1 for this pattern type] -- [Example 2 for this pattern type] - -How should {{project_name}} handle [pattern type] interactions?" - -### 3. Establish Pattern Guidelines - -Document specific design decisions: - -**Pattern Guidelines Template:** - -```markdown -### [Pattern Type] - -**When to Use:** [Clear usage guidelines] -**Visual Design:** [How it should look] -**Behavior:** [How it should interact] -**Accessibility:** [A11y requirements] -**Mobile Considerations:** [Mobile-specific needs] -**Variants:** [Different states or styles if applicable] -``` - -### 4. Design System Integration - -Ensure patterns work with chosen design system: -"**Integration with [Design System]:** - -- How do these patterns complement our design system components? -- What customizations are needed? -- How do we maintain consistency while meeting unique needs? - -**Custom Pattern Rules:** - -- [Custom rule 1] -- [Custom rule 2] -- [Custom rule 3]" - -### 5. Create Pattern Documentation - -Generate comprehensive pattern library: - -**Pattern Library Structure:** - -- Clear usage guidelines for each pattern -- Visual examples and specifications -- Implementation notes for developers -- Accessibility checklists -- Mobile-first considerations - -### 6. Generate UX Patterns Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## UX Consistency Patterns - -### Button Hierarchy - -[Button hierarchy patterns based on conversation] - -### Feedback Patterns - -[Feedback patterns based on conversation] - -### Form Patterns - -[Form patterns based on conversation] - -### Navigation Patterns - -[Navigation patterns based on conversation] - -### Additional Patterns - -[Additional patterns based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated UX patterns content and present choices: -"I've established UX consistency patterns for {{project_name}}. These patterns ensure users have a consistent, predictable experience across all interactions. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our UX patterns -[P] Party Mode - Bring different perspectives on consistency patterns -[C] Continue - Save this to the document and move to responsive design - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current UX patterns content -- Process the enhanced pattern insights that come back -- Ask user: "Accept these improvements to the UX patterns? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current UX patterns -- Process the collaborative pattern insights that come back -- Ask user: "Accept these changes to the UX patterns? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-13-responsive-accessibility.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Critical pattern categories identified and prioritized -✅ Consistency patterns clearly defined and documented -✅ Patterns integrated with chosen design system -✅ Accessibility considerations included for all patterns -✅ Mobile-first approach incorporated -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not identifying the most critical pattern categories -❌ Patterns too generic or not actionable -❌ Missing accessibility considerations -❌ Patterns not aligned with design system -❌ Not considering mobile differences -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-13-responsive-accessibility.md` to define responsive design and accessibility strategy. - -Remember: Do NOT proceed to step-13 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-13-responsive-accessibility.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-13-responsive-accessibility.md deleted file mode 100644 index 612faa2ea..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +++ /dev/null @@ -1,265 +0,0 @@ -# Step 13: Responsive Design & Accessibility - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder -- 📋 YOU ARE A UX FACILITATOR, not a content generator -- 💬 FOCUS on responsive design strategy and accessibility compliance -- 🎯 COLLABORATIVE strategy definition, not assumption-based design -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating responsive/accessibility content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted. -- 🚫 FORBIDDEN to load next step until C is selected - -## COLLABORATION MENUS (A/P/C): - -This step will generate content and present choices: - -- **A (Advanced Elicitation)**: Use discovery protocols to develop deeper responsive/accessibility insights -- **P (Party Mode)**: Bring multiple perspectives to define responsive/accessibility strategy -- **C (Continue)**: Save the content to the document and proceed to final step - -## PROTOCOL INTEGRATION: - -- When 'A' selected: Invoke the `bmad-advanced-elicitation` skill -- When 'P' selected: Invoke the `bmad-party-mode` skill -- PROTOCOLS always return to this step's A/P/C menu -- User accepts/rejects protocol changes before proceeding - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Platform requirements from step 3 inform responsive design -- Design direction from step 9 influences responsive layout choices -- Focus on cross-device adaptation and accessibility compliance - -## YOUR TASK: - -Define responsive design strategy and accessibility requirements for the product. - -## RESPONSIVE & ACCESSIBILITY SEQUENCE: - -### 1. Define Responsive Strategy - -Establish how the design adapts across devices: -"Let's define how {{project_name}} adapts across different screen sizes and devices. - -**Responsive Design Questions:** - -**Desktop Strategy:** - -- How should we use extra screen real estate? -- Multi-column layouts, side navigation, or content density? -- What desktop-specific features can we include? - -**Tablet Strategy:** - -- Should we use simplified layouts or touch-optimized interfaces? -- How do gestures and touch interactions work on tablets? -- What's the optimal information density for tablet screens? - -**Mobile Strategy:** - -- Bottom navigation or hamburger menu? -- How do layouts collapse on small screens? -- What's the most critical information to show mobile-first?" - -### 2. Establish Breakpoint Strategy - -Define when and how layouts change: -"**Breakpoint Strategy:** -We need to define screen size breakpoints where layouts adapt. - -**Common Breakpoints:** - -- Mobile: 320px - 767px -- Tablet: 768px - 1023px -- Desktop: 1024px+ - -**For {{project_name}}, should we:** - -- Use standard breakpoints or custom ones? -- Focus on mobile-first or desktop-first design? -- Have specific breakpoints for your key use cases?" - -### 3. Design Accessibility Strategy - -Define accessibility requirements and compliance level: -"**Accessibility Strategy:** -What level of WCAG compliance does {{project_name}} need? - -**WCAG Levels:** - -- **Level A (Basic)** - Essential accessibility for legal compliance -- **Level AA (Recommended)** - Industry standard for good UX -- **Level AAA (Highest)** - Exceptional accessibility (rarely needed) - -**Based on your product:** - -- [Recommendation based on user base, legal requirements, etc.] - -**Key Accessibility Considerations:** - -- Color contrast ratios (4.5:1 for normal text) -- Keyboard navigation support -- Screen reader compatibility -- Touch target sizes (minimum 44x44px) -- Focus indicators and skip links" - -### 4. Define Testing Strategy - -Plan how to ensure responsive design and accessibility: -"**Testing Strategy:** - -**Responsive Testing:** - -- Device testing on actual phones/tablets -- Browser testing across Chrome, Firefox, Safari, Edge -- Real device network performance testing - -**Accessibility Testing:** - -- Automated accessibility testing tools -- Screen reader testing (VoiceOver, NVDA, JAWS) -- Keyboard-only navigation testing -- Color blindness simulation testing - -**User Testing:** - -- Include users with disabilities in testing -- Test with diverse assistive technologies -- Validate with actual target devices" - -### 5. Document Implementation Guidelines - -Create specific guidelines for developers: -"**Implementation Guidelines:** - -**Responsive Development:** - -- Use relative units (rem, %, vw, vh) over fixed pixels -- Implement mobile-first media queries -- Test touch targets and gesture areas -- Optimize images and assets for different devices - -**Accessibility Development:** - -- Semantic HTML structure -- ARIA labels and roles -- Keyboard navigation implementation -- Focus management and skip links -- High contrast mode support" - -### 6. Generate Responsive & Accessibility Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Responsive Design & Accessibility - -### Responsive Strategy - -[Responsive strategy based on conversation] - -### Breakpoint Strategy - -[Breakpoint strategy based on conversation] - -### Accessibility Strategy - -[Accessibility strategy based on conversation] - -### Testing Strategy - -[Testing strategy based on conversation] - -### Implementation Guidelines - -[Implementation guidelines based on conversation] -``` - -### 7. Present Content and Menu - -Show the generated responsive and accessibility content and present choices: -"I've defined the responsive design and accessibility strategy for {{project_name}}. This ensures your product works beautifully across all devices and is accessible to all users. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from step 6] - -**What would you like to do?** -[A] Advanced Elicitation - Let's refine our responsive/accessibility strategy -[P] Party Mode - Bring different perspectives on inclusive design -[C] Continue - Save this to the document and complete the workflow - -### 8. Handle Menu Selection - -#### If 'A' (Advanced Elicitation): - -- Invoke the `bmad-advanced-elicitation` skill with the current responsive/accessibility content -- Process the enhanced insights that come back -- Ask user: "Accept these improvements to the responsive/accessibility strategy? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'P' (Party Mode): - -- Invoke the `bmad-party-mode` skill with the current responsive/accessibility strategy -- Process the collaborative insights that come back -- Ask user: "Accept these changes to the responsive/accessibility strategy? (y/n)" -- If yes: Update content with improvements, then return to A/P/C menu -- If no: Keep original content, then return to A/P/C menu - -#### If 'C' (Continue): - -- Append the final content to `{planning_artifacts}/ux-design-specification.md` -- Update frontmatter: append step to end of stepsCompleted array -- Load `./step-14-complete.md` - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Responsive strategy clearly defined for all device types -✅ Appropriate breakpoint strategy established -✅ Accessibility requirements determined and documented -✅ Comprehensive testing strategy planned -✅ Implementation guidelines provided for Developer agent -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not considering all device types and screen sizes -❌ Accessibility requirements not properly researched -❌ Testing strategy not comprehensive enough -❌ Implementation guidelines too generic or unclear -❌ Not addressing specific accessibility challenges for your product -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `./step-14-complete.md` to finalize the UX design workflow. - -Remember: Do NOT proceed to step-14 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-14-complete.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-14-complete.md deleted file mode 100644 index 31edb0284..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-14-complete.md +++ /dev/null @@ -1,177 +0,0 @@ -# Step 14: Workflow Completion - -## MANDATORY EXECUTION RULES (READ FIRST): - -- ✅ THIS IS A FINAL STEP - Workflow completion required - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- 🛑 NO content generation - this is a wrap-up step -- 📋 FINALIZE document and update workflow status -- 💬 FOCUS on completion, validation, and next steps -- 🎯 UPDATE workflow status files with completion information -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- 💾 Update the main workflow status file with completion information -- 📖 Suggest potential next workflow steps for the user -- 🚫 DO NOT load additional steps after this one - -## TERMINATION STEP PROTOCOLS: - -- This is a FINAL step - workflow completion required -- 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted to indicate all is finished.. -- Output completion summary and next step guidance -- Update the main workflow status file with finalized document -- Suggest potential next workflow steps for the user -- Mark workflow as complete in status tracking - -## CONTEXT BOUNDARIES: - -- Complete UX design specification is available from all previous steps -- Workflow frontmatter shows all completed steps -- All collaborative content has been generated and saved -- Focus on completion, validation, and next steps - -## YOUR TASK: - -Complete the UX design workflow, update status files, and suggest next steps for the project. - -## WORKFLOW COMPLETION SEQUENCE: - -### 1. Announce Workflow Completion - -Inform user that the UX design is complete: -"🎉 **UX Design Complete, {{user_name}}!** - -I've successfully collaborated with you to create a comprehensive UX design specification for {{project_name}}. - -**What we've accomplished:** - -- ✅ Project understanding and user insights -- ✅ Core experience and emotional response definition -- ✅ UX pattern analysis and inspiration -- ✅ Design system choice and implementation strategy -- ✅ Core interaction definition and experience mechanics -- ✅ Visual design foundation (colors, typography, spacing) -- ✅ Design direction mockups and visual explorations -- ✅ User journey flows and interaction design -- ✅ Component strategy and custom component specifications -- ✅ UX consistency patterns for common interactions -- ✅ Responsive design and accessibility strategy - -**The complete UX design specification is now available at:** `{planning_artifacts}/ux-design-specification.md` - -**Supporting Visual Assets:** - -- Color themes visualizer: `{planning_artifacts}/ux-color-themes.html` -- Design directions mockups: `{planning_artifacts}/ux-design-directions.html` - -This specification is now ready to guide visual design, implementation, and development." - -### 2. Workflow Status Update - -Update the main workflow status file: - -- Load the project's workflow status file (if one exists) -- Update workflow_status["create-ux-design"] = `{planning_artifacts}/ux-design-specification.md` -- Save file, preserving all comments and structure -- Mark current timestamp as completion time - -### 3. Suggest Next Steps - -UX Design complete. Invoke the `bmad-help` skill. - -### 5. Final Completion Confirmation - -Congratulate the user on the completion you both completed together of the UX. - - - -## SUCCESS METRICS: - -✅ UX design specification contains all required sections -✅ All collaborative content properly saved to document -✅ Workflow status file updated with completion information -✅ Clear next step guidance provided to user -✅ Document quality validation completed -✅ User acknowledges completion and understands next options - -## FAILURE MODES: - -❌ Not updating workflow status file with completion information -❌ Missing clear next step guidance for user -❌ Not confirming document completeness with user -❌ Workflow not properly marked as complete in status tracking -❌ User unclear about what happens next - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## WORKFLOW COMPLETION CHECKLIST: - -### Design Specification Complete: - -- [ ] Executive summary and project understanding -- [ ] Core experience and emotional response definition -- [ ] UX pattern analysis and inspiration -- [ ] Design system choice and strategy -- [ ] Core interaction mechanics definition -- [ ] Visual design foundation (colors, typography, spacing) -- [ ] Design direction decisions and mockups -- [ ] User journey flows and interaction design -- [ ] Component strategy and specifications -- [ ] UX consistency patterns documentation -- [ ] Responsive design and accessibility strategy - -### Process Complete: - -- [ ] All steps completed with user confirmation -- [ ] All content saved to specification document -- [ ] Frontmatter properly updated with all steps -- [ ] Workflow status file updated with completion -- [ ] Next steps clearly communicated - -## NEXT STEPS GUIDANCE: - -**Immediate Options:** - -1. **Wireframe Generation** - Create low-fidelity layouts based on UX spec -2. **Interactive Prototype** - Build clickable prototypes for testing -3. **Solution Architecture** - Technical design with UX context -4. **Figma Visual Design** - High-fidelity UI implementation -5. **Epic Creation** - Break down UX requirements for development - -**Recommended Sequence:** -For design-focused teams: Wireframes → Prototypes → Figma Design → Development -For technical teams: Architecture → Epic Creation → Development - -Consider team capacity, timeline, and whether user validation is needed before implementation. - -## WORKFLOW FINALIZATION: - -- Set `lastStep = 14` in document frontmatter -- Update workflow status file with completion timestamp -- Provide completion summary to user -- Do NOT load any additional steps - -## FINAL REMINDER: - -This UX design workflow is now complete. The specification serves as the foundation for all visual and development work. All design decisions, patterns, and requirements are documented to ensure consistent, accessible, and user-centered implementation. - -**Congratulations on completing the UX Design Specification for {{project_name}}!** 🎉 - -**Core Deliverables:** - -- ✅ UX Design Specification: `{planning_artifacts}/ux-design-specification.md` -- ✅ Color Themes Visualizer: `{planning_artifacts}/ux-color-themes.html` -- ✅ Design Directions: `{planning_artifacts}/ux-design-directions.html` - -## On Complete - -Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete` - -If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting. diff --git a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/ux-design-template.md b/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/ux-design-template.md deleted file mode 100644 index aeed9dc54..000000000 --- a/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/ux-design-template.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -stepsCompleted: [] -inputDocuments: [] ---- - -# UX Design Specification {{project_name}} - -**Author:** {{user_name}} -**Date:** {{date}} - ---- - - diff --git a/src/bmm-skills/2-plan-workflows/bmad-prd/SKILL.md b/src/bmm-skills/2-plan-workflows/bmad-prd/SKILL.md index 310b59be0..2f29da936 100644 --- a/src/bmm-skills/2-plan-workflows/bmad-prd/SKILL.md +++ b/src/bmm-skills/2-plan-workflows/bmad-prd/SKILL.md @@ -45,13 +45,15 @@ Order: **Brain dump → Stakes calibration → Working mode → mode-scoped work **Working mode.** Offer the choice in the user's language: - **Fast path** — I batch remaining gaps into one or two consolidated questions, then draft the full PRD with `[ASSUMPTION]` tags where I inferred. You review and we iterate. The initial quality depends on how much you gave me upfront. -- **Coaching path** — we walk PM-thinking sections together. Once chosen, I ask which entry point fits: **Vision + Features** (capability-first — for enterprise, dev products, internal tools, anyone who thinks in features), **Personas + Journeys** (user-first — for consumer, UX-heavy, multi-stakeholder products), or *let me suggest* based on what I heard. The chosen entry sets the section order. +- **Coaching path** — we walk PM-thinking sections together. Once chosen, I ask which entry point fits: **Vision + Features** (capability-first — for enterprise, dev products, internal tools, anyone who thinks in features), **Journey-led** (user-first — for consumer, UX-heavy, multi-stakeholder products; journeys with named protagonists carry persona context inline, no standalone persona section), or *let me suggest* based on what I heard. The chosen entry sets the section order. The workspace persists; stop and resume freely. **Concern scan.** As you read what the user gave you, name the concerns this product actually carries — compliance, integration density, operational SLAs, hardware constraints, public-API contracts, monetization, data governance, whatever applies. The list is open; recognize what's there, do not classify into a fixed shape. These concerns drive which template sections to pull in from the Adapt-In Menu and which to invent when no cluster names them. -**User Journeys are captured, not authored.** When UJs are warranted (consumer / multi-stakeholder B2B / meaningful UX — drop or downscale for internal tooling with a single operator role, regulatory-only updates, hobby/solo, pure technical PRDs), prompt the user to narrate a real session — what the person does, in what order, where it lands — then structure the answer into UJ-N form and confirm. +**Form-factor.** If not stated in sources, probe — mobile / web / desktop / multi-surface / hardware / API. + +**User Journeys are captured, not authored.** When UJs are warranted (consumer / multi-stakeholder B2B / meaningful UX — drop or downscale for internal tooling with a single operator role, regulatory-only updates, hobby/solo, pure technical PRDs), prompt the user to narrate a real session with a named protagonist (Mary, mom of three — not "the user") — what the person does, in what order, where it lands — then structure the answer into UJ-N form and confirm. Persona context lives inline at the moments that matter; no standalone persona section. ## PRD Discipline @@ -83,5 +85,5 @@ Tell the user the sequence in one sentence, then walk it. Polish goes last so it 4. **Triage open items.** All Open Questions, `[ASSUMPTION]` tags, `[NOTE FOR PM]` callouts. Phase-blockers (would make the PRD unsafe for UX/architecture/epics) surfaced one at a time and resolved; non-blockers deferred with owner + revisit condition logged to `.decision-log.md`. If phase-blocker count is high, flag it. 5. **Polish.** Apply `{workflow.doc_standards}` to `prd.md` and `addendum.md` in declared order (structural passes before prose — prose should not polish soon-to-be-cut text). Parallelize across documents, sequential within. 6. **External handoffs.** Execute `{workflow.external_handoffs}`; surface returned URLs/IDs. Skip and flag unavailable tools. -7. **Close.** Set `prd.md` frontmatter `status: final` and `updated` to `{date}` so future invocations distinguish this PRD from in-progress drafts. Record finalization to `.decision-log.md`. Share artifact paths. Common next: `bmad-create-ux-design`, `bmad-create-architecture`, `bmad-create-epics-and-stories`; invoke `bmad-help` for authoritative routing. +7. **Close.** Set `prd.md` frontmatter `status: final` and `updated` to `{date}` so future invocations distinguish this PRD from in-progress drafts. Record finalization to `.decision-log.md`. Share artifact paths. Common next: `bmad-ux`, `bmad-create-architecture`, `bmad-create-epics-and-stories`; invoke `bmad-help` for authoritative routing. 8. Run `{workflow.on_complete}` if non-empty. diff --git a/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-template.md b/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-template.md index 2d2e265b1..a7a4ad721 100644 --- a/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-template.md +++ b/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-template.md @@ -20,16 +20,13 @@ updated: {YYYY-MM-DD} ## 2. Target User -### 2.1 Primary Persona -[Vivid but tight. Who they are, how this product fits their context.] +### 2.1 Jobs To Be Done +[Bulleted. Emotional, social, functional, contextual — whichever apply. Even "this is for me as the builder" is a valid framing for a hobby project.] -### 2.2 Jobs To Be Done -[Bulleted. Emotional, social, functional, contextual — whichever apply. Even "this is for me as the builder" is a valid persona for a hobby project.] - -### 2.3 Non-Users (v1) *(add when the audience boundary is non-obvious)* +### 2.2 Non-Users (v1) *(add when the audience boundary is non-obvious)* [Who this is explicitly not for in v1.] -### 2.4 Key User Journeys +### 2.3 Key User Journeys *Named-persona narratives the product enables. Numbered globally as UJ-1 through UJ-N. FRs reference journeys by ID inline ("realizes UJ-3"); SMs may also cross-reference. If a UX doc already exists, mirror its UJ IDs here and point to the source.* **Default shape:** a named scene with entry state, path, climax, and resolution. Each beat forces specificity the team would otherwise leave implicit — auth assumptions, screen order, what tells the user value landed. Read together as a short narrative; the example below shows the form. diff --git a/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-validation-checklist.md b/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-validation-checklist.md index 616c581d8..f52c43b35 100644 --- a/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-validation-checklist.md +++ b/src/bmm-skills/2-plan-workflows/bmad-prd/assets/prd-validation-checklist.md @@ -107,7 +107,7 @@ Look for: - Glossary present; every domain noun used identically across FRs, UJs, SM definitions. - FR / UJ / SM IDs contiguous, unique, and cross-references that resolve. - Each section makes sense pulled out alone — cross-references via Glossary terms, not "see above." -- UJs each name a persona from §2 by exact label; no floating UJs. +- UJs each have a named protagonist; no floating UJs. For standalone PRDs (no downstream), this dimension matters less — say so. @@ -115,14 +115,14 @@ For standalone PRDs (no downstream), this dimension matters less — say so. Has the PRD been forced into a shape that doesn't match the product? -- Consumer product / multi-stakeholder B2B / meaningful UX → UJs and personas are load-bearing. +- Consumer product / multi-stakeholder B2B / meaningful UX → UJs with named protagonists are load-bearing. - Internal tool, single-operator role → capability spec shape; UJs may be overhead; SMs may be operational rather than user-facing. - Regulatory or compliance update → constraint traceability is non-negotiable; UJs may be irrelevant. - Hobby / solo → rigor light, substance bar still applies. - Brownfield → existing-code references must be accurate; new UJs and existing UJs must be distinguished. - Chain-top (feeds UX → architecture → stories) → downstream usability matters more; standalone PRDs can be lighter on traceability. -Flag PRDs that are over-formalized (UJ density for a single-operator tool) or under-formalized (consumer product with no personas or UJs). +Flag PRDs that are over-formalized (UJ density for a single-operator tool) or under-formalized (consumer product with no UJs). ## Mechanical notes @@ -131,5 +131,5 @@ Cover these as a tail section, not a primary dimension. They matter for downstre - Glossary drift (case, plural, synonyms across the PRD). - ID continuity (gaps, duplicates, unresolved cross-references). - Assumptions Index roundtrip (every inline `[ASSUMPTION]` indexed; index entries all appear inline). -- UJ persona linkage (each UJ names a defined persona by exact label). +- UJ protagonist naming (each UJ has a named protagonist carrying context inline). - Required sections present for the agreed stakes and product type. diff --git a/src/bmm-skills/2-plan-workflows/bmad-prd/references/headless.md b/src/bmm-skills/2-plan-workflows/bmad-prd/references/headless.md index 6f89fd2bb..4ea4f24d7 100644 --- a/src/bmm-skills/2-plan-workflows/bmad-prd/references/headless.md +++ b/src/bmm-skills/2-plan-workflows/bmad-prd/references/headless.md @@ -18,11 +18,11 @@ When ambiguous, default to interactive. The caller passes inputs in their first message (free-form structured payload; no fixed schema, but every field below should be present when applicable): - `intent` — `"create"`, `"update"`, or `"validate"`. If absent, infer from the artifact set. -- For **Create**: a brief or product spec the LLM works from (plain text, file path, or URL), plus any persona/scope notes; `doc_workspace` if a specific run folder is required (otherwise the workflow binds the default). +- For **Create**: a brief or product spec the LLM works from (plain text, file path, or URL), plus any user/scope notes; `doc_workspace` if a specific run folder is required (otherwise the workflow binds the default). - For **Update**: the existing `prd.md` path (or a workspace path that contains one), and a change signal (the request: what to change and why). - For **Validate**: the existing `prd.md` path (or workspace path), and optionally a checklist override path. Workspace defaults to the PRD's containing directory. -Anything the caller does not provide is either inferred from inputs/workspace or recorded as `assumptions[]` / `open_questions[]` in the JSON status. Do not invent persona detail, success metrics, or scope decisions to fill gaps — record them. +Anything the caller does not provide is either inferred from inputs/workspace or recorded as `assumptions[]` / `open_questions[]` in the JSON status. Do not invent user detail, success metrics, or scope decisions to fill gaps — record them. ## General diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/SKILL.md b/src/bmm-skills/2-plan-workflows/bmad-ux/SKILL.md new file mode 100644 index 000000000..37dddbedb --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/SKILL.md @@ -0,0 +1,87 @@ +--- +name: bmad-ux +description: Plan UX patterns and design specifications. Use when the user says "lets create UX design" or "create UX specifications" or "help me plan the UX" +--- +# BMad UX + +## Overview + +You are a master UX facilitator. **Elicit and capture** the user's vision, never impose yours. Probe like a senior practitioner; never volunteer colors, patterns, or directions. Render options via creative tools when seeing helps; the picks are the user's. + +Produce two peer contracts: **`DESIGN.md`** (visual identity per the [Google Labs spec](https://github.com/google-labs-code/design.md) — owns *how it looks*) and **`EXPERIENCE.md`** (information architecture, behavior, states, interactions, accessibility, journeys — owns *how it works*). EXPERIENCE.md cross-references DESIGN.md tokens by name using `{path.to.token}` syntax. Both spines win on conflict with any mock, wireframe, or import. + +## The DESIGN.md spine + +Per the [Google Labs spec](https://github.com/google-labs-code/design.md). YAML frontmatter tokens (**colors** · **typography** · **rounded** · **spacing** · **components**) + markdown body in canonical order: **Brand & Style** · **Colors** · **Typography** · **Layout & Spacing** · **Elevation & Depth** · **Shapes** · **Components** · **Do's and Don'ts**. Sections omittable; order locked when present. Spec rules: `references/design-md-spec.md`. Shape: read every entry in `{workflow.design_md_examples}`. + +## The EXPERIENCE.md spine + +Always: **Foundation** (form-factor, UI system when present; DESIGN.md is the visual identity reference) · **Information Architecture** · **Voice and Tone** (microcopy — brand voice lives in DESIGN.md.Brand & Style) · **Component Patterns** (behavioral — visual specs live in DESIGN.md.Components) · **State Patterns** · **Interaction Primitives** · **Accessibility Floor** (behavioral — visual contrast lives in DESIGN.md) · **Key Flows** (named-protagonist journeys with a climax beat). + +When triggered: **Inspiration & Anti-patterns** · **Responsive & Platform**. + +Invent sections for product-specific concerns. Shape: read every entry in `{workflow.experience_md_examples}`. + +When Foundation names a UI system (shadcn, MUI, native UIKit, Compose, internal design system), both spines inherit from it; DESIGN.md tokens reference or extend the system's defaults, EXPERIENCE.md specifies only the behavioral delta. + +## Sources + +UX may lead, follow, or stand alone. Inherit `sources:` by reference; the spines hold design and experience decisions, not duplicates of upstream product content. + +## On Activation + +1. Resolve customization: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly and use defaults. +2. Run `{workflow.activation_steps_prepend}`. Treat `{workflow.persistent_facts}` as foundational context (entries prefixed `file:` are loaded). `{workflow.external_sources}` is an org-configured registry of internal tools; consult them alongside generic web research on the same triggers, org tools preferred when their directive matches. +3. Load `{project-root}/_bmad/bmm/config.yaml` (+ `config.user.yaml` if present). Resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{project_name}`, `{date}`. Missing keys → neutral defaults; never block. +4. If headless, follow `references/headless.md` for the whole run. Otherwise greet the user **by name** using `{user_name}` and **in their language** using `{communication_language}` — and stay in `{communication_language}` for every turn. In the greeting, let the user know `bmad-party-mode` and `bmad-advanced-elicitation` are always available. Then scan for misroute on the first message: PRD → `bmad-prd`; architecture → `bmad-create-architecture`; game UX → BMad GDS; agent/skill → `bmad-workflow-builder`; brief → `bmad-product-brief`. +5. Detect intent: **Create**, **Update**, **Validate**. For Create, before binding a fresh workspace, scan `{workflow.ux_output_path}` for prior in-progress runs (folders matching `{workflow.run_folder_pattern}` whose `DESIGN.md` frontmatter `status` is not `final`) and offer to resume rather than starting over. +6. Run `{workflow.activation_steps_append}`. + +## Modes + +**Create.** Bind `{doc_workspace}` to `{workflow.ux_output_path}/{workflow.run_folder_pattern}/`. Create `.working/`, `imports/`, `.decision-log.md`, `DESIGN.md` (frontmatter only), and `EXPERIENCE.md` (frontmatter only). Run Discovery → Finalize. + +**Update.** Read spines + log + sources. Create the log if missing — this update is entry one. Surface conflicts with prior decisions. Run Finalize. + +**Validate.** See `references/validate.md`. + +## Discovery + +**Capture; do not author.** The spines are distilled at Finalize. Decisions → `.decision-log.md` (canonical). Creative-tool artifacts → `.working/`. User-supplied visuals (Figma, sketches, brand decks, image folders) → `imports/`, one log line per item. Spines win on conflict. + +**Source scan.** Glob `{planning_artifacts}/` for candidate input paths; surface paths only — never read content in the parent. User confirms which apply or adds others; subagent-extracts on confirm. + +Brain dump first — even when the user opens with paragraphs (that's intake). Subagent-extract big docs. One "anything else?" probe. Stakes: hobby / internal / consumer / regulated. + +Working mode: + +- **Fast path** — batch gaps, draft both spines with `[ASSUMPTION]` tags, skip creative tools. +- **Coaching path** — walk decisions; creative tools woven in. +- **Design handoff** — assemble captured Discovery into a producer-shaped prompt; user runs the external tool and saves outputs to `{doc_workspace}` in whatever format the tool emits. Producer registry: `{workflow.design_handoffs}` (default: Google Stitch). EXPERIENCE.md can follow via Update mode when ready. + +Creative tools — scan `{workflow.creative_tools}`, invoke when seeing helps. Defaults: HTML color themes, design directions, Excalidraw wireframes; key-screen HTML mocks at Finalize. See `references/creative-tools.md`. Research subagents on demand; consult `{workflow.external_sources}` when entries match. + +Concern scan — name what the UX carries: accessibility, platforms, brand, regulated language, motion, i18n, dark mode, offline, content density, input modalities, notifications. Open list; drives invented sections. + +Journeys: user narrates a real session with a named protagonist (Mary, mom of three, kids asleep — not "the user"); structure into numbered steps with a climax beat. Mirror source-spec names verbatim when defined. + +Form-factor: mobile / web / desktop / multi-surface must resolve before IA closes. Named-protagonist journeys often derive it (Pary on iPad implies an iPad surface; Skeeter on Android adds a multi-surface need); when journeys don't disambiguate, probe. + +Surface closure: stated needs become screens through journeys. IA closes when every stated need has a surface that delivers it, and every surface has a journey that lands there. When closure fails, probe — never invent the missing piece. + +## Reviewer Gate + +Used by Validate and Finalize. **Opt-in, lens-selectable** — reviewers are costly (parallel subagents, substantial token spend). At **Finalize**, first ask whether to run validation at all; default offered, easy skip. At **Validate** intent the user already opted in — skip that question. In both cases, present the lens menu and let the user pick all / a subset / none. Menu: rubric walker (`references/validate.md`) + `{workflow.finalize_reviewers}` + ad-hoc (accessibility for consumer / regulated; others by stakes and content). Picked lenses dispatch as parallel subagents → each writes `review-{slug}.md`, returns a compact summary. If any lens ran, run the synthesis pipeline in `references/validate.md`. + +## Finalize + +Outcomes, in order: + +- **Spines distilled.** Subagent reads `.decision-log.md`, `.working/`, `imports/`, sources; produces `DESIGN.md` against `## The DESIGN.md spine` + `{workflow.design_md_examples}` and `EXPERIENCE.md` against `## The EXPERIENCE.md spine` + `{workflow.experience_md_examples}`. Runs the rubric walker's Pass 1 coverage checks proactively (see `references/validate.md`). Surface gaps; never invent. +- **Inputs reconciled.** Subagent per user-supplied input → `reconcile-{slug}.md`. Surface dropped qualitative ideas. +- **Reviewer Gate offered.** Ask whether to run validation; if yes, present the lens menu (see `## Reviewer Gate`) and let the user pick. If any lens ran, resolve findings before polish; otherwise proceed. +- **Open items triaged.** Open Questions, `[ASSUMPTION]`, `[NOTE FOR UX]`. Phase-blockers one at a time; non-blockers → log. +- **Key-screen mocks rendered.** Key-screens tool → `.working/` for surfaces where layout drives behavior or anchors visual language. +- **Mock coverage confirmed.** Walk every IA surface; classify *mocked* vs *spine-only*. Ask: *"These will be built from spine tables alone — any need a visual reference?"* Render more if named; log spine-only choices. +- **Layout extracted, artifacts promoted.** Distill subagent re-reads each `.working/` and `imports/` artifact; lifts visual decisions into DESIGN.md and behavioral decisions into EXPERIENCE.md. Promote `.working/` keepers to `mockups/` (HTML) or `wireframes/` (Excalidraw); imports stay. Inline relative links at relevant spine sections; state spines-win-on-conflict once. +- **Polished, handed off, closed.** Apply `{workflow.doc_standards}` in order. Execute `{workflow.external_handoffs}`; surface URLs. Set both files' `status: final`, `updated: {date}`. Log finalization. Share paths. Common next: `bmad-create-architecture`, `bmad-create-epics-and-stories`, `bmad-dev-story`. Run `{workflow.on_complete}`. diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/assets/color-themes.md b/src/bmm-skills/2-plan-workflows/bmad-ux/assets/color-themes.md new file mode 100644 index 000000000..31169edc3 --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/assets/color-themes.md @@ -0,0 +1,9 @@ +# Color Themes Renderer + +Subagent prompt. Produce one self-contained HTML page at the supplied `.working/color-themes-{n}.html` path showing 4-6 distinct theme variations side by side so the user can pick. + +Each variation: header (name + one-line emotional register), token chips for every semantic role decided so far, and one realistic UI snippet using the palette (content drawn from the conversation, not lorem). Include light and dark side-by-side when both modes are in scope. Avoid near-identical pastels — variations must differ in register, not just hue. + +Inline CSS only, system font stack, no JS, no network. Document concrete hex values in ` + + +
+ + +
+
+

TEMPLATE_UX_SPEC_NAME — UX Design Validation Report

+
TEMPLATE_UX_SPEC_PATH
+
+
+ + +
+

TEMPLATE_SYNTHESIS_PARAGRAPH

+
+ + +
+
+
TEMPLATE_CATEGORY_NAME
+
TEMPLATE_VERDICT_TEXT
+
+ +
+ + +
+
+ +

TEMPLATE_CATEGORY_NAME

+ TEMPLATE_VERDICT_TEXT +
+
+
+

TEMPLATE_DIMENSION_JUDGMENT

+
+
+
+ +
+
+ TEMPLATE_SEVERITY +

TEMPLATE_FINDING_TITLE

+ TEMPLATE_LOCATION +
+
TEMPLATE_FINDING_NOTE
+
Fix: TEMPLATE_SUGGESTED_FIX
+
+
+
+
+ + +
+
+ +

Accessibility review

+ TEMPLATE_REVIEWER_SOURCE_FILE +
+
+
+

TEMPLATE_REVIEWER_PREAMBLE

+
+
+
+
+
+ TEMPLATE_SEVERITY +

TEMPLATE_FINDING_TITLE

+ TEMPLATE_LOCATION +
+
TEMPLATE_FINDING_NOTE
+
Fix: TEMPLATE_SUGGESTED_FIX
+
+
+
+
+ + +
+

Mechanical notes

+ +
+ + +
+ + diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/customize.toml b/src/bmm-skills/2-plan-workflows/bmad-ux/customize.toml new file mode 100644 index 000000000..a6a0fe0f8 --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/customize.toml @@ -0,0 +1,100 @@ +# DO NOT EDIT -- overwritten on every update. +# +# Workflow customization surface for bmad-ux. +# Overrides: +# {project-root}/_bmad/custom/bmad-ux.toml (team) +# {project-root}/_bmad/custom/bmad-ux.user.toml (personal) +# Merge rules: scalars override, arrays append. + +[workflow] + +# Steps to run before/after standard activation. Append-only. +activation_steps_prepend = [] +activation_steps_append = [] + +# Persistent facts loaded at activation and kept in mind for the run. +# Entries: literal sentence, `skill:NAME`, or `file:PATH` (glob ok). +persistent_facts = [ + "file:{project-root}/**/project-context.md", +] + +# Runs at workflow completion. String or array of instructions. +on_complete = "" + +# Reference DESIGN.md spines the distillation subagent reads to anchor shape +# and editorial richness. Convention-compliant with the Google Labs DESIGN.md +# spec (https://github.com/google-labs-code/design.md). Append entries via +# override TOML to seed an org-specific canonical aesthetic. +# Each entry: `file:PATH` (or bare relative path, resolved skill-relative). +design_md_examples = [ + "assets/design-example-mobile.md", + "assets/design-example-shadcn.md", + "assets/design-example-editorial.md", +] + +# Reference EXPERIENCE.md spines for the behavioral/flow/IA layer. Each entry: +# `file:PATH` (or bare relative path, resolved skill-relative). +experience_md_examples = [ + "assets/experience-example-mobile.md", + "assets/experience-example-shadcn.md", +] + +# Design handoff targets — external tools that can take over the design / +# visual identity work. The user runs the tool externally and saves outputs +# (whatever the tool produces — DESIGN.md, Figma files, React components, +# HTML mocks) to {doc_workspace}. +# Each entry: `tool:NAME: `, `skill:NAME`, or plain-text descriptor. +# Default: Google Stitch (emits DESIGN.md + per-screen HTML). Other producers: +# Vercel v0, Figma, Galileo, Anima, internal generators. +design_handoffs = [ + "Google Stitch (https://stitch.withgoogle.com) — emits DESIGN.md + per-screen HTML. Paste assembled prompt; save outputs to {doc_workspace}.", +] + +# HTML skeleton filled in by the validation synthesis pass. +validation_report_template = "assets/validation-report-template.html" + +# Run folder. DESIGN.md, EXPERIENCE.md, .decision-log.md, .working/ +# (creative-tool artifacts), imports/ (user-supplied screens / brand decks / +# Figma exports / sketches), optional mockups/ and wireframes/ (promoted +# artifacts), optional validation-report.* all land inside +# {ux_output_path}/{run_folder_pattern}/. +ux_output_path = "{planning_artifacts}/ux-designs" +run_folder_pattern = "ux-{project_name}-{date}" + +# Creative tools registry. Collaborative renderers invoked on demand during +# Discovery and at Finalize. Entry forms: `file:PATH`, `skill:NAME`, +# `tool:MCP_TOOL: `, or plain text. Defaults ship for HTML color +# themes, HTML design directions, Excalidraw wireframes (Discovery), and +# 1:1 HTML key-screen mockups (Finalize). Working artifacts land in +# {doc_workspace}/.working/; finalize promotes those with lasting reference +# value to mockups/ or wireframes/. See references/creative-tools.md. +creative_tools = [ + "file:assets/color-themes.md", + "file:assets/design-directions.md", + "file:assets/excalidraw-wireframe.md", + "file:assets/key-screens.md", +] + +# Polish passes applied to DESIGN.md and EXPERIENCE.md at finalize. +# Entries: `skill:NAME`, `file:PATH`, or plain text directive. +# Suggested order: structural → content/voice → prose mechanics. +doc_standards = [ + "skill:bmad-editorial-review-structure", + "skill:bmad-editorial-review-prose", +] + +# Information retrieval registry. Consulted on demand when the conversation +# surfaces a matching need. Distinct from creative_tools (artifact production). +# Example: "When researching component patterns, consult corp:design_system_search." +external_sources = [] + +# Routes outputs beyond local files at Finalize. Returned URLs/IDs surfaced +# to the user. Unavailable tools skipped and flagged. +# Example: "Upload DESIGN.md to Confluence via corp:confluence_upload (space_key='DESIGN')." +external_handoffs = [] + +# Reviewers spawned at Finalize step 4 and at Validate intent, alongside +# the rubric walker. Entries: `skill:NAME`, `file:PATH`, or plain text. +# Common ad-hoc add (judged by the skill): accessibility-focused reviewer +# for consumer / regulated work. +finalize_reviewers = [] diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/references/creative-tools.md b/src/bmm-skills/2-plan-workflows/bmad-ux/references/creative-tools.md new file mode 100644 index 000000000..f32f16117 --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/references/creative-tools.md @@ -0,0 +1,19 @@ +# Creative Tools + +`{workflow.creative_tools}` is a registry of collaborative renderers invoked on demand when seeing options helps the user decide. Entries follow the standard prefix convention: `skill:NAME`, `file:PATH`, `tool:MCP_TOOL_NAME: `, or plain-text directive. + +Defaults ship for HTML color themes, HTML design directions, Excalidraw wireframes (Discovery), and 1:1 HTML key-screen mocks (Finalize). Teams append more via override TOML — Figma MCP, custom skills, prompt-based mood boards. + +## When to invoke + +Decision moments where a visual beats more conversation: picking color tokens, picking a visual personality among directions, sketching IA, mocking a tricky flow. Fast-path users typically skip; coaching-path users typically lean in. Read the room. + +## Artifact handling + +Every renderer writes to `{doc_workspace}/.working/` with a descriptive filename. `.working/` is the audit trail and survives the run. At Finalize, the facilitator walks `.working/` with the user and promotes artifacts with lasting reference value to `{doc_workspace}/mockups/` (HTML anchoring a brand or layout decision) or `{doc_workspace}/wireframes/` (Excalidraw a dev would glance at). Bar for promotion: *would a future reader of `DESIGN.md` or `EXPERIENCE.md` open this?* Default is leave-in-`.working/`. + +## Renderer contract + +The parent passes the subagent: current `.decision-log.md`, relevant prior `.working/` captures, the user's stated intent for this pass, the output path. The subagent writes its artifact under `.working/` and returns ONLY a compact summary (file path, one line per variant, mode coverage). Parent never holds the full payload. + +For HTML, open in browser when interactive: `python3 -c "import webbrowser, pathlib; webbrowser.open(pathlib.Path('PATH').resolve().as_uri())"`. Skip in headless. diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/references/design-md-spec.md b/src/bmm-skills/2-plan-workflows/bmad-ux/references/design-md-spec.md new file mode 100644 index 000000000..f685b2bab --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/references/design-md-spec.md @@ -0,0 +1,50 @@ +# DESIGN.md Spec — Working Reference + +Source of truth: [google-labs-code/design.md](https://github.com/google-labs-code/design.md) (Apache 2.0, Google Labs, April 2026). This file is a working summary; the URL wins on conflict. + +## Structure + +YAML frontmatter (machine-readable tokens) + markdown body (human-readable rationale, prose sections). + +## Frontmatter tokens + +| Key | Type | Notes | +|---|---|---| +| `name` | string | Required. Brand or system name. | +| `description` | string | One-line statement of what this system is. | +| `colors` | flat object | Kebab-case keys. Values are hex strings (`'#FBF9F4'`). | +| `typography` | nested object | Each value: an object with any subset of `fontFamily`, `fontSize`, `fontWeight`, `lineHeight`, `letterSpacing`. | +| `rounded` | object | Scale names (`sm`, `md`, `lg`, `xl`, `full`, `DEFAULT`) → CSS dimensions. `full` is conventionally `9999px`. | +| `spacing` | object | Scale levels (`'1'`, `'2'`, ...) or named tokens (`gutter`, `margin-mobile`, `editorial-gap`) → dimensions. | +| `components` | object | Component-name → object of component tokens mapped to values or `{path.to.token}` references. | + +## Body sections (omittable, order-locked when present) + +1. **Brand & Style** — Aesthetic posture in prose. The editorial voice — what *kind* of thing this is. +2. **Colors** — Per-color story. Why each exists, where it's used, what it's *not* used for. +3. **Typography** — Type roles, ramp, and rules. Platform conventions noted semantically when inherited. +4. **Layout & Spacing** — Spacing scale narrative, grid behavior, margins, gutters, breakpoint rules. +5. **Elevation & Depth** — Shadow language and tonal layering rules. +6. **Shapes** — Corner radii rules and the aesthetic logic behind them. +7. **Components** — Per-component visual specs: anatomy, color usage, sizing, state appearance. +8. **Do's and Don'ts** — Hard visual rules — what to do, what to avoid. + +Sections may be omitted when not relevant; order is locked when present. + +## Cross-reference syntax + +`{path.to.token}` used in prose and inside component objects to reference frontmatter tokens. Examples: + +- `{colors.primary}` +- `{typography.body.fontSize}` +- `{rounded.md}` +- `{spacing.4}` + +The path follows the YAML structure. + +## Common patterns + +- **Light/dark mode.** Either separate kebab-case tokens (`surface-base` / `surface-base-dark`) or separate DESIGN.md files per mode. The spec allows either; pick the form that reads cleanest for the product. +- **Platform conventions.** When inheriting from native platforms (iOS UIKit, Android Compose, Apple Human Interface Guidelines), use a `note` field instead of literal values: `{ note: 'iOS Title 1 · Android Headline Small' }`. The spec is the spec; the platform owns the rendered values. +- **UI-system inheritance.** When inheriting from shadcn / MUI / Tailwind / internal design system, reference the system's tokens by name rather than restating values. DESIGN.md specifies only the deltas (brand color overrides, typography swaps, component customizations). +- **Component tokens.** The `components` frontmatter entry maps each named component (e.g., `button-primary`) to its specific token values. Use `{path.to.token}` references freely; the resolver flattens at consumption time. diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/references/headless.md b/src/bmm-skills/2-plan-workflows/bmad-ux/references/headless.md new file mode 100644 index 000000000..bc4b3edde --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/references/headless.md @@ -0,0 +1,37 @@ +# Headless Mode + +Load this file when invoked headless. Follow it for the whole run. + +## Detection + +Headless when any of: caller sets `headless: true` (or harness equivalent); invocation is from another skill or non-interactive runner; `{workflow.activation_steps_prepend}` declares it; first message is an automation context pre-supplying inputs. Ambiguous → default interactive. + +## Inputs + +Free-form structured payload in the first message: + +- `intent` — `"create"`, `"update"`, or `"validate"`. If absent, infer from the artifact set. +- **Create**: any source spec (PRD, brief, requirements list, design-thinking output, prior UX — text, path, or URL) plus brand / platform / accessibility notes; `doc_workspace` if a specific run folder is required. +- **Update**: existing workspace containing `DESIGN.md` + `EXPERIENCE.md` (or path to either) + change signal. +- **Validate**: existing workspace containing `DESIGN.md` + `EXPERIENCE.md` (or path to either). Workspace defaults to the spines' containing directory. + +Inferences → `assumptions[]`. Gaps needing a human decision → `open_questions[]`. Do not invent persona, brand, accessibility, or scope detail. + +Creative tools default off in headless. Caller can override; artifacts land in `.working/` and are not promoted unless the caller signals. + +## Behavior + +Do not ask. Do not greet. Complete the intent from what's provided, what exists in `{doc_workspace}`, or what you can discover. If intent stays ambiguous after inference, halt with `status: "blocked"` and a one-sentence `reason`. + +`status`: +- `"complete"` — stands on its own. +- `"partial"` — artifact produced but `open_questions[]` non-empty or critical inputs inferred. +- `"blocked"` — no artifact produced. + +End with JSON matching `assets/headless-schemas.md`. `intent` reflects detected intent. Omit keys for artifacts not produced. + +## Mode-specific overrides + +**Update.** Apply the change. Log to `.decision-log.md` with rationale. Surface conflicts in `conflicts_with_prior_decisions[]`. + +**Validate.** Always write both `validation-report.html` and `validation-report.md` regardless of finding count. Always include `"offer_to_update": true`. Skip the browser-open step. diff --git a/src/bmm-skills/2-plan-workflows/bmad-ux/references/validate.md b/src/bmm-skills/2-plan-workflows/bmad-ux/references/validate.md new file mode 100644 index 000000000..48fc230cf --- /dev/null +++ b/src/bmm-skills/2-plan-workflows/bmad-ux/references/validate.md @@ -0,0 +1,115 @@ +# Validate + +Critique an existing spine pair (`DESIGN.md` + `EXPERIENCE.md`) or any format of UX the user provides, without changing it. The synthesis pipeline below is also used at the Reviewer Gate during Create / Update Finalize. + +## Orient + +Subagent-extract from `.decision-log.md`, sources in frontmatter, `imports/`, `mockups/`, `wireframes/`, `DESIGN.md`, `EXPERIENCE.md`. Parent assembles from extracts. + +## Reviewer Gate + +**Opt-in.** Reviewers are costly. At Finalize, ask first if the user wants to run UX validation with multiple subagent lenses. Default offered, easy skip. At Validate intent, skip that question, the user already invoked it. + +**Lens menu.** UNLESS HEADLESS MODE: Always present the lens picks before dispatching. Build the menu from: rubric walker (this file) + `{workflow.finalize_reviewers}` + ad-hoc reviewers the skill judges relevant. The user picks all, a subset, or none. Only picked lenses dispatch. + +Rubric walker prompt: + +> Validate the spine pair (`DESIGN.md` + `EXPERIENCE.md`) as the contract for downstream consumers (architecture, story-dev — human or AI). Can a consumer source-extract cleanly, with every reference resolving and every load-bearing decision committed? Read `{workflow.design_md_examples}` and `{workflow.experience_md_examples}` first. +> +> **Pass 1 — mechanical coverage.** Per category: extract, then list misses with location citations. No misses = **strong**. +> +> 1. **Flow coverage** (EXPERIENCE.md). Sources frontmatter → extract every UJ / requirement name. Verify each has a Key Flow with named protagonist, numbered steps, a climax beat, and a failure path where applicable. +> +> 2. **Token completeness** (DESIGN.md). Extract every token in the YAML frontmatter and every `{path.to.token}` reference in the prose. Verify each defined (see `references/design-md-spec.md` for type rules). **Color tokens missing hex (or light/dark pairs where applicable) are critical** — downstream code mirrors the spine. Platform conventions (native dynamic type, 8pt grid) may stay semantic. Contrast targets stated for load-bearing combinations. +> +> 3. **Component coverage** (both spines). Extract every component name used anywhere. Verify each has a row in DESIGN.md.Components (visual spec) *and* EXPERIENCE.md.Component Patterns (behavioral spec) — real rules, not one-word descriptions. +> +> 4. **State coverage** (EXPERIENCE.md). Walk every IA surface. List states it should have (empty, cold-load, focus, error, offline, permission-denied — whichever apply). Verify each covered. +> +> 5. **Visual reference coverage.** List every file in `mockups/`, `wireframes/`, `imports/`. Spines link to each inline at the relevant section and name what it illustrates; spines-win-on-conflict stated once. List orphans and unspecific references. +> +> **Pass 2 — judgment.** Verdict per category (*strong / adequate / thin / broken*); findings only where they add information. +> +> 6. **Bloat & overspecification.** Pixel specs where tokens cover it; source restatement (personas, FRs, scope); prose where a table works; sections no downstream consumer would read; decorative narrative untied to a decision. DESIGN.md prose may carry editorial voice; EXPERIENCE.md prose should not. +> +> 7. **Inheritance discipline.** `sources` frontmatter resolves. UJ / requirement names verbatim from sources. Glossary identical across spines and sources. Component names identical across all sections in both files. EXPERIENCE.md token references resolve to DESIGN.md tokens by name. +> +> 8. **Shape fit.** DESIGN.md sections in canonical order (Brand & Style → Colors → Typography → Layout & Spacing → Elevation & Depth → Shapes → Components → Do's and Don'ts; omittable but order-locked when present). EXPERIENCE.md required defaults present (Foundation, IA, Voice and Tone, Component Patterns, State Patterns, Interaction Primitives, Accessibility Floor, Key Flows). Dropped defaults defensible. Required-when-applicable present where triggered (Inspiration when sources / log show reference products or rejects; Responsive when multi-surface or breakpoints). Invented sections earn their place. +> +> Severity = downstream impact, not fix difficulty. +> +> Write to `{doc_workspace}/review-rubric.md`: +> +> ```markdown +> # Spine Pair Review — {project_name} +> +> ## Overall verdict +> [2–3 sentences] +> +> ## 1. Flow coverage — [verdict] +> [What was checked.] +> ### Findings +> - **[critical|high|medium|low]** [finding] (location). *Fix:* [suggestion]. +> +> (repeat 2–8) +> +> ## Mechanical notes +> [Name inconsistencies, broken cross-refs, frontmatter completeness, Mermaid syntax.] +> ``` +> +> Return ONLY a compact summary: overall verdict, per-section verdicts, finding counts by severity, file path. + +The gate may dispatch `{workflow.finalize_reviewers}` and ad-hoc reviewers (accessibility for consumer / regulated). Each writes `review-{slug}.md` and returns a compact summary. Parallel. + +## Synthesis pipeline + +Under Validate intent, after every reviewer returns, render one consolidated report. Don't skip. + +1. Read every `{doc_workspace}/review-*.md`. +2. Fill `{workflow.validation_report_template}`. No overall grade — the per-category verdicts and severity counts already say what's true. Synthesis paragraph lifts the rubric's overall verdict; add a second if extra reviewers shift the picture. One section per rubric category (open if thin / broken), one per extra reviewer (closed, adversarial voice preserved). +3. Write `{doc_workspace}/validation-report.html`. +4. Write the Markdown twin `{doc_workspace}/validation-report.md` — same content grouped by severity. +5. Open HTML: `python3 -c "import webbrowser, pathlib; webbrowser.open(pathlib.Path('{doc_workspace}/validation-report.html').resolve().as_uri())"`. Skip headless. + +Re-running overwrites the consolidated report; individual `review-*.md` files persist. + +## Markdown twin shape + +```markdown +# Validation Report — {project_name} + +- **DESIGN.md:** `{design_path}` +- **EXPERIENCE.md:** `{experience_path}` +- **Run at:** {ISO timestamp} + +## Overall verdict +{synthesis paragraphs} + +## Category verdicts +- Flow coverage — {verdict} +- Token completeness — {verdict} +- Component coverage — {verdict} +- State coverage — {verdict} +- Visual reference coverage — {verdict} +- Bloat & overspecification — {verdict} +- Inheritance discipline — {verdict} +- Shape fit — {verdict} + +## Findings by severity + +### Critical (n) +**[Category or Reviewer]** — Title (§ location) +{Note} +Fix: {suggested fix} + +### High (n) / Medium (n) / Low (n) +... + +## Reviewer files +- `review-rubric.md` +- ... +``` + +## Close + +Surface artifact paths. Always offer to roll findings into an Update. diff --git a/src/bmm-skills/module-help.csv b/src/bmm-skills/module-help.csv index 82674cb5c..eb2d51c1c 100644 --- a/src/bmm-skills/module-help.csv +++ b/src/bmm-skills/module-help.csv @@ -16,7 +16,7 @@ BMad Method,bmad-technical-research,Technical Research,TR,Technical feasibility BMad Method,bmad-product-brief,Create Brief,CB,An expert guided experience to nail down your product idea in a brief. a gentler approach than PRFAQ when you are already sure of your concept and nothing will sway you.,,-A,1-analysis,,,false,planning_artifacts,product brief BMad Method,bmad-prfaq,PRFAQ Challenge,WB,Working Backwards guided experience to forge and stress-test your product concept to ensure you have a great product that users will love and need through the PRFAQ gauntlet to determine feasibility and alignment with user needs. alternative to product brief.,,-H,1-analysis,,,false,planning_artifacts,prfaq document BMad Method,bmad-prd,Create Edit and Review PRD,PRD,"Facilitated PRD workflow — create a new PRD via coached discovery, update an existing one against a change signal, or validate a finished PRD against a checklist with an HTML findings report.",,,2-planning,bmad-product-brief,,true,planning_artifacts,prd -BMad Method,bmad-create-ux-design,Create UX,CU,"Guidance through realizing the plan for your UX, strongly recommended if a UI is a primary piece of the proposed project.",,,2-planning,bmad-prd,,false,planning_artifacts,ux design +BMad Method,bmad-ux,Create UX,CU,"Guidance through realizing the plan for your UX, strongly recommended if a UI is a primary piece of the proposed project.",,,2-planning,bmad-prd,,false,planning_artifacts,ux design BMad Method,bmad-create-architecture,Create Architecture,CA,Guided workflow to document technical decisions.,,,3-solutioning,,,true,planning_artifacts,architecture BMad Method,bmad-create-epics-and-stories,Create Epics and Stories,CE,,,,3-solutioning,bmad-create-architecture,,true,planning_artifacts,epics and stories BMad Method,bmad-check-implementation-readiness,Check Implementation Readiness,IR,Ensure PRD UX Architecture and Epics Stories are aligned.,,,3-solutioning,bmad-create-epics-and-stories,,true,planning_artifacts,readiness report diff --git a/src/core-skills/bmad-distillator/SKILL.md b/src/core-skills/bmad-distillator/SKILL.md deleted file mode 100644 index 57c44d0c9..000000000 --- a/src/core-skills/bmad-distillator/SKILL.md +++ /dev/null @@ -1,177 +0,0 @@ ---- -name: bmad-distillator -description: Lossless LLM-optimized compression of source documents. Use when the user requests to 'distill documents' or 'create a distillate'. ---- - -# Distillator: A Document Distillation Engine - -## Overview - -This skill produces hyper-compressed, token-efficient documents (distillates) from any set of source documents. A distillate preserves every fact, decision, constraint, and relationship from the sources while stripping all overhead that humans need and LLMs don't. Act as an information extraction and compression specialist. The output is a single dense document (or semantically-split set) that a downstream LLM workflow can consume as sole context input without information loss. - -This is a compression task, not a summarization task. Summaries are lossy. Distillates are lossless compression optimized for LLM consumption. - -## On Activation - -1. **Validate inputs.** The caller must provide: - - **source_documents** (required) — One or more file paths, folder paths, or glob patterns to distill - - **downstream_consumer** (optional) — What workflow/agent consumes this distillate (e.g., "PRD creation", "architecture design"). When provided, use it to judge signal vs noise. When omitted, preserve everything. - - **token_budget** (optional) — Approximate target size. When provided and the distillate would exceed it, trigger semantic splitting. - - **output_path** (optional) — Where to save. When omitted, save adjacent to the primary source document with `-distillate.md` suffix. - - **--validate** (flag) — Run round-trip reconstruction test after producing the distillate. - -2. **Route** — proceed to Stage 1. - -## Stages - -| # | Stage | Purpose | -|---|-------|---------| -| 1 | Analyze | Run analysis script, determine routing and splitting | -| 2 | Compress | Spawn compressor agent(s) to produce the distillate | -| 3 | Verify & Output | Completeness check, format check, save output | -| 4 | Round-Trip Validate | (--validate only) Reconstruct and diff against originals | - -### Stage 1: Analyze - -Run `scripts/analyze_sources.py --help` then run it with the source paths. Use its routing recommendation and grouping output to drive Stage 2. Do NOT read the source documents yourself. - -### Stage 2: Compress - -**Single mode** (routing = `"single"`, ≤3 files, ≤15K estimated tokens): - -Spawn one subagent using `agents/distillate-compressor.md` with all source file paths. - -**Fan-out mode** (routing = `"fan-out"`): - -1. Spawn one compressor subagent per group from the analysis output. Each compressor receives only its group's file paths and produces an intermediate distillate. - -2. After all compressors return, spawn one final **merge compressor** subagent using `agents/distillate-compressor.md`. Pass it the intermediate distillate contents as its input (not the original files). Its job is cross-group deduplication, thematic regrouping, and final compression. - -3. Clean up intermediate distillate content (it exists only in memory, not saved to disk). - -**Graceful degradation:** If subagent spawning is unavailable, read the source documents and perform the compression work directly using the same instructions from `agents/distillate-compressor.md`. For fan-out, process groups sequentially then merge. - -The compressor returns a structured JSON result containing the distillate content, source headings, named entities, and token estimate. - -### Stage 3: Verify & Output - -After the compressor (or merge compressor) returns: - -1. **Completeness check.** Using the headings and named entities list returned by the compressor, verify each appears in the distillate content. If gaps are found, send them back to the compressor for a targeted fix pass — not a full recompression. Limit to 2 fix passes maximum. - -2. **Format check.** Verify the output follows distillate format rules: - - No prose paragraphs (only bullets) - - No decorative formatting - - No repeated information - - Each bullet is self-contained - - Themes are clearly delineated with `##` headings - -3. **Determine output format.** Using the split prediction from Stage 1 and actual distillate size: - - **Single distillate** (≤~5,000 tokens or token_budget not exceeded): - - Save as a single file with frontmatter: - - ```yaml - --- - type: bmad-distillate - sources: - - "{relative path to source file 1}" - - "{relative path to source file 2}" - downstream_consumer: "{consumer or 'general'}" - created: "{date}" - token_estimate: {approximate token count} - parts: 1 - --- - ``` - - **Split distillate** (>~5,000 tokens, or token_budget requires it): - - Create a folder `{base-name}-distillate/` containing: - - ``` - {base-name}-distillate/ - ├── _index.md # Orientation, cross-cutting items, section manifest - ├── 01-{topic-slug}.md # Self-contained section - ├── 02-{topic-slug}.md - └── 03-{topic-slug}.md - ``` - - The `_index.md` contains: - - Frontmatter with sources (relative paths from the distillate folder to the originals) - - 3-5 bullet orientation (what was distilled, from what) - - Section manifest: each section's filename + 1-line description - - Cross-cutting items that span multiple sections - - Each section file is self-contained — loadable independently. Include a 1-line context header: "This section covers [topic]. Part N of M." - - Source paths in frontmatter must be relative to the distillate's location. - -4. **Measure distillate.** Run `scripts/analyze_sources.py` on the final distillate file(s) to get accurate token counts for the output. Use the `total_estimated_tokens` from this analysis as `distillate_total_tokens`. - -5. **Report results.** Always return structured JSON output: - - ```json - { - "status": "complete", - "distillate": "{path or folder path}", - "section_distillates": ["{path1}", "{path2}"] or null, - "source_total_tokens": N, - "distillate_total_tokens": N, - "compression_ratio": "X:1", - "source_documents": ["{path1}", "{path2}"], - "completeness_check": "pass" or "pass_with_additions" - } - ``` - - Where `source_total_tokens` is from the Stage 1 analysis and `distillate_total_tokens` is from step 4. The `compression_ratio` is `source_total_tokens / distillate_total_tokens` formatted as "X:1" (e.g., "3.2:1"). - -6. If `--validate` flag was set, proceed to Stage 4. Otherwise, done. - -### Stage 4: Round-Trip Validation (--validate only) - -This stage proves the distillate is lossless by reconstructing source documents from the distillate alone. Use for critical documents where information loss is unacceptable, or as a quality gate for high-stakes downstream workflows. Not for routine use — it adds significant token cost. - -1. **Spawn the reconstructor agent** using `agents/round-trip-reconstructor.md`. Pass it ONLY the distillate file path (or `_index.md` path for split distillates) — it must NOT have access to the original source documents. - - For split distillates, spawn one reconstructor per section in parallel. Each receives its section file plus the `_index.md` for cross-cutting context. - - **Graceful degradation:** If subagent spawning is unavailable, this stage cannot be performed by the main agent (it has already seen the originals). Report that round-trip validation requires subagent support and skip. - -2. **Receive reconstructions.** The reconstructor returns reconstruction file paths saved adjacent to the distillate. - -3. **Perform semantic diff.** Read both the original source documents and the reconstructions. For each section of the original, assess: - - Is the core information present in the reconstruction? - - Are specific details preserved (numbers, names, decisions)? - - Are relationships and rationale intact? - - Did the reconstruction add anything not in the original? (indicates hallucination filling gaps) - -4. **Produce validation report** saved adjacent to the distillate as `-validation-report.md`: - - ```markdown - --- - type: distillate-validation - distillate: "{distillate path}" - sources: ["{source paths}"] - created: "{date}" - --- - - ## Validation Summary - - Status: PASS | PASS_WITH_WARNINGS | FAIL - - Information preserved: {percentage estimate} - - Gaps found: {count} - - Hallucinations detected: {count} - - ## Gaps (information in originals but missing from reconstruction) - - {gap description} — Source: {which original}, Section: {where} - - ## Hallucinations (information in reconstruction not traceable to originals) - - {hallucination description} — appears to fill gap in: {section} - - ## Possible Gap Markers (flagged by reconstructor) - - {marker description} - ``` - -5. **If gaps are found**, offer to run a targeted fix pass on the distillate — adding the missing information without full recompression. Limit to 2 fix passes maximum. - -6. **Clean up** — delete the temporary reconstruction files after the report is generated. \ No newline at end of file diff --git a/src/core-skills/bmad-distillator/agents/distillate-compressor.md b/src/core-skills/bmad-distillator/agents/distillate-compressor.md deleted file mode 100644 index d581b79f9..000000000 --- a/src/core-skills/bmad-distillator/agents/distillate-compressor.md +++ /dev/null @@ -1,116 +0,0 @@ -# Distillate Compressor Agent - -Act as an information extraction and compression specialist. Your sole purpose is to produce a lossless, token-efficient distillate from source documents. - -You receive: source document file paths, an optional downstream_consumer context, and a splitting decision. - -You must load and apply `../resources/compression-rules.md` before producing output. Reference `../resources/distillate-format-reference.md` for the expected output format. - -## Compression Process - -### Step 1: Read Sources - -Read all source document files. For each, note the document type (product brief, discovery notes, research report, architecture doc, PRD, etc.) based on content and naming. - -### Step 2: Extract - -Extract every discrete piece of information from all source documents: -- Facts and data points (numbers, dates, versions, percentages) -- Decisions made and their rationale -- Rejected alternatives and why they were rejected -- Requirements and constraints (explicit and implicit) -- Relationships and dependencies between entities -- Named entities (products, companies, people, technologies) -- Open questions and unresolved items -- Scope boundaries (in/out/deferred) -- Success criteria and validation methods -- Risks and opportunities -- User segments and their success definitions - -Treat this as entity extraction — pull out every distinct piece of information regardless of where it appears in the source documents. - -### Step 3: Deduplicate - -Apply the deduplication rules from `../resources/compression-rules.md`. - -### Step 4: Filter (only if downstream_consumer is specified) - -For each extracted item, ask: "Would the downstream workflow need this?" -- Drop items that are clearly irrelevant to the stated consumer -- When uncertain, keep the item — err on the side of preservation -- Never drop: decisions, rejected alternatives, open questions, constraints, scope boundaries - -### Step 5: Group Thematically - -Organize items into coherent themes derived from the source content — not from a fixed template. The themes should reflect what the documents are actually about. - -Common groupings (use what fits, omit what doesn't, add what's needed): -- Core concept / problem / motivation -- Solution / approach / architecture -- Users / segments -- Technical decisions / constraints -- Scope boundaries (in/out/deferred) -- Competitive context -- Success criteria -- Rejected alternatives -- Open questions -- Risks and opportunities - -### Step 6: Compress Language - -For each item, apply the compression rules from `../resources/compression-rules.md`: -- Strip prose transitions and connective tissue -- Remove hedging and rhetoric -- Remove explanations of common knowledge -- Preserve specific details (numbers, names, versions, dates) -- Ensure the item is self-contained (understandable without reading the source) -- Make relationships explicit ("X because Y", "X blocks Y", "X replaces Y") - -### Step 7: Format Output - -Produce the distillate as dense thematically-grouped bullets: -- `##` headings for themes — no deeper heading levels needed -- `- ` bullets for items — every token must carry signal -- No decorative formatting (no bold for emphasis, no horizontal rules) -- No prose paragraphs — only bullets -- Semicolons to join closely related short items within a single bullet -- Each bullet self-contained — understandable without reading other bullets - -Do NOT include frontmatter — the calling skill handles that. - -## Semantic Splitting - -If the splitting decision indicates splitting is needed, load `../resources/splitting-strategy.md` and follow it. - -When splitting: - -1. Identify natural semantic boundaries in the content — coherent topic clusters, not arbitrary size breaks. - -2. Produce a **root distillate** containing: - - 3-5 bullet orientation (what was distilled, for whom, how many parts) - - Cross-references to section distillates - - Items that span multiple sections - -3. Produce **section distillates**, each self-sufficient. Include a 1-line context header: "This section covers [topic]. Part N of M from [source document names]." - -## Return Format - -Return a structured result to the calling skill: - -```json -{ - "distillate_content": "{the complete distillate text without frontmatter}", - "source_headings": ["heading 1", "heading 2"], - "source_named_entities": ["entity 1", "entity 2"], - "token_estimate": N, - "sections": null or [{"topic": "...", "content": "..."}] -} -``` - -- **distillate_content**: The full distillate text -- **source_headings**: All Level 2+ headings found across source documents (for completeness verification) -- **source_named_entities**: Key named entities (products, companies, people, technologies, decisions) found in sources -- **token_estimate**: Approximate token count of the distillate -- **sections**: null for single distillates; array of section objects if semantically split - -Do not include conversational text, status updates, or preamble — return only the structured result. diff --git a/src/core-skills/bmad-distillator/agents/round-trip-reconstructor.md b/src/core-skills/bmad-distillator/agents/round-trip-reconstructor.md deleted file mode 100644 index 586e7f62a..000000000 --- a/src/core-skills/bmad-distillator/agents/round-trip-reconstructor.md +++ /dev/null @@ -1,68 +0,0 @@ -# Round-Trip Reconstructor Agent - -Act as a document reconstruction specialist. Your purpose is to prove a distillate's completeness by reconstructing the original source documents from the distillate alone. - -**Critical constraint:** You receive ONLY the distillate file path. You must NOT have access to the original source documents. If you can see the originals, the test is meaningless. - -## Process - -### Step 1: Analyze the Distillate - -Read the distillate file. Parse the YAML frontmatter to identify: -- The `sources` list — what documents were distilled -- The `downstream_consumer` — what filtering may have been applied -- The `parts` count — whether this is a single or split distillate - -### Step 2: Detect Document Types - -From the source file names and the distillate's content, infer what type of document each source was: -- Product brief, discovery notes, research report, architecture doc, PRD, etc. -- Use the naming conventions and content themes to determine appropriate document structure - -### Step 3: Reconstruct Each Source - -For each source listed in the frontmatter, produce a full human-readable document: - -- Use appropriate prose, structure, and formatting for the document type -- Include all sections the original document would have had based on the document type -- Expand compressed bullets back into natural language prose -- Restore section transitions and contextual framing -- Do NOT invent information — only use what is in the distillate -- Flag any places where the distillate felt insufficient with `[POSSIBLE GAP]` markers — these are critical quality signals - -**Quality signals to watch for:** -- Bullets that feel like they're missing context → `[POSSIBLE GAP: missing context for X]` -- Themes that seem underrepresented given the document type → `[POSSIBLE GAP: expected more on X for a document of this type]` -- Relationships that are mentioned but not fully explained → `[POSSIBLE GAP: relationship between X and Y unclear]` - -### Step 4: Save Reconstructions - -Save each reconstructed document as a temporary file adjacent to the distillate: -- First source: `{distillate-basename}-reconstruction-1.md` -- Second source: `{distillate-basename}-reconstruction-2.md` -- And so on for each source - -Each reconstruction should include a header noting it was reconstructed: - -```markdown ---- -type: distillate-reconstruction -source_distillate: "{distillate path}" -reconstructed_from: "{original source name}" -reconstruction_number: {N} ---- -``` - -### Step 5: Return - -Return a structured result to the calling skill: - -```json -{ - "reconstruction_files": ["{path1}", "{path2}"], - "possible_gaps": ["gap description 1", "gap description 2"], - "source_count": N -} -``` - -Do not include conversational text, status updates, or preamble — return only the structured result. diff --git a/src/core-skills/bmad-distillator/resources/compression-rules.md b/src/core-skills/bmad-distillator/resources/compression-rules.md deleted file mode 100644 index b45b1581a..000000000 --- a/src/core-skills/bmad-distillator/resources/compression-rules.md +++ /dev/null @@ -1,51 +0,0 @@ -# Compression Rules - -These rules govern how source text is compressed into distillate format. Apply as a final pass over all output. - -## Strip — Remove entirely - -- Prose transitions: "As mentioned earlier", "It's worth noting", "In addition to this" -- Rhetoric and persuasion: "This is a game-changer", "The exciting thing is" -- Hedging: "We believe", "It's likely that", "Perhaps", "It seems" -- Self-reference: "This document describes", "As outlined above" -- Common knowledge explanations: "Vercel is a cloud platform company", "MIT is an open-source license", "JSON is a data interchange format" -- Repeated introductions of the same concept -- Section transition paragraphs -- Formatting-only elements (decorative bold/italic for emphasis, horizontal rules for visual breaks) -- Filler phrases: "In order to", "It should be noted that", "The fact that" - -## Preserve — Keep always - -- Specific numbers, dates, versions, percentages -- Named entities (products, companies, people, technologies) -- Decisions made and their rationale (compressed: "Decision: X. Reason: Y") -- Rejected alternatives and why (compressed: "Rejected: X. Reason: Y") -- Explicit constraints and non-negotiables -- Dependencies and ordering relationships -- Open questions and unresolved items -- Scope boundaries (in/out/deferred) -- Success criteria and how they're validated -- User segments and what success means for each -- Risks with their severity signals -- Conflicts between source documents - -## Transform — Change form for efficiency - -- Long prose paragraphs → single dense bullet capturing the same information -- "We decided to use X because Y and Z" → "X (rationale: Y, Z)" -- Repeated category labels → group under a single heading, no per-item labels -- "Risk: ... Severity: high" → "HIGH RISK: ..." -- Conditional statements → "If X → Y" form -- Multi-sentence explanations → semicolon-separated compressed form -- Lists of related short items → single bullet with semicolons -- "X is used for Y" → "X: Y" when context is clear -- Verbose enumerations → parenthetical lists: "platforms (Cursor, Claude Code, Windsurf, Copilot)" - -## Deduplication Rules - -- Same fact in multiple documents → keep the version with most context -- Same concept at different detail levels → keep the detailed version -- Overlapping lists → merge into single list, no duplicates -- When source documents disagree → note the conflict explicitly: "Brief says X; discovery notes say Y — unresolved" -- Executive summary points that are expanded elsewhere → keep only the expanded version -- Introductory framing repeated across sections → capture once under the most relevant theme diff --git a/src/core-skills/bmad-distillator/resources/distillate-format-reference.md b/src/core-skills/bmad-distillator/resources/distillate-format-reference.md deleted file mode 100644 index f8db6a2b2..000000000 --- a/src/core-skills/bmad-distillator/resources/distillate-format-reference.md +++ /dev/null @@ -1,227 +0,0 @@ -# Distillate Format Reference - -Examples showing the transformation from human-readable source content to distillate format. - -## Frontmatter - -Every distillate includes YAML frontmatter. Source paths are relative to the distillate's location so the distillate remains portable: - -```yaml ---- -type: bmad-distillate -sources: - - "product-brief-example.md" - - "product-brief-example-discovery-notes.md" -downstream_consumer: "PRD creation" -created: "2026-03-13" -token_estimate: 1200 -parts: 1 ---- -``` - -## Before/After Examples - -### Prose Paragraph to Dense Bullet - -**Before** (human-readable brief excerpt): -``` -## What Makes This Different - -**The anti-fragmentation layer.** The AI tooling space is fracturing across 40+ -platforms with no shared methodology layer. BMAD is uniquely positioned to be the -cross-platform constant — the structured approach that works the same in Cursor, -Claude Code, Windsurf, Copilot, and whatever launches next month. Every other -methodology or skill framework maintains its own platform support matrix. By -building on the open-source skills CLI ecosystem, BMAD offloads the highest-churn -maintenance burden and focuses on what actually differentiates it: the methodology -itself. -``` - -**After** (distillate): -``` -## Differentiation -- Anti-fragmentation positioning: BMAD = cross-platform constant across 40+ fragmenting AI tools; no competitor provides shared methodology layer -- Platform complexity delegated to Vercel skills CLI ecosystem (MIT); BMAD maintains methodology, not platform configs -``` - -### Technical Details to Compressed Facts - -**Before** (discovery notes excerpt): -``` -## Competitive Landscape - -- **Vercel Skills.sh**: 83K+ skills, 18 agents, largest curated leaderboard — - but dev-only, skills trigger unreliably (20% without explicit prompting) -- **SkillsMP**: 400K+ skills directory, pure aggregator with no curation or CLI -- **ClawHub/OpenClaw**: ~3.2K curated skills with versioning/rollback, small ecosystem -- **Lindy**: No-code AI agent builder for business automation — closed platform, - no skill sharing -- **Microsoft Copilot Studio**: Enterprise no-code agent builder — vendor-locked - to Microsoft -- **MindStudio**: No-code AI agent platform — siloed, no interoperability -- **Make/Zapier AI**: Workflow automation adding AI agents — workflow-centric, - not methodology-centric -- **Key gap**: NO competitor combines structured methodology with plugin - marketplace — this is BMAD's whitespace -``` - -**After** (distillate): -``` -## Competitive Landscape -- No competitor combines structured methodology + plugin marketplace (whitespace) -- Skills.sh (Vercel): 83K skills, 18 agents, dev-only, 20% trigger reliability -- SkillsMP: 400K skills, aggregator only, no curation/CLI -- ClawHub: 3.2K curated, versioning, small ecosystem -- No-code platforms (Lindy, Copilot Studio, MindStudio, Make/Zapier): closed/siloed, no skill portability, business-only -``` - -### Deduplication Across Documents - -When the same fact appears in both a brief and discovery notes: - -**Brief says:** -``` -bmad-help must always be included as a base skill in every bundle -``` - -**Discovery notes say:** -``` -bmad-help must always be included as a base skill in every bundle/install -(solves discoverability problem) -``` - -**Distillate keeps the more contextual version:** -``` -- bmad-help: always included as base skill in every bundle (solves discoverability) -``` - -### Decision/Rationale Compression - -**Before:** -``` -We decided not to build our own platform support matrix going forward, instead -delegating to the Vercel skills CLI ecosystem. The rationale is that maintaining -20+ platform configs is the biggest maintenance burden and it's unsustainable -at 40+ platforms. -``` - -**After:** -``` -- Rejected: own platform support matrix. Reason: unsustainable at 40+ platforms; delegate to Vercel CLI ecosystem -``` - -## Full Example - -A complete distillate produced from a product brief and its discovery notes, targeted at PRD creation: - -```markdown ---- -type: bmad-distillate -sources: - - "product-brief-bmad-next-gen-installer.md" - - "product-brief-bmad-next-gen-installer-discovery-notes.md" -downstream_consumer: "PRD creation" -created: "2026-03-13" -token_estimate: 1450 -parts: 1 ---- - -## Core Concept -- BMAD Next-Gen Installer: replaces monolithic Node.js CLI with skill-based plugin architecture for distributing BMAD methodology across 40+ AI platforms -- Three layers: self-describing plugins (bmad-manifest.json), cross-platform install via Vercel skills CLI (MIT), runtime registration via bmad-setup skill -- Transforms BMAD from dev-only methodology into open platform for any domain (creative, therapeutic, educational, personal) - -## Problem -- Current installer maintains ~20 platform configs manually; each platform convention change requires installer update, test, release — largest maintenance burden on team -- Node.js/npm required — blocks non-technical users on UI-based platforms (Claude Co-Work, etc.) -- CSV manifests are static, generated once at install; no runtime scanning/registration -- Unsustainable at 40+ platforms; new tools launching weekly - -## Solution Architecture -- Plugins: skill bundles with Anthropic plugin standard as base format + bmad-manifest.json extending for BMAD-specific metadata (installer options, capabilities, help integration, phase ordering, dependencies) -- Existing manifest example: `{"module-code":"bmm","replaces-skill":"bmad-create-product-brief","capabilities":[{"name":"create-brief","menu-code":"CB","supports-headless":true,"phase-name":"1-analysis","preceded-by":["brainstorming"],"followed-by":["create-prd"],"is-required":true}]}` -- Vercel skills CLI handles platform translation; integration pattern (wrap/fork/call) is PRD decision -- bmad-setup: global skill scanning installed bmad-manifest.json files, registering capabilities, configuring project settings; always included as base skill in every bundle (solves bootstrapping) -- bmad-update: plugin update path without full reinstall; technical approach (diff/replace/preserve customizations) is PRD decision -- Distribution tiers: (1) NPX installer wrapping skills CLI for technical users, (2) zip bundle + platform-specific README for non-technical users, (3) future marketplace -- Non-technical path has honest friction: "copy to right folder" requires knowing where; per-platform README instructions; improves over time as low-code space matures - -## Differentiation -- Anti-fragmentation: BMAD = cross-platform constant; no competitor provides shared methodology layer across AI tools -- Curated quality: all submissions gated, human-reviewed by BMad + core team; 13.4% of community skills have critical vulnerabilities (Snyk 2026); quality gate value increases as ecosystem gets noisier -- Domain-agnostic: no competitor builds beyond software dev workflows; same plugin system powers any domain via BMAD Builder (separate initiative) - -## Users (ordered by v1 priority) -- Module authors (primary v1): package/test/distribute plugins independently without installer changes -- Developers: single-command install on any of 40+ platforms via NPX -- Non-technical users: install without Node/Git/terminal; emerging segment including PMs, designers, educators -- Future plugin creators: non-dev authors using BMAD Builder; need distribution without building own installer - -## Success Criteria -- Zero (or near-zero) custom platform directory code; delegated to skills CLI ecosystem -- Installation verified on top platforms by volume; skills CLI handles long tail -- Non-technical install path validated with non-developer users -- bmad-setup discovers/registers all plugins from manifests; clear errors for malformed manifests -- At least one external module author successfully publishes plugin using manifest system -- bmad-update works without full reinstall -- Existing CLI users have documented migration path - -## Scope -- In: manifest spec, bmad-setup, bmad-update, Vercel CLI integration, NPX installer, zip bundles, migration path -- Out: BMAD Builder, marketplace web platform, skill conversion (prerequisite, separate), one-click install for all platforms, monetization, quality certification process (gated-submission principle is architectural requirement; process defined separately) -- Deferred: CI/CD integration, telemetry for module authors, air-gapped enterprise install, zip bundle integrity verification (checksums/signing), deeper non-technical platform integrations - -## Current Installer (migration context) -- Entry: `tools/installer/bmad-cli.js` (Commander.js) → `tools/installer/core/installer.js` -- Platforms: `platform-codes.yaml` (~20 platforms with target dirs, legacy dirs, template types, special flags) -- Manifests: skill-manifest.csv is the current source of truth; agent essence lives in `_bmad/config.toml` (generated from each module.yaml's `agents:` block) -- External modules: `external-official-modules.yaml` (CIS, GDS, TEA, WDS) from npm with semver -- Dependencies: 4-pass resolver (collect → parse → resolve → transitive); YAML-declared only -- Config: prompts for name, communication language, document output language, output folder -- Skills already use directory-per-skill layout; bmad-manifest.json sidecars exist but are not source of truth -- Key shift: CSV-based static manifests → JSON-based runtime scanning - -## Vercel Skills CLI -- `npx skills add ` — GitHub, GitLab, local paths, git URLs -- 40+ agents; per-agent path mappings; symlinks (recommended) or copies -- Scopes: project-level or global -- Discovery: `skills/`, `.agents/skills/`, agent-specific paths, `.claude-plugin/marketplace.json` -- Commands: add, list, find, remove, check, update, init -- Non-interactive: `-y`, `--all` flags for CI/CD - -## Competitive Landscape -- No competitor combines structured methodology + plugin marketplace (whitespace) -- Skills.sh (Vercel): 83K skills, dev-only, 20% trigger reliability without explicit prompting -- SkillsMP: 400K skills, aggregator only, no curation -- ClawHub: 3.2K curated, versioning, small -- No-code platforms (Lindy, Copilot Studio, MindStudio, Make/Zapier): closed/siloed, no skill portability, business-only -- Market: $7.84B (2025) → $52.62B (2030); Agent Skills spec ~4 months old, 351K+ skills; standards converging under Linux Foundation AAIF (MCP, AGENTS.md, A2A) - -## Rejected Alternatives -- Building own platform support matrix: unsustainable at 40+; delegate to Vercel ecosystem -- One-click install for non-technical v1: emerging space; guidance-based, improve over time -- Prior roadmap/brainstorming: clean start, unconstrained by previous planning - -## Open Questions -- Vercel CLI integration pattern: wrap/fork/call/peer dependency? -- bmad-update mechanics: diff/replace? Preserve user customizations? -- Migration story: command/manual reinstall/compatibility shim? -- Cross-platform testing: CI matrix for top N? Community testing for rest? -- bmad-manifest.json as open standard submission to Agent Skills governance? -- Platforms NOT supported by Vercel skills CLI? -- Manifest versioning strategy for backward compatibility? -- Plugin author getting-started experience and tooling? - -## Opportunities -- Module authors as acquisition channel: each published plugin distributes BMAD to creator's audience -- CI/CD integration: bmad-setup as pipeline one-liner increases stickiness -- Educational institutions: structured methodology + non-technical install → university AI curriculum -- Skill composability: mixing BMAD modules with third-party skills for custom methodology stacks - -## Risks -- Manifest format evolution creates versioning/compatibility burden once third-party authors publish -- Quality gate needs defined process, not just claim — gated review model addresses -- 40+ platform testing environments even with Vercel handling translation -- Scope creep pressure from marketplace vision (explicitly excluded but primary long-term value) -- Vercel dependency: minor supply-chain risk; MIT license allows fork if deprioritized -``` diff --git a/src/core-skills/bmad-distillator/resources/splitting-strategy.md b/src/core-skills/bmad-distillator/resources/splitting-strategy.md deleted file mode 100644 index 37fec0343..000000000 --- a/src/core-skills/bmad-distillator/resources/splitting-strategy.md +++ /dev/null @@ -1,78 +0,0 @@ -# Semantic Splitting Strategy - -When the source content is large (exceeds ~15,000 tokens) or a token_budget requires it, split the distillate into semantically coherent sections rather than arbitrary size breaks. - -## Why Semantic Over Size-Based - -Arbitrary splits (every N tokens) break coherence. A downstream workflow loading "part 2 of 4" gets context fragments. Semantic splits produce self-contained topic clusters that a workflow can load selectively — "give me just the technical decisions section" — which is more useful and more token-efficient for the consumer. - -## Splitting Process - -### 1. Identify Natural Boundaries - -After the initial extraction and deduplication (Steps 1-2 of the compression process), look for natural semantic boundaries: -- Distinct problem domains or functional areas -- Different stakeholder perspectives (users, technical, business) -- Temporal boundaries (current state vs future vision) -- Scope boundaries (in-scope vs out-of-scope vs deferred) -- Phase boundaries (analysis, design, implementation) - -Choose boundaries that produce sections a downstream workflow might load independently. - -### 2. Assign Items to Sections - -For each extracted item, assign it to the most relevant section. Items that span multiple sections go in the root distillate. - -Cross-cutting items (items relevant to multiple sections): -- Constraints that affect all areas → root distillate -- Decisions with broad impact → root distillate -- Section-specific decisions → section distillate - -### 3. Produce Root Distillate - -The root distillate contains: -- **Orientation** (3-5 bullets): what was distilled, from what sources, for what consumer, how many sections -- **Cross-references**: list of section distillates with 1-line descriptions -- **Cross-cutting items**: facts, decisions, and constraints that span multiple sections -- **Scope summary**: high-level in/out/deferred if applicable - -### 4. Produce Section Distillates - -Each section distillate must be self-sufficient — a reader loading only one section should understand it without the others. - -Each section includes: -- **Context header** (1 line): "This section covers [topic]. Part N of M from [source document names]." -- **Section content**: thematically-grouped bullets following the same compression rules as a single distillate -- **Cross-references** (if needed): pointers to other sections for related content - -### 5. Output Structure - -Create a folder `{base-name}-distillate/` containing: - -``` -{base-name}-distillate/ -├── _index.md # Root distillate: orientation, cross-cutting items, section manifest -├── 01-{topic-slug}.md # Self-contained section -├── 02-{topic-slug}.md -└── 03-{topic-slug}.md -``` - -Example: -``` -product-brief-distillate/ -├── _index.md -├── 01-problem-solution.md -├── 02-technical-decisions.md -└── 03-users-market.md -``` - -## Size Targets - -When a token_budget is specified: -- Root distillate: ~20% of budget (orientation + cross-cutting items) -- Remaining budget split proportionally across sections based on content density -- If a section exceeds its proportional share, compress more aggressively or sub-split - -When no token_budget but splitting is needed: -- Aim for sections of 3,000-5,000 tokens each -- Root distillate as small as possible while remaining useful standalone diff --git a/src/core-skills/bmad-distillator/scripts/analyze_sources.py b/src/core-skills/bmad-distillator/scripts/analyze_sources.py deleted file mode 100644 index 38ddcbe38..000000000 --- a/src/core-skills/bmad-distillator/scripts/analyze_sources.py +++ /dev/null @@ -1,300 +0,0 @@ -# /// script -# /// requires-python = ">=3.10" -# /// dependencies = [] -# /// -"""Analyze source documents for the distillation generator. - -Enumerates files from paths/folders/globs, computes sizes and token estimates, -detects document types from naming conventions, and suggests groupings for -related documents (e.g., a brief paired with its discovery notes). - -Accepts: file paths, folder paths (scans recursively for .md/.txt/.yaml/.yml/.json), -or glob patterns. Skips node_modules, .git, __pycache__, .venv, _bmad-output. - -Output JSON structure: - status: "ok" | "error" - files[]: path, filename, size_bytes, estimated_tokens, doc_type - summary: total_files, total_size_bytes, total_estimated_tokens - groups[]: group_key, files[] with role (primary/companion/standalone) - - Groups related docs by naming convention (e.g., brief + discovery-notes) - routing: recommendation ("single" | "fan-out"), reason - - single: ≤3 files AND ≤15K estimated tokens - - fan-out: >3 files OR >15K estimated tokens - split_prediction: prediction ("likely" | "unlikely"), reason, estimated_distillate_tokens - - Estimates distillate at ~1/3 source size; splits if >5K tokens -""" - -from __future__ import annotations - -import argparse -import glob -import json -import os -import re -import sys -from pathlib import Path - -# Extensions to include when scanning folders -INCLUDE_EXTENSIONS = {".md", ".txt", ".yaml", ".yml", ".json"} - -# Directories to skip when scanning folders -SKIP_DIRS = { - "node_modules", ".git", "__pycache__", ".venv", "venv", - ".claude", "_bmad-output", ".cursor", ".vscode", -} - -# Approximate chars per token for estimation -CHARS_PER_TOKEN = 4 - -# Thresholds -SINGLE_COMPRESSOR_MAX_TOKENS = 15_000 -SINGLE_DISTILLATE_MAX_TOKENS = 5_000 - -# Naming patterns for document type detection -DOC_TYPE_PATTERNS = [ - (r"discovery[_-]notes", "discovery-notes"), - (r"product[_-]brief", "product-brief"), - (r"research[_-]report", "research-report"), - (r"architecture", "architecture-doc"), - (r"prd", "prd"), - (r"distillate", "distillate"), - (r"changelog", "changelog"), - (r"readme", "readme"), - (r"spec", "specification"), - (r"requirements", "requirements"), - (r"design[_-]doc", "design-doc"), - (r"meeting[_-]notes", "meeting-notes"), - (r"brainstorm", "brainstorming"), - (r"interview", "interview-notes"), -] - -# Patterns for grouping related documents -GROUP_PATTERNS = [ - # base document + discovery notes - (r"^(.+?)(?:-discovery-notes|-discovery_notes)\.(\w+)$", r"\1.\2"), - # base document + appendix - (r"^(.+?)(?:-appendix|-addendum)(?:-\w+)?\.(\w+)$", r"\1.\2"), - # base document + review/feedback - (r"^(.+?)(?:-review|-feedback)\.(\w+)$", r"\1.\2"), -] - - -def resolve_inputs(inputs: list[str]) -> list[Path]: - """Resolve input arguments to a flat list of file paths.""" - files: list[Path] = [] - for inp in inputs: - path = Path(inp) - if path.is_file(): - files.append(path.resolve()) - elif path.is_dir(): - for root, dirs, filenames in os.walk(path): - dirs[:] = [d for d in dirs if d not in SKIP_DIRS] - for fn in sorted(filenames): - fp = Path(root) / fn - if fp.suffix.lower() in INCLUDE_EXTENSIONS: - files.append(fp.resolve()) - else: - # Try as glob - matches = glob.glob(inp, recursive=True) - for m in sorted(matches): - mp = Path(m) - if mp.is_file() and mp.suffix.lower() in INCLUDE_EXTENSIONS: - files.append(mp.resolve()) - # Deduplicate while preserving order - seen: set[Path] = set() - deduped: list[Path] = [] - for f in files: - if f not in seen: - seen.add(f) - deduped.append(f) - return deduped - - -def detect_doc_type(filename: str) -> str: - """Detect document type from filename.""" - name_lower = filename.lower() - for pattern, doc_type in DOC_TYPE_PATTERNS: - if re.search(pattern, name_lower): - return doc_type - return "unknown" - - -def suggest_groups(files: list[Path]) -> list[dict]: - """Suggest document groupings based on naming conventions.""" - groups: dict[str, list[dict]] = {} - ungrouped: list[dict] = [] - - file_map = {f.name: f for f in files} - - assigned: set[str] = set() - - for f in files: - if f.name in assigned: - continue - - matched = False - for pattern, base_pattern in GROUP_PATTERNS: - m = re.match(pattern, f.name, re.IGNORECASE) - if m: - # This file is a companion — find its base - base_name = re.sub(pattern, base_pattern, f.name, flags=re.IGNORECASE) - group_key = base_name - if group_key not in groups: - groups[group_key] = [] - # Add the base file if it exists - if base_name in file_map and base_name not in assigned: - groups[group_key].append({ - "path": str(file_map[base_name]), - "filename": base_name, - "role": "primary", - }) - assigned.add(base_name) - groups[group_key].append({ - "path": str(f), - "filename": f.name, - "role": "companion", - }) - assigned.add(f.name) - matched = True - break - - if not matched: - # Check if this file is a base that already has companions - if f.name in groups: - continue # Already added as primary - ungrouped.append({ - "path": str(f), - "filename": f.name, - }) - - result = [] - for group_key, members in groups.items(): - result.append({ - "group_key": group_key, - "files": members, - }) - for ug in ungrouped: - if ug["filename"] not in assigned: - result.append({ - "group_key": ug["filename"], - "files": [{"path": ug["path"], "filename": ug["filename"], "role": "standalone"}], - }) - - return result - - -def analyze(inputs: list[str], output_path: str | None = None) -> None: - """Main analysis function.""" - files = resolve_inputs(inputs) - - if not files: - result = { - "status": "error", - "error": "No readable files found from provided inputs", - "inputs": inputs, - } - output_json(result, output_path) - return - - # Analyze each file - file_details = [] - total_chars = 0 - for f in files: - size = f.stat().st_size - total_chars += size - file_details.append({ - "path": str(f), - "filename": f.name, - "size_bytes": size, - "estimated_tokens": size // CHARS_PER_TOKEN, - "doc_type": detect_doc_type(f.name), - }) - - total_tokens = total_chars // CHARS_PER_TOKEN - groups = suggest_groups(files) - - # Routing recommendation - if len(files) <= 3 and total_tokens <= SINGLE_COMPRESSOR_MAX_TOKENS: - routing = "single" - routing_reason = ( - f"{len(files)} file(s), ~{total_tokens:,} estimated tokens — " - f"within single compressor threshold" - ) - else: - routing = "fan-out" - routing_reason = ( - f"{len(files)} file(s), ~{total_tokens:,} estimated tokens — " - f"exceeds single compressor threshold " - f"({'>' + str(SINGLE_COMPRESSOR_MAX_TOKENS) + ' tokens' if total_tokens > SINGLE_COMPRESSOR_MAX_TOKENS else '> 3 files'})" - ) - - # Split prediction - estimated_distillate_tokens = total_tokens // 3 # rough: distillate is ~1/3 of source - if estimated_distillate_tokens > SINGLE_DISTILLATE_MAX_TOKENS: - split_prediction = "likely" - split_reason = ( - f"Estimated distillate ~{estimated_distillate_tokens:,} tokens " - f"exceeds {SINGLE_DISTILLATE_MAX_TOKENS:,} threshold" - ) - else: - split_prediction = "unlikely" - split_reason = ( - f"Estimated distillate ~{estimated_distillate_tokens:,} tokens " - f"within {SINGLE_DISTILLATE_MAX_TOKENS:,} threshold" - ) - - result = { - "status": "ok", - "files": file_details, - "summary": { - "total_files": len(files), - "total_size_bytes": total_chars, - "total_estimated_tokens": total_tokens, - }, - "groups": groups, - "routing": { - "recommendation": routing, - "reason": routing_reason, - }, - "split_prediction": { - "prediction": split_prediction, - "reason": split_reason, - "estimated_distillate_tokens": estimated_distillate_tokens, - }, - } - - output_json(result, output_path) - - -def output_json(data: dict, output_path: str | None) -> None: - """Write JSON to file or stdout.""" - json_str = json.dumps(data, indent=2) - if output_path: - Path(output_path).parent.mkdir(parents=True, exist_ok=True) - Path(output_path).write_text(json_str + "\n") - print(f"Results written to {output_path}", file=sys.stderr) - else: - print(json_str) - - -def main() -> None: - parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter, - ) - parser.add_argument( - "inputs", - nargs="+", - help="File paths, folder paths, or glob patterns to analyze", - ) - parser.add_argument( - "-o", "--output", - help="Output JSON to file instead of stdout", - ) - args = parser.parse_args() - analyze(args.inputs, args.output) - sys.exit(0) - - -if __name__ == "__main__": - main() diff --git a/src/core-skills/bmad-distillator/scripts/tests/test_analyze_sources.py b/src/core-skills/bmad-distillator/scripts/tests/test_analyze_sources.py deleted file mode 100644 index 3c65ef20a..000000000 --- a/src/core-skills/bmad-distillator/scripts/tests/test_analyze_sources.py +++ /dev/null @@ -1,204 +0,0 @@ -"""Tests for analyze_sources.py""" - -import json -import os -import tempfile -from pathlib import Path -from unittest.mock import patch - -import pytest - -# Add parent dir to path so we can import the script -import sys -sys.path.insert(0, str(Path(__file__).parent.parent)) - -from analyze_sources import ( - resolve_inputs, - detect_doc_type, - suggest_groups, - analyze, - INCLUDE_EXTENSIONS, - SKIP_DIRS, -) - - -@pytest.fixture -def temp_dir(): - """Create a temp directory with sample files.""" - with tempfile.TemporaryDirectory() as d: - # Create sample files - (Path(d) / "product-brief-foo.md").write_text("# Product Brief\nContent here") - (Path(d) / "product-brief-foo-discovery-notes.md").write_text("# Discovery\nNotes") - (Path(d) / "architecture-doc.md").write_text("# Architecture\nDesign here") - (Path(d) / "research-report.md").write_text("# Research\nFindings") - (Path(d) / "random.txt").write_text("Some text content") - (Path(d) / "image.png").write_bytes(b"\x89PNG") - # Create a subdirectory with more files - sub = Path(d) / "subdir" - sub.mkdir() - (sub / "prd-v2.md").write_text("# PRD\nRequirements") - # Create a skip directory - skip = Path(d) / "node_modules" - skip.mkdir() - (skip / "junk.md").write_text("Should be skipped") - yield d - - -class TestResolveInputs: - def test_single_file(self, temp_dir): - f = str(Path(temp_dir) / "product-brief-foo.md") - result = resolve_inputs([f]) - assert len(result) == 1 - assert result[0].name == "product-brief-foo.md" - - def test_folder_recursion(self, temp_dir): - result = resolve_inputs([temp_dir]) - names = {f.name for f in result} - assert "product-brief-foo.md" in names - assert "prd-v2.md" in names - assert "random.txt" in names - - def test_folder_skips_excluded_dirs(self, temp_dir): - result = resolve_inputs([temp_dir]) - names = {f.name for f in result} - assert "junk.md" not in names - - def test_folder_skips_non_text_files(self, temp_dir): - result = resolve_inputs([temp_dir]) - names = {f.name for f in result} - assert "image.png" not in names - - def test_glob_pattern(self, temp_dir): - pattern = str(Path(temp_dir) / "product-brief-*.md") - result = resolve_inputs([pattern]) - assert len(result) == 2 - names = {f.name for f in result} - assert "product-brief-foo.md" in names - assert "product-brief-foo-discovery-notes.md" in names - - def test_deduplication(self, temp_dir): - f = str(Path(temp_dir) / "product-brief-foo.md") - result = resolve_inputs([f, f, f]) - assert len(result) == 1 - - def test_mixed_inputs(self, temp_dir): - file_path = str(Path(temp_dir) / "architecture-doc.md") - folder_path = str(Path(temp_dir) / "subdir") - result = resolve_inputs([file_path, folder_path]) - names = {f.name for f in result} - assert "architecture-doc.md" in names - assert "prd-v2.md" in names - - def test_nonexistent_path(self): - result = resolve_inputs(["/nonexistent/path/file.md"]) - assert len(result) == 0 - - -class TestDetectDocType: - @pytest.mark.parametrize("filename,expected", [ - ("product-brief-foo.md", "product-brief"), - ("product_brief_bar.md", "product-brief"), - ("foo-discovery-notes.md", "discovery-notes"), - ("foo-discovery_notes.md", "discovery-notes"), - ("architecture-overview.md", "architecture-doc"), - ("my-prd.md", "prd"), - ("research-report-q4.md", "research-report"), - ("foo-distillate.md", "distillate"), - ("changelog.md", "changelog"), - ("readme.md", "readme"), - ("api-spec.md", "specification"), - ("design-doc-v2.md", "design-doc"), - ("meeting-notes-2026.md", "meeting-notes"), - ("brainstorm-session.md", "brainstorming"), - ("user-interview-notes.md", "interview-notes"), - ("random-file.md", "unknown"), - ]) - def test_detection(self, filename, expected): - assert detect_doc_type(filename) == expected - - -class TestSuggestGroups: - def test_groups_brief_with_discovery_notes(self, temp_dir): - files = [ - Path(temp_dir) / "product-brief-foo.md", - Path(temp_dir) / "product-brief-foo-discovery-notes.md", - ] - groups = suggest_groups(files) - # Should produce one group with both files - paired = [g for g in groups if len(g["files"]) > 1] - assert len(paired) == 1 - filenames = {f["filename"] for f in paired[0]["files"]} - assert "product-brief-foo.md" in filenames - assert "product-brief-foo-discovery-notes.md" in filenames - - def test_standalone_files(self, temp_dir): - files = [ - Path(temp_dir) / "architecture-doc.md", - Path(temp_dir) / "research-report.md", - ] - groups = suggest_groups(files) - assert len(groups) == 2 - for g in groups: - assert len(g["files"]) == 1 - - def test_mixed_grouped_and_standalone(self, temp_dir): - files = [ - Path(temp_dir) / "product-brief-foo.md", - Path(temp_dir) / "product-brief-foo-discovery-notes.md", - Path(temp_dir) / "architecture-doc.md", - ] - groups = suggest_groups(files) - paired = [g for g in groups if len(g["files"]) > 1] - standalone = [g for g in groups if len(g["files"]) == 1] - assert len(paired) == 1 - assert len(standalone) == 1 - - -class TestAnalyze: - def test_basic_analysis(self, temp_dir): - f = str(Path(temp_dir) / "product-brief-foo.md") - output_file = str(Path(temp_dir) / "output.json") - analyze([f], output_file) - result = json.loads(Path(output_file).read_text()) - assert result["status"] == "ok" - assert result["summary"]["total_files"] == 1 - assert result["files"][0]["doc_type"] == "product-brief" - assert result["files"][0]["estimated_tokens"] > 0 - - def test_routing_single_small_input(self, temp_dir): - f = str(Path(temp_dir) / "product-brief-foo.md") - output_file = str(Path(temp_dir) / "output.json") - analyze([f], output_file) - result = json.loads(Path(output_file).read_text()) - assert result["routing"]["recommendation"] == "single" - - def test_routing_fanout_many_files(self, temp_dir): - # Create enough files to trigger fan-out (> 3 files) - for i in range(5): - (Path(temp_dir) / f"doc-{i}.md").write_text("x" * 1000) - output_file = str(Path(temp_dir) / "output.json") - analyze([temp_dir], output_file) - result = json.loads(Path(output_file).read_text()) - assert result["routing"]["recommendation"] == "fan-out" - - def test_folder_analysis(self, temp_dir): - output_file = str(Path(temp_dir) / "output.json") - analyze([temp_dir], output_file) - result = json.loads(Path(output_file).read_text()) - assert result["status"] == "ok" - assert result["summary"]["total_files"] >= 4 # at least the base files - assert len(result["groups"]) > 0 - - def test_no_files_found(self): - output_file = "/tmp/test_analyze_empty.json" - analyze(["/nonexistent/path"], output_file) - result = json.loads(Path(output_file).read_text()) - assert result["status"] == "error" - os.unlink(output_file) - - def test_stdout_output(self, temp_dir, capsys): - f = str(Path(temp_dir) / "product-brief-foo.md") - analyze([f]) - captured = capsys.readouterr() - result = json.loads(captured.out) - assert result["status"] == "ok" diff --git a/src/core-skills/bmad-spec/SKILL.md b/src/core-skills/bmad-spec/SKILL.md new file mode 100644 index 000000000..d3d437e15 --- /dev/null +++ b/src/core-skills/bmad-spec/SKILL.md @@ -0,0 +1,126 @@ +--- +name: bmad-spec +description: Distill any intent input into the SPEC kernel + companions — the canonical, preservation-validated machine contract for downstream work. Use when the user says "create a spec", "distill this into a spec", "validate this spec", or "update the spec". +--- + +# 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.}` resolves to fields in `customize.toml`. + +## On Activation + +1. Resolve customization: `python3 {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. Load `{project-root}/_bmad/core/config.yaml` (and `config.user.yaml` if present), root level and `bmm` section. Resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{project_name}`, `{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. +5. Run `{workflow.activation_steps_append}`. + +## 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.md ← uppercase, the kernel + .md ← optional, content-typed (e.g. glossary.md) + .md + .decision-log.md ← canonical memory for this spec +``` + +## 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 `SPEC.md` exists at the target folder, read it too — the operation becomes an update. Preserve capability IDs; new capabilities get the next unused `CAP-N`; never reuse retired IDs. Otherwise this is a create. + +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. + +Write lean from the first pass: every sentence must earn its place. Decoration costs tokens and dilutes downstream readers. + +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`, `.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. + +## 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 `.decision-log.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. + +Append a one-paragraph verdict to `.decision-log.md` covering both passes. In interactive mode, review the verdict with the user. In headless mode, `.decision-log.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. + +## Output + +**Interactive** — share the spec folder path conversationally. Name the capability count, the companions produced, and the verdict in one or two sentences. If `assumptions[]` or `open_questions[]` are non-empty, list them (short — one line each) and invite the user to walk through them. Make clear that addressing them can update the source input (if it was a file), the spec, or both — whichever combination the user prefers. Do not dump JSON or present a wall of output. + +**Headless** — return JSON per `assets/headless-schemas.md`. + +Run `{workflow.on_complete}` if set. + +## After Spec is Output + +Any update to spec regarding assumptions, open questions, or other changes should be appended to that source's decision log also and offer to update the source. + +## Frontmatter conventions + +- `companions:` array of `.md` files downstream MUST read alongside SPEC.md to have the full contract. Paths may point inside the spec folder (spec-authored companions like `glossary.md`) or outside it (adopted companions like `../planning-artifacts/ux-designs/ux-foo-bar-2026-05-23/DESIGN.md`). The split between spec-authored and adopted is implicit by path; downstream treats both the same. +- `sources:` array of paths to files that were **fully absorbed** into the SPEC, with no remaining downstream value (e.g., a PRD whose every load-bearing claim is now in the kernel). Listed for audit and for bmad-spec to re-read on update. Downstream does NOT read these. Files that downstream still needs to read belong in `companions:`, not here. +- **Do not list** decision logs, README files, organizational artifacts, or any operational record of how upstream skills produced their artifacts. Those are not source content; they are process metadata that downstream consumers don't need. diff --git a/src/core-skills/bmad-spec/assets/headless-schemas.md b/src/core-skills/bmad-spec/assets/headless-schemas.md new file mode 100644 index 000000000..096b15803 --- /dev/null +++ b/src/core-skills/bmad-spec/assets/headless-schemas.md @@ -0,0 +1,33 @@ +# Headless JSON Response + +The default invocation is headless: input goes in, JSON comes out. The contract is intentionally tiny — return the outcome and the files touched. Anything else a caller needs is inside those files (SPEC.md, companions, `.decision-log.md`). + +## Success + +```json +{ + "status": "complete", + "files": [ + "_bmad-output/specs/spec-quarter-drop/SPEC.md", + "_bmad-output/specs/spec-quarter-drop/glossary.md", + "_bmad-output/specs/spec-quarter-drop/.decision-log.md" + ] +} +``` + +`files` lists every file written or modified in this run, in any order. The spec folder, kernel filename, decision log location, capabilities, companions, and verdict are all readable from those files; no need to re-encode them in the response. + +## Blocked + +```json +{ + "status": "blocked", + "error_code": "insufficient_intent", + "reason": "Input was a one-line idea with no surrounding context; too thin to distill. Suggest bmad-prd to draw the vision out first." +} +``` + +Defined `error_code` values: + +- `insufficient_intent` — input too thin to distill into a kernel. +- `missing_slug` — input is sparse or multi-source and no slug was provided by the caller or derivable from a source path. diff --git a/src/core-skills/bmad-spec/assets/spec-template.md b/src/core-skills/bmad-spec/assets/spec-template.md new file mode 100644 index 000000000..f8127204c --- /dev/null +++ b/src/core-skills/bmad-spec/assets/spec-template.md @@ -0,0 +1,49 @@ +--- +id: SPEC-{slug} +companions: [] # files downstream MUST read alongside SPEC.md. Paths may point inside the spec folder (spec-authored) or outside it (adopted from an upstream skill). +sources: [] # files fully absorbed into the SPEC (audit only; downstream does NOT read these). Never decision logs. +--- + +> **Canonical contract.** This SPEC and the files in `companions:` are the complete, preservation-validated contract for what to build, test, and validate. Source documents listed in frontmatter are for traceability only — consult them only if you need narrative rationale or prose color this contract intentionally omits. + +# {Spec Title} + +## Why + +{One paragraph naming the force behind this work. A spec can exist for any of: + - **a pain to solve** — a user or operator is stuck on a specific gap; + - **an opportunity to capture** — something newly possible we want to claim; + - **a vision to realize** — a thing we want to make exist because we want it to exist; + - **a mandate to meet** — a regulation, deprecation, deadline, or contractual obligation. + +Name which (or which combination) applies, who is affected, and the backdrop that makes it matter now. This is the anchor every downstream trade-off resolves against.} + +## Capabilities + +- id: CAP-1 + intent: {One sentence. "User or system can do X to achieve Y." WHAT, not HOW.} + success: {Testable or demonstrable criterion. Something a test or a real demonstration can decide.} + +## Constraints + +- {A non-negotiable that bends design. If it doesn't rule anything out, it doesn't belong.} + +## Non-goals + +- {Explicit out-of-scope item. At least one. Stops downstream from filling the vacuum.} + +## Success signal + +- {One or two sentences. World-change moment, not dashboard. Concrete enough to write a test or run a demonstration against.} + +## Assumptions + + + +- {Statement of fact the Spec proceeded under, e.g. "Assumed mobile-first since input mentioned GPS but no platform."} + +## Open Questions + + + +- {Question phrased so a human can answer it, e.g. "Is offline playback in scope for CAP-2?"} diff --git a/src/core-skills/bmad-spec/customize.toml b/src/core-skills/bmad-spec/customize.toml new file mode 100644 index 000000000..c3cd7c0fe --- /dev/null +++ b/src/core-skills/bmad-spec/customize.toml @@ -0,0 +1,53 @@ +# DO NOT EDIT -- overwritten on every update. +# +# Workflow customization surface for bmad-spec. +# +# Override files (not edited here): +# {project-root}/_bmad/custom/bmad-spec.toml (team) +# {project-root}/_bmad/custom/bmad-spec.user.toml (personal) + +[workflow] + +# --- Configurable below. Overrides merge per BMad structural rules: --- +# scalars: override wins • arrays: append + +# Steps to run before the standard activation (config load, greet). +activation_steps_prepend = [] + +# Steps to run after greet but before the operation begins. +activation_steps_append = [] + +# Persistent facts the workflow keeps in mind for the whole run. +# Each entry is either a literal sentence, a skill prefixed with `skill:`, +# or a `file:`-prefixed path/glob whose contents are loaded as facts. +# Default points to a single top-level file; override in team/user TOML +# to widen the scope (e.g. `_bmad/**/project-context.md`) if needed. +persistent_facts = [ + "file:{project-root}/project-context.md", +] + +# Executed when the workflow completes. Scalar or array of instructions. +on_complete = "" + +# Spec template. The five-field kernel skeleton. Override the path in +# team/user TOML to enforce a different shape (e.g. a hypothesis field +# for research initiatives, or a mechanics field for games). +spec_template = "assets/spec-template.md" + +# Canonical filename for the kernel artifact inside the spec folder. +# Uppercase by convention to signal "the central source of truth." +spec_filename = "SPEC.md" + +# Output path for spec folders. Lands directly under {output_folder} +# so bmad-spec works in core-only installs and matches the +# long-term BMad direction of grouping artifacts as siblings under +# {output_folder}// rather than nested inside planning vs +# implementation folders. +spec_output_path = "{output_folder}/specs" + +# Run-folder pattern inside spec_output_path. Resolved against the +# input-derived slug at activation. Same slug = same folder, so a +# second invocation updates the existing spec in place (capability +# IDs preserved). Override to add {date} or other components if a +# fresh dated history is preferred. +run_folder_pattern = "spec-{slug}" diff --git a/src/core-skills/module-help.csv b/src/core-skills/module-help.csv index 910411ada..ea4abb043 100644 --- a/src/core-skills/module-help.csv +++ b/src/core-skills/module-help.csv @@ -9,5 +9,5 @@ Core,bmad-editorial-review-prose,Editorial Review - Prose,EP,Use after drafting Core,bmad-editorial-review-structure,Editorial Review - Structure,ES,Use when doc produced from multiple subprocesses or needs structural improvement.,,[path],anytime,,,false,report located with target document, Core,bmad-review-adversarial-general,Adversarial Review,AR,"Use for quality assurance or before finalizing deliverables. Code Review in other modules runs this automatically, but also useful for document reviews.",,[path],anytime,,,false,, Core,bmad-review-edge-case-hunter,Edge Case Hunter Review,ECH,Use alongside adversarial review for orthogonal coverage — method-driven not attitude-driven.,,[path],anytime,,,false,, -Core,bmad-distillator,Distillator,DG,Use when you need token-efficient distillates that preserve all information for downstream LLM consumption.,,[path],anytime,,,false,adjacent to source document or specified output_path,distillate markdown file(s) +Core,bmad-spec,Spec,SP,"Use to distill any intent input (brief, PRD, transcript, brain dump, design folder, mixed multi-source) into a succinct, no-fluff SPEC.md contract + companions that downstream work derives from. Locks the WHAT before the HOW. Works for software, game design, research, editorial, policy, business, anything intent-bearing. Validation mode also available.",,[path],anytime,,,false,{output_folder}/specs/spec-{slug},SPEC.md + companion files Core,bmad-customize,BMad Customize,BC,"Use when you want to change how an agent or workflow behaves — add persistent facts, swap templates, insert activation hooks, or customize menus. Scans what's customizable, picks the right scope (agent vs workflow), writes the override to _bmad/custom/, and verifies the merge. No TOML hand-authoring required.",,,anytime,,,false,{project-root}/_bmad/custom,TOML override files diff --git a/tools/skill-validator.md b/tools/skill-validator.md index 9566e1132..06edf3c8a 100644 --- a/tools/skill-validator.md +++ b/tools/skill-validator.md @@ -10,7 +10,7 @@ Before running inference-based validation, run the deterministic validator: node tools/validate-skills.js --json path/to/skill-dir ``` -This checks 14 rules deterministically: SKILL-01, SKILL-02, SKILL-03, SKILL-04, SKILL-05, SKILL-06, SKILL-07, WF-01, WF-02, PATH-02, STEP-01, STEP-06, STEP-07, SEQ-02. +This checks 12 rules deterministically: SKILL-01, SKILL-02, SKILL-03, SKILL-04, SKILL-05, SKILL-06, SKILL-07, PATH-02, STEP-01, STEP-06, STEP-07, SEQ-02. Review its JSON output. For any rule that produced **zero findings** in the first pass, **skip it** during inference-based validation below — it has already been verified. If a rule produced any findings, the inference validator should still review that rule (some rules like SKILL-04 and SKILL-06 have sub-checks that benefit from judgment). Focus your inference effort on the remaining rules that require judgment (PATH-01, PATH-03, PATH-04, PATH-05, WF-03, STEP-02, STEP-03, STEP-04, STEP-05, SEQ-01, REF-01, REF-02, REF-03). @@ -98,24 +98,6 @@ If no findings are generated (from either pass), the skill passes validation. --- -### WF-01 — Only SKILL.md May Have `name` in Frontmatter - -- **Severity:** HIGH -- **Applies to:** all `.md` files except `SKILL.md` -- **Rule:** The `name` field belongs only in `SKILL.md`. No other markdown file in the skill directory may have `name:` in its frontmatter. -- **Detection:** Parse frontmatter of every non-SKILL.md markdown file and check for `name:` key. -- **Fix:** Remove the `name:` line from the file's frontmatter. -- **Exception:** `bmad-agent-tech-writer` — has sub-skill files with intentional `name` fields (to be revisited). - -### WF-02 — Only SKILL.md May Have `description` in Frontmatter - -- **Severity:** HIGH -- **Applies to:** all `.md` files except `SKILL.md` -- **Rule:** The `description` field belongs only in `SKILL.md`. No other markdown file in the skill directory may have `description:` in its frontmatter. -- **Detection:** Parse frontmatter of every non-SKILL.md markdown file and check for `description:` key. -- **Fix:** Remove the `description:` line from the file's frontmatter. -- **Exception:** `bmad-agent-tech-writer` — has sub-skill files with intentional `description` fields (to be revisited). - ### WF-03 — workflow.md Frontmatter Variables Must Be Config or Runtime Only - **Severity:** HIGH diff --git a/tools/validate-skills.js b/tools/validate-skills.js index 997f8449a..8ab5bc2ad 100644 --- a/tools/validate-skills.js +++ b/tools/validate-skills.js @@ -1,7 +1,7 @@ /** * Deterministic Skill Validator * - * Validates 14 deterministic rules across all skill directories. + * Validates 12 deterministic rules across all skill directories. * Acts as a fast first-pass complement to the inference-based skill validator. * * What it checks: @@ -12,8 +12,6 @@ * - SKILL-05: name matches directory basename * - SKILL-06: description quality (length, "Use when"/"Use if") * - SKILL-07: SKILL.md has body content after frontmatter - * - WF-01: workflow.md frontmatter has no name - * - WF-02: workflow.md frontmatter has no description * - PATH-02: no installed_path variable * - STEP-01: step filename format * - STEP-06: step frontmatter has no name/description @@ -390,43 +388,6 @@ function validateSkill(skillDir) { } } - // --- WF-01 / WF-02: non-SKILL.md files must NOT have name/description --- - // TODO: bmad-agent-tech-writer has sub-skill files with intentional name/description - const WF_SKIP_SKILLS = new Set(['bmad-agent-tech-writer']); - for (const filePath of allFiles) { - if (path.extname(filePath) !== '.md') continue; - if (path.basename(filePath) === 'SKILL.md') continue; - if (WF_SKIP_SKILLS.has(dirName)) continue; - - const relFile = path.relative(skillDir, filePath); - const content = safeReadFile(filePath, findings, relFile); - if (content === null) continue; - const fm = parseFrontmatter(content); - if (!fm) continue; - - if ('name' in fm) { - findings.push({ - rule: 'WF-01', - title: 'Only SKILL.md May Have name in Frontmatter', - severity: 'HIGH', - file: relFile, - detail: `${relFile} frontmatter contains \`name\` — this belongs only in SKILL.md.`, - fix: "Remove the `name:` line from this file's frontmatter.", - }); - } - - if ('description' in fm) { - findings.push({ - rule: 'WF-02', - title: 'Only SKILL.md May Have description in Frontmatter', - severity: 'HIGH', - file: relFile, - detail: `${relFile} frontmatter contains \`description\` — this belongs only in SKILL.md.`, - fix: "Remove the `description:` line from this file's frontmatter.", - }); - } - } - // --- PATH-02: no installed_path --- for (const filePath of allFiles) { // Only check markdown and yaml files