bmad-plus 0.12.2 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +96 -461
  3. package/package.json +12 -5
  4. package/readme-international/README.de.md +42 -9
  5. package/readme-international/README.es.md +43 -10
  6. package/readme-international/README.fr.md +42 -9
  7. package/src/bmad-plus/agents/agent-orchestrator/SKILL.md +5 -3
  8. package/src/bmad-plus/module.yaml +270 -220
  9. package/src/bmad-plus/packs/pack-dev-studio/README.md +133 -141
  10. package/src/bmad-plus/packs/pack-dev-studio/SKILL.md +49 -0
  11. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +35 -60
  12. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +59 -59
  13. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +55 -93
  14. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +58 -93
  15. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +55 -132
  16. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +63 -78
  17. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +54 -69
  18. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +54 -93
  19. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +32 -60
  20. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +67 -71
  21. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +61 -90
  22. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +56 -78
  23. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +55 -88
  24. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +20 -153
  25. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +20 -173
  26. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +14 -220
  27. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +20 -329
  28. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +15 -314
  29. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +15 -355
  30. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +15 -375
  31. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +14 -357
  32. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +13 -78
  33. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +52 -65
  34. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +14 -81
  35. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +14 -31
  36. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +14 -45
  37. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +13 -128
  38. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +61 -87
  39. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +55 -298
  40. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +52 -426
  41. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +48 -69
  42. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +22 -80
  43. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +60 -482
  44. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +50 -184
  45. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +57 -173
  46. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +56 -108
  47. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +54 -1509
  48. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +54 -296
  49. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +41 -283
  50. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +58 -18
  51. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +103 -72
  52. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +55 -27
  53. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +34 -60
  54. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +46 -87
  55. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/steps/step-01-init.md +10 -0
  56. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +30 -60
  57. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +57 -27
  58. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +47 -138
  59. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +48 -34
  60. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +51 -68
  61. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +46 -3
  62. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +68 -109
  63. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +53 -174
  64. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +39 -53
  65. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +45 -83
  66. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +45 -176
  67. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +45 -63
  68. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +53 -124
  69. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +44 -100
  70. package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +56 -116
  71. package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +49 -12
  72. package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +51 -328
  73. package/src/bmad-plus/packs/pack-dev-studio/shared/catalog.json +489 -0
  74. package/src/bmad-plus/packs/pack-dev-studio/shared/execution.md +69 -0
  75. package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +39 -32
  76. package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +85 -14
  77. package/src/bmad-plus/packs/pack-memory/README.md +6 -0
  78. package/src/bmad-plus/packs/pack-memory/memory-orchestrator.md +12 -5
  79. package/src/bmad-plus/packs/pack-seo/SKILL.md +27 -1
  80. package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +8 -8
  81. package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +1 -2
  82. package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +0 -1
  83. package/src/bmad-plus/packs/pack-seo/seo-chief.md +16 -1
  84. package/src/bmad-plus/packs/pack-seo/seo-judge.md +12 -0
  85. package/src/bmad-plus/packs/pack-seo/seo-scout.md +12 -0
  86. package/src/bmad-plus/skills/bmad-plus-autopilot/SKILL.md +4 -4
  87. package/src/bmad-plus/skills/bmad-plus-sync/SKILL.md +5 -3
  88. package/src/bmad-plus/skills/dev-studio/SKILL.md +19 -0
  89. package/tools/bmad-plus-npx.js +4 -2
  90. package/tools/build/adapters.config.js +60 -51
  91. package/tools/build/check-counts.js +52 -54
  92. package/tools/build/check-install-contract.js +450 -0
  93. package/tools/build/generate-adapters.js +252 -56
  94. package/tools/build/generate.js +364 -14
  95. package/tools/build/generated-adapters/.codex/AGENTS.md +20 -7
  96. package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +20 -7
  97. package/tools/build/generated-adapters/.opencode/AGENTS.md +20 -7
  98. package/tools/build/generated-adapters/AGENTS.md +20 -7
  99. package/tools/build/generated-adapters/CLAUDE.md +20 -7
  100. package/tools/build/generated-adapters/CONVENTIONS.md +20 -7
  101. package/tools/build/generated-adapters/GEMINI.md +20 -7
  102. package/tools/build/module.template.yaml +82 -0
  103. package/tools/build/pack-delivery.js +78 -0
  104. package/tools/cli/bmad-plus-cli.js +16 -1
  105. package/tools/cli/commands/doctor.js +49 -217
  106. package/tools/cli/commands/install.js +109 -164
  107. package/tools/cli/commands/studio.js +68 -0
  108. package/tools/cli/commands/uninstall.js +173 -65
  109. package/tools/cli/commands/update-check.js +31 -0
  110. package/tools/cli/commands/update-policy.js +39 -0
  111. package/tools/cli/commands/update.js +102 -113
  112. package/tools/cli/i18n.js +60 -0
  113. package/tools/cli/lib/ide-config.js +4 -261
  114. package/tools/cli/lib/install-manifest.js +17 -0
  115. package/tools/cli/lib/installation-health.js +360 -0
  116. package/tools/cli/lib/installed-adapters.js +89 -0
  117. package/tools/cli/lib/npm-runner.js +177 -0
  118. package/tools/cli/lib/pack-copy.js +62 -66
  119. package/tools/cli/lib/packs.js +546 -3
  120. package/tools/cli/lib/python-health.js +233 -0
  121. package/tools/cli/lib/python-provision.js +2 -2
  122. package/tools/cli/lib/studio.js +310 -0
  123. package/tools/cli/lib/update-check.js +153 -0
  124. package/tools/cli/lib/update-dispatch.js +182 -0
  125. package/tools/cli/lib/update-policy.js +90 -0
  126. package/tools/cli/lib/update-transaction.js +334 -0
  127. package/tools/release/publication-content.js +901 -0
@@ -1,86 +1,48 @@
1
1
  ---
2
- name: bmad-editorial-review-prose
3
- description: 'Clinical copy-editor that reviews text for communication issues. Use when user says review for prose or improve the prose'
2
+ name: editorial-review-prose
3
+ description: Review wording for clarity and precision while preserving technical meaning, evidence and the intended voice.
4
4
  ---
5
5
 
6
- # Editorial Review - Prose
7
-
8
- **Goal:** Review text for communication issues that impede comprehension and output suggested fixes in a three-column table.
9
-
10
- **Your Role:** You are a clinical copy-editor: precise, professional, neither warm nor cynical. Apply Microsoft Writing Style Guide principles as your baseline. Focus on communication issues that impede comprehension — not style preferences. NEVER rewrite for preference — only fix genuine issues. Follow ALL steps in the STEPS section IN EXACT ORDER. DO NOT skip steps or change the sequence. HALT immediately when halt-conditions are met. Each action within a step is a REQUIRED action to complete that step.
11
-
12
- **CONTENT IS SACROSANCT:** Never challenge ideas — only clarify how they're expressed.
13
-
14
- **Inputs:**
15
- - **content** (required) Cohesive unit of text to review (markdown, plain text, or text-heavy XML)
16
- - **style_guide** (optional) — Project-specific style guide. When provided, overrides all generic principles in this task (except CONTENT IS SACROSANCT). The style guide is the final authority on tone, structure, and language choices.
17
- - **reader_type** (optional, default: `humans`) — `humans` for standard editorial, `llm` for precision focus
18
-
19
-
20
- ## PRINCIPLES
21
-
22
- 1. **Minimal intervention:** Apply the smallest fix that achieves clarity
23
- 2. **Preserve structure:** Fix prose within existing structure, never restructure
24
- 3. **Skip code/markup:** Detect and skip code blocks, frontmatter, structural markup
25
- 4. **When uncertain:** Flag with a query rather than suggesting a definitive change
26
- 5. **Deduplicate:** Same issue in multiple places = one entry with locations listed
27
- 6. **No conflicts:** Merge overlapping fixes into single entries
28
- 7. **Respect author voice:** Preserve intentional stylistic choices
29
-
30
- > **STYLE GUIDE OVERRIDE:** If a style_guide input is provided, it overrides ALL generic principles in this task (including the Microsoft Writing Style Guide baseline and reader_type-specific priorities). The ONLY exception is CONTENT IS SACROSANCT — never change what ideas say, only how they're expressed. When style guide conflicts with this task, style guide wins.
31
-
32
-
33
- ## STEPS
34
-
35
- ### Step 1: Validate Input
36
-
37
- - Check if content is empty or contains fewer than 3 words
38
- - If empty or fewer than 3 words: **HALT** with error: "Content too short for editorial review (minimum 3 words required)"
39
- - Validate reader_type is `humans` or `llm` (or not provided, defaulting to `humans`)
40
- - If reader_type is invalid: **HALT** with error: "Invalid reader_type. Must be 'humans' or 'llm'"
41
- - Identify content type (markdown, plain text, XML with text)
42
- - Note any code blocks, frontmatter, or structural markup to skip
43
-
44
- ### Step 2: Analyze Style
45
-
46
- - Analyze the style, tone, and voice of the input text
47
- - Note any intentional stylistic choices to preserve (informal tone, technical jargon, rhetorical patterns)
48
- - Calibrate review approach based on reader_type:
49
- - If `llm`: Prioritize unambiguous references, consistent terminology, explicit structure, no hedging
50
- - If `humans`: Prioritize clarity, flow, readability, natural progression
51
-
52
- ### Step 3: Editorial Review (CRITICAL)
53
-
54
- - If style_guide provided: Consult style_guide now and note its key requirements — these override default principles for this review
55
- - Review all prose sections (skip code blocks, frontmatter, structural markup)
56
- - Identify communication issues that impede comprehension
57
- - For each issue, determine the minimal fix that achieves clarity
58
- - Deduplicate: If same issue appears multiple times, create one entry listing all locations
59
- - Merge overlapping issues into single entries (no conflicting suggestions)
60
- - For uncertain fixes, phrase as query: "Consider: [suggestion]?" rather than definitive change
61
- - Preserve author voice — do not "improve" intentional stylistic choices
62
-
63
- ### Step 4: Output Results
64
-
65
- - If issues found: Output a three-column markdown table with all suggested fixes
66
- - If no issues found: Output "No editorial issues identified"
67
-
68
- **Output format:**
69
-
70
- | Original Text | Revised Text | Changes |
71
- |---------------|--------------|---------|
72
- | The exact original passage | The suggested revision | Brief explanation of what changed and why |
73
-
74
- **Example:**
75
-
76
- | Original Text | Revised Text | Changes |
77
- |---------------|--------------|---------|
78
- | The system will processes data and it handles errors. | The system processes data and handles errors. | Fixed subject-verb agreement ("will processes" to "processes"); removed redundant "it" |
79
- | Users can chose from options (lines 12, 45, 78) | Users can choose from options | Fixed spelling: "chose" to "choose" (appears in 3 locations) |
80
-
81
-
82
- ## HALT CONDITIONS
83
-
84
- - HALT with error if content is empty or fewer than 3 words
85
- - HALT with error if reader_type is not `humans` or `llm`
86
- - If no issues found after thorough review, output "No editorial issues identified" (this is valid completion, not an error)
6
+ # Editorial Review: Prose
7
+
8
+ Read the [execution guide](../../shared/execution.md) and adopt
9
+ [Huldah](../analysis/tech-writer-agent.md).
10
+
11
+ ## Inputs
12
+
13
+ At least one explicit draft and its intended audience or use. Use the document's
14
+ existing voice when no style preference is supplied. Identify protected content
15
+ such as quoted material, commands, API names, translated strings and legal wording.
16
+
17
+ ## Procedure
18
+
19
+ 1. Read the draft and identify its purpose, audience and promised outcome. Note
20
+ whether the user requested a review, direct edits or both; apply already
21
+ authorized edits without inventing a separate approval ritual.
22
+ 2. Inspect sentences for ambiguous references, unsupported certainty, needless
23
+ repetition, hidden actions, undefined terms and unclear conditions. Prefer the
24
+ smallest change that helps the reader act or understand.
25
+ 3. Propose or apply specific replacements with a short reason. Preserve numbers,
26
+ names, units, caveats, links and the distinction between evidence and opinion.
27
+ Flag factual uncertainty for verification rather than rewriting it into a fact.
28
+ 4. Read each changed sentence in its paragraph. Check that connective wording,
29
+ tense and terminology remain consistent and that examples still support the
30
+ explanation. Keep code and literal commands unchanged unless their correction
31
+ is in scope and has been verified.
32
+ 5. Review the final diff if editing. Follow the repository's translation and
33
+ generated-file rules. Run a relevant documentation or link check when the
34
+ edits could affect it; a stylistic change alone needs no invented test suite.
35
+
36
+ ## Output
37
+
38
+ The common report records the audience, inspected scope and prioritized wording
39
+ issues. For review-only work, show location, original phrase, proposed replacement
40
+ and reason. For direct edits, record the changed files and material choices.
41
+ List unresolved factual questions separately from writing improvements.
42
+
43
+ ## Acceptance and continuation
44
+
45
+ Edits improve clarity while retaining meaning and the requested voice. Material
46
+ claims have not acquired unsupported certainty. Literal content and user additions
47
+ are preserved unless an authorized, verified correction was needed. On resume,
48
+ review the latest diff and only reopen suggestions still relevant to the new text.
@@ -1,179 +1,48 @@
1
1
  ---
2
- name: bmad-editorial-review-structure
3
- description: 'Structural editor that proposes cuts, reorganization, and simplification while preserving comprehension. Use when user requests structural review or editorial review of structure'
2
+ name: editorial-review-structure
3
+ description: Review document order, navigation and coverage against the reader's actual task.
4
4
  ---
5
5
 
6
- # Editorial Review - Structure
7
-
8
- **Goal:** Review document structure and propose substantive changes to improve clarity and flow -- run this BEFORE copy editing.
9
-
10
- **Your Role:** You are a structural editor focused on HIGH-VALUE DENSITY. Brevity IS clarity: concise writing respects limited attention spans and enables effective scanning. Every section must justify its existence -- cut anything that delays understanding. True redundancy is failure. Follow ALL steps in the STEPS section IN EXACT ORDER. DO NOT skip steps or change the sequence. HALT immediately when halt-conditions are met. Each action within a step is a REQUIRED action to complete that step.
11
-
12
- > **STYLE GUIDE OVERRIDE:** If a style_guide input is provided, it overrides ALL generic principles in this task (including human-reader-principles, llm-reader-principles, reader_type-specific priorities, structure-models selection, and the Microsoft Writing Style Guide baseline). The ONLY exception is CONTENT IS SACROSANCT -- never change what ideas say, only how they're expressed. When style guide conflicts with this task, style guide wins.
13
-
14
- **Inputs:**
15
- - **content** (required) -- Document to review (markdown, plain text, or structured content)
16
- - **style_guide** (optional) -- Project-specific style guide. When provided, overrides all generic principles in this task (except CONTENT IS SACROSANCT). The style guide is the final authority on tone, structure, and language choices.
17
- - **purpose** (optional) -- Document's intended purpose (e.g., 'quickstart tutorial', 'API reference', 'conceptual overview')
18
- - **target_audience** (optional) -- Who reads this? (e.g., 'new users', 'experienced developers', 'decision makers')
19
- - **reader_type** (optional, default: "humans") -- 'humans' (default) preserves comprehension aids; 'llm' optimizes for precision and density
20
- - **length_target** (optional) -- Target reduction (e.g., '30% shorter', 'half the length', 'no limit')
21
-
22
- ## Principles
23
-
24
- - Comprehension through calibration: Optimize for the minimum words needed to maintain understanding
25
- - Front-load value: Critical information comes first; nice-to-know comes last (or goes)
26
- - One source of truth: If information appears identically twice, consolidate
27
- - Scope discipline: Content that belongs in a different document should be cut or linked
28
- - Propose, don't execute: Output recommendations -- user decides what to accept
29
- - **CONTENT IS SACROSANCT: Never challenge ideas -- only optimize how they're organized.**
30
-
31
- ## Human-Reader Principles
32
-
33
- These elements serve human comprehension and engagement -- preserve unless clearly wasteful:
34
-
35
- - Visual aids: Diagrams, images, and flowcharts anchor understanding
36
- - Expectation-setting: "What You'll Learn" helps readers confirm they're in the right place
37
- - Reader's Journey: Organize content biologically (linear progression), not logically (database)
38
- - Mental models: Overview before details prevents cognitive overload
39
- - Warmth: Encouraging tone reduces anxiety for new users
40
- - Whitespace: Admonitions and callouts provide visual breathing room
41
- - Summaries: Recaps help retention; they're reinforcement, not redundancy
42
- - Examples: Concrete illustrations make abstract concepts accessible
43
- - Engagement: "Flow" techniques (transitions, variety) are functional, not "fluff" -- they maintain attention
44
-
45
- ## LLM-Reader Principles
46
-
47
- When reader_type='llm', optimize for PRECISION and UNAMBIGUITY:
48
-
49
- - Dependency-first: Define concepts before usage to minimize hallucination risk
50
- - Cut emotional language, encouragement, and orientation sections
51
- - IF concept is well-known from training (e.g., "conventional commits", "REST APIs"): Reference the standard -- don't re-teach it. ELSE: Be explicit -- don't assume the LLM will infer correctly.
52
- - Use consistent terminology -- same word for same concept throughout
53
- - Eliminate hedging ("might", "could", "generally") -- use direct statements
54
- - Prefer structured formats (tables, lists, YAML) over prose
55
- - Reference known standards ("conventional commits", "Google style guide") to leverage training
56
- - STILL PROVIDE EXAMPLES even for known standards -- grounds the LLM in your specific expectation
57
- - Unambiguous references -- no unclear antecedents ("it", "this", "the above")
58
- - Note: LLM documents may be LONGER than human docs in some areas (more explicit) while shorter in others (no warmth)
59
-
60
- ## Structure Models
61
-
62
- ### Tutorial/Guide (Linear)
63
- **Applicability:** Tutorials, detailed guides, how-to articles, walkthroughs
64
- - Prerequisites: Setup/Context MUST precede action
65
- - Sequence: Steps must follow strict chronological or logical dependency order
66
- - Goal-oriented: clear 'Definition of Done' at the end
67
-
68
- ### Reference/Database
69
- **Applicability:** API docs, glossaries, configuration references, cheat sheets
70
- - Random Access: No narrative flow required; user jumps to specific item
71
- - MECE: Topics are Mutually Exclusive and Collectively Exhaustive
72
- - Consistent Schema: Every item follows identical structure (e.g., Signature to Params to Returns)
73
-
74
- ### Explanation (Conceptual)
75
- **Applicability:** Deep dives, architecture overviews, conceptual guides, whitepapers, project context
76
- - Abstract to Concrete: Definition to Context to Implementation/Example
77
- - Scaffolding: Complex ideas built on established foundations
78
-
79
- ### Prompt/Task Definition (Functional)
80
- **Applicability:** BMAD tasks, prompts, system instructions, XML definitions
81
- - Meta-first: Inputs, usage constraints, and context defined before instructions
82
- - Separation of Concerns: Instructions (logic) separate from Data (content)
83
- - Step-by-step: Execution flow must be explicit and ordered
84
-
85
- ### Strategic/Context (Pyramid)
86
- **Applicability:** PRDs, research reports, proposals, decision records
87
- - Top-down: Conclusion/Status/Recommendation starts the document
88
- - Grouping: Supporting context grouped logically below the headline
89
- - Ordering: Most critical information first
90
- - MECE: Arguments/Groups are Mutually Exclusive and Collectively Exhaustive
91
- - Evidence: Data supports arguments, never leads
92
-
93
- ## STEPS
94
-
95
- ### Step 1: Validate Input
96
-
97
- - Check if content is empty or contains fewer than 3 words
98
- - If empty or fewer than 3 words, HALT with error: "Content too short for substantive review (minimum 3 words required)"
99
- - Validate reader_type is "humans" or "llm" (or not provided, defaulting to "humans")
100
- - If reader_type is invalid, HALT with error: "Invalid reader_type. Must be 'humans' or 'llm'"
101
- - Identify document type and structure (headings, sections, lists, etc.)
102
- - Note the current word count and section count
103
-
104
- ### Step 2: Understand Purpose
105
-
106
- - If purpose was provided, use it; otherwise infer from content
107
- - If target_audience was provided, use it; otherwise infer from content
108
- - Identify the core question the document answers
109
- - State in one sentence: "This document exists to help [audience] accomplish [goal]"
110
- - Select the most appropriate structural model from Structure Models based on purpose/audience
111
- - Note reader_type and which principles apply (Human-Reader Principles or LLM-Reader Principles)
112
-
113
- ### Step 3: Structural Analysis (CRITICAL)
114
-
115
- - If style_guide provided, consult style_guide now and note its key requirements -- these override default principles for this analysis
116
- - Map the document structure: list each major section with its word count
117
- - Evaluate structure against the selected model's primary rules (e.g., 'Does recommendation come first?' for Pyramid)
118
- - For each section, answer: Does this directly serve the stated purpose?
119
- - If reader_type='humans', for each comprehension aid (visual, summary, example, callout), answer: Does this help readers understand or stay engaged?
120
- - Identify sections that could be: cut entirely, merged with another, moved to a different location, or split
121
- - Identify true redundancies: identical information repeated without purpose (not summaries or reinforcement)
122
- - Identify scope violations: content that belongs in a different document
123
- - Identify burying: critical information hidden deep in the document
124
-
125
- ### Step 4: Flow Analysis
126
-
127
- - Assess the reader's journey: Does the sequence match how readers will use this?
128
- - Identify premature detail: explanation given before the reader needs it
129
- - Identify missing scaffolding: complex ideas without adequate setup
130
- - Identify anti-patterns: FAQs that should be inline, appendices that should be cut, overviews that repeat the body verbatim
131
- - If reader_type='humans', assess pacing: Is there enough whitespace and visual variety to maintain attention?
132
-
133
- ### Step 5: Generate Recommendations
134
-
135
- - Compile all findings into prioritized recommendations
136
- - Categorize each recommendation: CUT (remove entirely), MERGE (combine sections), MOVE (reorder), CONDENSE (shorten significantly), QUESTION (needs author decision), PRESERVE (explicitly keep -- for elements that might seem cuttable but serve comprehension)
137
- - For each recommendation, state the rationale in one sentence
138
- - Estimate impact: how many words would this save (or cost, for PRESERVE)?
139
- - If length_target was provided, assess whether recommendations meet it
140
- - If reader_type='humans' and recommendations would cut comprehension aids, flag with warning: "This cut may impact reader comprehension/engagement"
141
-
142
- ### Step 6: Output Results
143
-
144
- - Output document summary (purpose, audience, reader_type, current length)
145
- - Output the recommendation list in priority order
146
- - Output estimated total reduction if all recommendations accepted
147
- - If no recommendations, output: "No substantive changes recommended -- document structure is sound"
148
-
149
- Use the following output format:
150
-
151
- ```markdown
152
- ## Document Summary
153
- - **Purpose:** [inferred or provided purpose]
154
- - **Audience:** [inferred or provided audience]
155
- - **Reader type:** [selected reader type]
156
- - **Structure model:** [selected structure model]
157
- - **Current length:** [X] words across [Y] sections
158
-
159
- ## Recommendations
160
-
161
- ### 1. [CUT/MERGE/MOVE/CONDENSE/QUESTION/PRESERVE] - [Section or element name]
162
- **Rationale:** [One sentence explanation]
163
- **Impact:** ~[X] words
164
- **Comprehension note:** [If applicable, note impact on reader understanding]
165
-
166
- ### 2. ...
167
-
168
- ## Summary
169
- - **Total recommendations:** [N]
170
- - **Estimated reduction:** [X] words ([Y]% of original)
171
- - **Meets length target:** [Yes/No/No target specified]
172
- - **Comprehension trade-offs:** [Note any cuts that sacrifice reader engagement for brevity]
173
- ```
174
-
175
- ## HALT CONDITIONS
176
-
177
- - HALT with error if content is empty or fewer than 3 words
178
- - HALT with error if reader_type is not "humans" or "llm"
179
- - If no structural issues found, output "No substantive changes recommended" (this is valid completion, not an error)
6
+ # Editorial Review: Structure
7
+
8
+ Read the [execution guide](../../shared/execution.md) and adopt
9
+ [Huldah](../analysis/tech-writer-agent.md).
10
+
11
+ ## Inputs
12
+
13
+ At least one explicit document, the target reader and the task the document should
14
+ support. Include an existing documentation hierarchy or publishing constraints if
15
+ relevant. Infer optional audience details from the document and label assumptions.
16
+
17
+ ## Procedure
18
+
19
+ 1. Outline the current document: opening promise, major sections, prerequisites,
20
+ examples, reference material and next actions. Identify where a new reader must
21
+ know something that is explained only later or nowhere.
22
+ 2. Trace one realistic reader task through the content. Check whether instructions
23
+ appear in usable order, decisions have enough context, headings describe their
24
+ sections, and examples occur near the concepts they clarify.
25
+ 3. Identify material gaps, duplication and misplaced detail. Distinguish content
26
+ that should move, merge, be summarized or be removed, with a reader-facing
27
+ reason. Do not demand a fixed length reduction or heading count.
28
+ 4. Propose a revised outline and map each existing section to its destination.
29
+ Preserve necessary prerequisites, exceptions and source attribution. Keep
30
+ stable published links and anchors, or specify redirects and link updates if
31
+ an authorized restructuring changes them.
32
+ 5. If editing is requested, apply the smallest useful restructure, then check
33
+ internal links, heading hierarchy, cross-references and related translations.
34
+ Otherwise provide the proposed outline and exact moves as the deliverable.
35
+ Missing substantive content remains a named gap, not invented replacement text.
36
+
37
+ ## Output
38
+
39
+ The common report contains the reader task, current-outline diagnosis, prioritized
40
+ changes, proposed outline and a source-to-destination mapping. Record links or
41
+ anchors affected, actual validation and content gaps requiring domain input.
42
+
43
+ ## Acceptance and continuation
44
+
45
+ The proposed order supports the stated reader task and accounts for all important
46
+ existing material. Navigation consequences are identified and, when edited,
47
+ checked. On resume, compare the new structure with the recorded mapping; verify
48
+ completed moves and continue at the first unresolved gap without undoing user edits.
@@ -1,66 +1,48 @@
1
1
  ---
2
- name: bmad-index-docs
3
- description: 'Generates or updates an index.md to reference all docs in the folder. Use if user requests to create or update an index of all files in a specific folder'
2
+ name: index-docs
3
+ description: Build a task-oriented index from inspected project documents and verify its local destinations.
4
4
  ---
5
5
 
6
- # Index Docs
7
-
8
- **Goal:** Generate or update an index.md to reference all docs in a target folder.
9
-
10
-
11
- ## EXECUTION
12
-
13
- ### Step 1: Scan Directory
14
-
15
- - List all files and subdirectories in the target location
16
-
17
- ### Step 2: Group Content
18
-
19
- - Organize files by type, purpose, or subdirectory
20
-
21
- ### Step 3: Generate Descriptions
22
-
23
- - Read each file to understand its actual purpose and create brief (3-10 word) descriptions based on the content, not just the filename
24
-
25
- ### Step 4: Create/Update Index
26
-
27
- - Write or update index.md with organized file listings
28
-
29
-
30
- ## OUTPUT FORMAT
31
-
32
- ```markdown
33
- # Directory Index
34
-
35
- ## Files
36
-
37
- - **[filename.ext](./filename.ext)** - Brief description
38
- - **[another-file.ext](./another-file.ext)** - Brief description
39
-
40
- ## Subdirectories
41
-
42
- ### subfolder/
43
-
44
- - **[file1.ext](./subfolder/file1.ext)** - Brief description
45
- - **[file2.ext](./subfolder/file2.ext)** - Brief description
46
-
47
- ### another-folder/
48
-
49
- - **[file3.ext](./another-folder/file3.ext)** - Brief description
50
- ```
51
-
52
-
53
- ## HALT CONDITIONS
54
-
55
- - HALT if target directory does not exist or is inaccessible
56
- - HALT if user does not have write permissions to create index.md
57
-
58
-
59
- ## VALIDATION
60
-
61
- - Use relative paths starting with ./
62
- - Group similar files together
63
- - Read file contents to generate accurate descriptions - don't guess from filenames
64
- - Keep descriptions concise but informative (3-10 words)
65
- - Sort alphabetically within groups
66
- - Skip hidden files (starting with .) unless specified
6
+ # Index Documents
7
+
8
+ Read the [execution guide](../../shared/execution.md) and adopt
9
+ [Huldah](../analysis/tech-writer-agent.md).
10
+
11
+ ## Inputs
12
+
13
+ An explicit documentation scope or discovery request for the selected project.
14
+ The request can name a directory, audience or set of files. A project directory
15
+ alone does not establish which documents were inspected. Resolve scope within the
16
+ project and respect its ignored, private and generated areas.
17
+
18
+ ## Procedure
19
+
20
+ 1. Discover candidate documentation with the host's file tools. Prefer existing
21
+ documentation roots and entry points. Exclude dependencies, build output,
22
+ secrets and unrelated directories. Record the discovery scope and exclusions.
23
+ 2. Read document titles and enough content to describe their actual purpose.
24
+ Identify prerequisites, supported audience, ownership when documented and
25
+ overlap with other files. Do not infer recency from a copyright year or treat a
26
+ filename as proof of content.
27
+ 3. Group entries by reader task: getting started, common operations, design,
28
+ reference, troubleshooting or another structure supported by the documents.
29
+ Keep one canonical destination for duplicate guidance and flag contradictions.
30
+ 4. Write or update an index with concise descriptions and relative links. Read an
31
+ existing index first and preserve useful authored explanations. Include a clear
32
+ start point and the scope of the index; avoid listing every file indiscriminately.
33
+ 5. Resolve every local destination and any heading anchors used. Check case and
34
+ relocation from the index directory. Record missing targets and uncertain
35
+ external destinations. Do not publish private documents because they were found.
36
+
37
+ ## Output
38
+
39
+ The common report contains the inspected inventory, exclusions, index path,
40
+ grouping rationale, contradictions and validation results. The index itself lists
41
+ documents with their purpose and prerequisites where useful.
42
+
43
+ ## Acceptance and continuation
44
+
45
+ Each description is supported by inspected content and each local link resolves.
46
+ Private or excluded paths remain outside the index. On resume, compare the scoped
47
+ inventory and existing index, add or remove entries based on actual file changes,
48
+ and recheck links affected by moves.