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.
- package/CHANGELOG.md +47 -0
- package/README.md +96 -461
- package/package.json +12 -5
- package/readme-international/README.de.md +42 -9
- package/readme-international/README.es.md +43 -10
- package/readme-international/README.fr.md +42 -9
- package/src/bmad-plus/agents/agent-orchestrator/SKILL.md +5 -3
- package/src/bmad-plus/module.yaml +270 -220
- package/src/bmad-plus/packs/pack-dev-studio/README.md +133 -141
- package/src/bmad-plus/packs/pack-dev-studio/SKILL.md +49 -0
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +35 -60
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +59 -59
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +55 -93
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +58 -93
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +55 -132
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +63 -78
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +54 -69
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +54 -93
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +32 -60
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +67 -71
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +61 -90
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +56 -78
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +55 -88
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +20 -153
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +20 -173
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +14 -220
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +20 -329
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +15 -314
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +15 -355
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +15 -375
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +14 -357
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +13 -78
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +52 -65
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +14 -81
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +14 -31
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +14 -45
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +13 -128
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +61 -87
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +55 -298
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +52 -426
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +48 -69
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +22 -80
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +60 -482
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +50 -184
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +57 -173
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +56 -108
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +54 -1509
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +54 -296
- package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +41 -283
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +58 -18
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +103 -72
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +55 -27
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +34 -60
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +46 -87
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/steps/step-01-init.md +10 -0
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +30 -60
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +57 -27
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +47 -138
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +48 -34
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +51 -68
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +46 -3
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +68 -109
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +53 -174
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +39 -53
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +45 -83
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +45 -176
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +45 -63
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +53 -124
- package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +44 -100
- package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +56 -116
- package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +49 -12
- package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +51 -328
- package/src/bmad-plus/packs/pack-dev-studio/shared/catalog.json +489 -0
- package/src/bmad-plus/packs/pack-dev-studio/shared/execution.md +69 -0
- package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +39 -32
- package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +85 -14
- package/src/bmad-plus/packs/pack-memory/README.md +6 -0
- package/src/bmad-plus/packs/pack-memory/memory-orchestrator.md +12 -5
- package/src/bmad-plus/packs/pack-seo/SKILL.md +27 -1
- package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +8 -8
- package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +1 -2
- package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +0 -1
- package/src/bmad-plus/packs/pack-seo/seo-chief.md +16 -1
- package/src/bmad-plus/packs/pack-seo/seo-judge.md +12 -0
- package/src/bmad-plus/packs/pack-seo/seo-scout.md +12 -0
- package/src/bmad-plus/skills/bmad-plus-autopilot/SKILL.md +4 -4
- package/src/bmad-plus/skills/bmad-plus-sync/SKILL.md +5 -3
- package/src/bmad-plus/skills/dev-studio/SKILL.md +19 -0
- package/tools/bmad-plus-npx.js +4 -2
- package/tools/build/adapters.config.js +60 -51
- package/tools/build/check-counts.js +52 -54
- package/tools/build/check-install-contract.js +450 -0
- package/tools/build/generate-adapters.js +252 -56
- package/tools/build/generate.js +364 -14
- package/tools/build/generated-adapters/.codex/AGENTS.md +20 -7
- package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +20 -7
- package/tools/build/generated-adapters/.opencode/AGENTS.md +20 -7
- package/tools/build/generated-adapters/AGENTS.md +20 -7
- package/tools/build/generated-adapters/CLAUDE.md +20 -7
- package/tools/build/generated-adapters/CONVENTIONS.md +20 -7
- package/tools/build/generated-adapters/GEMINI.md +20 -7
- package/tools/build/module.template.yaml +82 -0
- package/tools/build/pack-delivery.js +78 -0
- package/tools/cli/bmad-plus-cli.js +16 -1
- package/tools/cli/commands/doctor.js +49 -217
- package/tools/cli/commands/install.js +109 -164
- package/tools/cli/commands/studio.js +68 -0
- package/tools/cli/commands/uninstall.js +173 -65
- package/tools/cli/commands/update-check.js +31 -0
- package/tools/cli/commands/update-policy.js +39 -0
- package/tools/cli/commands/update.js +102 -113
- package/tools/cli/i18n.js +60 -0
- package/tools/cli/lib/ide-config.js +4 -261
- package/tools/cli/lib/install-manifest.js +17 -0
- package/tools/cli/lib/installation-health.js +360 -0
- package/tools/cli/lib/installed-adapters.js +89 -0
- package/tools/cli/lib/npm-runner.js +177 -0
- package/tools/cli/lib/pack-copy.js +62 -66
- package/tools/cli/lib/packs.js +546 -3
- package/tools/cli/lib/python-health.js +233 -0
- package/tools/cli/lib/python-provision.js +2 -2
- package/tools/cli/lib/studio.js +310 -0
- package/tools/cli/lib/update-check.js +153 -0
- package/tools/cli/lib/update-dispatch.js +182 -0
- package/tools/cli/lib/update-policy.js +90 -0
- package/tools/cli/lib/update-transaction.js +334 -0
- package/tools/release/publication-content.js +901 -0
|
@@ -1,86 +1,48 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description:
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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.
|
package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md
CHANGED
|
@@ -1,179 +1,48 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description:
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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:
|
|
3
|
-
description:
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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.
|