siesa-agents 2.1.70 → 2.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/install.js +103 -0
- package/claude/commands/bmad/bmm/workflows/check-implementation-readiness.md +5 -1
- package/claude/commands/bmad/bmm/workflows/correct-course.md +1 -1
- package/claude/commands/bmad/bmm/workflows/create-architecture.md +5 -1
- package/claude/commands/bmad/bmm/workflows/create-product-brief.md +5 -1
- package/claude/commands/bmad/bmm/workflows/create-ux-design.md +5 -1
- package/claude/commands/bmad/bmm/workflows/generate-project-context.md +1 -1
- package/claude/commands/bmad/bmm/workflows/workflow-init.md +1 -1
- package/claude/skills/generate-commits-by-phase/skill.md +5 -0
- package/gemini/commands/bmad-workflow-bmm-correct-course.toml +1 -1
- package/gemini/commands/bmad-workflow-bmm-create-architecture.toml +1 -1
- package/gemini/commands/bmad-workflow-bmm-generate-project-context.toml +1 -1
- package/package.json +1 -1
- package/siesa-agents/bmm/workflows/1-analysis/create-product-brief/workflow_ext.md +70 -0
- package/siesa-agents/bmm/workflows/2-plan-workflows/create-ux-design/workflow_ext.md +105 -0
- package/siesa-agents/bmm/workflows/2-plan-workflows/prd/workflow_ext.md +69 -0
- package/siesa-agents/bmm/workflows/3-solutioning/check-implementation-readiness/workflow_ext.md +70 -0
- package/siesa-agents/bmm/workflows/3-solutioning/create-architecture/workflow_ext.md +103 -11
- package/siesa-agents/bmm/workflows/3-solutioning/create-epics-and-stories/workflow_ext.md +73 -0
- package/siesa-agents/bmm/workflows/4-implementation/correct-course/workflow_ext.md +11 -0
- package/siesa-agents/bmm/workflows/4-implementation/sprint-status/workflow_ext.md +42 -0
- package/siesa-agents/bmm/workflows/{2-planning/generate-project-context → generate-project-context}/workflow_ext.md +92 -1
- package/siesa-agents/bmm/workflows/workflow-status/Init/workflow_ext.md +92 -0
- package/siesa-agents/core/tasks/shard-doc.md +41 -24
- package/siesa-agents/resources/architecture/architecture-both.md +822 -0
- package/siesa-agents/resources/architecture/architecture-single-backend.md +565 -0
- package/siesa-agents/resources/ux-ui/ux-design-specification.md +837 -0
- package/siesa-agents/scripts/phases/phase1.js +110 -0
- package/siesa-agents/scripts/phases/phase2.js +110 -0
- package/siesa-agents/scripts/phases/phase3.js +110 -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:
|
|
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/
|
|
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:
|
|
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:
|
|
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:
|
|
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/
|
|
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: '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,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/
|
|
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 @
|
|
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/
|
|
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>
|
package/package.json
CHANGED
|
@@ -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,105 @@
|
|
|
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. INITIALIZATION — CHECK FOR EXISTING UX DESIGN DOCUMENT
|
|
34
|
+
|
|
35
|
+
Before executing any workflow step, search for an existing UX design document:
|
|
36
|
+
|
|
37
|
+
1. Look for a file matching `*ux-design-specification*.md` inside the `{planning_artifacts}/` folder.
|
|
38
|
+
- Glob pattern to check: `{planning_artifacts}/*ux-design-specification*.md`
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 3. DECISION BRANCH
|
|
43
|
+
|
|
44
|
+
### If `ux-design-specification.md` EXISTS
|
|
45
|
+
|
|
46
|
+
Use the **AskUserQuestion** tool to present the following options (respect `communication_language` from config):
|
|
47
|
+
|
|
48
|
+
> Se encontró un documento de especificación UX/UI existente en `{planning_artifacts}/ux-design-specification.md`.
|
|
49
|
+
>
|
|
50
|
+
> ¿Qué deseas hacer?
|
|
51
|
+
>
|
|
52
|
+
> **[1] Editar** — Abrir el documento para revisarlo y modificarlo de forma colaborativa.
|
|
53
|
+
> **[2] Resumen** — Generar un resumen ejecutivo del documento actual.
|
|
54
|
+
|
|
55
|
+
Wait for the user's selection and act accordingly:
|
|
56
|
+
|
|
57
|
+
- **Option 1 — Edit:** Read the full contents of `{planning_artifacts}/ux-design-specification.md`, present it to the user section by section, and facilitate collaborative editing. Apply changes directly to the file using the Edit tool.
|
|
58
|
+
- **Option 2 — Summary:** Read the full contents of `{planning_artifacts}/ux-design-specification.md` and produce a concise executive summary covering: design vision, target users, design system decisions, visual foundations, component strategy, and any open design questions.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
### If `ux-design-specification.md` does NOT EXIST
|
|
63
|
+
|
|
64
|
+
LOAD the FULL `@_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md`, READ its entire contents and follow its directions exactly!
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 4. MANDATORY RULE — PHASE COMMIT AT WORKFLOW END
|
|
69
|
+
|
|
70
|
+
**TRIGGER:** Immediately after all workflow steps complete and the UX Design document has been generated/saved.
|
|
71
|
+
|
|
72
|
+
**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.
|
|
73
|
+
|
|
74
|
+
### EXECUTION STEPS (PERFORM THESE ACTIONS AT THE END)
|
|
75
|
+
|
|
76
|
+
**STEP 1: INSPECT CHANGES**
|
|
77
|
+
|
|
78
|
+
Before committing, inspect the repository state:
|
|
79
|
+
|
|
80
|
+
1. Run `git status --short` to identify which files were created or modified.
|
|
81
|
+
2. Run `git diff --stat` to understand the scope of changes.
|
|
82
|
+
|
|
83
|
+
**STEP 2: GENERATE COMMIT MESSAGE**
|
|
84
|
+
|
|
85
|
+
Build a concise commit message using the format:
|
|
86
|
+
`[Phase 2 - Planning] <brief description of what was produced>`
|
|
87
|
+
|
|
88
|
+
**Example:** `[Phase 2 - Planning] add UX design document for <project name>`
|
|
89
|
+
|
|
90
|
+
Write the message in the same language used throughout the conversation.
|
|
91
|
+
|
|
92
|
+
**STEP 3: INVOKE THE SKILL — COMMIT PHASE 2 CHANGES**
|
|
93
|
+
|
|
94
|
+
Run the skill `generate-commits-by-phase` with **Operation B: Commit All Changes** for **Phase 2 (planning)**:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
node _siesa-agents/scripts/phases/phase2.js --commit "<generated commit message>"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**STEP 4: CONFIRM COMPLETION**
|
|
101
|
+
|
|
102
|
+
Output to the user:
|
|
103
|
+
> `✅ UX Design changes committed to Phase 2 (planning) branch.`
|
|
104
|
+
|
|
105
|
+
**This is the LAST action of the workflow. Do not execute any further steps after this commit.**
|
|
@@ -48,3 +48,72 @@ El PRD que produce este workflow es un **documento maestro general**. Contiene l
|
|
|
48
48
|
|
|
49
49
|
Al finalizar el workflow, informar al ingeniero:
|
|
50
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.**
|
package/siesa-agents/bmm/workflows/3-solutioning/check-implementation-readiness/workflow_ext.md
ADDED
|
@@ -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.**
|