speccrew 0.6.47 → 0.6.49

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.
@@ -51,8 +51,10 @@ flowchart TD
51
51
  Step6 --> End([End])
52
52
  ```
53
53
 
54
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `docs/rules/xml-workflow-spec.md`
54
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/xml-workflow-spec.md`
55
55
 
56
+ ```xml
57
+ <?xml version="1.0" encoding="UTF-8"?>
56
58
  <workflow id="module-summarize" version="1.0" status="pending" desc="Module summarization workflow">
57
59
 
58
60
  <!-- Input Block: Define workflow inputs -->
@@ -108,7 +110,7 @@ flowchart TD
108
110
  <block type="gateway" id="G1" mode="exclusive" desc="Check if features exist">
109
111
  <branch test="${feature_files.length} == 0" name="No features">
110
112
  <block type="event" id="E1a" action="log" level="warning" desc="No features warning">
111
- No feature documents found for module ${module_name}
113
+ <field name="message">No feature documents found for module ${module_name}</field>
112
114
  </block>
113
115
  <block type="task" id="B1e" action="write-file" desc="Generate minimal overview">
114
116
  <field name="path" value="${module_path}/${module_name}-overview.md"/>
@@ -116,12 +118,12 @@ No feature documents found for module ${module_name}
116
118
  </block>
117
119
  <field name="status" value="partial"/>
118
120
  <block type="event" id="E1b" action="signal" desc="Signal complete">
119
- workflow_complete
121
+ <field name="message">workflow_complete</field>
120
122
  </block>
121
123
  </branch>
122
124
  <branch test="${feature_files.length} > 0" name="Features found">
123
125
  <block type="event" id="E1c" action="log" level="info" desc="Features found">
124
- Found ${feature_files.length} feature documents
126
+ <field name="message">Found ${feature_files.length} feature documents</field>
125
127
  </block>
126
128
  </branch>
127
129
  </block>
@@ -308,13 +310,13 @@ Found ${feature_files.length} feature documents
308
310
  </try>
309
311
  <catch error-type="write_error">
310
312
  <block type="event" id="EH1-E1" action="log" level="error" desc="Write error">
311
- Failed to write overview document: ${write_error.message}
313
+ <field name="message">Failed to write overview document: ${write_error.message}</field>
312
314
  </block>
313
315
  <field name="status" value="failed"/>
314
316
  </catch>
315
317
  <finally>
316
318
  <block type="event" id="EH1-E2" action="log" level="info" desc="Write completed">
317
- Document write operation completed
319
+ <field name="message">Document write operation completed</field>
318
320
  </block>
319
321
  </finally>
320
322
  </block>
@@ -351,14 +353,14 @@ Document write operation completed
351
353
 
352
354
  <!-- Event: Log completion -->
353
355
  <block type="event" id="E6" action="log" level="info" desc="Log completion">
354
- Module summarization completed:
356
+ <field name="message">Module summarization completed:
355
357
  - Module: ${module_name}
356
358
  - Features Processed: ${feature_files.length}
357
359
  - Entities Extracted: ${unique_entities.length}
358
360
  - Dependencies Identified: ${dependencies.length}
359
361
  - Business Rules Summarized: ${business_rules.length}
360
362
  - Output: ${module_name}-overview.md (complete)
361
- - Status: success
363
+ - Status: success</field>
362
364
  </block>
363
365
  </sequence>
364
366
 
@@ -371,6 +373,7 @@ Module summarization completed:
371
373
  </block>
372
374
 
373
375
  </workflow>
376
+ ```
374
377
 
375
378
  ## Constraints
376
379
 
@@ -58,8 +58,10 @@ flowchart TD
58
58
  Step8 --> End([End])
59
59
  ```
60
60
 
61
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `docs/rules/xml-workflow-spec.md`
61
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/xml-workflow-spec.md`
62
62
 
63
+ ```xml
64
+ <?xml version="1.0" encoding="UTF-8"?>
63
65
  <workflow id="system-summarize-main" status="pending" version="1.0" desc="System summarization workflow">
64
66
  <!-- ============================================================
65
67
  Input Parameters Definition
@@ -97,7 +99,7 @@ flowchart TD
97
99
 
98
100
  <!-- Prerequisites Verification -->
99
101
  <block type="event" id="E1" action="log" level="info" desc="Log workflow start">
100
- Starting system summarization workflow
102
+ <field name="message">Starting system summarization workflow</field>
101
103
  </block>
102
104
 
103
105
  <!-- Step 0: Read System Overview Template -->
@@ -123,7 +125,7 @@ Starting system summarization workflow
123
125
  <block type="gateway" id="G1" mode="exclusive" desc="Check if modules discovered">
124
126
  <branch test="${module_files.length} == 0" name="No modules">
125
127
  <block type="event" id="E2" action="log" level="warning" desc="Log no modules found">
126
- No module overview files found in ${modules_path}
128
+ <field name="message">No module overview files found in ${modules_path}</field>
127
129
  </block>
128
130
  <block type="task" id="B2" action="run-script" desc="Generate skeleton document">
129
131
  <field name="script" value="generate-skeleton.js"/>
@@ -144,7 +146,7 @@ No module overview files found in ${modules_path}
144
146
  </branch>
145
147
  <branch test="${module_files.length} > 0" name="Modules found">
146
148
  <block type="event" id="E4" action="log" level="info" desc="Log modules discovered">
147
- Discovered ${module_files.length} module overview files
149
+ <field name="message">Discovered ${module_files.length} module overview files</field>
148
150
  </block>
149
151
  </branch>
150
152
  </block>
@@ -355,7 +357,7 @@ Discovered ${module_files.length} module overview files
355
357
  <field name="output" var="timestamp"/>
356
358
  </block>
357
359
  <block type="event" id="E5" action="log" level="warning" desc="Log fallback">
358
- Using system fallback timestamp
360
+ <field name="message">Using system fallback timestamp</field>
359
361
  </block>
360
362
  </branch>
361
363
  </block>
@@ -464,7 +466,7 @@ Using system fallback timestamp
464
466
  </try>
465
467
  <catch error-type="write_error">
466
468
  <block type="event" id="E6" action="log" level="error" desc="Log write error">
467
- Failed to write system overview: ${write_error.message}
469
+ <field name="message">Failed to write system overview: ${write_error.message}</field>
468
470
  </block>
469
471
  <block type="output" id="O-err" desc="Error output">
470
472
  <field name="status" value="failed"/>
@@ -472,7 +474,7 @@ Failed to write system overview: ${write_error.message}
472
474
  </catch>
473
475
  <finally>
474
476
  <block type="event" id="E7" action="log" level="info" desc="Log write complete">
475
- Document write operation completed
477
+ <field name="message">Document write operation completed</field>
476
478
  </block>
477
479
  </finally>
478
480
  </block>
@@ -513,14 +515,14 @@ Document write operation completed
513
515
 
514
516
  <!-- Event: Log completion -->
515
517
  <block type="event" id="E8" action="log" level="info" desc="Log completion summary">
516
- System summarization completed:
518
+ <field name="message">System summarization completed:
517
519
  - Modules Processed: ${module_count}
518
520
  - Entities Aggregated: ${metrics.entity_count}
519
521
  - APIs Counted: ${metrics.api_count}
520
522
  - Dependencies Mapped: ${all_dependencies.length}
521
523
  - Business Flows Identified: ${flow_count}
522
524
  - Output: system-overview.md (complete)
523
- - Status: success
525
+ - Status: success</field>
524
526
  </block>
525
527
 
526
528
  <!-- Output Block: Define workflow outputs -->
@@ -530,6 +532,7 @@ Document write operation completed
530
532
  <field name="message" value="System summarization completed with ${module_count} modules processed"/>
531
533
  </block>
532
534
  </workflow>
535
+ ```
533
536
 
534
537
  ## Constraints
535
538
 
@@ -6,7 +6,7 @@ tools: Read, Write, Task, Bash
6
6
 
7
7
  > **⚠️ MANDATORY EXECUTION PROTOCOL — READ BEFORE EXECUTING ANY BLOCK**
8
8
  >
9
- > **Step 1**: Load XML workflow specification: `docs/rules/xml-workflow-spec.md` — this defines all block types and action-to-tool mappings
9
+ > **Step 1**: Load XML workflow specification: `speccrew-workspace/docs/rules/xml-workflow-spec.md` — this defines all block types and action-to-tool mappings
10
10
  >
11
11
  > **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**:
12
12
  > - `action="run-script"` → Execute via **Terminal tool** (PowerShell/Bash)
@@ -118,8 +118,10 @@ Read `speccrew-workspace/docs/configs/platform-mapping.json` for standardized pl
118
118
 
119
119
  ## XML Workflow Definition
120
120
 
121
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `docs/rules/xml-workflow-spec.md`
121
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/xml-workflow-spec.md`
122
122
 
123
+ ```xml
124
+ <?xml version="1.0" encoding="UTF-8"?>
123
125
  <workflow id="techs-dispatch-main" status="pending" version="1.0" desc="techs knowledge base generation 3-stage pipeline">
124
126
 
125
127
  <!-- ============================================================
@@ -191,10 +193,10 @@ Read `speccrew-workspace/docs/configs/platform-mapping.json` for standardized pl
191
193
 
192
194
  <!-- Step 2: Prepare Task Plan for techs-init -->
193
195
  <block type="event" id="S1-E1" action="log" level="info" desc="Prepare techs-init task plan">
194
- Stage 1: Preparing task plan for speccrew-knowledge-techs-init-xml
196
+ <field name="message">Stage 1: Preparing task plan for speccrew-knowledge-techs-init-xml
195
197
  - Source path: ${source_path}
196
198
  - Output path: ${sync_state_techs_dir}
197
- - Language: ${language}
199
+ - Language: ${language}</field>
198
200
  </block>
199
201
 
200
202
  <!-- Step 3: Prepare task specification -->
@@ -210,9 +212,9 @@ Stage 1: Preparing task plan for speccrew-knowledge-techs-init-xml
210
212
 
211
213
  <!-- Step 4: Monitor completion -->
212
214
  <block type="event" id="S1-E2" action="log" level="info" desc="Stage 1 task prepared">
213
- Stage 1 task plan prepared. Waiting for calling Agent to dispatch.
215
+ <field name="message">Stage 1 task plan prepared. Waiting for calling Agent to dispatch.
214
216
  Task: speccrew-knowledge-techs-init-xml
215
- Output: ${sync_state_techs_dir}/techs-manifest.json
217
+ Output: ${sync_state_techs_dir}/techs-manifest.json</field>
216
218
  </block>
217
219
 
218
220
  <!-- Step 5: Read manifest after completion -->
@@ -233,7 +235,7 @@ Output: ${sync_state_techs_dir}/techs-manifest.json
233
235
  </block>
234
236
 
235
237
  <block type="event" id="S1-E3" action="log" level="info" desc="Report detected platforms">
236
- Stage 1 complete. Detected ${techs_manifest.platforms.length} platforms: ${techs_manifest.platforms.map(p => p.platform_id).join(', ')}
238
+ <field name="message">Stage 1 complete. Detected ${techs_manifest.platforms.length} platforms: ${techs_manifest.platforms.map(p => p.platform_id).join(', ')}</field>
237
239
  </block>
238
240
  </sequence>
239
241
 
@@ -284,7 +286,7 @@ if (platform) {
284
286
 
285
287
  <!-- Step 2: Prepare Conventions Worker Task Plans (ALL Platforms) -->
286
288
  <block type="event" id="S2-E1" action="log" level="info" desc="Prepare conventions worker tasks">
287
- Preparing conventions worker task plans for ${techs_manifest.platforms.length} platforms...
289
+ <field name="message">Preparing conventions worker task plans for ${techs_manifest.platforms.length} platforms...</field>
288
290
  </block>
289
291
 
290
292
  <block type="loop" id="S2-L2" over="${techs_manifest.platforms}" as="platform" desc="Prepare conventions worker task for each platform">
@@ -307,7 +309,7 @@ Preparing conventions worker task plans for ${techs_manifest.platforms.length} p
307
309
 
308
310
  <!-- Step 3: Prepare UI-Style Worker Task Plans (Frontend Platforms ONLY) -->
309
311
  <block type="event" id="S2-E2" action="log" level="info" desc="Prepare UI-style worker tasks">
310
- Preparing UI-style worker task plans for frontend platforms...
312
+ <field name="message">Preparing UI-style worker task plans for frontend platforms...</field>
311
313
  </block>
312
314
 
313
315
  <block type="loop" id="S2-L3" over="${techs_manifest.platforms}" as="platform" desc="Prepare UI-style worker task for frontend platforms">
@@ -331,7 +333,7 @@ Preparing UI-style worker task plans for frontend platforms...
331
333
 
332
334
  <!-- Step 4: Dispatch ALL Workers in PARALLEL -->
333
335
  <block type="event" id="S2-E3" action="log" level="info" desc="Dispatch all workers">
334
- Dispatching ALL workers in PARALLEL. The calling Agent should dispatch all prepared tasks simultaneously.
336
+ <field name="message">Dispatching ALL workers in PARALLEL. The calling Agent should dispatch all prepared tasks simultaneously.</field>
335
337
  </block>
336
338
 
337
339
  <!-- Step 5: Monitor Completion Markers -->
@@ -410,7 +412,7 @@ Dispatching ALL workers in PARALLEL. The calling Agent should dispatch all prepa
410
412
  </block>
411
413
 
412
414
  <block type="event" id="S2-E4" action="log" level="info" desc="Stage 2 complete">
413
- Stage 2 complete. All platform workers finished.
415
+ <field name="message">Stage 2 complete. All platform workers finished.</field>
414
416
  </block>
415
417
  </sequence>
416
418
 
@@ -427,7 +429,7 @@ Stage 2 complete. All platform workers finished.
427
429
 
428
430
  <!-- Step A: Scan Completion Markers -->
429
431
  <block type="event" id="S2_5-E1" action="log" level="info" desc="Step A: Scan completion markers">
430
- Stage 2.5 Step A: Scanning completion markers...
432
+ <field name="message">Stage 2.5 Step A: Scanning completion markers...</field>
431
433
  </block>
432
434
 
433
435
  <block type="loop" id="S2_5-L1" over="${techs_manifest.platforms}" as="platform" desc="Scan markers for each platform">
@@ -453,7 +455,7 @@ console.log(JSON.stringify(markers));
453
455
 
454
456
  <!-- Step B: Verify Output Integrity -->
455
457
  <block type="event" id="S2_5-E2" action="log" level="info" desc="Step B: Verify output integrity">
456
- Stage 2.5 Step B: Verifying output integrity...
458
+ <field name="message">Stage 2.5 Step B: Verifying output integrity...</field>
457
459
  </block>
458
460
 
459
461
  <block type="loop" id="S2_5-L2" over="${techs_manifest.platforms}" as="platform" desc="Verify documents for each platform">
@@ -497,7 +499,7 @@ console.log(JSON.stringify(results));
497
499
 
498
500
  <!-- Step C: Update Progress Status -->
499
501
  <block type="event" id="S2_5-E3" action="log" level="info" desc="Step C: Update progress status">
500
- Stage 2.5 Step C: Updating progress status...
502
+ <field name="message">Stage 2.5 Step C: Updating progress status...</field>
501
503
  </block>
502
504
 
503
505
  <block type="task" id="S2_5-B3" action="run-script" status="pending" desc="Generate stage2-status.json">
@@ -531,7 +533,7 @@ console.log('stage2-status.json written');
531
533
  </block>
532
534
 
533
535
  <block type="event" id="S2_5-E4" action="log" level="info" desc="Stage 2.5 complete">
534
- Stage 2.5 complete. Verification results written to stage2-status.json.
536
+ <field name="message">Stage 2.5 complete. Verification results written to stage2-status.json.</field>
535
537
  </block>
536
538
  </sequence>
537
539
 
@@ -554,10 +556,10 @@ Stage 2.5 complete. Verification results written to stage2-status.json.
554
556
 
555
557
  <!-- Step 2: Prepare Task Plan for techs-index -->
556
558
  <block type="event" id="S3-E1" action="log" level="info" desc="Prepare techs-index task plan">
557
- Stage 3: Preparing task plan for speccrew-knowledge-techs-index-xml
559
+ <field name="message">Stage 3: Preparing task plan for speccrew-knowledge-techs-index-xml
558
560
  - Manifest: ${sync_state_techs_dir}/techs-manifest.json
559
561
  - Output: ${workspace_path}/knowledges/techs/
560
- - Language: ${language}
562
+ - Language: ${language}</field>
561
563
  </block>
562
564
 
563
565
  <!-- Step 3: Prepare task specification -->
@@ -574,9 +576,9 @@ Stage 3: Preparing task plan for speccrew-knowledge-techs-index-xml
574
576
 
575
577
  <!-- Step 4: Monitor completion -->
576
578
  <block type="event" id="S3-E2" action="log" level="info" desc="Stage 3 task prepared">
577
- Stage 3 task plan prepared. Waiting for calling Agent to dispatch.
579
+ <field name="message">Stage 3 task plan prepared. Waiting for calling Agent to dispatch.
578
580
  Task: speccrew-knowledge-techs-index-xml
579
- Output: ${workspace_path}/knowledges/techs/INDEX.md
581
+ Output: ${workspace_path}/knowledges/techs/INDEX.md</field>
580
582
  </block>
581
583
 
582
584
  <!-- Step 5: Generate stage3-status.json -->
@@ -605,7 +607,7 @@ console.log('stage3-status.json written');
605
607
  </block>
606
608
 
607
609
  <block type="event" id="S3-E3" action="log" level="info" desc="Stage 3 complete">
608
- Stage 3 complete. Root INDEX.md generated.
610
+ <field name="message">Stage 3 complete. Root INDEX.md generated.</field>
609
611
  </block>
610
612
  </sequence>
611
613
 
@@ -621,6 +623,7 @@ Stage 3 complete. Root INDEX.md generated.
621
623
  </block>
622
624
 
623
625
  </workflow>
626
+ ```
624
627
 
625
628
  ---
626
629
 
@@ -72,8 +72,10 @@ ${output_path}/
72
72
 
73
73
  ## Workflow
74
74
 
75
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `docs/rules/xml-workflow-spec.md`
75
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/xml-workflow-spec.md`
76
76
 
77
+ ```xml
78
+ <?xml version="1.0" encoding="UTF-8"?>
77
79
  <workflow id="platform-conventions-generation" status="pending" version="1.0" desc="Platform conventions generation workflow">
78
80
 
79
81
  <!-- ==================== INPUT PARAMETERS ==================== -->
@@ -866,6 +868,7 @@ ${output_path}/
866
868
  </block>
867
869
 
868
870
  </workflow>
871
+ ```
869
872
 
870
873
  ## Constraints
871
874