@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.
- package/LICENSE.md +26 -0
- package/README.md +300 -0
- package/core/agent-teams/team-all.yaml +24 -0
- package/core/agent-teams/team-company.yaml +17 -0
- package/core/agent-teams/team-enterprise.yaml +17 -0
- package/core/agent-teams/team-fullstack.yaml +16 -0
- package/core/agent-teams/team-ide-minimal.yaml +10 -0
- package/core/agents/aigile-master.md +476 -0
- package/core/agents/aigile-orchestrator.agent.md +200 -0
- package/core/agents/analyst.md +45 -0
- package/core/agents/architect.md +43 -0
- package/core/agents/code-tour.agent.md +208 -0
- package/core/agents/dev.agent.md +145 -0
- package/core/agents/dev.md +130 -0
- package/core/agents/expert-react-frontend-engineer.agent.md +741 -0
- package/core/agents/pm.md +33 -0
- package/core/agents/po.md +35 -0
- package/core/agents/qa.md +38 -0
- package/core/agents/sm.md +31 -0
- package/core/agents/ui-expert.md +39 -0
- package/core/agents/ux-expert.md +31 -0
- package/core/checklists/architect-checklist.md +246 -0
- package/core/checklists/change-checklist.md +182 -0
- package/core/checklists/pm-checklist.md +286 -0
- package/core/checklists/po-master-checklist.md +291 -0
- package/core/checklists/story-dod-checklist.md +94 -0
- package/core/checklists/story-draft-checklist.md +153 -0
- package/core/core-config.yaml +22 -0
- package/core/data/aigile-kb.md +112 -0
- package/core/data/brainstorming-techniques.md +73 -0
- package/core/data/elicitation-methods.md +42 -0
- package/core/data/technical-preferences.md +52 -0
- package/core/data/test-levels-framework.md +43 -0
- package/core/data/test-priorities-matrix.md +26 -0
- package/core/instructions/csharp.instructions.md +656 -0
- package/core/instructions/dotnet/csharp.instructions.md +656 -0
- package/core/instructions/java/java.instructions.md +67 -0
- package/core/instructions/java/spring-boot.instructions.md +122 -0
- package/core/instructions/java.instructions.md +67 -0
- package/core/instructions/spring-boot.instructions.md +122 -0
- package/core/prompts/README.md +11 -0
- package/core/prompts/architecture/architecture-blueprint-generator.prompt.md +322 -0
- package/core/prompts/architecture/architecture-validation.prompt.md +71 -0
- package/core/prompts/architecture/file-tree-generator.prompt.md +405 -0
- package/core/prompts/architecture/technical-project-analyze.prompt.md +43 -0
- package/core/prompts/architecture-blueprint-generator.prompt.md +322 -0
- package/core/prompts/architecture-validation.prompt.md +71 -0
- package/core/prompts/code-review.prompt.md +107 -0
- package/core/prompts/confluence-in-md.prompt.md +167 -0
- package/core/prompts/copilot-instructions-blueprint-generator.prompt.md +294 -0
- package/core/prompts/create-implementation-plan.prompt.md +157 -0
- package/core/prompts/create-oo-component-documentation.prompt.md +193 -0
- package/core/prompts/file-tree-generator.prompt.md +405 -0
- package/core/prompts/generate-unit-tests.prompt.md +291 -0
- package/core/prompts/java/java-doc.prompt.md +24 -0
- package/core/prompts/java/java-junit.prompt.md +64 -0
- package/core/prompts/java/junit-5.prompt.md +64 -0
- package/core/prompts/java-doc.prompt.md +24 -0
- package/core/prompts/java-junit.prompt.md +64 -0
- package/core/prompts/junit-5.prompt.md +64 -0
- package/core/prompts/release-notes/README.md +11 -0
- package/core/prompts/release-notes/release-notes.prompt.md +723 -0
- package/core/prompts/release-notes.prompt.md +723 -0
- package/core/prompts/technical-project-analyze.prompt.md +43 -0
- package/core/tasks/advanced-elicitation.md +119 -0
- package/core/tasks/check-story-implemented.md +44 -0
- package/core/tasks/code-arch-review-with-github.md +40 -0
- package/core/tasks/create-architecture-doc.md +55 -0
- package/core/tasks/create-jira-epic-from-confluence.md +70 -0
- package/core/tasks/create-jira-story-from-confluence.md +39 -0
- package/core/tasks/create-jira-story-from-text.md +39 -0
- package/core/tasks/create-next-story.md +35 -0
- package/core/tasks/create-prd-doc.md +54 -0
- package/core/tasks/create-stories-from-epic.md +66 -0
- package/core/tasks/create-tasks-for-story.md +60 -0
- package/core/tasks/document-project.md +69 -0
- package/core/tasks/execute-checklist.md +37 -0
- package/core/tasks/explain-story-from-jira.md +44 -0
- package/core/tasks/facilitate-brainstorming-session.md +69 -0
- package/core/tasks/figma-audit-design-system.md +20 -0
- package/core/tasks/front-end-spec-from-design.md +33 -0
- package/core/tasks/gate.md +64 -0
- package/core/tasks/groom-jira-story.md +52 -0
- package/core/tasks/help.md +27 -0
- package/core/tasks/implement-freeform-work-item.md +30 -0
- package/core/tasks/implement-story-from-jira.md +63 -0
- package/core/tasks/implement-unit-tests.md +45 -0
- package/core/tasks/market-research-from-context7.md +37 -0
- package/core/tasks/review-story.md +30 -0
- package/core/tasks/sonarqube-hotspot-review.md +39 -0
- package/core/tasks/standup-digest.md +21 -0
- package/core/tasks/sync-jira-backlog.md +32 -0
- package/core/tasks/test-design.md +68 -0
- package/core/tasks/validate-next-story.md +37 -0
- package/core/tasks/verify-jira-story-e2e.md +45 -0
- package/core/templates/architecture-tmpl.yaml +651 -0
- package/core/templates/brainstorming-output-tmpl.yaml +156 -0
- package/core/templates/brownfield-architecture-tmpl.yaml +477 -0
- package/core/templates/brownfield-prd-tmpl.yaml +281 -0
- package/core/templates/front-end-architecture-tmpl.yaml +219 -0
- package/core/templates/front-end-spec-tmpl.yaml +350 -0
- package/core/templates/fullstack-architecture-tmpl.yaml +824 -0
- package/core/templates/market-research-tmpl.yaml +253 -0
- package/core/templates/prd-tmpl.yaml +203 -0
- package/core/templates/project-brief-tmpl.yaml +222 -0
- package/core/templates/qa-gate-tmpl.yaml +103 -0
- package/core/templates/story-tmpl.yaml +138 -0
- package/core/workflows/brownfield-fullstack.yaml +298 -0
- package/core/workflows/brownfield-service.yaml +188 -0
- package/core/workflows/brownfield-ui.yaml +198 -0
- package/core/workflows/greenfield-fullstack.yaml +241 -0
- package/core/workflows/greenfield-service.yaml +207 -0
- package/core/workflows/greenfield-ui.yaml +236 -0
- package/dist/agents/aigile-master.txt +500 -0
- package/dist/agents/aigile-orchestrator.agent.txt +224 -0
- package/dist/agents/analyst.txt +69 -0
- package/dist/agents/architect.txt +67 -0
- package/dist/agents/code-tour.agent.txt +232 -0
- package/dist/agents/dev.agent.txt +169 -0
- package/dist/agents/dev.txt +154 -0
- package/dist/agents/expert-react-frontend-engineer.agent.txt +765 -0
- package/dist/agents/pm.txt +57 -0
- package/dist/agents/po.txt +59 -0
- package/dist/agents/qa.txt +62 -0
- package/dist/agents/sm.txt +55 -0
- package/dist/agents/ui-expert.txt +63 -0
- package/dist/agents/ux-expert.txt +55 -0
- package/dist/dev-agent-bundle.txt +154 -0
- package/dist/teams/team-company.txt +10789 -0
- package/docs/mcp-servers.md +102 -0
- package/docs/orchestrator-guide.md +526 -0
- package/mcp/servers.json +108 -0
- package/mcp/servers.yaml +124 -0
- package/package.json +72 -0
- package/tools/cli.js +1864 -0
- package/tools/installer/README.md +24 -0
- package/tools/installer/lib/ide-setup.js +295 -0
- package/tools/installer/lib/installer.js +131 -0
- package/tools/md-assets/web-agent-startup-instructions.md +21 -0
- package/tools/postinstall.js +72 -0
- package/tools/shared/bannerArt.js +68 -0
- package/tools/validate-bundles.js +54 -0
- package/tools/verify-publish-registry.js +34 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!-- Inspired by BMAD™ Document Project; scoped to AIgile core-config -->
|
|
2
|
+
|
|
3
|
+
# Architect Task: Document Project (Brownfield Reality)
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Create a concise, practical architecture document that reflects the system as it actually exists. Focus on the parts relevant to upcoming work; reference files instead of duplicating content. Optimize for AI and human contributors to quickly orient and make safe changes.
|
|
8
|
+
|
|
9
|
+
## Inputs
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
config:
|
|
13
|
+
architectureFile: docs/architecture.md
|
|
14
|
+
architectureSharded: true
|
|
15
|
+
architectureShardedLocation: docs/architecture
|
|
16
|
+
devStoryLocation: docs/stories
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Preconditions
|
|
20
|
+
|
|
21
|
+
- Check if a PRD or specific enhancement goal exists; if yes, scope docs to impacted areas
|
|
22
|
+
- Confirm repository build/readme exists; note missing pieces as “gaps”
|
|
23
|
+
|
|
24
|
+
## Process (Sequential)
|
|
25
|
+
|
|
26
|
+
1. Scope the Work
|
|
27
|
+
- If PRD/enhancement exists, list modules likely impacted and limit depth to those
|
|
28
|
+
- If no scope, cover the essentials: tech stack, structure, key modules, constraints
|
|
29
|
+
2. Discover the Reality
|
|
30
|
+
- Identify entry points, configuration, and environment setup
|
|
31
|
+
- Map repository structure and naming conventions actually used
|
|
32
|
+
- Note workarounds/legacy areas that cannot change
|
|
33
|
+
3. Capture Core Architecture
|
|
34
|
+
- Tech Stack summary (runtime, frameworks, DB, queues)
|
|
35
|
+
- Project structure overview with notable deviations from standards
|
|
36
|
+
- Key modules and responsibilities (with file paths)
|
|
37
|
+
- Integration points (internal and external) with locations
|
|
38
|
+
4. Constraints and Debt
|
|
39
|
+
- Document technical debt, “gotchas,” and non-negotiable constraints
|
|
40
|
+
- Link to ADRs if present; otherwise, add inline rationale bullets
|
|
41
|
+
5. Testing & Operations
|
|
42
|
+
- Testing strategy status (unit/integration/e2e; coverage reality)
|
|
43
|
+
- Build and deployment process as it actually works today
|
|
44
|
+
6. Deliverable
|
|
45
|
+
- Create or update `docs/architecture.md` or sharded files under `docs/architecture/`
|
|
46
|
+
- Keep sections short; link to source files and configs
|
|
47
|
+
|
|
48
|
+
## Suggested Sections (Sharded)
|
|
49
|
+
|
|
50
|
+
- tech-stack.md
|
|
51
|
+
- unified-project-structure.md (aka source-tree.md)
|
|
52
|
+
- coding-standards.md
|
|
53
|
+
- backend-architecture.md / frontend-architecture.md (if applicable)
|
|
54
|
+
- data-models.md / database-schema.md
|
|
55
|
+
- rest-api-spec.md / external-apis.md
|
|
56
|
+
- testing-strategy.md
|
|
57
|
+
|
|
58
|
+
## Outputs
|
|
59
|
+
|
|
60
|
+
- Updated architecture reference under `docs/architecture` aligned to the current codebase
|
|
61
|
+
- Clear notes on constraints, debt, and risky areas
|
|
62
|
+
- Links to key files and modules for rapid navigation
|
|
63
|
+
|
|
64
|
+
## Done Criteria
|
|
65
|
+
|
|
66
|
+
- Architecture docs reflect the current state, not the ideal
|
|
67
|
+
- Sections are navigable and reference real file paths
|
|
68
|
+
- If a PRD exists, impacted areas are highlighted
|
|
69
|
+
- Testing and operations sections state what actually works today
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# execute-checklist
|
|
2
|
+
|
|
3
|
+
```yaml
|
|
4
|
+
id: execute-checklist
|
|
5
|
+
role: dev
|
|
6
|
+
whenToUse: Run a defined checklist to ensure Definition of Done or role-specific quality criteria are satisfied.
|
|
7
|
+
elicit: true
|
|
8
|
+
outcome: Completed checklist with PASS/FAIL per item and remediation notes
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Objective
|
|
12
|
+
Execute a named checklist (e.g., story-dod-checklist.md) and capture gaps before marking work complete.
|
|
13
|
+
|
|
14
|
+
## Preconditions
|
|
15
|
+
- Target checklist file exists under `.aigile-core/checklists/`
|
|
16
|
+
- Work item (story/task) is in a state ready for validation
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
1. Ask user which checklist to execute (suggest defaults based on role).
|
|
20
|
+
2. Load the checklist file content (do not load other files yet).
|
|
21
|
+
3. Present each item as a numbered list and for each:
|
|
22
|
+
- Ask: PASS, FAIL, or N/A
|
|
23
|
+
- If FAIL: request remediation plan or immediate fix steps
|
|
24
|
+
4. Summarize failed items and propose concrete next actions.
|
|
25
|
+
5. If all required items PASS, produce a READY-FOR-REVIEW summary including:
|
|
26
|
+
- Scope validated
|
|
27
|
+
- Evidence (tests, docs updated)
|
|
28
|
+
- Remaining risks
|
|
29
|
+
6. Ask user to confirm closure or request further refinement.
|
|
30
|
+
|
|
31
|
+
## Outputs
|
|
32
|
+
- A structured summary (Checklist Result Table + Next Actions)
|
|
33
|
+
- Optional inline remediation plan if failures present
|
|
34
|
+
|
|
35
|
+
## Guidance
|
|
36
|
+
- Never silently assume PASS—always confirm.
|
|
37
|
+
- If checklist references artifacts (tests, docs), verify existence or ask user to provide them.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!-- BMAD-style story explanation with clear outputs -->
|
|
2
|
+
|
|
3
|
+
# Dev Task: Explain Story from Jira (by URL or ID)
|
|
4
|
+
|
|
5
|
+
Produce a crisp, testable explanation of a Jira story/task for reviewers and pair programming.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
required:
|
|
11
|
+
- urlOrId: 'ENG-456' | 'https://your.atlassian.net/browse/ENG-456'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Process (Sequential)
|
|
15
|
+
|
|
16
|
+
1. Read the Issue Thoroughly
|
|
17
|
+
- Title, description, AC, subtasks, links
|
|
18
|
+
2. Clarify Objective and Constraints
|
|
19
|
+
- Objective in one sentence; list constraints and assumptions
|
|
20
|
+
3. Translate AC → GWT Scenarios
|
|
21
|
+
- Include at least one negative and one boundary case
|
|
22
|
+
4. Outline Implementation
|
|
23
|
+
- Files/modules/data model changes; feature flags/configs
|
|
24
|
+
5. Test Approach
|
|
25
|
+
- Levels (unit/integration/e2e), fixtures, mocks; focus on critical logic
|
|
26
|
+
6. Risks and Open Questions
|
|
27
|
+
- Identify unknowns; propose mitigations and follow-ups
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
- One-page brief including: objective, constraints, GWT scenarios, implementation outline, test approach, and open questions
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
- ENG-321 Add rate limiting to API endpoint
|
|
36
|
+
- Objective: protect backend from bursts without breaking normal usage
|
|
37
|
+
- GWT: Given N requests/sec ... When threshold exceeded ... Then 429 with Retry-After
|
|
38
|
+
- Impl: middleware; shared limiter; config thresholds; logs; metrics
|
|
39
|
+
- Tests: normal flow; throttled flow; headers present; burst with jitter; reset window
|
|
40
|
+
|
|
41
|
+
## Done Criteria
|
|
42
|
+
|
|
43
|
+
- Self-contained, test-focused, under ~1 page
|
|
44
|
+
- Includes at least one negative-path scenario
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!-- Inspired by BMAD™ Core style; adapted for AIgile Core Config -->
|
|
2
|
+
|
|
3
|
+
# Analyst Task: Facilitate Brainstorming Session
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Lead an interactive ideation session to generate many options, synthesize themes, and select promising directions. Prioritize facilitation over idea provision—unlock the team's creativity and capture outcomes in a structured document for later decisions.
|
|
8
|
+
|
|
9
|
+
## Inputs
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
optional:
|
|
13
|
+
topic: "What are we brainstorming about?" # default: ask user
|
|
14
|
+
constraints: ["time", "budget", "compliance"] # default: ask user
|
|
15
|
+
output_document: true # if true, save to docs/brainstorming-session-results.md
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Prerequisites
|
|
19
|
+
|
|
20
|
+
- Confirm session timebox (e.g., 45–60 minutes)
|
|
21
|
+
- Confirm participants and roles (facilitator, note-taker if any)
|
|
22
|
+
- Load techniques list if available in project data (e.g., crazy 8s, SCAMPER, six thinking hats)
|
|
23
|
+
|
|
24
|
+
## Process (Sequential)
|
|
25
|
+
|
|
26
|
+
1. Session Setup (5 min)
|
|
27
|
+
- Clarify topic and success criteria (what “good” looks like today)
|
|
28
|
+
- Confirm constraints: scope, domain, compliance, tech boundaries
|
|
29
|
+
- Choose a technique path: user-selected, facilitator-recommended, random, or progressive flow
|
|
30
|
+
2. Warm-up (3–5 min)
|
|
31
|
+
- Light prompt to reduce blank-page effect (e.g., “List 5 wild ideas fast”)
|
|
32
|
+
3. Divergent Generation (15–25 min)
|
|
33
|
+
- Run one technique at a time; timebox each round
|
|
34
|
+
- Keep energy high; defer judgment; encourage quantity over quality
|
|
35
|
+
- Prompt for variations, opposites, combinations
|
|
36
|
+
4. Convergent Synthesis (10–15 min)
|
|
37
|
+
- Cluster ideas into themes; label groups
|
|
38
|
+
- Identify patterns, constraints, and dependencies
|
|
39
|
+
5. Prioritization (5–10 min)
|
|
40
|
+
- Pick 3–5 candidates for deeper exploration using a simple rubric (impact, feasibility, time)
|
|
41
|
+
6. Document Output (rolling)
|
|
42
|
+
- If output_document is true, capture ideas by technique, themes, and top picks as you go
|
|
43
|
+
|
|
44
|
+
## Outputs
|
|
45
|
+
|
|
46
|
+
- Session summary with: topic, participants, techniques used, total ideas, key themes
|
|
47
|
+
- Prioritized shortlist (3–5) with rationale
|
|
48
|
+
- Open questions and follow-ups (owners, next steps)
|
|
49
|
+
- If configured: save to `docs/brainstorming-session-results.md` (path can be adjusted in repo conventions)
|
|
50
|
+
|
|
51
|
+
## Facilitation Principles
|
|
52
|
+
|
|
53
|
+
- You are a facilitator—draw ideas out with prompts; only contribute examples to unstick flow
|
|
54
|
+
- Use one technique at a time; switch only when energy dips or goals shift
|
|
55
|
+
- Keep it engaging and timeboxed; narrate transitions explicitly
|
|
56
|
+
- Capture in participants’ own words; avoid re-writing ideas in your voice
|
|
57
|
+
|
|
58
|
+
## Advanced Prompts (pick as needed)
|
|
59
|
+
|
|
60
|
+
- Constraint flip: “If we had to do this in 1 week/$1k/with no backend, how?”
|
|
61
|
+
- Perspective shift: “How would a first-time user approach this?”
|
|
62
|
+
- Extremes: “What’s a ‘moonshot’ vs. a 2-day quick win?”
|
|
63
|
+
- Combination: “Combine idea A + C—what emerges?”
|
|
64
|
+
|
|
65
|
+
## Done Criteria
|
|
66
|
+
|
|
67
|
+
- Techniques executed as planned (at least 1 divergent + 1 convergent)
|
|
68
|
+
- Shortlist with clear rationale and owners for next steps
|
|
69
|
+
- Document saved or posted back with clear sections (Summary, Techniques, Themes, Shortlist, Follow-ups)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- BMAD-style DS audit -->
|
|
2
|
+
|
|
3
|
+
# UI Task: Figma Audit Design System
|
|
4
|
+
|
|
5
|
+
Audit a Figma design system library for token/component drift and propose fixes.
|
|
6
|
+
|
|
7
|
+
## Process (Sequential)
|
|
8
|
+
|
|
9
|
+
1. Inventory
|
|
10
|
+
- Tokens (color/typography/spacing), components, variants
|
|
11
|
+
2. Detect Drift
|
|
12
|
+
- Naming inconsistencies, duplicate tokens, variant sprawl
|
|
13
|
+
3. Recommend Fixes
|
|
14
|
+
- Token naming/grouping, component normalization, deprecation plan
|
|
15
|
+
4. Output
|
|
16
|
+
- Prioritized fix list with redlines/screenshots
|
|
17
|
+
|
|
18
|
+
## Outputs
|
|
19
|
+
|
|
20
|
+
- Audit report and prioritized remediation plan
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# UX Task: Front-end Spec from Design
|
|
2
|
+
|
|
3
|
+
uses: [sequentialthinking, context7, figma]
|
|
4
|
+
|
|
5
|
+
Workflow
|
|
6
|
+
<!-- BMAD-style UX spec creation using AIgile template -->
|
|
7
|
+
|
|
8
|
+
# UX Task: Front-end Spec from Design
|
|
9
|
+
|
|
10
|
+
Create a developer-ready front-end specification from Figma designs.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
```yaml
|
|
15
|
+
optional:
|
|
16
|
+
- frameUrl: 'https://www.figma.com/file/xyz?node-id=123'
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Process (Sequential)
|
|
20
|
+
|
|
21
|
+
1. Extract Component Anatomy and States
|
|
22
|
+
- Variants, states, interactions, tokens
|
|
23
|
+
2. Specify API
|
|
24
|
+
- Props/slots/events; accessible names and roles
|
|
25
|
+
3. Layout and Responsiveness
|
|
26
|
+
- Constraints, breakpoints, fluid/responsive behavior
|
|
27
|
+
4. Output Using Template
|
|
28
|
+
- Use `core/templates/front-end-spec-tmpl.yaml` to structure content
|
|
29
|
+
|
|
30
|
+
## Outputs
|
|
31
|
+
|
|
32
|
+
- Front-end spec draft referencing the template
|
|
33
|
+
- Links to Figma frames and exported assets (if any)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<!-- Modeled after BMAD qa-gate with AIgile paths -->
|
|
2
|
+
|
|
3
|
+
# QA Task: Gate Story
|
|
4
|
+
|
|
5
|
+
Create or update a quality gate decision for a story with clear PASS/CONCERNS/FAIL/WAIVED status and actionable findings.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
required:
|
|
11
|
+
- story_id: '{epic}.{story}'
|
|
12
|
+
- story_path: '{devStoryLocation}/{epic}.{story}.*.md' # From core-config.yaml
|
|
13
|
+
optional:
|
|
14
|
+
- story_title: '{title}'
|
|
15
|
+
- story_slug: '{slug}'
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Process (Sequential)
|
|
19
|
+
|
|
20
|
+
1. Review Story
|
|
21
|
+
- Read objective and AC; restate expected behaviors
|
|
22
|
+
- Verify Dev Agent Record updated and tests passing
|
|
23
|
+
2. Inspect Evidence
|
|
24
|
+
- Map AC → tests; note gaps or over-testing
|
|
25
|
+
- Review SonarQube issues related to the change set
|
|
26
|
+
- Spot NFR concerns (security/perf/reliability/maintainability)
|
|
27
|
+
3. Determine Gate
|
|
28
|
+
- PASS if AC met and no high-severity issues
|
|
29
|
+
- CONCERNS for non-blocking gaps or missing P1 tests
|
|
30
|
+
- FAIL for unmet AC or high-severity risks (security/data loss)
|
|
31
|
+
- WAIVED only with explicit approval and rationale
|
|
32
|
+
4. Create Gate File
|
|
33
|
+
- Save to `qa.qaLocation/gates/{epic}.{story}-{slug}.yml`
|
|
34
|
+
- Use fixed severity scale: low | medium | high
|
|
35
|
+
5. Update Story (QA Results section only)
|
|
36
|
+
- Append gate status line and brief rationale
|
|
37
|
+
|
|
38
|
+
## Gate File Schema (minimal)
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
schema: 1
|
|
42
|
+
story: '{epic}.{story}'
|
|
43
|
+
story_title: '{title}'
|
|
44
|
+
gate: PASS|CONCERNS|FAIL|WAIVED
|
|
45
|
+
status_reason: '1-2 sentence explanation'
|
|
46
|
+
reviewer: 'Quinn (Test Architect)'
|
|
47
|
+
updated: '{ISO-8601 timestamp}'
|
|
48
|
+
top_issues: []
|
|
49
|
+
waiver: { active: false }
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Story Update Snippet
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
Gate: {STATUS} → qa.qaLocation/gates/{epic}.{story}-{slug}.yml
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Quality Checklist
|
|
59
|
+
|
|
60
|
+
- [ ] AC mapped to tests; gaps documented
|
|
61
|
+
- [ ] Severity values use only: low/medium/high
|
|
62
|
+
- [ ] NFR concerns captured (security, performance, reliability, maintainability)
|
|
63
|
+
- [ ] Gate file written to configured path
|
|
64
|
+
- [ ] Story updated under QA Results only
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Aligns with BMAD review-story approach for clarity and testability -->
|
|
2
|
+
|
|
3
|
+
# PO Task: Groom Jira Story
|
|
4
|
+
|
|
5
|
+
Ensure a Jira story is clear, testable, and ready for development with linked context and unambiguous acceptance criteria.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
required:
|
|
11
|
+
- urlOrId: 'ENG-123' | 'https://your.atlassian.net/browse/ENG-123'
|
|
12
|
+
optional:
|
|
13
|
+
- confluenceLinks: []
|
|
14
|
+
- relatedIssues: []
|
|
15
|
+
- savePrompt: true
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Process (Sequential)
|
|
19
|
+
|
|
20
|
+
1. Clarify Objective
|
|
21
|
+
- Restate in one sentence: who, what, why
|
|
22
|
+
- Ensure scope and constraints are explicit (out-of-scope listed)
|
|
23
|
+
2. Author Acceptance Criteria (AC)
|
|
24
|
+
- Use Given/When/Then
|
|
25
|
+
- Include at least: happy path, negative, and boundary case
|
|
26
|
+
3. Link Context
|
|
27
|
+
- Confluence specs, designs, architecture references
|
|
28
|
+
- Dependencies and blockers (and their owners)
|
|
29
|
+
4. Ready-for-Dev Check
|
|
30
|
+
- Estimable? Testable? Valuable? Small enough? No major unknowns?
|
|
31
|
+
- Labels/components set; Definition of Ready satisfied
|
|
32
|
+
5. Status Update
|
|
33
|
+
- Move to “Ready for Dev” when all criteria are met
|
|
34
|
+
- If Jira write is not available, provide the updated story markdown for manual update
|
|
35
|
+
|
|
36
|
+
## Outputs
|
|
37
|
+
|
|
38
|
+
- Updated Jira story or markdown with:
|
|
39
|
+
- Clear objective
|
|
40
|
+
- AC in GWT format
|
|
41
|
+
- Links (Confluence/design/related)
|
|
42
|
+
- Labels/components/estimate (if used)
|
|
43
|
+
- Status: Ready for Dev (if applicable)
|
|
44
|
+
- Optional: local file saved under docs/stories/story-{key-or-slug}.md
|
|
45
|
+
|
|
46
|
+
## Quality Checklist
|
|
47
|
+
|
|
48
|
+
- [ ] Objective is crisp and user-focused
|
|
49
|
+
- [ ] AC cover happy, negative, and boundary
|
|
50
|
+
- [ ] Links to required context are present
|
|
51
|
+
- [ ] Dependencies identified with owners
|
|
52
|
+
- [ ] Meets Definition of Ready
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Dev Task: Help
|
|
2
|
+
|
|
3
|
+
Use these commands with the Dev agent:
|
|
4
|
+
|
|
5
|
+
- implement-story-from-jira {urlOrId}
|
|
6
|
+
- Implement a Jira issue with a test-first, small-steps plan.
|
|
7
|
+
- explain-story-from-jira {urlOrId}
|
|
8
|
+
- Produce a crisp, testable summary and plan for the issue.
|
|
9
|
+
- implement-work-item {freeform}
|
|
10
|
+
- Implement a pasted mini-story/task with acceptance criteria.
|
|
11
|
+
- check-story-implemented {urlOrId}
|
|
12
|
+
- Assess completeness vs AC; report gaps and next actions.
|
|
13
|
+
- implement-unit-tests {pathOrScope}
|
|
14
|
+
- Add or improve unit tests in a target module.
|
|
15
|
+
- review-qa
|
|
16
|
+
- Apply QA feedback efficiently and safely.
|
|
17
|
+
- develop-story
|
|
18
|
+
- Execute an approved story end-to-end with validations.
|
|
19
|
+
- run-tests
|
|
20
|
+
- Run lint and tests; summarize failures and next steps.
|
|
21
|
+
- exit
|
|
22
|
+
- End the session.
|
|
23
|
+
|
|
24
|
+
Tips
|
|
25
|
+
- Start with sequentialthinking for a short plan.
|
|
26
|
+
- Update story records under docs/stories when working on Jira items.
|
|
27
|
+
- Prefer smallest change that satisfies AC; commit in small chunks.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Dev Task: Implement Work Item (Freeform)
|
|
2
|
+
|
|
3
|
+
Intent
|
|
4
|
+
- Implement a user-provided task/mini-story pasted into chat, using a plan-first approach.
|
|
5
|
+
|
|
6
|
+
Inputs
|
|
7
|
+
- freeform: plain text containing objective, acceptance, constraints (if any)
|
|
8
|
+
|
|
9
|
+
Outputs
|
|
10
|
+
- Code + tests implementing the request
|
|
11
|
+
- Short summary: changes made, risks, test results
|
|
12
|
+
|
|
13
|
+
Workflow
|
|
14
|
+
1) Parse the input
|
|
15
|
+
- Extract: objective, acceptance, constraints, done criteria
|
|
16
|
+
2) Plan with sequentialthinking
|
|
17
|
+
- Bullet tasks (5–9), impacted files, tests, risks, rollback
|
|
18
|
+
3) Implement in small steps with tests
|
|
19
|
+
4) Validate (lint, unit, integration if relevant)
|
|
20
|
+
5) Summarize results and next steps
|
|
21
|
+
|
|
22
|
+
Checklists
|
|
23
|
+
- Inputs validated and sanitized where applicable
|
|
24
|
+
- Backward-compat maintained
|
|
25
|
+
- Logging + error handling included
|
|
26
|
+
- Tests cover happy path and 1–2 edge cases
|
|
27
|
+
|
|
28
|
+
Examples
|
|
29
|
+
- "Refactor date utility to add toZonedTime() with IANA support; AC: DST safe, UTC fallback"
|
|
30
|
+
- "Add feature flag for new pricing calc; AC: disabled by default, config-driven"
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Dev Task: Implement Story from Jira (by URL or ID)
|
|
2
|
+
|
|
3
|
+
Intent
|
|
4
|
+
- Implement a Jira issue (story/task/bug) safely in small steps with tests, based on a key like ENG-123 or a full URL.
|
|
5
|
+
|
|
6
|
+
Prerequisites
|
|
7
|
+
- Atlassian MCP configured (jira scope). If not, paste the full issue body here.
|
|
8
|
+
- Local build is green; tests pass before starting (establish baseline).
|
|
9
|
+
|
|
10
|
+
Inputs
|
|
11
|
+
- urlOrId: Jira key (e.g., ENG-123) or full Jira URL.
|
|
12
|
+
|
|
13
|
+
Outputs
|
|
14
|
+
- Code and tests committed in small, reviewable chunks.
|
|
15
|
+
- Updated story record at docs/stories/{project}/{key}.md containing:
|
|
16
|
+
- Dev Agent Record (date, approach, decisions, trade-offs)
|
|
17
|
+
- File List (added/changed/removed)
|
|
18
|
+
- Test Summary (scenarios covered; notable edge cases)
|
|
19
|
+
- PR preparation notes summarizing what changed and why.
|
|
20
|
+
|
|
21
|
+
Workflow
|
|
22
|
+
1) Fetch and read
|
|
23
|
+
- Retrieve: title, description, Acceptance Criteria (AC), subtasks, links (Confluence/PRs/design).
|
|
24
|
+
- Note ambiguities; suggest defaults and confirm with PO/PM if risky.
|
|
25
|
+
2) Translate AC → executable checks
|
|
26
|
+
- Convert each AC to Given-When-Then (GWT) scenarios.
|
|
27
|
+
- Identify non-functional constraints (perf, security, accessibility, i18n, durability).
|
|
28
|
+
3) Plan with sequentialthinking (5–9 bullets)
|
|
29
|
+
- Minimal tasks, impacted files, data model changes.
|
|
30
|
+
- Risk list and rollback path; validation steps (lint, unit, integration, exploratory).
|
|
31
|
+
4) Implement in slices
|
|
32
|
+
- For each slice: code → tests → run → fix → commit with clear message.
|
|
33
|
+
- Keep change radius small; avoid refactors unless enabling the story.
|
|
34
|
+
5) Validate
|
|
35
|
+
- Run focused tests, then broader suite; verify AC coverage.
|
|
36
|
+
- Add negative and boundary tests; verify logging and error handling.
|
|
37
|
+
6) Update story record and summarize
|
|
38
|
+
- Record decisions, trade-offs, follow-ups; link commits/PR.
|
|
39
|
+
|
|
40
|
+
Checklists
|
|
41
|
+
- AC mapped 1:1 to tests or combined suites
|
|
42
|
+
- Input validation and error paths covered
|
|
43
|
+
- Feature flag/config toggles for risky changes
|
|
44
|
+
- Logs at correct levels; no secrets in logs
|
|
45
|
+
- Docs updated (README/migrations if needed)
|
|
46
|
+
|
|
47
|
+
Examples
|
|
48
|
+
- Example: ENG-123 Retry with jitter for Orders client
|
|
49
|
+
- AC: up to 5 attempts; cap 2s; warn on final failure
|
|
50
|
+
- Plan: introduce retry helper; inject into client; unit-test helper; integration-test client
|
|
51
|
+
- Edges: non-retryable codes; cancellations; timeouts
|
|
52
|
+
- Example: ENG-987 SKU search filter
|
|
53
|
+
- AC: prefix search; case-insensitive; limit 50
|
|
54
|
+
- Plan: repo method; index; tests for case/prefix/pagination
|
|
55
|
+
|
|
56
|
+
Done Criteria
|
|
57
|
+
- All AC satisfied by passing tests; no lint/type errors; story record updated
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
Command usage
|
|
62
|
+
- implement-story-from-jira ENG-123
|
|
63
|
+
- implement-story-from-jira https://yourcompany.atlassian.net/browse/ENG-123
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!-- BMAD-style unit test implementation guidance -->
|
|
2
|
+
|
|
3
|
+
# Dev Task: Implement Unit Tests
|
|
4
|
+
|
|
5
|
+
Add or improve unit tests for a module/feature to lock behavior and reduce regressions.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
required:
|
|
11
|
+
- pathOrScope: 'src/module' | 'src/utils/date.ts'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Process (Sequential)
|
|
15
|
+
|
|
16
|
+
1. Identify Behaviors and Edge Cases
|
|
17
|
+
- Enumerate Given/When/Then scenarios and invariants
|
|
18
|
+
2. Follow Project Conventions
|
|
19
|
+
- Test framework, directory structure, naming
|
|
20
|
+
3. Write Tests
|
|
21
|
+
- Happy path, at least one negative, boundary cases
|
|
22
|
+
- Stub/mock external services; keep deterministic
|
|
23
|
+
4. Run and Iterate
|
|
24
|
+
- Make tests fast; avoid global state; ensure isolation
|
|
25
|
+
5. Coverage as a Guide
|
|
26
|
+
- Prioritize critical logic over line count
|
|
27
|
+
6. Document Results
|
|
28
|
+
- Short summary of covered scenarios and intentional exclusions
|
|
29
|
+
|
|
30
|
+
## Outputs
|
|
31
|
+
|
|
32
|
+
- New/updated tests with passing state
|
|
33
|
+
- Brief test plan summary for story or module docs
|
|
34
|
+
|
|
35
|
+
## Checklist
|
|
36
|
+
|
|
37
|
+
- [ ] Deterministic (no network/time flakiness; use fakes)
|
|
38
|
+
- [ ] Clear AAA structure and naming
|
|
39
|
+
- [ ] Fast execution; no leaks
|
|
40
|
+
- [ ] Edge cases included
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
- price-module → rounding, currency edge cases, invalid inputs
|
|
45
|
+
- orders-service → retry backoff and cancellation
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!-- BMAD-style research framing; runs on AIgile context tools -->
|
|
2
|
+
|
|
3
|
+
# Analyst Task: Market Research from Context7
|
|
4
|
+
|
|
5
|
+
Create a focused market research brief using internal knowledge bases and trusted sources, with clear questions, findings, and next steps.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
optional:
|
|
11
|
+
- focus: 'competitive landscape' | 'market sizing' | 'pricing' | 'trends'
|
|
12
|
+
- products: ['Competitor A', 'Competitor B']
|
|
13
|
+
- timeframe: 'last 12 months'
|
|
14
|
+
- regions: ['NA', 'EU']
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Process (Sequential)
|
|
18
|
+
|
|
19
|
+
1. Define Objectives and Questions
|
|
20
|
+
- Clarify scope, key decisions, and success criteria
|
|
21
|
+
2. Collect Evidence
|
|
22
|
+
- Query context7 KBs; capture source links and dates
|
|
23
|
+
- Prefer credible sources; note gaps or conflicting data
|
|
24
|
+
3. Analyze and Synthesize
|
|
25
|
+
- Summarize trends, competitor positions, and market signals
|
|
26
|
+
- Use simple comparison matrices where helpful
|
|
27
|
+
4. Draft Brief
|
|
28
|
+
- Executive summary, key findings, implications
|
|
29
|
+
- Risks/unknowns and areas for further research
|
|
30
|
+
5. Review and Next Steps
|
|
31
|
+
- Propose decisions to be informed; suggest follow-up research or validation
|
|
32
|
+
|
|
33
|
+
## Outputs
|
|
34
|
+
|
|
35
|
+
- Market research brief with sources and dates
|
|
36
|
+
- Comparison matrix (if applicable)
|
|
37
|
+
- Open questions and recommended next actions
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# review-story
|
|
2
|
+
|
|
3
|
+
```yaml
|
|
4
|
+
id: review-story
|
|
5
|
+
role: qa
|
|
6
|
+
whenToUse: Perform QA-oriented review of an implemented story before or during formal testing.
|
|
7
|
+
elicit: false
|
|
8
|
+
outcome: PASS/NEEDS-WORK assessment with concrete gaps.
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Objective
|
|
12
|
+
Evaluate whether an implemented story meets acceptance, quality, and risk criteria.
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
1. Request story identifier or content if not already loaded.
|
|
16
|
+
2. Identify implemented changes (scan file list, code diffs if accessible, or ask user).
|
|
17
|
+
3. Map Acceptance Criteria → Observed Implementation / Tests.
|
|
18
|
+
4. Check negative/error paths & edge cases.
|
|
19
|
+
5. Evaluate non-functional aspects (performance, logging, security hints) if relevant.
|
|
20
|
+
6. Produce findings table: Criterion | Status | Notes.
|
|
21
|
+
7. Provide overall recommendation with prioritized fix suggestions.
|
|
22
|
+
|
|
23
|
+
## Outputs
|
|
24
|
+
- Findings table
|
|
25
|
+
- Recommendation (PASS or NEEDS-WORK)
|
|
26
|
+
- Top 3 risk or quality concerns
|
|
27
|
+
|
|
28
|
+
## Guidance
|
|
29
|
+
- Be evidence-driven; avoid generic statements.
|
|
30
|
+
- Suggest smallest viable fixes.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!-- BMAD-style SonarQube hotspot triage -->
|
|
2
|
+
|
|
3
|
+
# QA Task: SonarQube Hotspot Review
|
|
4
|
+
|
|
5
|
+
Triage SonarQube security hotspots and code issues related to the change set, classify severity, and propose actionable fixes.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
optional:
|
|
11
|
+
- scope: 'repo|module|path' # default: changed files only
|
|
12
|
+
- branch: 'current'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Process (Sequential)
|
|
16
|
+
|
|
17
|
+
1. Select Scope
|
|
18
|
+
- Prefer changed files in current branch; expand if needed
|
|
19
|
+
2. Retrieve Hotspots and Issues
|
|
20
|
+
- Filter to security hotspots and high-impact code smells
|
|
21
|
+
3. Classify Findings
|
|
22
|
+
- Use fixed severity: low | medium | high
|
|
23
|
+
- Note CWE/OWASP mapping if available
|
|
24
|
+
4. Recommend Actions
|
|
25
|
+
- Immediate fixes vs follow-up tickets with owners
|
|
26
|
+
- Link to files and lines; suggest tests if applicable
|
|
27
|
+
5. Output Summary
|
|
28
|
+
- Provide concise report and optional gate-ready snippet
|
|
29
|
+
|
|
30
|
+
## Outputs
|
|
31
|
+
|
|
32
|
+
- Hotspot review report: findings by severity, recommended actions, owners
|
|
33
|
+
- Optional gate snippet for inclusion under `top_issues` in QA Gate file
|
|
34
|
+
|
|
35
|
+
## Severity Scale (Fixed)
|
|
36
|
+
|
|
37
|
+
- low: minor improvement, not risky
|
|
38
|
+
- medium: should fix soon, potential risk area
|
|
39
|
+
- high: critical security or correctness risk; blocks release unless waived
|