@mark-gozner/aigile-method 0.4.5

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 (143) hide show
  1. package/LICENSE.md +26 -0
  2. package/README.md +300 -0
  3. package/core/agent-teams/team-all.yaml +24 -0
  4. package/core/agent-teams/team-company.yaml +17 -0
  5. package/core/agent-teams/team-enterprise.yaml +17 -0
  6. package/core/agent-teams/team-fullstack.yaml +16 -0
  7. package/core/agent-teams/team-ide-minimal.yaml +10 -0
  8. package/core/agents/aigile-master.md +476 -0
  9. package/core/agents/aigile-orchestrator.agent.md +200 -0
  10. package/core/agents/analyst.md +45 -0
  11. package/core/agents/architect.md +43 -0
  12. package/core/agents/code-tour.agent.md +208 -0
  13. package/core/agents/dev.agent.md +145 -0
  14. package/core/agents/dev.md +130 -0
  15. package/core/agents/expert-react-frontend-engineer.agent.md +741 -0
  16. package/core/agents/pm.md +33 -0
  17. package/core/agents/po.md +35 -0
  18. package/core/agents/qa.md +38 -0
  19. package/core/agents/sm.md +31 -0
  20. package/core/agents/ui-expert.md +39 -0
  21. package/core/agents/ux-expert.md +31 -0
  22. package/core/checklists/architect-checklist.md +246 -0
  23. package/core/checklists/change-checklist.md +182 -0
  24. package/core/checklists/pm-checklist.md +286 -0
  25. package/core/checklists/po-master-checklist.md +291 -0
  26. package/core/checklists/story-dod-checklist.md +94 -0
  27. package/core/checklists/story-draft-checklist.md +153 -0
  28. package/core/core-config.yaml +22 -0
  29. package/core/data/aigile-kb.md +112 -0
  30. package/core/data/brainstorming-techniques.md +73 -0
  31. package/core/data/elicitation-methods.md +42 -0
  32. package/core/data/technical-preferences.md +52 -0
  33. package/core/data/test-levels-framework.md +43 -0
  34. package/core/data/test-priorities-matrix.md +26 -0
  35. package/core/instructions/csharp.instructions.md +656 -0
  36. package/core/instructions/dotnet/csharp.instructions.md +656 -0
  37. package/core/instructions/java/java.instructions.md +67 -0
  38. package/core/instructions/java/spring-boot.instructions.md +122 -0
  39. package/core/instructions/java.instructions.md +67 -0
  40. package/core/instructions/spring-boot.instructions.md +122 -0
  41. package/core/prompts/README.md +11 -0
  42. package/core/prompts/architecture/architecture-blueprint-generator.prompt.md +322 -0
  43. package/core/prompts/architecture/architecture-validation.prompt.md +71 -0
  44. package/core/prompts/architecture/file-tree-generator.prompt.md +405 -0
  45. package/core/prompts/architecture/technical-project-analyze.prompt.md +43 -0
  46. package/core/prompts/architecture-blueprint-generator.prompt.md +322 -0
  47. package/core/prompts/architecture-validation.prompt.md +71 -0
  48. package/core/prompts/code-review.prompt.md +107 -0
  49. package/core/prompts/confluence-in-md.prompt.md +167 -0
  50. package/core/prompts/copilot-instructions-blueprint-generator.prompt.md +294 -0
  51. package/core/prompts/create-implementation-plan.prompt.md +157 -0
  52. package/core/prompts/create-oo-component-documentation.prompt.md +193 -0
  53. package/core/prompts/file-tree-generator.prompt.md +405 -0
  54. package/core/prompts/generate-unit-tests.prompt.md +291 -0
  55. package/core/prompts/java/java-doc.prompt.md +24 -0
  56. package/core/prompts/java/java-junit.prompt.md +64 -0
  57. package/core/prompts/java/junit-5.prompt.md +64 -0
  58. package/core/prompts/java-doc.prompt.md +24 -0
  59. package/core/prompts/java-junit.prompt.md +64 -0
  60. package/core/prompts/junit-5.prompt.md +64 -0
  61. package/core/prompts/release-notes/README.md +11 -0
  62. package/core/prompts/release-notes/release-notes.prompt.md +723 -0
  63. package/core/prompts/release-notes.prompt.md +723 -0
  64. package/core/prompts/technical-project-analyze.prompt.md +43 -0
  65. package/core/tasks/advanced-elicitation.md +119 -0
  66. package/core/tasks/check-story-implemented.md +44 -0
  67. package/core/tasks/code-arch-review-with-github.md +40 -0
  68. package/core/tasks/create-architecture-doc.md +55 -0
  69. package/core/tasks/create-jira-epic-from-confluence.md +70 -0
  70. package/core/tasks/create-jira-story-from-confluence.md +39 -0
  71. package/core/tasks/create-jira-story-from-text.md +39 -0
  72. package/core/tasks/create-next-story.md +35 -0
  73. package/core/tasks/create-prd-doc.md +54 -0
  74. package/core/tasks/create-stories-from-epic.md +66 -0
  75. package/core/tasks/create-tasks-for-story.md +60 -0
  76. package/core/tasks/document-project.md +69 -0
  77. package/core/tasks/execute-checklist.md +37 -0
  78. package/core/tasks/explain-story-from-jira.md +44 -0
  79. package/core/tasks/facilitate-brainstorming-session.md +69 -0
  80. package/core/tasks/figma-audit-design-system.md +20 -0
  81. package/core/tasks/front-end-spec-from-design.md +33 -0
  82. package/core/tasks/gate.md +64 -0
  83. package/core/tasks/groom-jira-story.md +52 -0
  84. package/core/tasks/help.md +27 -0
  85. package/core/tasks/implement-freeform-work-item.md +30 -0
  86. package/core/tasks/implement-story-from-jira.md +63 -0
  87. package/core/tasks/implement-unit-tests.md +45 -0
  88. package/core/tasks/market-research-from-context7.md +37 -0
  89. package/core/tasks/review-story.md +30 -0
  90. package/core/tasks/sonarqube-hotspot-review.md +39 -0
  91. package/core/tasks/standup-digest.md +21 -0
  92. package/core/tasks/sync-jira-backlog.md +32 -0
  93. package/core/tasks/test-design.md +68 -0
  94. package/core/tasks/validate-next-story.md +37 -0
  95. package/core/tasks/verify-jira-story-e2e.md +45 -0
  96. package/core/templates/architecture-tmpl.yaml +651 -0
  97. package/core/templates/brainstorming-output-tmpl.yaml +156 -0
  98. package/core/templates/brownfield-architecture-tmpl.yaml +477 -0
  99. package/core/templates/brownfield-prd-tmpl.yaml +281 -0
  100. package/core/templates/front-end-architecture-tmpl.yaml +219 -0
  101. package/core/templates/front-end-spec-tmpl.yaml +350 -0
  102. package/core/templates/fullstack-architecture-tmpl.yaml +824 -0
  103. package/core/templates/market-research-tmpl.yaml +253 -0
  104. package/core/templates/prd-tmpl.yaml +203 -0
  105. package/core/templates/project-brief-tmpl.yaml +222 -0
  106. package/core/templates/qa-gate-tmpl.yaml +103 -0
  107. package/core/templates/story-tmpl.yaml +138 -0
  108. package/core/workflows/brownfield-fullstack.yaml +298 -0
  109. package/core/workflows/brownfield-service.yaml +188 -0
  110. package/core/workflows/brownfield-ui.yaml +198 -0
  111. package/core/workflows/greenfield-fullstack.yaml +241 -0
  112. package/core/workflows/greenfield-service.yaml +207 -0
  113. package/core/workflows/greenfield-ui.yaml +236 -0
  114. package/dist/agents/aigile-master.txt +500 -0
  115. package/dist/agents/aigile-orchestrator.agent.txt +224 -0
  116. package/dist/agents/analyst.txt +69 -0
  117. package/dist/agents/architect.txt +67 -0
  118. package/dist/agents/code-tour.agent.txt +232 -0
  119. package/dist/agents/dev.agent.txt +169 -0
  120. package/dist/agents/dev.txt +154 -0
  121. package/dist/agents/expert-react-frontend-engineer.agent.txt +765 -0
  122. package/dist/agents/pm.txt +57 -0
  123. package/dist/agents/po.txt +59 -0
  124. package/dist/agents/qa.txt +62 -0
  125. package/dist/agents/sm.txt +55 -0
  126. package/dist/agents/ui-expert.txt +63 -0
  127. package/dist/agents/ux-expert.txt +55 -0
  128. package/dist/dev-agent-bundle.txt +154 -0
  129. package/dist/teams/team-company.txt +10789 -0
  130. package/docs/mcp-servers.md +102 -0
  131. package/docs/orchestrator-guide.md +526 -0
  132. package/mcp/servers.json +108 -0
  133. package/mcp/servers.yaml +124 -0
  134. package/package.json +72 -0
  135. package/tools/cli.js +1864 -0
  136. package/tools/installer/README.md +24 -0
  137. package/tools/installer/lib/ide-setup.js +295 -0
  138. package/tools/installer/lib/installer.js +131 -0
  139. package/tools/md-assets/web-agent-startup-instructions.md +21 -0
  140. package/tools/postinstall.js +72 -0
  141. package/tools/shared/bannerArt.js +68 -0
  142. package/tools/validate-bundles.js +54 -0
  143. package/tools/verify-publish-registry.js +34 -0
@@ -0,0 +1,43 @@
1
+ ---
2
+ description: Analyze the project structure, architecture, and design patterns.
3
+ mode: agent
4
+ ---
5
+
6
+ Your goal is to produce a comprehensive, actionable analysis of the codebase structure, architecture, and dependencies.
7
+
8
+
9
+ # Primary objectives:
10
+
11
+ Repository scanning — produce a navigable map of the codebase (file tree, module/package boundaries, important files).
12
+ Architecture visualization — produce diagrams showing components, services, key modules, data flows, and integration points.
13
+ Dependency analysis — enumerate external (third-party) and internal dependencies, versions where available, license risks, and high-level vulnerability pointers.
14
+
15
+ # Deliverables (formats required):
16
+ `docs/architecture.md` human-readable explanation of components, responsibilities, and integration points.
17
+ `docs/file-tree.md` — machine-readable tree (paths, sizes, lines).
18
+ `docs/internal-dependencies.mmd`. — Mermaid diagram of internal dependencies (packages/modules).
19
+ `docs/external-dependencies.mmd`. — Mermaid diagram of external dependencies (third-party services).
20
+
21
+ # Required output constraints:
22
+ JSON must be valid and include confidence scores (0.0–1.0) for inferred relationships.
23
+ Diagrams must be Mermaid syntax
24
+
25
+ # Permissions & safety:
26
+
27
+ Only read the code (no changes unless explicitly authorized).
28
+ Do not attempt to access external private services unless credentials are provided.
29
+ If execution environment differs from CI (e.g., Windows vs Linux), note differences and adapt commands.
30
+
31
+ # TODO checklist (actionable items) (agent must follow these steps):
32
+
33
+ - [ ] Run `.github/prompts/file-tree-generator.prompt.md` with VISUALIZATION_STYLE = Markdown List; produce `docs/file-tree.md` as output
34
+ - [ ] Run `.github/prompts/architecture-blueprint-generator.prompt.md` with appropriate parameters; produce `docs/architecture.md` as output
35
+ - [ ] Generate an internal dependency graph (internal packages/modules) and export as Mermaid to `docs/internal-dependencies.mmd`.
36
+ - [ ] Generate an external dependency graph (third-party services) and export as Mermaid to `docs/external-dependencies.mmd`.
37
+
38
+
39
+ # Behavior rules:
40
+ - MUST follow the TODO checklist step-by-step.
41
+ - NEVER modify existing files.
42
+ - NEVER hallucinate missing sections—if absent, report them.
43
+ - KEEP findings deterministic: if rerun without changes, produce consistent IDs and counts.
@@ -0,0 +1,119 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Advanced Elicitation Task
4
+
5
+ ## Purpose
6
+
7
+ - Provide optional reflective and brainstorming actions to enhance content quality
8
+ - Enable deeper exploration of ideas through structured elicitation techniques
9
+ - Support iterative refinement through multiple analytical perspectives
10
+ - Usable during template-driven document creation or any chat conversation
11
+
12
+ ## Usage Scenarios
13
+
14
+ ### Scenario 1: Template Document Creation
15
+
16
+ After outputting a section during document creation:
17
+
18
+ 1. **Section Review**: Ask user to review the drafted section
19
+ 2. **Offer Elicitation**: Present 9 carefully selected elicitation methods
20
+ 3. **Simple Selection**: User types a number (0-8) to engage method, or 9 to proceed
21
+ 4. **Execute & Loop**: Apply selected method, then re-offer choices until user proceeds
22
+
23
+ ### Scenario 2: General Chat Elicitation
24
+
25
+ User can request advanced elicitation on any agent output:
26
+
27
+ - User says "do advanced elicitation" or similar
28
+ - Agent selects 9 relevant methods for the context
29
+ - Same simple 0-9 selection process
30
+
31
+ ## Task Instructions
32
+
33
+ ### 1. Intelligent Method Selection
34
+
35
+ **Context Analysis**: Before presenting options, analyze:
36
+
37
+ - **Content Type**: Technical specs, user stories, architecture, requirements, etc.
38
+ - **Complexity Level**: Simple, moderate, or complex content
39
+ - **Stakeholder Needs**: Who will use this information
40
+ - **Risk Level**: High-impact decisions vs routine items
41
+ - **Creative Potential**: Opportunities for innovation or alternatives
42
+
43
+ **Method Selection Strategy**:
44
+
45
+ 1. **Always Include Core Methods** (choose 3-4):
46
+ - Expand or Contract for Audience
47
+ - Critique and Refine
48
+ - Identify Potential Risks
49
+ - Assess Alignment with Goals
50
+
51
+ 2. **Context-Specific Methods** (choose 4-5):
52
+ - **Technical Content**: Tree of Thoughts, ReWOO, Meta-Prompting
53
+ - **User-Facing Content**: Agile Team Perspective, Stakeholder Roundtable
54
+ - **Creative Content**: Innovation Tournament, Escape Room Challenge
55
+ - **Strategic Content**: Red Team vs Blue Team, Hindsight Reflection
56
+
57
+ 3. **Always Include**: "Proceed / No Further Actions" as option 9
58
+
59
+ ### 2. Section Context and Review
60
+
61
+ When invoked after outputting a section:
62
+
63
+ 1. **Provide Context Summary**: Give a brief 1-2 sentence summary of what the user should look for in the section just presented
64
+
65
+ 2. **Explain Visual Elements**: If the section contains diagrams, explain them briefly before offering elicitation options
66
+
67
+ 3. **Clarify Scope Options**: If the section contains multiple distinct items, inform the user they can apply elicitation actions to:
68
+ - The entire section as a whole
69
+ - Individual items within the section (specify which item when selecting an action)
70
+
71
+ ### 3. Present Elicitation Options
72
+
73
+ **Review Request Process:**
74
+
75
+ - Ask the user to review the drafted section
76
+ - In the SAME message, inform them they can suggest direct changes OR select an elicitation method
77
+ - Present 9 intelligently selected methods (0-8) plus "Proceed" (9)
78
+ - Keep descriptions short - just the method name
79
+ - Await simple numeric selection
80
+
81
+ **Action List Presentation Format:**
82
+
83
+ ```text
84
+ **Advanced Elicitation Options**
85
+ Choose a number (0-8) or 9 to proceed:
86
+
87
+ 0. [Method Name]
88
+ 1. [Method Name]
89
+ 2. [Method Name]
90
+ 3. [Method Name]
91
+ 4. [Method Name]
92
+ 5. [Method Name]
93
+ 6. [Method Name]
94
+ 7. [Method Name]
95
+ 8. [Method Name]
96
+ 9. Proceed / No Further Actions
97
+ ```
98
+
99
+ **Response Handling:**
100
+
101
+ - **Numbers 0-8**: Execute the selected method, then re-offer the choice
102
+ - **Number 9**: Proceed to next section or continue conversation
103
+ - **Direct Feedback**: Apply user's suggested changes and continue
104
+
105
+ ### 4. Method Execution Framework
106
+
107
+ **Execution Process:**
108
+
109
+ 1. **Retrieve Method**: Access the specific elicitation method from the elicitation-methods data file
110
+ 2. **Apply Context**: Execute the method from your current role's perspective
111
+ 3. **Provide Results**: Deliver insights, critiques, or alternatives relevant to the content
112
+ 4. **Re-offer Choice**: Present the same 9 options again until user selects 9 or gives direct feedback
113
+
114
+ **Execution Guidelines:**
115
+
116
+ - **Be Concise**: Focus on actionable insights, not lengthy explanations
117
+ - **Stay Relevant**: Tie all elicitation back to the specific content being analyzed
118
+ - **Identify Personas**: For multi-persona methods, clearly identify which viewpoint is speaking
119
+ - **Maintain Flow**: Keep the process moving efficiently
@@ -0,0 +1,44 @@
1
+ <!-- BMAD-style verification tailored for Dev; pairs with QA Gate -->
2
+
3
+ # Dev Task: Check if Story is Implemented
4
+
5
+ Assess whether code and tests satisfy a Jira story's acceptance criteria and quality bar.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - urlOrId: 'ENG-123' | 'https://your.atlassian.net/browse/ENG-123'
12
+ optional:
13
+ - story_path: '{devStoryLocation}/{epic}.{story}.*.md'
14
+ ```
15
+
16
+ ## Process (Sequential)
17
+
18
+ 1. Read Issue and AC
19
+ - Fetch from Jira; restate AC in Given/When/Then
20
+ 2. Locate Implementation
21
+ - Search branches/commits/tags by issue key
22
+ - Identify feature flags, migrations, config toggles
23
+ 3. Compare AC vs Code/Tests
24
+ - Verify positive, negative, and boundary behavior
25
+ - Confirm error handling and logging
26
+ 4. Run Tests
27
+ - Unit first, then integration/E2E as relevant
28
+ - Add missing unit tests if low-risk and straightforward
29
+ 5. Non-Functional Pass
30
+ - Check basics of performance, a11y, i18n, and security (as applicable)
31
+ 6. Findings and Next Actions
32
+ - Provide PASS/CONCERNS/FAIL with specific gaps and minimal-change fixes
33
+
34
+ ## Outputs
35
+
36
+ - Short report with verdict and evidence
37
+ - Optional story note in `Dev Agent Record` with findings and follow-ups
38
+
39
+ ## Checklist
40
+
41
+ - [ ] AC → Test traceability captured
42
+ - [ ] Edge and error handling verified
43
+ - [ ] No secrets in logs; logging level appropriate
44
+ - [ ] Docs or story record updated as needed
@@ -0,0 +1,40 @@
1
+ <!-- BMAD-style architecture review via GitHub context -->
2
+
3
+ # Architect Task: Code Architecture Review (GitHub)
4
+
5
+ Assess architecture concerns using GitHub code search, discussions, and historical patterns; recommend targeted refactors with minimal disruption.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - target_areas: ['path/to/module', 'path/to/service']
12
+ optional:
13
+ - concerns: ['coupling', 'performance', 'testability']
14
+ - related_issues: []
15
+ ```
16
+
17
+ ## Process (Sequential)
18
+
19
+ 1. Define Scope
20
+ - Clarify specific concerns (e.g., coupling, boundaries, layering)
21
+ - Identify modules/services in scope
22
+ 2. Evidence Gathering
23
+ - Use GitHub search to find usages, cycles, divergence from conventions
24
+ - Review PR history and discussions for context and constraints
25
+ 3. Analysis
26
+ - Evaluate layering, dependency direction, and module boundaries
27
+ - Identify anti-patterns (God objects, feature envy, excessive mocks)
28
+ - Note performance and resilience hotspots
29
+ 4. Recommendations
30
+ - Propose small, incremental refactors aligned with current patterns
31
+ - Include risks, alternatives, and expected impact
32
+ 5. Next Steps
33
+ - Link recommended changes to stories/PRs
34
+ - Suggest test adjustments to lock behavior
35
+
36
+ ## Outputs
37
+
38
+ - Short review document with: scope, findings, recommendations
39
+ - Links to code locations and prior PRs/issues for context
40
+ - Optional: ADR or doc snippet to `docs/architecture` if decisions are made
@@ -0,0 +1,55 @@
1
+ <!-- Architect produce architecture documentation based on core-config, with sharded/monolithic output -->
2
+
3
+ # Architect Task: Create Architecture Doc
4
+
5
+ Produce or update the architecture documentation following core/core-config.yaml settings. Supports monolithic docs/architecture.md or sharded docs/architecture/*.md.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required: []
11
+ optional:
12
+ - forceSharded: null # true|false|null; null = follow config
13
+ - savePrompt: true # always ask to write files
14
+ ```
15
+
16
+ ## Process (Sequential)
17
+
18
+ 1. Read Configuration
19
+ - core-config.yaml → architecture.architectureSharded, architectureFile, architectureShardedLocation
20
+ 2. Discover Context
21
+ - Source tree, tech stack, coding standards (see devLoadAlwaysFiles), ADRs if present
22
+ 3. Draft Structure
23
+ - If monolithic: sections = Overview, Context, Architecture Diagrams, Modules, Data, Integrations, Quality Attributes, Decisions (ADRs), Risks
24
+ - If sharded: create/update files under docs/architecture/: tech-stack.md, source-tree.md, coding-standards.md, decisions.md, overview.md, integrations.md, data.md
25
+ 4. Preview
26
+ - Present outline and key sections to confirm
27
+ 5. Save Files
28
+ - Write docs/architecture.md (monolithic) or update/create sharded files under docs/architecture
29
+
30
+ ## Outputs
31
+
32
+ - Updated architecture documentation according to config
33
+
34
+ ### Output (Structured)
35
+
36
+ ```yaml
37
+ architecture:
38
+ mode: monolithic|sharded
39
+ files:
40
+ - docs/architecture.md
41
+ - docs/architecture/overview.md
42
+ - docs/architecture/tech-stack.md
43
+ - docs/architecture/source-tree.md
44
+ - docs/architecture/coding-standards.md
45
+ - docs/architecture/integrations.md
46
+ - docs/architecture/data.md
47
+ - docs/architecture/decisions.md
48
+ ```
49
+
50
+ ## Quality Checklist
51
+
52
+ - [ ] Architecture reflects the current code reality (brownfield first)
53
+ - [ ] Key quality attributes and risks are documented
54
+ - [ ] Diagrams or references included where helpful
55
+ - [ ] ADRs or decisions are logged
@@ -0,0 +1,70 @@
1
+ <!-- BMAD-style PO epic creation with Jira fallback and save-to-docs option -->
2
+
3
+ # PO Task: Create Jira Epic from Confluence Doc
4
+
5
+ Create a Jira Epic from a Confluence page, preview before creation, and optionally save a local markdown copy under docs/epics with cross-links.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - confluenceUrl: 'https://your.atlassian.net/wiki/spaces/PROJ/pages/12345'
12
+ optional:
13
+ - projectKey: 'ENG'
14
+ - labels: []
15
+ - components: []
16
+ - summaryOverride: ''
17
+ - savePrompt: true # Always ask to save docs; if headless, treat as true
18
+ ```
19
+
20
+ ## Process (Sequential)
21
+
22
+ 1. Parse Source Document
23
+ - Extract purpose, problem/opportunity, scope, constraints, explicit exclusions.
24
+ - Identify initial success metrics and high-level acceptance themes.
25
+ 2. Draft Epic
26
+ - Title: concise, outcome-focused; use summaryOverride if provided.
27
+ - Description sections: Context, Goals/Non-Goals, Scope/Out-of-Scope, Constraints, Initial Risks, Success Metrics.
28
+ - Metadata: projectKey, labels, components.
29
+ 3. Preview and Confirm
30
+ - Present the epic draft to the user for confirmation or edits.
31
+ 4. Create in Jira (if available)
32
+ - If an Atlassian MCP tool supports write, create the epic in Jira and capture key and URL.
33
+ - If write is not available, DO NOT fail: return the full epic content as output for manual creation.
34
+ 5. Offer to Save Locally (docs/epics)
35
+ - Ask: “Save a local copy under docs/epics and cross-link later stories to this epic?”
36
+ - If yes, write docs/epics/epic-{key-or-slug}.md with frontmatter and content.
37
+ 6. Cross-link Guidance
38
+ - Provide snippet to link from stories to this epic: “Epic: [ENG-123](https://…/browse/ENG-123)” or local file link if no Jira key.
39
+
40
+ ## Output
41
+
42
+ - Jira Epic created (key and URL), or a complete epic markdown for manual creation
43
+ - Optional local file saved under docs/epics/epic-{key-or-slug}.md
44
+ - Link snippet for downstream stories
45
+
46
+ ### Output (Structured)
47
+
48
+ ```yaml
49
+ epic:
50
+ summary: "<title>"
51
+ description: |
52
+ <markdown body>
53
+ jira:
54
+ created: true|false
55
+ key: ENG-123 | null
56
+ url: https://your.atlassian.net/browse/ENG-123 | null
57
+ files:
58
+ saved: true|false
59
+ path: docs/epics/epic-eng-123.md | docs/epics/epic-new-foo.md | null
60
+ linkSnippet: |
61
+ Epic: [ENG-123](https://your.atlassian.net/browse/ENG-123)
62
+ ```
63
+
64
+ ## Quality Checklist
65
+
66
+ - [ ] Clear goal(s) and success metrics
67
+ - [ ] Scope and explicit out-of-scope listed
68
+ - [ ] Constraints/risks captured
69
+ - [ ] Labels/components added if used
70
+ - [ ] Preview validated with stakeholders
@@ -0,0 +1,39 @@
1
+ <!-- BMAD-style PO story creation from Confluence -->
2
+
3
+ # PO Task: Create Jira Story from Confluence Doc
4
+
5
+ Turn a Confluence document into a well-formed Jira story with clear AC.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - confluenceUrl: 'https://your.atlassian.net/wiki/spaces/PROJ/pages/12345'
12
+ optional:
13
+ - labels: []
14
+ - components: []
15
+ - projectKey: 'ENG'
16
+ - epicKey: ''
17
+ - savePrompt: true # Offer to save to docs/stories
18
+ ```
19
+
20
+ ## Process (Sequential)
21
+
22
+ 1. Parse the Document
23
+ - Extract objective, scope, constraints, and key decisions
24
+ 2. Draft Story and AC
25
+ - Use GWT; include happy, negative, and boundary cases
26
+ 3. Link Context
27
+ - Source Confluence page and related docs
28
+ 4. Metadata
29
+ - Labels, components, priority, estimate (if used)
30
+ 5. Review and Create
31
+ - Share with PM/Dev/QA; then create in correct backlog
32
+ - If Jira write is not available, DO NOT fail: return full story markdown for manual creation
33
+ 6. Offer to Save Locally (docs/stories)
34
+ - Ask to save as docs/stories/story-{key-or-slug}.md with cross-links (epic if provided)
35
+
36
+ ## Outputs
37
+
38
+ - Jira story created with description, AC, links, and metadata; or full markdown for manual creation
39
+ - Optional local file saved under docs/stories/story-{key-or-slug}.md
@@ -0,0 +1,39 @@
1
+ <!-- BMAD-style PO story creation from freeform text -->
2
+
3
+ # PO Task: Create Jira Story from Text
4
+
5
+ Convert a user-provided description into a Jira story with testable AC.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - text: 'Freeform description of the need or change'
12
+ optional:
13
+ - labels: []
14
+ - components: []
15
+ - projectKey: 'ENG'
16
+ - epicKey: ''
17
+ - savePrompt: true
18
+ ```
19
+
20
+ ## Process (Sequential)
21
+
22
+ 1. Structure the Input
23
+ - Extract objective, constraints, measurable outcomes
24
+ 2. Draft AC in GWT
25
+ - Include happy, negative, and boundary cases where relevant
26
+ 3. Add Metadata
27
+ - Labels, components, estimate, and dependencies
28
+ 4. Create Story
29
+ - In the correct project and backlog
30
+ - If Jira write is not available, return a full story markdown for manual creation
31
+ 5. Share and Iterate
32
+ - Triage/refine with PM/Dev/QA as needed
33
+ 6. Offer to Save Locally (docs/stories)
34
+ - Ask to save as docs/stories/story-{key-or-slug}.md with cross-links (epic if provided)
35
+
36
+ ## Outputs
37
+
38
+ - Jira story created or a full markdown for manual creation
39
+ - Optional local file saved under docs/stories/story-{key-or-slug}.md
@@ -0,0 +1,35 @@
1
+ # create-next-story
2
+
3
+ ```yaml
4
+ id: create-next-story
5
+ role: pm
6
+ whenToUse: Need to produce the next ready story from roadmap / epic context.
7
+ elicit: true
8
+ outcome: Draft story with acceptance criteria and initial sizing.
9
+ ```
10
+
11
+ ## Objective
12
+ Generate the next logical story derived from a roadmap item, epic, or product goal.
13
+
14
+ ## Preconditions
15
+ - Provide epic reference, goal statement, or backlog context.
16
+
17
+ ## Steps
18
+ 1. Ask for: Epic/Goal, Target user persona, Desired outcome, Constraints.
19
+ 2. Derive a succinct story statement: As a <user> I want <capability> so that <benefit>.
20
+ 3. Draft initial Acceptance Criteria in Given/When/Then format (numbered).
21
+ 4. Identify dependencies, assumptions, risks.
22
+ 5. Propose thin-slice alternatives if scope too large.
23
+ 6. Provide sizing guidance (e.g., S/M/L or T-shirt) and rationale.
24
+ 7. Ask user to confirm or request refinement.
25
+
26
+ ## Outputs
27
+ - Story draft:
28
+ - Story statement
29
+ - Acceptance Criteria (GWT)
30
+ - Dependencies / Risks / Assumptions
31
+ - Suggested Size
32
+
33
+ ## Guidance
34
+ - Keep AC testable and outcome-focused, not implementation-focused.
35
+ - Offer at least one smaller alternative if story seems large.
@@ -0,0 +1,54 @@
1
+ <!-- PM/PO create a Product Requirements Document based on core-config prd settings -->
2
+
3
+ # PM Task: Create PRD Document
4
+
5
+ Create or update a Product Requirements Document (PRD) for the project following core/core-config.yaml prd settings. Supports monolithic docs/prd.md or sharded docs/prd/*.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required: []
11
+ optional:
12
+ - forceSharded: null # true|false|null; null = follow config
13
+ - savePrompt: true
14
+ ```
15
+
16
+ ## Process (Sequential)
17
+
18
+ 1. Read Configuration
19
+ - prd.prdSharded, prdFile, prdShardedLocation from core-config.yaml
20
+ 2. Gather Inputs
21
+ - Vision, Personas, Use cases, High-level features/Epics, Non-functional requirements, Constraints
22
+ 3. Draft Content
23
+ - If monolithic: docs/prd.md using core/templates/prd-tmpl.yaml as structure guidance
24
+ - If sharded: create/update files under docs/prd/: vision.md, personas.md, use-cases.md, epics.md, nfr.md, constraints.md
25
+ 4. Preview
26
+ - Present the outline and key sections for confirmation
27
+ 5. Save Files
28
+ - Write to target locations per config
29
+
30
+ ## Outputs
31
+
32
+ - PRD documentation created or updated in the repository
33
+
34
+ ### Output (Structured)
35
+
36
+ ```yaml
37
+ prd:
38
+ mode: monolithic|sharded
39
+ files:
40
+ - docs/prd.md
41
+ - docs/prd/vision.md
42
+ - docs/prd/personas.md
43
+ - docs/prd/use-cases.md
44
+ - docs/prd/epics.md
45
+ - docs/prd/nfr.md
46
+ - docs/prd/constraints.md
47
+ ```
48
+
49
+ ## Quality Checklist
50
+
51
+ - [ ] Clear problem statement and goals
52
+ - [ ] Personas and use cases documented
53
+ - [ ] NFRs explicit and testable
54
+ - [ ] Constraints and dependencies listed
@@ -0,0 +1,66 @@
1
+ <!-- Create multiple stories from an epic (Jira or local), with Jira fallback and save-to-docs prompts -->
2
+
3
+ # PO Task: Create Stories from Epic
4
+
5
+ Generate a set of user stories from an epic (Jira epic key/URL or local epic markdown), and optionally save stories under docs/stories with cross-links. Create in Jira when possible; otherwise return ready-to-paste story markdown.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - epicRef: 'ENG-100' | 'https://your.atlassian.net/browse/ENG-100' | 'docs/epics/epic-foo.md'
12
+ optional:
13
+ - projectKey: 'ENG'
14
+ - defaultLabels: []
15
+ - components: []
16
+ - howMany: auto | 3
17
+ - savePrompt: true
18
+ ```
19
+
20
+ ## Process (Sequential)
21
+
22
+ 1. Resolve Epic
23
+ - If Jira URL/key: fetch epic summary/description via Atlassian MCP (read-only is sufficient)
24
+ - If local file: parse sections (Goals, Scope, Constraints, Risks)
25
+ 2. Story Breakdown
26
+ - Derive capabilities and group into coherent stories
27
+ - For each story: one-sentence objective, rationale, dependencies
28
+ 3. Author Acceptance Criteria
29
+ - Use Given/When/Then with happy, negative, and boundary cases where applicable
30
+ 4. Preview and Edit
31
+ - Present the list and allow edits (rename, merge/split, re-order)
32
+ 5. Create in Jira (if available)
33
+ - If write tools exist, create stories under the epic (issue link) and capture keys/URLs
34
+ - If not, produce full story markdown for manual creation
35
+ 6. Offer to Save Locally
36
+ - Ask to save each story under devStoryLocation (core-config: docs/stories) as story-{key-or-slug}.md
37
+ - Insert cross-links: Epic link, related stories, and future tasks area
38
+
39
+ ## Outputs
40
+
41
+ - A set of stories created in Jira or returned as markdown
42
+ - Optional files saved under docs/stories/story-*.md with cross-links to the epic
43
+
44
+ ### Output (Structured)
45
+
46
+ ```yaml
47
+ stories:
48
+ - summary: "<title>"
49
+ ac: ["Given … When … Then …", "…"]
50
+ jira:
51
+ created: true|false
52
+ key: ENG-101 | null
53
+ url: https://your.atlassian.net/browse/ENG-101 | null
54
+ files:
55
+ saved: true|false
56
+ path: docs/stories/story-eng-101.md | docs/stories/story-add-login.md | null
57
+ links:
58
+ epic: "ENG-100" | "docs/epics/epic-foo.md"
59
+ ```
60
+
61
+ ## Quality Checklist
62
+
63
+ - [ ] Each story is independently valuable, testable, and small enough
64
+ - [ ] AC include happy, negative, and boundary cases when relevant
65
+ - [ ] Stories link back to the epic and each other where appropriate
66
+ - [ ] Labels/components applied consistently
@@ -0,0 +1,60 @@
1
+ <!-- Create implementation tasks from a story, with Jira fallback and save-to-docs prompts -->
2
+
3
+ # PO Task: Create Tasks for a Story
4
+
5
+ Create a set of implementable tasks for a given story (Jira or text), with optional local save under docs/tasks and cross-linking to the story and epic.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - storyRef: 'ENG-123' | 'https://your.atlassian.net/browse/ENG-123' | inline-text
12
+ optional:
13
+ - defaultAssignee: ''
14
+ - components: []
15
+ - taskTypes: ['dev', 'qa', 'docs']
16
+ - savePrompt: true
17
+ ```
18
+
19
+ ## Process (Sequential)
20
+
21
+ 1. Resolve Story
22
+ - If Jira: fetch summary, description, AC; if local: parse story file sections
23
+ 2. Derive Tasks
24
+ - Break down into dev, qa, and docs tasks; ensure each is small, testable, and has a clear DoD
25
+ 3. Preview and Edit
26
+ - Present tasks, allow edits: add/remove, re-order, assign types/owners
27
+ 4. Create in Jira (if available)
28
+ - Create sub-tasks or linked tasks; capture keys/URLs; otherwise return markdown
29
+ 5. Offer to Save Locally
30
+ - Save docs/tasks/task-{key-or-slug}.md for each task with links to story and epic
31
+
32
+ ## Outputs
33
+
34
+ - Tasks created in Jira or returned as markdown
35
+ - Optional files saved under docs/tasks with cross-links to the story
36
+
37
+ ### Output (Structured)
38
+
39
+ ```yaml
40
+ tasks:
41
+ - summary: "Implement API endpoint"
42
+ type: dev | qa | docs
43
+ jira:
44
+ created: true|false
45
+ key: ENG-124 | null
46
+ url: https://your.atlassian.net/browse/ENG-124 | null
47
+ files:
48
+ saved: true|false
49
+ path: docs/tasks/task-eng-124.md | docs/tasks/task-implement-endpoint.md | null
50
+ links:
51
+ story: "ENG-123" | "docs/stories/story-add-login.md"
52
+ epic: "ENG-100" | null
53
+ ```
54
+
55
+ ## Quality Checklist
56
+
57
+ - [ ] Tasks are small, clear, and testable
58
+ - [ ] Each task has an explicit Definition of Done
59
+ - [ ] Tasks link to the story (and epic if applicable)
60
+ - [ ] Task types cover dev, qa, and docs as needed