siesa-agents 2.1.68 → 2.1.71

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 (89) hide show
  1. package/bin/install.js +103 -0
  2. package/claude/commands/bmad/bmm/workflows/check-implementation-readiness.md +5 -1
  3. package/claude/commands/bmad/bmm/workflows/correct-course.md +1 -1
  4. package/claude/commands/bmad/bmm/workflows/create-architecture.md +5 -1
  5. package/claude/commands/bmad/bmm/workflows/create-product-brief.md +5 -1
  6. package/claude/commands/bmad/bmm/workflows/create-ux-design.md +5 -1
  7. package/claude/commands/bmad/bmm/workflows/generate-project-context.md +1 -1
  8. package/claude/commands/bmad/bmm/workflows/workflow-init.md +1 -1
  9. package/claude/commands/jira_sync/sync-epics-stories.md +5 -0
  10. package/claude/commands/sa-jira-sync.md +11 -0
  11. package/claude/skills/generate-commits-by-phase/skill.md +5 -0
  12. package/gemini/commands/bmad-workflow-bmm-code-review.toml +6 -5
  13. package/gemini/commands/bmad-workflow-bmm-correct-course.toml +1 -1
  14. package/gemini/commands/bmad-workflow-bmm-create-architecture.toml +1 -1
  15. package/gemini/commands/bmad-workflow-bmm-generate-project-context.toml +1 -1
  16. package/gemini/commands/sa-jira-sync.toml +9 -0
  17. package/gemini/commands/sa-workflow-sync-epics-stories.toml +4 -0
  18. package/package.json +1 -1
  19. package/siesa-agents/bmm/workflows/1-analysis/create-product-brief/workflow_ext.md +70 -0
  20. package/siesa-agents/bmm/workflows/2-plan-workflows/create-ux-design/workflow_ext.md +70 -0
  21. package/siesa-agents/bmm/workflows/2-plan-workflows/prd/workflow_ext.md +90 -2
  22. package/siesa-agents/bmm/workflows/3-solutioning/check-implementation-readiness/workflow_ext.md +70 -0
  23. package/siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md +101 -11
  24. package/siesa-agents/bmm/workflows/3-solutioning/create-epics-and-stories/workflow_ext.md +79 -0
  25. package/siesa-agents/bmm/workflows/4-implementation/code-review/workflow_ext.md +119 -0
  26. package/siesa-agents/bmm/workflows/4-implementation/correct-course/workflow_ext.md +11 -0
  27. package/siesa-agents/bmm/workflows/4-implementation/create-story/workflow_ext.md +16 -1
  28. package/siesa-agents/bmm/workflows/4-implementation/dev-story/workflow_ext.md +7 -0
  29. package/siesa-agents/bmm/workflows/{2-planning/generate-project-context → generate-project-context}/workflow_ext.md +92 -1
  30. package/siesa-agents/bmm/workflows/workflow-status/Init/workflow_ext.md +85 -0
  31. package/siesa-agents/core/tasks/shard-doc.md +41 -24
  32. package/siesa-agents/resources/architecture/architecture-both.md +822 -0
  33. package/siesa-agents/resources/architecture/architecture-single-backend.md +565 -0
  34. package/siesa-agents/sa/sa-jira-sync-api/jira-sync-api.md +246 -0
  35. package/siesa-agents/sa/sync-epics-stories/data/templates/subtask-template.json +18 -0
  36. package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/steps/step-01-init.md +12 -7
  37. package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/steps/step-01b-continue.md +1 -1
  38. package/siesa-agents/sa/sync-epics-stories/steps/step-02-setup.md +174 -0
  39. package/siesa-agents/sa/sync-epics-stories/steps/step-03-scope.md +113 -0
  40. package/siesa-agents/sa/sync-epics-stories/steps/step-04-epics.md +226 -0
  41. package/siesa-agents/sa/sync-epics-stories/steps/step-05-stories.md +383 -0
  42. package/siesa-agents/sa/sync-epics-stories/workflow.md +91 -0
  43. package/siesa-agents/scripts/jira/README.md +76 -0
  44. package/siesa-agents/scripts/jira/add-comment.js +31 -0
  45. package/siesa-agents/scripts/jira/batch-create.js +68 -0
  46. package/siesa-agents/scripts/jira/create-issue.js +44 -0
  47. package/siesa-agents/scripts/jira/edit-issue.js +39 -0
  48. package/siesa-agents/scripts/jira/get-issue.js +39 -0
  49. package/siesa-agents/scripts/jira/lib/adf.js +88 -0
  50. package/siesa-agents/scripts/jira/lib/args.js +44 -0
  51. package/siesa-agents/scripts/jira/lib/jira-client.js +165 -0
  52. package/siesa-agents/scripts/jira/refresh-token.js +50 -0
  53. package/siesa-agents/scripts/jira/search.js +47 -0
  54. package/siesa-agents/scripts/jira/transition.js +80 -0
  55. package/siesa-agents/scripts/phases/phase1.js +110 -0
  56. package/siesa-agents/scripts/phases/phase2.js +110 -0
  57. package/siesa-agents/scripts/phases/phase3.js +110 -0
  58. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/README.md +0 -635
  59. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/data/excel-structure-guide.md +0 -255
  60. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/prompts/prompt_design_test.md +0 -95
  61. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/steps/step-01-init.md +0 -1149
  62. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/steps/step-01b-continue.md +0 -333
  63. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/steps/step-02-build-traceability.md +0 -488
  64. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/steps/step-03-interpret-tests.md +0 -1047
  65. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/steps/step-04-generate-plans.md +0 -936
  66. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/steps/step-05-export.md +0 -265
  67. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/README.md +0 -256
  68. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/epic-test-plan-template.md +0 -215
  69. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/test-cases-reference.csv +0 -11
  70. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/test-cases-structure.md +0 -568
  71. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/test-cases-summary-template.md +0 -74
  72. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/test-cases-template.csv +0 -11
  73. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/templates/traceability-map-template.md +0 -59
  74. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/workflow.md +0 -564
  75. package/bmad/bmm/workflows/4-implementation/traceability-and-testing/workflow.yaml +0 -138
  76. package/bmad/bmm/workflows/sync-epics-stories/data/templates/subtask-template.json +0 -4
  77. package/bmad/bmm/workflows/sync-epics-stories/steps/step-02-setup.md +0 -117
  78. package/bmad/bmm/workflows/sync-epics-stories/steps/step-03-scope.md +0 -70
  79. package/bmad/bmm/workflows/sync-epics-stories/steps/step-04-epics.md +0 -107
  80. package/bmad/bmm/workflows/sync-epics-stories/steps/step-05-stories.md +0 -163
  81. package/bmad/bmm/workflows/sync-epics-stories/workflow.md +0 -54
  82. package/claude/commands/bmad/bmm/workflows/sync-epics-stories.md +0 -5
  83. package/claude/commands/jira_sync/feature_sync.md +0 -131
  84. package/gemini/commands/bmad-workflow-bmm-sync-epics-stories.toml +0 -4
  85. /package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/completion-summary-sync-epics-stories.md +0 -0
  86. /package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/data/templates/epic-template.json +0 -0
  87. /package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/data/templates/story-template.json +0 -0
  88. /package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/data/templates/task-template.json +0 -0
  89. /package/{bmad/bmm/workflows → siesa-agents/sa}/sync-epics-stories/workflow-plan-sync-epics-stories.md +0 -0
package/bin/install.js CHANGED
@@ -4,6 +4,7 @@ const fs = require('fs-extra');
4
4
  const path = require('path');
5
5
  const { sourceMapsEnabled } = require('process');
6
6
  const readline = require('readline');
7
+ const { execSync } = require('child_process');
7
8
 
8
9
  class SiesaBmadInstaller {
9
10
  constructor() {
@@ -108,6 +109,82 @@ class SiesaBmadInstaller {
108
109
  return fs.existsSync(folderPath);
109
110
  });
110
111
  }
112
+
113
+ checkExistingGitInstallation() {
114
+ const gitDir = path.join(this.targetDir, '.git');
115
+ return fs.existsSync(gitDir);
116
+ }
117
+
118
+ checkExistingGitignore() {
119
+ const gitignorePath = path.join(this.targetDir, '.gitignore');
120
+ return fs.existsSync(gitignorePath);
121
+ }
122
+
123
+ async promptHasRepository() {
124
+ console.log('\n¿Tienes un repositorio remoto?');
125
+ console.log('1. Sí');
126
+ console.log('2. No, parametrizar manual después');
127
+
128
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
129
+ return new Promise((resolve) => {
130
+ rl.question('\nElige una opción (1 o 2): ', (answer) => {
131
+ rl.close();
132
+ resolve(answer.trim());
133
+ });
134
+ });
135
+ }
136
+
137
+ async promptRepositoryUrl() {
138
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
139
+ return new Promise((resolve) => {
140
+ rl.question('Ingresa la URL del repositorio: ', (answer) => {
141
+ rl.close();
142
+ resolve(answer.trim());
143
+ });
144
+ });
145
+ }
146
+
147
+ async installGitignore() {
148
+ const gitignorePath = path.join(this.targetDir, '.gitignore');
149
+ const entries = [
150
+ 'node_modules/',
151
+ '.claude/commands/get-features/oauth-config.json',
152
+ '.claude/commands/get-features/tokens.json'
153
+ ];
154
+
155
+ let content = entries.join('\n') + '\n';
156
+
157
+ // Si ya existe, agregar solo las entradas que falten
158
+ if (fs.existsSync(gitignorePath)) {
159
+ const existing = await fs.readFile(gitignorePath, 'utf8');
160
+ const missing = entries.filter(e => !existing.includes(e));
161
+ if (missing.length === 0) {
162
+ console.log('✓ .gitignore ya contiene todas las entradas requeridas.');
163
+ return;
164
+ }
165
+ content = existing.trimEnd() + '\n' + missing.join('\n') + '\n';
166
+ console.log(`🔄 Actualizando .gitignore con ${missing.length} entrada(s) faltante(s)...`);
167
+ } else {
168
+ console.log('📝 Generando .gitignore...');
169
+ }
170
+
171
+ await fs.writeFile(gitignorePath, content, 'utf8');
172
+ console.log('✓ .gitignore instalado correctamente.');
173
+ }
174
+
175
+ installGit(repository) {
176
+ const options = { cwd: this.targetDir, stdio: 'inherit' };
177
+
178
+ console.log(' Ejecutando git init...');
179
+ execSync('git init', options);
180
+ console.log('✓ Repositorio git inicializado.');
181
+
182
+ if (repository !== null) {
183
+ console.log(` Configurando remote origin: ${repository}`);
184
+ execSync(`git remote add origin ${repository}`, options);
185
+ console.log('✓ Remote origin configurado.');
186
+ }
187
+ }
111
188
 
112
189
  async install() {
113
190
  this.showBanner();
@@ -129,6 +206,32 @@ class SiesaBmadInstaller {
129
206
  await this.performInstallation();
130
207
  }
131
208
 
209
+ //Verificar si ya existe un git
210
+ const hasExistingGitInstallation = this.checkExistingGitInstallation();
211
+ if(hasExistingGitInstallation){
212
+ console.log('✓ Ya existia una instalacion de un repositorio git en el proyecto, validando si existe el .gitignore...');
213
+ const hasExistingGitignore = this.checkExistingGitignore();
214
+ if(hasExistingGitignore){
215
+ console.log('✓ Ya existe un .gitignore, Actualizando...')
216
+ await this.installGitignore();
217
+ } else {
218
+ await this.installGitignore();
219
+ }
220
+ } else {
221
+ console.log('\nInstalando git...');
222
+ const hasRepo = await this.promptHasRepository();
223
+ if (hasRepo === '1') {
224
+ const repository = await this.promptRepositoryUrl();
225
+ await this.installGit(repository);
226
+ } else {
227
+ await this.installGit(null);
228
+ console.log('\n⚠️ ADVERTENCIA: No se configuró un repositorio remoto.');
229
+ console.log(' Para vincularlo más adelante, ejecuta manualmente:');
230
+ console.log(' git remote add origin <url-de-tu-repositorio>');
231
+ }
232
+ await this.installGitignore();
233
+ }
234
+
132
235
  console.log('✅ SIESA Agents instalado correctamente!');
133
236
  this.showPostInstallMessage();
134
237
 
@@ -2,4 +2,8 @@
2
2
  description: 'Critical validation workflow that assesses PRD, Architecture, and Epics & Stories for completeness and alignment before implementation. Uses adversarial review approach to find gaps and issues.'
3
3
  ---
4
4
 
5
- IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md, READ its entire contents and follow its directions exactly!
5
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND:
6
+
7
+ 1. FIRST, LOAD and READ the FULL contents of the custom extension file at: `_siesa-agents/bmm/workflows/3-solutioning/check-implementation-readiness/workflow_ext.md ` — This contains mandatory pre-workflow context injection rules. Execute its steps BEFORE proceeding.
8
+
9
+ 2. LOAD the FULL @_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md, READ its entire contents and follow its directions exactly!
@@ -5,7 +5,7 @@ description: 'Navigate significant changes during sprint execution by analyzing
5
5
  IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded:
6
6
 
7
7
  <steps CRITICAL="TRUE">
8
- 1. ALWAYS Load and read the workflow extension from @{project-root}/_siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md to understand the Company Standards Context.
8
+ 1. ALWAYS Load and read the workflow extension from @{project-root}/_siesa-agents/bmm/workflows/4-implementation/correct-course/workflow_ext.md to understand the Company Standards Context.
9
9
  2. Always LOAD the FULL @_bmad/core/tasks/workflow.xml
10
10
  3. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @_bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml
11
11
  4. Pass the yaml path _bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml as 'workflow-config' parameter to the workflow.xml instructions
@@ -2,4 +2,8 @@
2
2
  description: 'Collaborative architectural decision facilitation for AI-agent consistency. Replaces template-driven architecture with intelligent, adaptive conversation that produces a decision-focused architecture document optimized for preventing agent conflicts.'
3
3
  ---
4
4
 
5
- IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md, READ its entire contents and follow its directions exactly!
5
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND:
6
+
7
+ 1. FIRST, LOAD and READ the FULL contents of the custom extension file at: `_siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md ` — This contains mandatory pre-workflow context injection rules. Execute its steps BEFORE proceeding.
8
+
9
+ 2.LOAD the FULL @_siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md, READ its entire contents and follow its directions exactly!
@@ -2,4 +2,8 @@
2
2
  description: 'Create comprehensive product briefs through collaborative step-by-step discovery as creative Business Analyst working with the user as peers.'
3
3
  ---
4
4
 
5
- IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md, READ its entire contents and follow its directions exactly!
5
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND:
6
+
7
+ 1. FIRST, LOAD and READ the FULL contents of the custom extension file at: `_siesa-agents/bmm/workflows/1-analysis/create-product-brief/workflow_ext.md ` — This contains mandatory pre-workflow context injection rules. Execute its steps BEFORE proceeding.
8
+
9
+ 2. LOAD the FULL @_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md, READ its entire contents and follow its directions exactly!
@@ -2,4 +2,8 @@
2
2
  description: 'Work with a peer UX Design expert to plan your applications UX patterns, look and feel.'
3
3
  ---
4
4
 
5
- IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md, READ its entire contents and follow its directions exactly!
5
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND:
6
+
7
+ 1. FIRST, LOAD and READ the FULL contents of the custom extension file at: `_siesa-agents/bmm/workflows/2-plan-workflows/create-ux-design/workflow_ext.md ` — This contains mandatory pre-workflow context injection rules. Execute its steps BEFORE proceeding.
8
+
9
+ 2. LOAD the FULL @_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md, READ its entire contents and follow its directions exactly!
@@ -5,7 +5,7 @@ description: 'Creates a concise project-context.md file with critical rules and
5
5
  IT IS CRITICAL THAT YOU FOLLOW THESE STEPS:
6
6
 
7
7
  <steps CRITICAL="TRUE">
8
- 1. FIRST: LOAD and READ the FULL @_siesa-agents/bmm/workflows/2-planning/generate-project-context/workflow_ext.md — This contains mandatory context injection rules and an interactive menu. Apply them BEFORE proceeding.
8
+ 1. FIRST: LOAD and READ the FULL @_siesa-agents/bmm/workflows/generate-project-context/workflow_ext.md — This contains mandatory context injection rules and an interactive menu. Apply them BEFORE proceeding.
9
9
  2. AFTER the menu choices are handled: LOAD the FULL @_bmad/bmm/workflows/generate-project-context/workflow.md
10
10
  3. READ its entire contents and follow its directions exactly, making sure to apply the output file path constraints derived from STEP 1!
11
11
  </steps>
@@ -5,7 +5,7 @@ description: 'Initialize a new BMM project by determining level, type, and creat
5
5
  IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded:
6
6
 
7
7
  <steps CRITICAL="TRUE">
8
- 1. FIRST: LOAD and READ the FULL @_siesa-agents/bmm/workflows/workflow-status/Init/workflow_ext.md — This contains mandatory extension rules for cloning Siesa base repositories at Step 10. Hold them in memory and apply them at the end of the workflow.
8
+ 1. FIRST: LOAD and READ the FULL @_siesa-agents/bmm/workflows/workflow-status/Init/workflow_ext.md — This contains mandatory pre-workflow context injection rules and contains mandatory extension rules for cloning Siesa base repositories at Step 10. Hold them in memory and apply them at the end of the workflow.
9
9
  2. Always LOAD the FULL @_bmad/core/tasks/workflow.xml
10
10
  3. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @_bmad/bmm/workflows/workflow-status/init/workflow.yaml
11
11
  4. Pass the yaml path _bmad/bmm/workflows/workflow-status/init/workflow.yaml as 'workflow-config' parameter to the workflow.xml instructions
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: 'Sync Epics and Stories'
3
+ ---
4
+
5
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_siesa-agents/sa/sync-epics-stories/workflow.md, READ its entire contents and follow its directions exactly!
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: sa-jira-sync
3
+ description: Query Jira and return a minimal hierarchy of Epics → Stories → Subtasks for a given project and epic status. Returns only id, key, name, and status for each level. Use when the user needs to inspect or export the epic/story/subtask structure from siesa-team or siesa-test-sandbox.
4
+ argument-hint: [PROJECT-KEY] [--status "Epic Status"]
5
+ user-invocable: true
6
+ allowed-tools: Bash, Read, Write
7
+ ---
8
+
9
+ Handle the Jira sync request: **$ARGUMENTS**
10
+
11
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_siesa-agents/sa/sa-jira-sync-api/jira-sync-api.md, READ its entire contents and follow its directions exactly!
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: 'Manages git branch creation and commits for the three SIESA development phases using the official phase scripts. Use this skill when a workflow step requests creating a phase branch or committing changes for a specific phase. Triggers when the user or a workflow references "phase 1/2/3 branch", "discovery/planning/solutioning branch", "commit phase changes", "create phase branch", or any operation involving the SIESA phase scripts (phase1.js, phase2.js, phase3.js).'
3
+ ---
4
+
5
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @.agents/skills/generate-commits-by-phase/SKILL.md, READ its entire contents and follow its directions exactly!
@@ -3,10 +3,11 @@ prompt = """
3
3
  IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded:
4
4
 
5
5
  <steps CRITICAL="TRUE">
6
- 1. Always LOAD the FULL @_bmad/core/tasks/workflow.xml
7
- 2. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @_bmad/bmm/workflows/4-implementation/code-review/workflow.yaml
8
- 3. Pass the yaml path _bmad/bmm/workflows/4-implementation/code-review/workflow.yaml as 'workflow-config' parameter to the workflow.xml instructions
9
- 4. Follow workflow.xml instructions EXACTLY as written to process and follow the specific workflow config and its instructions
10
- 5. Save outputs after EACH section when generating any documents from templates
6
+ 1. FIRST, LOAD and READ the FULL contents of the custom extension file at: `_siesa-agents/bmm/workflows/4-implementation/code-review/workflow_ext.md`. You MUST assimilate these pre-requisites before doing anything else.
7
+ 2. Always LOAD the FULL @_bmad/core/tasks/workflow.xml
8
+ 3. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @_bmad/bmm/workflows/4-implementation/code-review/workflow.yaml
9
+ 4. Pass the yaml path _bmad/bmm/workflows/4-implementation/code-review/workflow.yaml as 'workflow-config' parameter to the workflow.xml instructions
10
+ 5. Follow workflow.xml instructions EXACTLY as written to process and follow the specific workflow config and its instructions
11
+ 6. Save outputs after EACH section when generating any documents from templates
11
12
  </steps>
12
13
  """
@@ -3,7 +3,7 @@ prompt = """
3
3
  IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded:
4
4
 
5
5
  <steps CRITICAL="TRUE">
6
- 1. ALWAYS Load and read the workflow extension from @{project-root}/_siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md to understand the Company Standards Context.
6
+ 1. ALWAYS Load and read the workflow extension from @{project-root}/_siesa-agents/bmm/workflows/4-implementation/correct-course/workflow_ext.md to understand the Company Standards Context.
7
7
  2. Always LOAD the FULL @_bmad/core/tasks/workflow.xml
8
8
  3. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @_bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml
9
9
  4. Pass the yaml path _bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml as 'workflow-config' parameter to the workflow.xml instructions
@@ -1,4 +1,4 @@
1
1
  description = "BMAD BMM Workflow: create-architecture"
2
2
  prompt = """
3
- IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md, READ its entire contents and follow its directions exactly!
3
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md, READ its entire contents and follow its directions exactly!
4
4
  """
@@ -3,7 +3,7 @@ prompt = """
3
3
  IT IS CRITICAL THAT YOU FOLLOW THESE STEPS:
4
4
 
5
5
  <steps CRITICAL="TRUE">
6
- 1. FIRST: LOAD and READ the FULL @_siesa-agents/bmm/workflows/2-planning/generate-project-context/workflow_ext.md — This contains mandatory context injection rules and an interactive menu. Apply them BEFORE proceeding.
6
+ 1. FIRST: LOAD and READ the FULL @_siesa-agents/bmm/workflows/generate-project-context/workflow_ext.md — This contains mandatory context injection rules and an interactive menu. Apply them BEFORE proceeding.
7
7
  2. AFTER the menu choices are handled: LOAD the FULL @_bmad/bmm/workflows/generate-project-context/workflow.md
8
8
  3. READ its entire contents and follow its directions exactly, making sure to apply the output file path constraints derived from STEP 1!
9
9
  </steps>
@@ -0,0 +1,9 @@
1
+ description = "SA: Query Jira and return a minimal hierarchy of Epics → Stories → Subtasks for a given project and epic status. Returns only id, key, name, and status for each level."
2
+ prompt = """
3
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_siesa-agents/sa/sa-jira-sync-api/jira-sync-api.md, READ its entire contents and follow its directions exactly!
4
+
5
+ Parse the user arguments: **$ARGUMENTS**
6
+ - First positional arg → PROJECT_KEY (e.g. PPS)
7
+ - --status "..." → filter epics by this status name (default: En curso)
8
+ - If no PROJECT_KEY is provided, prompt the user for one.
9
+ """
@@ -0,0 +1,4 @@
1
+ description = "SA Workflow: sync-epics-stories — Sync Epics and Stories with Jira"
2
+ prompt = """
3
+ IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @_siesa-agents/sa/sync-epics-stories/workflow.md, READ its entire contents and follow its directions exactly!
4
+ """
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siesa-agents",
3
- "version": "2.1.68",
3
+ "version": "2.1.71",
4
4
  "description": "Paquete para instalar y configurar agentes SIESA en tu proyecto",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1,70 @@
1
+ # MANDATORY RULES: CREATE-PRODUCT-BRIEF WORKFLOW
2
+
3
+ ---
4
+
5
+ ## RULE 1 — PHASE BRANCH CREATION AT WORKFLOW START
6
+
7
+ **TRIGGER:** Immediately when the user initiates the `create-product-brief` workflow (e.g., `/create-product-brief`).
8
+
9
+ **CRITICAL INSTRUCTION:** Before loading `workflow.md` or executing any workflow step, you MUST invoke the `generate-commits-by-phase` skill to create the Phase 1 discovery branch.
10
+
11
+ ### EXECUTION STEPS (PERFORM THESE ACTIONS NOW, BEFORE ANYTHING ELSE)
12
+
13
+ **STEP 1: INVOKE THE SKILL — CREATE PHASE 1 BRANCH**
14
+
15
+ Run the skill `generate-commits-by-phase` with **Operation A: Create Phase Branch** for **Phase 1 (discovery)**:
16
+
17
+ ```bash
18
+ node _siesa-agents/scripts/phases/phase1.js
19
+ ```
20
+
21
+ - If the `discovery` branch already exists, the script will report it — continue normally.
22
+ - If it is created successfully, confirm to the user and proceed.
23
+
24
+ **STEP 2: CONFIRM AND CONTINUE**
25
+
26
+ Output to the user:
27
+ > `✅ Phase 1 (discovery) branch ready. Proceeding with Product Brief creation...`
28
+
29
+ **DO NOT proceed to `workflow.md` until this rule is fully executed.**
30
+
31
+ ---
32
+
33
+ ## RULE 2 — PHASE COMMIT AT WORKFLOW END
34
+
35
+ **TRIGGER:** Immediately after the `create-product-brief` workflow completes all its steps and the Product Brief document has been generated/saved.
36
+
37
+ **CRITICAL INSTRUCTION:** As the final action of this workflow, you MUST invoke the `generate-commits-by-phase` skill to commit all changes for Phase 1.
38
+
39
+ ### EXECUTION STEPS (PERFORM THESE ACTIONS AT THE END)
40
+
41
+ **STEP 1: INSPECT CHANGES**
42
+
43
+ Before committing, inspect the repository state:
44
+
45
+ 1. Run `git status --short` to identify which files were created or modified.
46
+ 2. Run `git diff --stat` to understand the scope of changes.
47
+
48
+ **STEP 2: GENERATE COMMIT MESSAGE**
49
+
50
+ Build a concise commit message using the format:
51
+ `[Phase 1 - Discovery] <brief description of what was produced>`
52
+
53
+ **Example:** `[Phase 1 - Discovery] add product brief for <project name>`
54
+
55
+ Write the message in the same language used throughout the conversation.
56
+
57
+ **STEP 3: INVOKE THE SKILL — COMMIT PHASE 1 CHANGES**
58
+
59
+ Run the skill `generate-commits-by-phase` with **Operation B: Commit All Changes** for **Phase 1 (discovery)**:
60
+
61
+ ```bash
62
+ node _siesa-agents/scripts/phases/phase1.js --commit "<generated commit message>"
63
+ ```
64
+
65
+ **STEP 4: CONFIRM COMPLETION**
66
+
67
+ Output to the user:
68
+ > `✅ Product Brief changes committed to Phase 1 (discovery) branch.`
69
+
70
+ **This is the LAST action of the workflow. Do not execute any further steps after this commit.**
@@ -0,0 +1,70 @@
1
+ # MANDATORY RULES: CREATE-UX-DESIGN WORKFLOW
2
+
3
+ ---
4
+
5
+ ## 1. MANDATORY RULE — PHASE BRANCH CREATION AT WORKFLOW START
6
+
7
+ **TRIGGER:** Immediately when the user initiates this workflow (e.g., `/create-ux-design`).
8
+
9
+ **CRITICAL INSTRUCTION:** Before executing any workflow step, you MUST invoke the `generate-commits-by-phase` skill to create the Phase 2 planning branch.
10
+
11
+ ### EXECUTION STEPS (PERFORM THESE ACTIONS NOW, BEFORE ANYTHING ELSE)
12
+
13
+ **STEP 1: INVOKE THE SKILL — CREATE PHASE 2 BRANCH**
14
+
15
+ Run the skill `generate-commits-by-phase` with **Operation A: Create Phase Branch** for **Phase 2 (planning)**:
16
+
17
+ ```bash
18
+ node _siesa-agents/scripts/phases/phase2.js
19
+ ```
20
+
21
+ - If the `planning` branch already exists, the script will report it — continue normally.
22
+ - If it is created successfully, confirm to the user and proceed.
23
+
24
+ **STEP 2: CONFIRM AND CONTINUE**
25
+
26
+ Output to the user:
27
+ > `✅ Phase 2 (planning) branch ready. Proceeding with UX Design creation...`
28
+
29
+ **DO NOT proceed to the workflow steps until this rule is fully executed.**
30
+
31
+ ---
32
+
33
+ ## 2. MANDATORY RULE — PHASE COMMIT AT WORKFLOW END
34
+
35
+ **TRIGGER:** Immediately after all workflow steps complete and the UX Design document has been generated/saved.
36
+
37
+ **CRITICAL INSTRUCTION:** As the final action of this workflow, you MUST invoke the `generate-commits-by-phase` skill to commit all changes for Phase 2.
38
+
39
+ ### EXECUTION STEPS (PERFORM THESE ACTIONS AT THE END)
40
+
41
+ **STEP 1: INSPECT CHANGES**
42
+
43
+ Before committing, inspect the repository state:
44
+
45
+ 1. Run `git status --short` to identify which files were created or modified.
46
+ 2. Run `git diff --stat` to understand the scope of changes.
47
+
48
+ **STEP 2: GENERATE COMMIT MESSAGE**
49
+
50
+ Build a concise commit message using the format:
51
+ `[Phase 2 - Planning] <brief description of what was produced>`
52
+
53
+ **Example:** `[Phase 2 - Planning] add UX design document for <project name>`
54
+
55
+ Write the message in the same language used throughout the conversation.
56
+
57
+ **STEP 3: INVOKE THE SKILL — COMMIT PHASE 2 CHANGES**
58
+
59
+ Run the skill `generate-commits-by-phase` with **Operation B: Commit All Changes** for **Phase 2 (planning)**:
60
+
61
+ ```bash
62
+ node _siesa-agents/scripts/phases/phase2.js --commit "<generated commit message>"
63
+ ```
64
+
65
+ **STEP 4: CONFIRM COMPLETION**
66
+
67
+ Output to the user:
68
+ > `✅ UX Design changes committed to Phase 2 (planning) branch.`
69
+
70
+ **This is the LAST action of the workflow. Do not execute any further steps after this commit.**
@@ -16,11 +16,30 @@ Cuando el workflow llegue a la fase de descubrimiento, presentar al usuario este
16
16
  > **2. Proporcionarlos manualmente** — Puedes pegarlos aquí, compartir un archivo `.txt` o `.md`, o describirlos en texto libre."
17
17
 
18
18
  <!-- INSTRUCCIONES DE WORKFLOW — NO mostrar al usuario -->
19
- - Si el usuario elige **opción 1 (Jira):** Invocar el skill `get-features` (UBICADO EN .claude\commands\get-features\SKILL.md) usando el Skill tool con `skill: "get-features"`. El skill se encargará de autenticarse con Jira, seleccionar instancia y proyecto, y generar el árbol de features en `_bmad-output/planning-artifacts/jira-trees/`. Una vez generado, leer ese archivo y extraer la lista de features del resultado para usarla como estructura del PRD.
20
- - Si el usuario elige **opción 2 (Manual):** Aceptar la lista de features que el usuario proporcione en cualquier formato (texto libre, `.txt`, `.md` o copia-pegado) y procesarla directamente.
19
+ - Si el usuario elige **opción 1 (Jira):** Invocar el skill `get-features` (UBICADO EN .claude\commands\get-features\SKILL.md) usando el Skill tool con `skill: "get-features"`. El skill se encargará de autenticarse con Jira, seleccionar instancia y proyecto, y generar el árbol de features en `_bmad-output/planning-artifacts/jira-trees/`. Una vez generado, leer ese archivo y extraer la lista de features del resultado para usarla como estructura del PRD. Por cada feature extraído de Jira, **incluir obligatoriamente** el marcador `FEATURE_CODE_JIRA={ISSUE_KEY}` en su sección del PRD (donde `{ISSUE_KEY}` es el ID del issue en Jira, ej: `PROY-123`). Este marcador es crítico para la sincronización posterior con Jira:
20
+ - Los shards del PRD (`prd/f{N}-*.md`) y los shards de épicas (`epics/f{N}-*.md`) deben contener este marcador.
21
+ - Al sincronizar, el workflow resuelve el ID con este orden de prioridad: (1) busca `FEATURE_CODE_JIRA=` en el shard de la épica; (2) si no lo encuentra, lo busca en el shard del PRD correspondiente.
22
+ - ⚠️ Si ninguno de los dos shards contiene el marcador, la sincronización fallará para ese feature. Es responsabilidad del ingeniero asegurar que el marcador exista en al menos uno de los dos shards antes de ejecutar la sincronización.
23
+ - Si el usuario elige **opción 2 (Manual):** Aceptar la lista de features que el usuario proporcione en cualquier formato (texto libre, `.txt`, `.md` o copia-pegado) y procesarla directamente. Por cada feature creado manualmente, incluir el marcador `FEATURE_CODE_JIRA=PENDING:{feature-slug}` (donde `{feature-slug}` es el nombre del feature en kebab-case, ej: `FEATURE_CODE_JIRA=PENDING:gestion-de-clientes`). Este valor temporal indica que el feature aún no existe en Jira y será creado automáticamente cuando el ingeniero ejecute `jira_sync`.
21
24
 
22
25
  Inyectar los features confirmados como estructura del PRD: cada feature debe quedar como una sección `### feature — {Name}` dentro del documento.
23
26
 
27
+ <!-- INSTRUCCIONES DE WORKFLOW — NO mostrar al usuario -->
28
+ **Si el PRD ya fue shardeado (existe la carpeta `prd/` con archivos `f{N}-*.md`):**
29
+ - **NO modificar** el PRD maestro original.
30
+ - Por cada nuevo feature que el ingeniero quiera agregar, ejecutar el siguiente flujo de resolución **antes de crear el shard**:
31
+
32
+ 1. Invocar el skill `get-features` (usando el Skill tool con `skill: "get-features"`) para traer el árbol actualizado de features desde Jira.
33
+ 2. Leer el árbol generado en `_bmad-output/planning-artifacts/jira-trees/` y filtrar los features que **no tienen shard local** (cuyo `ISSUE_KEY` no aparece en ningún `prd/f{N}-*.md` existente).
34
+ 3. Mostrar al ingeniero la lista filtrada y preguntar:
35
+ > *"Se encontraron los siguientes features en Jira sin shard local. ¿Alguno corresponde al feature que acabas de describir?"*
36
+ - Listar cada feature con su KEY y nombre (ej: `PROY-89 — Gestión de Clientes`).
37
+ - Incluir siempre la opción: **"Ninguno — es un feature completamente nuevo, no existe en Jira"**.
38
+ 4. **Si el ingeniero selecciona un feature de Jira** → crear el shard `f{N}-{feature-name}.md` con `FEATURE_CODE_JIRA={ISSUE_KEY}` del feature seleccionado.
39
+ 5. **Si el ingeniero elige "Ninguno"** → crear el shard `f{N}-{feature-name}.md` con `FEATURE_CODE_JIRA=PENDING:{feature-slug}`.
40
+
41
+ - Informar al ingeniero qué archivo shard fue creado y que puede enriquecerlo con detalle adicional de forma independiente.
42
+
24
43
  ## 2. Naturaleza del PRD Generado
25
44
 
26
45
  El PRD que produce este workflow es un **documento maestro general**. Contiene la definición base de cada feature a nivel de alcance, objetivos y requisitos generales — NO el detalle profundo de implementación de cada uno.
@@ -29,3 +48,72 @@ El PRD que produce este workflow es un **documento maestro general**. Contiene l
29
48
 
30
49
  Al finalizar el workflow, informar al ingeniero:
31
50
  > *"El PRD maestro ha sido generado. Para continuar, ejecuta `/shard-doc` sobre este archivo para dividirlo en shards por feature (`prd/feature-{name}.md`). Luego, cada feature shard puede alimentarse con mayor detalle de forma independiente."*
51
+
52
+ ---
53
+
54
+ ## 4. REGLA OBLIGATORIA — CREACIÓN DE RAMA DE FASE AL INICIO DEL WORKFLOW
55
+
56
+ **TRIGGER:** Inmediatamente cuando el usuario inicia este workflow (e.g., `/create-prd`).
57
+
58
+ **INSTRUCCIÓN CRÍTICA:** Antes de ejecutar cualquier paso del workflow, se DEBE invocar el skill `generate-commits-by-phase` para crear la rama de Phase 2 (planning).
59
+
60
+ ### PASOS DE EJECUCIÓN (REALIZAR ANTES DE CUALQUIER OTRA ACCIÓN)
61
+
62
+ **PASO 1: INVOCAR EL SKILL — CREAR RAMA FASE 2**
63
+
64
+ Ejecutar el skill `generate-commits-by-phase` con la **Operación A: Create Phase Branch** para **Phase 2 (planning)**:
65
+
66
+ ```bash
67
+ node _siesa-agents/scripts/phases/phase2.js
68
+ ```
69
+
70
+ - Si la rama `planning` ya existe, el script lo reportará — continuar normalmente.
71
+ - Si se crea exitosamente, confirmarlo al usuario y proceder.
72
+
73
+ **PASO 2: CONFIRMAR Y CONTINUAR**
74
+
75
+ Informar al usuario:
76
+ > `✅ Rama Phase 2 (planning) lista. Continuando con la creación del PRD...`
77
+
78
+ **NO continuar con los pasos del workflow hasta que esta regla esté completamente ejecutada.**
79
+
80
+ ---
81
+
82
+ ## 5. REGLA OBLIGATORIA — COMMIT DE FASE AL FINALIZAR EL WORKFLOW
83
+
84
+ **TRIGGER:** Inmediatamente después de que todos los pasos del workflow concluyan y el documento PRD haya sido generado/guardado.
85
+
86
+ **INSTRUCCIÓN CRÍTICA:** Como acción final de este workflow, se DEBE invocar el skill `generate-commits-by-phase` para hacer commit de todos los cambios en Phase 2.
87
+
88
+ ### PASOS DE EJECUCIÓN (REALIZAR AL FINALIZAR)
89
+
90
+ **PASO 1: INSPECCIONAR CAMBIOS**
91
+
92
+ Antes de hacer commit, inspeccionar el estado del repositorio:
93
+
94
+ 1. Ejecutar `git status --short` para identificar los archivos creados o modificados.
95
+ 2. Ejecutar `git diff --stat` para entender el alcance de los cambios.
96
+
97
+ **PASO 2: GENERAR MENSAJE DE COMMIT**
98
+
99
+ Construir un mensaje de commit conciso con el formato:
100
+ `[Phase 2 - Planning] <breve descripción de lo producido>`
101
+
102
+ **Ejemplo:** `[Phase 2 - Planning] add PRD master document for <project name>`
103
+
104
+ Escribir el mensaje en el mismo idioma usado durante la conversación.
105
+
106
+ **PASO 3: INVOCAR EL SKILL — COMMIT DE CAMBIOS FASE 2**
107
+
108
+ Ejecutar el skill `generate-commits-by-phase` con la **Operación B: Commit All Changes** para **Phase 2 (planning)**:
109
+
110
+ ```bash
111
+ node _siesa-agents/scripts/phases/phase2.js --commit "<mensaje generado>"
112
+ ```
113
+
114
+ **PASO 4: CONFIRMAR FINALIZACIÓN**
115
+
116
+ Informar al usuario:
117
+ > `✅ Cambios del PRD commiteados en la rama Phase 2 (planning).`
118
+
119
+ **Esta es la ÚLTIMA acción del workflow. No ejecutar ningún paso adicional después de este commit.**
@@ -0,0 +1,70 @@
1
+ # MANDATORY RULES: CHECK-IMPLEMENTATION-READINESS WORKFLOW
2
+
3
+ ---
4
+
5
+ ## 1. MANDATORY RULE — PHASE BRANCH CREATION AT WORKFLOW START
6
+
7
+ **TRIGGER:** Immediately when the user initiates this workflow (e.g., `/check-implementation-readiness`).
8
+
9
+ **CRITICAL INSTRUCTION:** Before executing any workflow step, you MUST invoke the `generate-commits-by-phase` skill to create the Phase 3 solutioning branch.
10
+
11
+ ### EXECUTION STEPS (PERFORM THESE ACTIONS NOW, BEFORE ANYTHING ELSE)
12
+
13
+ **STEP 1: INVOKE THE SKILL — CREATE PHASE 3 BRANCH**
14
+
15
+ Run the skill `generate-commits-by-phase` with **Operation A: Create Phase Branch** for **Phase 3 (solutioning)**:
16
+
17
+ ```bash
18
+ node _siesa-agents/scripts/phases/phase3.js
19
+ ```
20
+
21
+ - If the `solutioning` branch already exists, the script will report it — continue normally.
22
+ - If it is created successfully, confirm to the user and proceed.
23
+
24
+ **STEP 2: CONFIRM AND CONTINUE**
25
+
26
+ Output to the user:
27
+ > `✅ Phase 3 (solutioning) branch ready. Proceeding with Implementation Readiness check...`
28
+
29
+ **DO NOT proceed to the workflow steps until this rule is fully executed.**
30
+
31
+ ---
32
+
33
+ ## 2. MANDATORY RULE — PHASE COMMIT AT WORKFLOW END
34
+
35
+ **TRIGGER:** Immediately after all workflow steps complete and the readiness assessment has been generated/saved.
36
+
37
+ **CRITICAL INSTRUCTION:** As the final action of this workflow, you MUST invoke the `generate-commits-by-phase` skill to commit all changes for Phase 3.
38
+
39
+ ### EXECUTION STEPS (PERFORM THESE ACTIONS AT THE END)
40
+
41
+ **STEP 1: INSPECT CHANGES**
42
+
43
+ Before committing, inspect the repository state:
44
+
45
+ 1. Run `git status --short` to identify which files were created or modified.
46
+ 2. Run `git diff --stat` to understand the scope of changes.
47
+
48
+ **STEP 2: GENERATE COMMIT MESSAGE**
49
+
50
+ Build a concise commit message using the format:
51
+ `[Phase 3 - Solutioning] <brief description of what was produced>`
52
+
53
+ **Example:** `[Phase 3 - Solutioning] add implementation readiness assessment for <project name>`
54
+
55
+ Write the message in the same language used throughout the conversation.
56
+
57
+ **STEP 3: INVOKE THE SKILL — COMMIT PHASE 3 CHANGES**
58
+
59
+ Run the skill `generate-commits-by-phase` with **Operation B: Commit All Changes** for **Phase 3 (solutioning)**:
60
+
61
+ ```bash
62
+ node _siesa-agents/scripts/phases/phase3.js --commit "<generated commit message>"
63
+ ```
64
+
65
+ **STEP 4: CONFIRM COMPLETION**
66
+
67
+ Output to the user:
68
+ > `✅ Implementation Readiness changes committed to Phase 3 (solutioning) branch.`
69
+
70
+ **This is the LAST action of the workflow. Do not execute any further steps after this commit.**