ma-agents 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +4 -5
  2. package/bin/cli.js +104 -27
  3. package/lib/agents.js +12 -20
  4. package/lib/bmad-extension/skills/add-sprint/SKILL.md +39 -0
  5. package/lib/bmad-extension/skills/add-to-sprint/SKILL.md +39 -0
  6. package/lib/bmad-extension/skills/bmad-dev-story/workflow.md +39 -0
  7. package/lib/bmad-extension/skills/bmad-sprint-planning/workflow.md +41 -0
  8. package/lib/bmad-extension/skills/bmad-sprint-status/workflow.md +39 -0
  9. package/lib/bmad-extension/skills/cleanup-done/SKILL.md +39 -0
  10. package/lib/bmad-extension/skills/close-sprint/SKILL.md +39 -0
  11. package/lib/bmad-extension/skills/generate-backlog/SKILL.md +41 -0
  12. package/lib/bmad-extension/skills/modify-sprint/SKILL.md +39 -0
  13. package/lib/bmad-extension/skills/prioritize-backlog/SKILL.md +39 -0
  14. package/lib/bmad-extension/skills/remove-from-sprint/SKILL.md +39 -0
  15. package/lib/bmad-extension/skills/sprint-status-view/SKILL.md +39 -0
  16. package/lib/bmad-extension-plugin/.claude-plugin/marketplace.json +1 -1
  17. package/lib/bmad-extension-plugin/skills/add-sprint/SKILL.md +39 -0
  18. package/lib/bmad-extension-plugin/skills/add-to-sprint/SKILL.md +39 -0
  19. package/lib/bmad-extension-plugin/skills/bmad-dev-story/workflow.md +39 -0
  20. package/lib/bmad-extension-plugin/skills/bmad-sprint-planning/workflow.md +41 -0
  21. package/lib/bmad-extension-plugin/skills/bmad-sprint-status/workflow.md +39 -0
  22. package/lib/bmad-extension-plugin/skills/cleanup-done/SKILL.md +39 -0
  23. package/lib/bmad-extension-plugin/skills/close-sprint/SKILL.md +39 -0
  24. package/lib/bmad-extension-plugin/skills/generate-backlog/SKILL.md +41 -0
  25. package/lib/bmad-extension-plugin/skills/modify-sprint/SKILL.md +39 -0
  26. package/lib/bmad-extension-plugin/skills/prioritize-backlog/SKILL.md +39 -0
  27. package/lib/bmad-extension-plugin/skills/remove-from-sprint/SKILL.md +39 -0
  28. package/lib/bmad-extension-plugin/skills/sprint-status-view/SKILL.md +39 -0
  29. package/lib/bmad.js +3 -7
  30. package/lib/installer.js +6 -1
  31. package/package.json +1 -1
  32. package/skills/add-sprint/SKILL.md +39 -0
  33. package/skills/add-to-sprint/SKILL.md +39 -0
  34. package/skills/bmad-sprint-planning/SKILL.md +41 -0
  35. package/skills/bmad-sprint-status/SKILL.md +39 -0
  36. package/skills/cleanup-done/SKILL.md +39 -0
  37. package/skills/close-sprint/SKILL.md +39 -0
  38. package/skills/generate-backlog/SKILL.md +41 -0
  39. package/skills/modify-sprint/SKILL.md +39 -0
  40. package/skills/prioritize-backlog/SKILL.md +39 -0
  41. package/skills/remove-from-sprint/SKILL.md +39 -0
  42. package/skills/sprint-status-view/SKILL.md +39 -0
  43. package/skills/story-status-lookup/SKILL.md +38 -21
@@ -14,6 +14,45 @@ Guided workflow to modify an existing sprint's metadata (name, capacity, dates,
14
14
  > **Scope:** This skill modifies sprint **metadata only** — name, capacity, start date, end date, and status.
15
15
  > To assign items to a sprint, use `/add-to-sprint`. To remove items, use `/remove-from-sprint`.
16
16
 
17
+ ## Backend Routing
18
+
19
+ Before executing any file-system operations, determine and route to the correct backend:
20
+
21
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
22
+ If the field is absent or the file does not exist, default to `file-system`.
23
+
24
+ 2. If `tracking_system` is `file-system`:
25
+ Proceed with the **File-System Backend** instructions below.
26
+
27
+ 3. If `tracking_system` is `jira`:
28
+ a. Perform the Jira operation: Find the sprint by name or ID in the board for project `{jira_project_key}` at `{jira_url}`. Update the sprint's name, dates, or goal using the sprint update API. If the status is being changed to `active`: start the sprint using the sprint start API (transitions the sprint from future/planning to active state — enforces the single-active-sprint constraint).
29
+ Use whatever Jira-capable tool is available in your current tool context.
30
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
31
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
32
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
33
+ c. If the Jira operation FAILS for any reason:
34
+ - If no Jira-capable tool is available in your current context:
35
+ Pause and present the user with:
36
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
37
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
38
+ > instance at `{jira_url}`). How would you like to proceed?
39
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
40
+ > (b) Switch to file management — update sprint-status.yaml and config to use
41
+ > file-system backend, then complete this operation locally. This change is permanent."
42
+ - If a Jira tool attempted the operation but returned an error:
43
+ Pause and present the user with:
44
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
45
+ > (a) Retry — attempt the Jira operation again
46
+ > (b) Switch to file management — update sprint-status.yaml and config to use
47
+ > file-system backend, then complete this operation locally. This change is permanent."
48
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
49
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
50
+ then proceed with **File-System Backend** instructions below.
51
+
52
+ 4. **File-System Backend** — execute the workflow steps below.
53
+
54
+ ---
55
+
17
56
  <workflow>
18
57
 
19
58
  <step n="0" goal="Load configuration and validate file existence">
@@ -12,6 +12,45 @@ triggers:
12
12
 
13
13
  Reprioritize backlog items in `sprint-status.yaml` using multiple criteria: severity, business value, dependencies, type, and age.
14
14
 
15
+ ## Backend Routing
16
+
17
+ Before executing any file-system operations, determine and route to the correct backend:
18
+
19
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
20
+ If the field is absent or the file does not exist, default to `file-system`.
21
+
22
+ 2. If `tracking_system` is `file-system`:
23
+ Proceed with the **File-System Backend** instructions below.
24
+
25
+ 3. If `tracking_system` is `jira`:
26
+ a. Perform the Jira operation: Query all backlog issues (not assigned to any sprint) for project `{jira_project_key}` at `{jira_url}`. Apply the prioritization criteria specified by the user. Reorder the issues in the board backlog by updating the issue rank/priority order (use whatever ranking capability is available on the board — NextGen board issue ranking or classic board priority field). Map canonical priority back to Jira fields.
27
+ Use whatever Jira-capable tool is available in your current tool context.
28
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
29
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
30
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
31
+ c. If the Jira operation FAILS for any reason:
32
+ - If no Jira-capable tool is available in your current context:
33
+ Pause and present the user with:
34
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
35
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
36
+ > instance at `{jira_url}`). How would you like to proceed?
37
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
38
+ > (b) Switch to file management — update sprint-status.yaml and config to use
39
+ > file-system backend, then complete this operation locally. This change is permanent."
40
+ - If a Jira tool attempted the operation but returned an error:
41
+ Pause and present the user with:
42
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
43
+ > (a) Retry — attempt the Jira operation again
44
+ > (b) Switch to file management — update sprint-status.yaml and config to use
45
+ > file-system backend, then complete this operation locally. This change is permanent."
46
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
47
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
48
+ then proceed with **File-System Backend** instructions below.
49
+
50
+ 4. **File-System Backend** — execute the workflow steps below.
51
+
52
+ ---
53
+
15
54
  <workflow>
16
55
 
17
56
  <step n="0" goal="Load configuration and validate file existence">
@@ -11,6 +11,45 @@ triggers:
11
11
 
12
12
  Guided workflow to move sprint items back to the backlog in the unified `sprint-status.yaml` using reverse movement semantics (inverse of `add-to-sprint`).
13
13
 
14
+ ## Backend Routing
15
+
16
+ Before executing any file-system operations, determine and route to the correct backend:
17
+
18
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
19
+ If the field is absent or the file does not exist, default to `file-system`.
20
+
21
+ 2. If `tracking_system` is `file-system`:
22
+ Proceed with the **File-System Backend** instructions below.
23
+
24
+ 3. If `tracking_system` is `jira`:
25
+ a. Perform the Jira operation: Find the Jira issue matching the item ID in project `{jira_project_key}` at `{jira_url}` (search by issue key or summary). Remove the issue from its current sprint using the "remove issue from sprint" operation, returning it to the board backlog.
26
+ Use whatever Jira-capable tool is available in your current tool context.
27
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
28
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
29
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
30
+ c. If the Jira operation FAILS for any reason:
31
+ - If no Jira-capable tool is available in your current context:
32
+ Pause and present the user with:
33
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
34
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
35
+ > instance at `{jira_url}`). How would you like to proceed?
36
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
37
+ > (b) Switch to file management — update sprint-status.yaml and config to use
38
+ > file-system backend, then complete this operation locally. This change is permanent."
39
+ - If a Jira tool attempted the operation but returned an error:
40
+ Pause and present the user with:
41
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
42
+ > (a) Retry — attempt the Jira operation again
43
+ > (b) Switch to file management — update sprint-status.yaml and config to use
44
+ > file-system backend, then complete this operation locally. This change is permanent."
45
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
46
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
47
+ then proceed with **File-System Backend** instructions below.
48
+
49
+ 4. **File-System Backend** — execute the workflow steps below.
50
+
51
+ ---
52
+
14
53
  <workflow>
15
54
 
16
55
  <step n="0" goal="Load configuration and validate file existence">
@@ -16,6 +16,45 @@ Display a formatted, read-only dashboard of all sprint, backlog, and epic data f
16
16
 
17
17
  ---
18
18
 
19
+ ## Backend Routing
20
+
21
+ Before executing any file-system operations, determine and route to the correct backend:
22
+
23
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
24
+ If the field is absent or the file does not exist, default to `file-system`.
25
+
26
+ 2. If `tracking_system` is `file-system`:
27
+ Proceed with the **File-System Backend** instructions below.
28
+
29
+ 3. If `tracking_system` is `jira`:
30
+ a. Perform the Jira operation: Query all sprint data for project `{jira_project_key}` at `{jira_url}`: active sprint with all its issues and their statuses, backlog issues count and list, epic summary and progress. Map Jira sprint states to canonical vocabulary (future → planning, active → active, closed → closed). Map Jira issue statuses to canonical statuses per the status mapping below. Use this data for the display — no writes. Status mapping: Backlog/Open → backlog, To Do/Selected for Development → ready-for-dev, In Progress → in-progress, In Review/Code Review → review, Done/Resolved → done, On Hold/Blocked → on-hold, Won't Do/Cancelled → cancelled.
31
+ Use whatever Jira-capable tool is available in your current tool context.
32
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
33
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
34
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
35
+ c. If the Jira operation FAILS for any reason:
36
+ - If no Jira-capable tool is available in your current context:
37
+ Pause and present the user with:
38
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
39
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
40
+ > instance at `{jira_url}`). How would you like to proceed?
41
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
42
+ > (b) Switch to file management — update sprint-status.yaml and config to use
43
+ > file-system backend, then complete this operation locally. This change is permanent."
44
+ - If a Jira tool attempted the operation but returned an error:
45
+ Pause and present the user with:
46
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
47
+ > (a) Retry — attempt the Jira operation again
48
+ > (b) Switch to file management — update sprint-status.yaml and config to use
49
+ > file-system backend, then complete this operation locally. This change is permanent."
50
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
51
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
52
+ then proceed with **File-System Backend** instructions below.
53
+
54
+ 4. **File-System Backend** — execute the steps below.
55
+
56
+ ---
57
+
19
58
  ## Step 1 — Load sprint-status.yaml
20
59
 
21
60
  Resolve the path to `sprint-status.yaml` using the BMAD config:
package/lib/bmad.js CHANGED
@@ -1113,16 +1113,12 @@ const PERSONA_SKILL_MAP = Object.freeze({
1113
1113
  // agents module into install-time code paths that don't need it. The five
1114
1114
  // IDE tools listed are the only targets that receive `bmad-agent-*` persona
1115
1115
  // skills post-22.6 (verified 2026-04-23 via scratch install).
1116
- // F2b copilot's skills directory was realigned from `.github/copilot/skills`
1117
- // to `.github/skills` so it matches bmad-method 6.3.0's `github-copilot`
1118
- // platform target_dir. Without this update F1a's prefix pass would walk a
1119
- // directory that no longer receives the persona SKILL.md files.
1116
+ // bmad-method 6.5.0 moved copilot, roo, and kilo to the shared .agents/skills/
1117
+ // directory. Deduplicated here F1a walks each unique dir once.
1120
1118
  const TOOL_SKILL_DIRS = Object.freeze([
1121
1119
  path.join('.claude', 'skills'),
1122
- path.join('.github', 'skills'),
1120
+ path.join('.agents', 'skills'), // copilot, roo-code, kilocode (bmad-method 6.5.0)
1123
1121
  path.join('.cline', 'skills'),
1124
- path.join('.roo', 'skills'),
1125
- path.join('.kilocode', 'skills'),
1126
1122
  ]);
1127
1123
 
1128
1124
  /**
package/lib/installer.js CHANGED
@@ -1581,7 +1581,12 @@ const OBSOLETE_SKILL_IDS = Object.freeze([...RETIRED_SKILL_IDS, ...RENAMED_SKILL
1581
1581
  const OBSOLETE_TOOL_SKILL_DIRS = Object.freeze([
1582
1582
  // Pre-F2b (PR #70) copilot wrote skills to .github/copilot/skills;
1583
1583
  // F2b realigned the target to .github/skills to match the BMAD upstream path.
1584
- { obsolete: '.github/copilot/skills', replacedBy: '.github/skills', sinceVersion: '3.7.0' }
1584
+ { obsolete: '.github/copilot/skills', replacedBy: '.github/skills', sinceVersion: '3.7.0' },
1585
+ // bmad-method 6.5.0 moved github-copilot, roo, and kilo platforms from
1586
+ // tool-specific paths to the shared .agents/skills/ directory.
1587
+ { obsolete: '.github/skills', replacedBy: '.agents/skills', sinceVersion: '3.8.1' },
1588
+ { obsolete: '.roo/skills', replacedBy: '.agents/skills', sinceVersion: '3.8.1' },
1589
+ { obsolete: '.kilocode/skills', replacedBy: '.agents/skills', sinceVersion: '3.8.1' }
1585
1590
  ]);
1586
1591
 
1587
1592
  async function migrateRetiredSkills(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ma-agents",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "NPX tool to install skills for AI coding agents (Claude Code, Gemini, Copilot, Kilocode, Cline, Cursor, Roo Code)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -2,6 +2,45 @@
2
2
 
3
3
  Guided workflow to create a new sprint entry in the `sprints` section of `sprint-status.yaml` with capacity limits, optional ISO dates, and auto-incremented sprint ID.
4
4
 
5
+ ## Backend Routing
6
+
7
+ Before executing any file-system operations, determine and route to the correct backend:
8
+
9
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
10
+ If the field is absent or the file does not exist, default to `file-system`.
11
+
12
+ 2. If `tracking_system` is `file-system`:
13
+ Proceed with the **File-System Backend** instructions below.
14
+
15
+ 3. If `tracking_system` is `jira`:
16
+ a. Perform the Jira operation: Create a new sprint in the board for project `{jira_project_key}` at `{jira_url}` using the sprint create API. Set the sprint name, goal (if provided), start date, and end date from the provided sprint data. The new sprint starts in "future/planning" state.
17
+ Use whatever Jira-capable tool is available in your current tool context.
18
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
19
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
20
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
21
+ c. If the Jira operation FAILS for any reason:
22
+ - If no Jira-capable tool is available in your current context:
23
+ Pause and present the user with:
24
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
25
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
26
+ > instance at `{jira_url}`). How would you like to proceed?
27
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
28
+ > (b) Switch to file management — update sprint-status.yaml and config to use
29
+ > file-system backend, then complete this operation locally. This change is permanent."
30
+ - If a Jira tool attempted the operation but returned an error:
31
+ Pause and present the user with:
32
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
33
+ > (a) Retry — attempt the Jira operation again
34
+ > (b) Switch to file management — update sprint-status.yaml and config to use
35
+ > file-system backend, then complete this operation locally. This change is permanent."
36
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
37
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
38
+ then proceed with **File-System Backend** instructions below.
39
+
40
+ 4. **File-System Backend** — execute the workflow steps below.
41
+
42
+ ---
43
+
5
44
  <workflow>
6
45
 
7
46
  <step n="0" goal="Load configuration and validate file existence">
@@ -4,6 +4,45 @@ Guided workflow to move backlog items to a sprint in the unified `sprint-status.
4
4
 
5
5
  **Movement semantics:** Each item exists in exactly one location — either the `backlog` array OR a sprint's `items` array, never both. This skill atomically removes items from `backlog` and appends them to the target sprint's `items` array in a single file write.
6
6
 
7
+ ## Backend Routing
8
+
9
+ Before executing any file-system operations, determine and route to the correct backend:
10
+
11
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
12
+ If the field is absent or the file does not exist, default to `file-system`.
13
+
14
+ 2. If `tracking_system` is `file-system`:
15
+ Proceed with the **File-System Backend** instructions below.
16
+
17
+ 3. If `tracking_system` is `jira`:
18
+ a. Perform the Jira operation: Find the Jira issue matching the item ID in project `{jira_project_key}` at `{jira_url}` (search by issue key or summary). Find the active sprint on the board for project `{jira_project_key}`. Move the issue to the active sprint using the "add issue to sprint" operation.
19
+ Use whatever Jira-capable tool is available in your current tool context.
20
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
21
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
22
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
23
+ c. If the Jira operation FAILS for any reason:
24
+ - If no Jira-capable tool is available in your current context:
25
+ Pause and present the user with:
26
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
27
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
28
+ > instance at `{jira_url}`). How would you like to proceed?
29
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
30
+ > (b) Switch to file management — update sprint-status.yaml and config to use
31
+ > file-system backend, then complete this operation locally. This change is permanent."
32
+ - If a Jira tool attempted the operation but returned an error:
33
+ Pause and present the user with:
34
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
35
+ > (a) Retry — attempt the Jira operation again
36
+ > (b) Switch to file management — update sprint-status.yaml and config to use
37
+ > file-system backend, then complete this operation locally. This change is permanent."
38
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
39
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
40
+ then proceed with **File-System Backend** instructions below.
41
+
42
+ 4. **File-System Backend** — execute the workflow steps below.
43
+
44
+ ---
45
+
7
46
  <workflow>
8
47
 
9
48
  <step n="0" goal="Load configuration and validate file existence">
@@ -27,6 +27,47 @@ Attempt to read project name from `_bmad/bmm/config.yaml` (field `project_name`)
27
27
 
28
28
  ---
29
29
 
30
+ ## Backend Routing
31
+
32
+ Before executing any file-system operations, determine and route to the correct backend:
33
+
34
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
35
+ If the field is absent or the file does not exist, default to `file-system`.
36
+
37
+ 2. If `tracking_system` is `file-system`:
38
+ Proceed with the **File-System Backend** instructions below.
39
+
40
+ 3. If `tracking_system` is `jira`:
41
+ > "This operation will create/update Jira sprints and items in bulk. If it fails mid-way, Jira may be in partial state. The Jira server URL is `{jira_url}` and project key is `{jira_project_key}` (from `_bmad/bmm/config.yaml`). Proceed?"
42
+
43
+ a. Perform the Jira operation: Query all epics, backlog issues, sprint definitions, and sprint items for project `{jira_project_key}` at `{jira_url}` (multiple sequential read calls). For the write phase: create new Jira sprints for each sprint definition not already in Jira (one API call per sprint). Create or update Jira issues for each item in the plan (one API call per item). Map item fields as follows: title → issue summary, type → issue type (story → Story, bug → Bug), status → Jira workflow status (see status mapping below), priority → issue priority/rank. Map sprint fields: name → sprint name, start_date → sprint start date, end_date → sprint end date. Status mapping: backlog → Backlog/Open, ready-for-dev → To Do/Selected for Development, in-progress → In Progress, review → In Review/Code Review, done → Done/Resolved, on-hold → On Hold/Blocked, cancelled → Won't Do/Cancelled.
44
+ Use whatever Jira-capable tool is available in your current tool context.
45
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
46
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
47
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
48
+ c. If the Jira operation FAILS for any reason:
49
+ - If no Jira-capable tool is available in your current context:
50
+ Pause and present the user with:
51
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
52
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
53
+ > instance at `{jira_url}`). How would you like to proceed?
54
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
55
+ > (b) Switch to file management — update sprint-status.yaml and config to use
56
+ > file-system backend, then complete this operation locally. This change is permanent."
57
+ - If a Jira tool attempted the operation but returned an error:
58
+ Pause and present the user with:
59
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
60
+ > (a) Retry — attempt the Jira operation again
61
+ > (b) Switch to file management — update sprint-status.yaml and config to use
62
+ > file-system backend, then complete this operation locally. This change is permanent."
63
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
64
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
65
+ then proceed with **File-System Backend** instructions below.
66
+
67
+ 4. **File-System Backend** — execute the workflow steps below.
68
+
69
+ ---
70
+
30
71
  ## EXECUTION
31
72
 
32
73
  <workflow>
@@ -8,6 +8,45 @@ Analyze sprint health, surface risk flags, and recommend next actions from the u
8
8
 
9
9
  ---
10
10
 
11
+ ## Backend Routing
12
+
13
+ Before executing any file-system operations, determine and route to the correct backend:
14
+
15
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
16
+ If the field is absent or the file does not exist, default to `file-system`.
17
+
18
+ 2. If `tracking_system` is `file-system`:
19
+ Proceed with the **File-System Backend** instructions below.
20
+
21
+ 3. If `tracking_system` is `jira`:
22
+ a. Perform the Jira operation: Query the active sprint for project `{jira_project_key}` at `{jira_url}` and retrieve all sprint issues with their statuses. Query backlog issue count. Query epic progress (completed stories per epic). Map Jira sprint states and issue statuses to canonical vocabulary per the status mapping below. Use this data for health analysis — no writes. Status mapping: Backlog/Open → backlog, To Do/Selected for Development → ready-for-dev, In Progress → in-progress, In Review/Code Review → review, Done/Resolved → done, On Hold/Blocked → on-hold, Won't Do/Cancelled → cancelled.
23
+ Use whatever Jira-capable tool is available in your current tool context.
24
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
25
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
26
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
27
+ c. If the Jira operation FAILS for any reason:
28
+ - If no Jira-capable tool is available in your current context:
29
+ Pause and present the user with:
30
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
31
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
32
+ > instance at `{jira_url}`). How would you like to proceed?
33
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
34
+ > (b) Switch to file management — update sprint-status.yaml and config to use
35
+ > file-system backend, then complete this operation locally. This change is permanent."
36
+ - If a Jira tool attempted the operation but returned an error:
37
+ Pause and present the user with:
38
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
39
+ > (a) Retry — attempt the Jira operation again
40
+ > (b) Switch to file management — update sprint-status.yaml and config to use
41
+ > file-system backend, then complete this operation locally. This change is permanent."
42
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
43
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
44
+ then proceed with **File-System Backend** instructions below.
45
+
46
+ 4. **File-System Backend** — execute the steps below.
47
+
48
+ ---
49
+
11
50
  ## Invocation Modes
12
51
 
13
52
  This skill supports three execution modes. Set `mode` before invoking:
@@ -8,6 +8,45 @@ Keeps the active sprint view lean by archiving completed and cancelled work. Pre
8
8
 
9
9
  ---
10
10
 
11
+ ## Backend Routing
12
+
13
+ Before executing any file-system operations, determine and route to the correct backend:
14
+
15
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
16
+ If the field is absent or the file does not exist, default to `file-system`.
17
+
18
+ 2. If `tracking_system` is `file-system`:
19
+ Proceed with the **File-System Backend** instructions below.
20
+
21
+ 3. If `tracking_system` is `jira`:
22
+ a. Perform the Jira operation: Query all issues in project `{jira_project_key}` at `{jira_url}` with status Done/Resolved/Closed. For each such issue that maps to a local story file at `{story_location}/{id}.md`: transition the issue to the resolved/done Jira workflow state if not already there (using the issue transition API). Then move the local story file to `{story_location}/done/{id}.md` — this local file operation always executes regardless of backend. Note: Jira issues are NOT deleted; they remain in Jira as resolved.
23
+ Use whatever Jira-capable tool is available in your current tool context.
24
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
25
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
26
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
27
+ c. If the Jira operation FAILS for any reason:
28
+ - If no Jira-capable tool is available in your current context:
29
+ Pause and present the user with:
30
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
31
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
32
+ > instance at `{jira_url}`). How would you like to proceed?
33
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
34
+ > (b) Switch to file management — update sprint-status.yaml and config to use
35
+ > file-system backend, then complete this operation locally. This change is permanent."
36
+ - If a Jira tool attempted the operation but returned an error:
37
+ Pause and present the user with:
38
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
39
+ > (a) Retry — attempt the Jira operation again
40
+ > (b) Switch to file management — update sprint-status.yaml and config to use
41
+ > file-system backend, then complete this operation locally. This change is permanent."
42
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
43
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
44
+ then proceed with **File-System Backend** instructions below.
45
+
46
+ 4. **File-System Backend** — execute the workflow steps below.
47
+
48
+ ---
49
+
11
50
  <workflow>
12
51
 
13
52
  <step n="0" goal="Load configuration and validate file existence">
@@ -4,6 +4,45 @@ Close an active sprint — archive done/cancelled items, disposition incomplete
4
4
 
5
5
  **Schema Reference:** `_bmad-output/planning-artifacts/sprint-status-schema.md` (Story 17.9)
6
6
 
7
+ ## Backend Routing
8
+
9
+ Before executing any file-system operations, determine and route to the correct backend:
10
+
11
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
12
+ If the field is absent or the file does not exist, default to `file-system`.
13
+
14
+ 2. If `tracking_system` is `file-system`:
15
+ Proceed with the **File-System Backend** instructions below.
16
+
17
+ 3. If `tracking_system` is `jira`:
18
+ a. Perform the Jira operation: Query all issues in the active sprint for project `{jira_project_key}` at `{jira_url}`. For done/cancelled items: transition each to resolved/done Jira state using the issue transition API; then move each corresponding local story file from `{story_location}/{id}.md` to `{story_location}/done/{id}.md` (local file operation — always executes). For incomplete items (not done/cancelled): remove each issue from the sprint using the "remove issue from sprint" operation (returns them to board backlog). Then close the sprint using the sprint close API.
19
+ Use whatever Jira-capable tool is available in your current tool context.
20
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
21
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
22
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
23
+ c. If the Jira operation FAILS for any reason:
24
+ - If no Jira-capable tool is available in your current context:
25
+ Pause and present the user with:
26
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
27
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
28
+ > instance at `{jira_url}`). How would you like to proceed?
29
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
30
+ > (b) Switch to file management — update sprint-status.yaml and config to use
31
+ > file-system backend, then complete this operation locally. This change is permanent."
32
+ - If a Jira tool attempted the operation but returned an error:
33
+ Pause and present the user with:
34
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
35
+ > (a) Retry — attempt the Jira operation again
36
+ > (b) Switch to file management — update sprint-status.yaml and config to use
37
+ > file-system backend, then complete this operation locally. This change is permanent."
38
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
39
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
40
+ then proceed with **File-System Backend** instructions below.
41
+
42
+ 4. **File-System Backend** — execute the workflow steps below.
43
+
44
+ ---
45
+
7
46
  <workflow>
8
47
 
9
48
  <step n="0" goal="Load configuration and validate file existence">
@@ -11,6 +11,47 @@ This skill reads `epics.md` and `bug-*.md` files and writes the `backlog` and `e
11
11
 
12
12
  ---
13
13
 
14
+ ## Backend Routing
15
+
16
+ Before executing any file-system operations, determine and route to the correct backend:
17
+
18
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
19
+ If the field is absent or the file does not exist, default to `file-system`.
20
+
21
+ 2. If `tracking_system` is `file-system`:
22
+ Proceed with the **File-System Backend** instructions below.
23
+
24
+ 3. If `tracking_system` is `jira`:
25
+ > "This operation will create/update Jira items in bulk. If it fails mid-way, Jira may be in partial state. The Jira server URL is `{jira_url}` and project key is `{jira_project_key}` (from `_bmad/bmm/config.yaml`). Proceed?"
26
+
27
+ a. Perform the Jira operation: Query all Jira epics (issues of type Epic) in project `{jira_project_key}` at `{jira_url}` to build the epics map. Query all backlog issues (Story and Bug type, not assigned to any active sprint) in project `{jira_project_key}`. For any backlog items not already present in Jira, create new Jira issues (one API call per item). For existing items whose fields have changed, update them. Use the Jira field mapping: item.title → issue summary, item.type → issue type (story → Story, bug → Bug), item.status → Jira workflow status (see status mapping below), item.priority → issue priority. Status mapping: backlog → Backlog/Open, ready-for-dev → To Do/Selected for Development, in-progress → In Progress, review → In Review/Code Review, done → Done/Resolved, on-hold → On Hold/Blocked, cancelled → Won't Do/Cancelled.
28
+ Use whatever Jira-capable tool is available in your current tool context.
29
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
30
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
31
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
32
+ c. If the Jira operation FAILS for any reason:
33
+ - If no Jira-capable tool is available in your current context:
34
+ Pause and present the user with:
35
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
36
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
37
+ > instance at `{jira_url}`). How would you like to proceed?
38
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
39
+ > (b) Switch to file management — update sprint-status.yaml and config to use
40
+ > file-system backend, then complete this operation locally. This change is permanent."
41
+ - If a Jira tool attempted the operation but returned an error:
42
+ Pause and present the user with:
43
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
44
+ > (a) Retry — attempt the Jira operation again
45
+ > (b) Switch to file management — update sprint-status.yaml and config to use
46
+ > file-system backend, then complete this operation locally. This change is permanent."
47
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
48
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
49
+ then proceed with **File-System Backend** instructions below.
50
+
51
+ 4. **File-System Backend** — execute the workflow steps below.
52
+
53
+ ---
54
+
14
55
  <workflow>
15
56
 
16
57
  <step n="1" goal="Load existing sprint-status.yaml state">
@@ -5,6 +5,45 @@ Guided workflow to modify an existing sprint's metadata (name, capacity, dates,
5
5
  > **Scope:** This skill modifies sprint **metadata only** — name, capacity, start date, end date, and status.
6
6
  > To assign items to a sprint, use `/add-to-sprint`. To remove items, use `/remove-from-sprint`.
7
7
 
8
+ ## Backend Routing
9
+
10
+ Before executing any file-system operations, determine and route to the correct backend:
11
+
12
+ 1. Read `_bmad-output/implementation-artifacts/sprint-status.yaml` and extract the `tracking_system` field.
13
+ If the field is absent or the file does not exist, default to `file-system`.
14
+
15
+ 2. If `tracking_system` is `file-system`:
16
+ Proceed with the **File-System Backend** instructions below.
17
+
18
+ 3. If `tracking_system` is `jira`:
19
+ a. Perform the Jira operation: Find the sprint by name or ID in the board for project `{jira_project_key}` at `{jira_url}`. Update the sprint's name, dates, or goal using the sprint update API. If the status is being changed to `active`: start the sprint using the sprint start API (transitions the sprint from future/planning to active state — enforces the single-active-sprint constraint).
20
+ Use whatever Jira-capable tool is available in your current tool context.
21
+ Map Jira entities to the canonical schema (Sprint → sprints[], Backlog → backlog[],
22
+ Epic → epics[], Jira status → canonical vocabulary per Section 6.3 of the routing spec).
23
+ b. If the Jira operation SUCCEEDS: continue with the Jira data returned. Jira is the source of truth.
24
+ c. If the Jira operation FAILS for any reason:
25
+ - If no Jira-capable tool is available in your current context:
26
+ Pause and present the user with:
27
+ > "No Jira-capable tool is available. To use Jira tracking, configure a Jira integration
28
+ > in your agent (an MCP server, plugin, or native integration connected to the Jira
29
+ > instance at `{jira_url}`). How would you like to proceed?
30
+ > (a) Retry — attempt the Jira operation again once a Jira tool is configured
31
+ > (b) Switch to file management — update sprint-status.yaml and config to use
32
+ > file-system backend, then complete this operation locally. This change is permanent."
33
+ - If a Jira tool attempted the operation but returned an error:
34
+ Pause and present the user with:
35
+ > "The Jira operation failed: {actual Jira error details}. How would you like to proceed?
36
+ > (a) Retry — attempt the Jira operation again
37
+ > (b) Switch to file management — update sprint-status.yaml and config to use
38
+ > file-system backend, then complete this operation locally. This change is permanent."
39
+ If user chooses (b) in either case: write `tracking_system: file-system` to `sprint-status.yaml`,
40
+ update `sprint_backend: file-system` in `_bmad/bmm/config.yaml`,
41
+ then proceed with **File-System Backend** instructions below.
42
+
43
+ 4. **File-System Backend** — execute the workflow steps below.
44
+
45
+ ---
46
+
8
47
  <workflow>
9
48
 
10
49
  <step n="0" goal="Load configuration and validate file existence">