Convert create-story workflow to native skill package (#1939)
* convert create-story workflow to native skill package * fix(create-story): update converted workflow path refs * fix(sm-agent): use skill reference for create-story
This commit is contained in:
parent
8ba428ee35
commit
d39fcd5938
|
|
@ -24,7 +24,7 @@ agent:
|
||||||
description: "[SP] Sprint Planning: Generate or update the record that will sequence the tasks to complete the full project that the dev agent will follow"
|
description: "[SP] Sprint Planning: Generate or update the record that will sequence the tasks to complete the full project that the dev agent will follow"
|
||||||
|
|
||||||
- trigger: CS or fuzzy match on create-story
|
- trigger: CS or fuzzy match on create-story
|
||||||
exec: "{project-root}/_bmad/bmm/workflows/4-implementation/create-story/workflow.md"
|
exec: "skill:bmad-create-story"
|
||||||
description: "[CS] Context Story: Prepare a story with all required context for implementation for the developer agent"
|
description: "[CS] Context Story: Prepare a story with all required context for implementation for the developer agent"
|
||||||
|
|
||||||
- trigger: ER or fuzzy match on epic-retrospective
|
- trigger: ER or fuzzy match on epic-retrospective
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,8 @@ bmm,3-solutioning,Create Epics and Stories,CE,30,_bmad/bmm/workflows/3-solutioni
|
||||||
bmm,3-solutioning,Check Implementation Readiness,IR,70,_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md,bmad-bmm-check-implementation-readiness,true,architect,Validate Mode,"Ensure PRD UX Architecture and Epics Stories are aligned",planning_artifacts,"readiness report",
|
bmm,3-solutioning,Check Implementation Readiness,IR,70,_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md,bmad-bmm-check-implementation-readiness,true,architect,Validate Mode,"Ensure PRD UX Architecture and Epics Stories are aligned",planning_artifacts,"readiness report",
|
||||||
bmm,4-implementation,Sprint Planning,SP,10,_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.md,bmad-bmm-sprint-planning,true,sm,Create Mode,"Generate sprint plan for development tasks - this kicks off the implementation phase by producing a plan the implementation agents will follow in sequence for every story in the plan.",implementation_artifacts,"sprint status",
|
bmm,4-implementation,Sprint Planning,SP,10,_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.md,bmad-bmm-sprint-planning,true,sm,Create Mode,"Generate sprint plan for development tasks - this kicks off the implementation phase by producing a plan the implementation agents will follow in sequence for every story in the plan.",implementation_artifacts,"sprint status",
|
||||||
bmm,4-implementation,Sprint Status,SS,20,_bmad/bmm/workflows/4-implementation/sprint-status/workflow.md,bmad-bmm-sprint-status,false,sm,Create Mode,"Anytime: Summarize sprint status and route to next workflow",,,
|
bmm,4-implementation,Sprint Status,SS,20,_bmad/bmm/workflows/4-implementation/sprint-status/workflow.md,bmad-bmm-sprint-status,false,sm,Create Mode,"Anytime: Summarize sprint status and route to next workflow",,,
|
||||||
bmm,4-implementation,Validate Story,VS,35,_bmad/bmm/workflows/4-implementation/create-story/workflow.md,bmad-bmm-create-story,false,sm,Validate Mode,"Validates story readiness and completeness before development work begins",implementation_artifacts,"story validation report",
|
bmm,4-implementation,Validate Story,VS,35,skill:bmad-create-story,bmad-bmm-create-story,false,sm,Validate Mode,"Validates story readiness and completeness before development work begins",implementation_artifacts,"story validation report",
|
||||||
bmm,4-implementation,Create Story,CS,30,_bmad/bmm/workflows/4-implementation/create-story/workflow.md,bmad-bmm-create-story,true,sm,Create Mode,"Story cycle start: Prepare first found story in the sprint plan that is next, or if the command is run with a specific epic and story designation with context. Once complete, then VS then DS then CR then back to DS if needed or next CS or ER",implementation_artifacts,story,
|
bmm,4-implementation,Create Story,CS,30,skill:bmad-create-story,bmad-bmm-create-story,true,sm,Create Mode,"Story cycle start: Prepare first found story in the sprint plan that is next, or if the command is run with a specific epic and story designation with context. Once complete, then VS then DS then CR then back to DS if needed or next CS or ER",implementation_artifacts,story,
|
||||||
bmm,4-implementation,Dev Story,DS,40,_bmad/bmm/workflows/4-implementation/dev-story/workflow.md,bmad-bmm-dev-story,true,dev,Create Mode,"Story cycle: Execute story implementation tasks and tests then CR then back to DS if fixes needed",,,
|
bmm,4-implementation,Dev Story,DS,40,_bmad/bmm/workflows/4-implementation/dev-story/workflow.md,bmad-bmm-dev-story,true,dev,Create Mode,"Story cycle: Execute story implementation tasks and tests then CR then back to DS if fixes needed",,,
|
||||||
bmm,4-implementation,Code Review,CR,50,_bmad/bmm/workflows/4-implementation/code-review/workflow.md,bmad-bmm-code-review,false,dev,Create Mode,"Story cycle: If issues back to DS if approved then next CS or ER if epic complete",,,
|
bmm,4-implementation,Code Review,CR,50,_bmad/bmm/workflows/4-implementation/code-review/workflow.md,bmad-bmm-code-review,false,dev,Create Mode,"Story cycle: If issues back to DS if approved then next CS or ER if epic complete",,,
|
||||||
bmm,4-implementation,QA Automation Test,QA,45,_bmad/bmm/workflows/qa-generate-e2e-tests/workflow.md,bmad-bmm-qa-automate,false,qa,Create Mode,"Generate automated API and E2E tests for implemented code using the project's existing test framework (detects existing well known in use test frameworks). Use after implementation to add test coverage. NOT for code review or story validation - use CR for that.",implementation_artifacts,"test suite",
|
bmm,4-implementation,QA Automation Test,QA,45,_bmad/bmm/workflows/qa-generate-e2e-tests/workflow.md,bmad-bmm-qa-automate,false,qa,Create Mode,"Generate automated API and E2E tests for implemented code using the project's existing test framework (detects existing well known in use test frameworks). Use after implementation to add test coverage. NOT for code review or story validation - use CR for that.",implementation_artifacts,"test suite",
|
||||||
|
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
name: bmad-create-story
|
||||||
|
description: 'Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
|
||||||
|
---
|
||||||
|
|
||||||
|
Follow the instructions in [workflow.md](workflow.md).
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
type: skill
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
name: create-story
|
name: bmad-create-story
|
||||||
description: 'Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
|
description: 'Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -32,9 +32,9 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
||||||
|
|
||||||
### Paths
|
### Paths
|
||||||
|
|
||||||
- `installed_path` = `{project-root}/_bmad/bmm/workflows/4-implementation/create-story`
|
- `installed_path` = `.`
|
||||||
- `template` = `{installed_path}/template.md`
|
- `template` = `./template.md`
|
||||||
- `validation` = `{installed_path}/checklist.md`
|
- `validation` = `./checklist.md`
|
||||||
- `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
|
- `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
|
||||||
- `epics_file` = `{planning_artifacts}/epics.md`
|
- `epics_file` = `{planning_artifacts}/epics.md`
|
||||||
- `prd_file` = `{planning_artifacts}/prd.md`
|
- `prd_file` = `{planning_artifacts}/prd.md`
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
canonicalId: bmad-create-story
|
|
||||||
type: workflow
|
|
||||||
description: "Creates a dedicated story file with all the context needed for implementation"
|
|
||||||
|
|
@ -47,7 +47,7 @@ const INSTALL_REGEX = /\{project-root\}\/(?:_bmad)\/([^/]+)\/workflows\/(.+)/;
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Test data
|
// Test data
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
const sourcePath = '{project-root}/_bmad/bmm/workflows/4-implementation/create-story/workflow.md';
|
const sourcePath = '{project-root}/_bmad/bmm/workflows/4-implementation/bmad-create-story/workflow.md';
|
||||||
const installPath = '{project-root}/_bmad/bmgd/workflows/4-production/create-story/workflow.md';
|
const installPath = '{project-root}/_bmad/bmgd/workflows/4-production/create-story/workflow.md';
|
||||||
|
|
||||||
console.log(`\n${colors.cyan}Workflow Path Regex Tests${colors.reset}\n`);
|
console.log(`\n${colors.cyan}Workflow Path Regex Tests${colors.reset}\n`);
|
||||||
|
|
@ -63,9 +63,9 @@ assert(
|
||||||
`Expected "bmm", got "${sourceMatch && sourceMatch[1]}"`,
|
`Expected "bmm", got "${sourceMatch && sourceMatch[1]}"`,
|
||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
sourceMatch && sourceMatch[2] === '4-implementation/create-story/workflow.md',
|
sourceMatch && sourceMatch[2] === '4-implementation/bmad-create-story/workflow.md',
|
||||||
'Source regex group [2] is the workflow sub-path',
|
'Source regex group [2] is the workflow sub-path',
|
||||||
`Expected "4-implementation/create-story/workflow.md", got "${sourceMatch && sourceMatch[2]}"`,
|
`Expected "4-implementation/bmad-create-story/workflow.md", got "${sourceMatch && sourceMatch[2]}"`,
|
||||||
);
|
);
|
||||||
|
|
||||||
// --- Install regex tests (group [2] returns module name, not sub-path) ---
|
// --- Install regex tests (group [2] returns module name, not sub-path) ---
|
||||||
|
|
|
||||||
|
|
@ -1077,7 +1077,7 @@ class ModuleManager {
|
||||||
const installWorkflowPath = item['workflow-install']; // Where to copy TO
|
const installWorkflowPath = item['workflow-install']; // Where to copy TO
|
||||||
|
|
||||||
// Parse SOURCE workflow path
|
// Parse SOURCE workflow path
|
||||||
// Example: {project-root}/_bmad/bmm/workflows/4-implementation/create-story/workflow.md
|
// Example: {project-root}/_bmad/bmm/workflows/4-implementation/bmad-create-story/workflow.md
|
||||||
const sourceMatch = sourceWorkflowPath.match(/\{project-root\}\/(?:_bmad)\/([^/]+)\/workflows\/(.+)/);
|
const sourceMatch = sourceWorkflowPath.match(/\{project-root\}\/(?:_bmad)\/([^/]+)\/workflows\/(.+)/);
|
||||||
if (!sourceMatch) {
|
if (!sourceMatch) {
|
||||||
await prompts.log.warn(` Could not parse workflow path: ${sourceWorkflowPath}`);
|
await prompts.log.warn(` Could not parse workflow path: ${sourceWorkflowPath}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue