speccrew 0.6.69 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/.speccrew/agents/speccrew-task-worker.md +1 -1
  2. package/.speccrew/agents/speccrew-team-leader.md +336 -189
  3. package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +161 -0
  4. package/.speccrew/skills/speccrew-agentflow-manager/workflow.agentflow.xml +347 -0
  5. package/.speccrew/skills/speccrew-deploy-build/SKILL.md +3 -56
  6. package/.speccrew/skills/speccrew-deploy-build/workflow.agentflow.xml +125 -0
  7. package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +3 -64
  8. package/.speccrew/skills/speccrew-deploy-migrate/workflow.agentflow.xml +135 -0
  9. package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +4 -156
  10. package/.speccrew/skills/speccrew-deploy-smoke-test/workflow.agentflow.xml +178 -0
  11. package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +3 -135
  12. package/.speccrew/skills/speccrew-deploy-startup/workflow.agentflow.xml +223 -0
  13. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +10 -2
  14. package/.speccrew/skills/speccrew-dev-backend/workflow.agentflow.xml +254 -0
  15. package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +10 -2
  16. package/.speccrew/skills/speccrew-dev-desktop-electron/workflow.agentflow.xml +259 -0
  17. package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +10 -2
  18. package/.speccrew/skills/speccrew-dev-desktop-tauri/workflow.agentflow.xml +245 -0
  19. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +10 -2
  20. package/.speccrew/skills/speccrew-dev-frontend/workflow.agentflow.xml +262 -0
  21. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +10 -2
  22. package/.speccrew/skills/speccrew-dev-mobile/workflow.agentflow.xml +244 -0
  23. package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +10 -2
  24. package/.speccrew/skills/speccrew-dev-review-backend/workflow.agentflow.xml +251 -0
  25. package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +10 -2
  26. package/.speccrew/skills/speccrew-dev-review-desktop/workflow.agentflow.xml +214 -0
  27. package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +10 -2
  28. package/.speccrew/skills/speccrew-dev-review-frontend/workflow.agentflow.xml +213 -0
  29. package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +10 -2
  30. package/.speccrew/skills/speccrew-dev-review-mobile/workflow.agentflow.xml +214 -0
  31. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +7 -1
  32. package/.speccrew/skills/speccrew-fd-api-contract/workflow.agentflow.xml +222 -0
  33. package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +7 -1
  34. package/.speccrew/skills/speccrew-fd-feature-analyze/workflow.agentflow.xml +223 -0
  35. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +7 -1
  36. package/.speccrew/skills/speccrew-fd-feature-design/workflow.agentflow.xml +322 -0
  37. package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +3 -39
  38. package/.speccrew/skills/speccrew-get-timestamp/workflow.agentflow.xml +43 -0
  39. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +57 -508
  40. package/.speccrew/skills/{speccrew-knowledge-bizs-api-analyze-xml/SKILL.md → speccrew-knowledge-bizs-api-analyze/workflow.agentflow.xml} +1 -154
  41. package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +73 -283
  42. package/.speccrew/skills/{speccrew-knowledge-bizs-api-graph-xml/SKILL.md → speccrew-knowledge-bizs-api-graph/workflow.agentflow.xml} +0 -298
  43. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +931 -801
  44. package/.speccrew/skills/{speccrew-knowledge-bizs-dispatch-xml/SKILL.md → speccrew-knowledge-bizs-dispatch/workflow.agentflow.xml} +42 -272
  45. package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +263 -71
  46. package/.speccrew/skills/{speccrew-knowledge-bizs-identify-entries-xml/SKILL.md → speccrew-knowledge-bizs-identify-entries/workflow.agentflow.xml} +8 -184
  47. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +200 -181
  48. package/.speccrew/skills/{speccrew-knowledge-bizs-init-features-xml/SKILL.md → speccrew-knowledge-bizs-init-features/workflow.agentflow.xml} +7 -134
  49. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +5 -89
  50. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/workflow.agentflow.xml +129 -0
  51. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +454 -326
  52. package/.speccrew/skills/{speccrew-knowledge-bizs-ui-analyze-xml/SKILL.md → speccrew-knowledge-bizs-ui-analyze/workflow.agentflow.xml} +8 -128
  53. package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +302 -247
  54. package/.speccrew/skills/{speccrew-knowledge-bizs-ui-graph-xml/SKILL.md → speccrew-knowledge-bizs-ui-graph/workflow.agentflow.xml} +7 -199
  55. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +267 -156
  56. package/.speccrew/skills/{speccrew-knowledge-bizs-ui-style-extract-xml/SKILL.md → speccrew-knowledge-bizs-ui-style-extract/workflow.agentflow.xml} +7 -151
  57. package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +3 -122
  58. package/.speccrew/skills/speccrew-knowledge-graph-query/workflow.agentflow.xml +106 -0
  59. package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +3 -80
  60. package/.speccrew/skills/speccrew-knowledge-graph-write/workflow.agentflow.xml +152 -0
  61. package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +371 -265
  62. package/.speccrew/skills/{speccrew-knowledge-module-summarize-xml/SKILL.md → speccrew-knowledge-module-summarize/workflow.agentflow.xml} +7 -197
  63. package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +45 -333
  64. package/.speccrew/skills/{speccrew-knowledge-system-summarize-xml/SKILL.md → speccrew-knowledge-system-summarize/workflow.agentflow.xml} +0 -177
  65. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +174 -727
  66. package/.speccrew/skills/{speccrew-knowledge-techs-dispatch-xml/SKILL.md → speccrew-knowledge-techs-dispatch/workflow.agentflow.xml} +10 -351
  67. package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +20 -150
  68. package/.speccrew/skills/{speccrew-knowledge-techs-generate-xml/SKILL.md → speccrew-knowledge-techs-generate/workflow.agentflow.xml} +0 -169
  69. package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +75 -587
  70. package/.speccrew/skills/{speccrew-knowledge-techs-generate-conventions-xml/SKILL.md → speccrew-knowledge-techs-generate-conventions/workflow.agentflow.xml} +0 -153
  71. package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +463 -297
  72. package/.speccrew/skills/{speccrew-knowledge-techs-generate-quality-xml/SKILL.md → speccrew-knowledge-techs-generate-quality/workflow.agentflow.xml} +0 -164
  73. package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +57 -292
  74. package/.speccrew/skills/{speccrew-knowledge-techs-generate-ui-style-xml/SKILL.md → speccrew-knowledge-techs-generate-ui-style/workflow.agentflow.xml} +2 -193
  75. package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +49 -335
  76. package/.speccrew/skills/{speccrew-knowledge-techs-index-xml/SKILL.md → speccrew-knowledge-techs-index/workflow.agentflow.xml} +0 -167
  77. package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +28 -109
  78. package/.speccrew/skills/{speccrew-knowledge-techs-init-xml/SKILL.md → speccrew-knowledge-techs-init/workflow.agentflow.xml} +0 -189
  79. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +3 -487
  80. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/workflow.agentflow.xml +278 -0
  81. package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +3 -71
  82. package/.speccrew/skills/speccrew-pm-knowledge-detector/workflow.agentflow.xml +108 -0
  83. package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +3 -107
  84. package/.speccrew/skills/speccrew-pm-module-initializer/workflow.agentflow.xml +139 -0
  85. package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +3 -115
  86. package/.speccrew/skills/speccrew-pm-module-matcher/workflow.agentflow.xml +146 -0
  87. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +3 -343
  88. package/.speccrew/skills/speccrew-pm-requirement-analysis/workflow.agentflow.xml +174 -0
  89. package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +3 -91
  90. package/.speccrew/skills/speccrew-pm-requirement-assess/workflow.agentflow.xml +173 -0
  91. package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +3 -224
  92. package/.speccrew/skills/speccrew-pm-requirement-clarify/workflow.agentflow.xml +159 -0
  93. package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +3 -275
  94. package/.speccrew/skills/speccrew-pm-requirement-model/workflow.agentflow.xml +210 -0
  95. package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +3 -76
  96. package/.speccrew/skills/speccrew-pm-requirement-simple/workflow.agentflow.xml +120 -0
  97. package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +7 -1
  98. package/.speccrew/skills/speccrew-pm-sub-prd-generate/workflow.agentflow.xml +218 -0
  99. package/.speccrew/skills/speccrew-sd-backend/SKILL.md +7 -1
  100. package/.speccrew/skills/speccrew-sd-backend/workflow.agentflow.xml +264 -0
  101. package/.speccrew/skills/speccrew-sd-desktop/SKILL.md +7 -1
  102. package/.speccrew/skills/speccrew-sd-desktop/workflow.agentflow.xml +288 -0
  103. package/.speccrew/skills/speccrew-sd-framework-evaluate/SKILL.md +7 -1
  104. package/.speccrew/skills/speccrew-sd-framework-evaluate/workflow.agentflow.xml +235 -0
  105. package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +7 -1
  106. package/.speccrew/skills/speccrew-sd-frontend/workflow.agentflow.xml +299 -0
  107. package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +7 -1
  108. package/.speccrew/skills/speccrew-sd-mobile/workflow.agentflow.xml +301 -0
  109. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +165 -284
  110. package/.speccrew/skills/speccrew-test-case-design/workflow.agentflow.xml +210 -0
  111. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +204 -324
  112. package/.speccrew/skills/speccrew-test-code-gen/workflow.agentflow.xml +265 -0
  113. package/.speccrew/skills/speccrew-test-reporter/SKILL.md +205 -184
  114. package/.speccrew/skills/speccrew-test-reporter/workflow.agentflow.xml +284 -0
  115. package/.speccrew/skills/speccrew-test-runner/SKILL.md +242 -241
  116. package/.speccrew/skills/speccrew-test-runner/workflow.agentflow.xml +314 -0
  117. package/bin/cli.js +8 -1
  118. package/lib/commands/validate.js +565 -0
  119. package/package.json +1 -1
  120. package/workspace-template/docs/rules/{xml-workflow-spec.md → agentflow-spec.md} +5 -5
  121. package/workspace-template/scripts/validate-agentflow.js +637 -0
  122. package/.speccrew/agents/speccrew-team-leader-xml.md +0 -480
  123. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/STATUS-FORMATS.md +0 -99
  124. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/batch-orchestrator.js +0 -176
  125. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/get-next-batch.js +0 -150
  126. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/get-pending-features.js +0 -106
  127. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/mark-stale.js +0 -249
  128. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/merge-features.js +0 -300
  129. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/process-batch-results.js +0 -915
  130. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/update-feature-status.js +0 -226
  131. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/examples/features.json +0 -34
  132. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/scripts/generate-inventory.js +0 -1087
  133. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/scripts/test-inventory.js +0 -26
  134. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/STATUS-FORMATS.md +0 -550
@@ -1,80 +1,3 @@
1
- ---
2
- name: speccrew-knowledge-techs-generate-conventions-xml
3
- description: Generate technology convention documents (INDEX, tech-stack, architecture, conventions-*) for a specific platform using XML Block workflow. Extracts tech stack, architecture, and development conventions from configuration files and source code. Split from techs-generate for parallel execution with ui-style worker.
4
- tools: Read, Write, Glob, Grep
5
- ---
6
-
7
- # Stage 2: Generate Platform Convention Documents (XML Block Workflow)
8
-
9
- Generate comprehensive convention documentation for a specific platform by analyzing its configuration files and source code structure. This skill focuses on conventions documents only; UI style analysis is handled by the separate techs-generate-ui-style worker.
10
-
11
- ## Trigger Scenarios
12
-
13
- - "Generate convention documents for {platform}"
14
- - "Create tech stack and architecture documentation"
15
- - "Extract development conventions from {platform}"
16
- - "Generate platform conventions docs"
17
- - "Create INDEX, tech-stack, and conventions-* files"
18
-
19
- ## User
20
-
21
- Worker Agent (speccrew-task-worker)
22
-
23
- ## Input Variables
24
-
25
- | Variable | Type | Description | Example |
26
- |----------|------|-------------|---------|
27
- | `${platform_id}` | string | Platform identifier | `"web-react"`, `"backend-nestjs"` |
28
- | `${platform_type}` | string | Platform type | `web`, `mobile`, `backend`, `desktop`, `api` |
29
- | `${framework}` | string | Primary framework | `react`, `nestjs`, `flutter`, etc. |
30
- | `${source_path}` | string | Platform source directory | `"frontend-web"` |
31
- | `${config_files}` | array | List of configuration file paths | `["package.json", "tsconfig.json"]` |
32
- | `${convention_files}` | array | List of convention file paths | `[".eslintrc.js", ".prettierrc"]` |
33
- | `${output_path}` | string | Output directory for generated documents | `speccrew-workspace/knowledges/techs/{platform_id}/` |
34
- | `${language}` | string | Target language for generated content | `"zh"`, `"en"` |
35
- | `${completed_dir}` | string | (Optional) Directory for analysis coverage report output | `speccrew-workspace/iterations/...` |
36
-
37
- ## Output Variables
38
-
39
- | Variable | Type | Description |
40
- |----------|------|-------------|
41
- | `${status}` | string | Generation status: `"success"`, `"partial"`, or `"failed"` |
42
- | `${documents_generated}` | array | List of generated document filenames |
43
- | `${analysis_file}` | string | Path to the analysis coverage report |
44
- | `${message}` | string | Summary message for status update |
45
-
46
- ## Output
47
-
48
- Generate the following documents in `${output_path}/`:
49
-
50
- ```
51
- ${output_path}/
52
- ├── INDEX.md # Platform technology index (Required)
53
- ├── tech-stack.md # Technology stack details (Required)
54
- ├── architecture.md # Architecture conventions (Required)
55
- ├── conventions-design.md # Design conventions (Required)
56
- ├── conventions-dev.md # Development conventions (Required)
57
- ├── conventions-unit-test.md # Unit testing conventions (Required)
58
- ├── conventions-system-test.md # System testing conventions (Required)
59
- ├── conventions-build.md # Build & Deployment conventions (Required)
60
- └── conventions-data.md # Data conventions (Optional)
61
- ```
62
-
63
- ### Platform Type to Document Mapping
64
-
65
- | Platform Type | Required Documents | Optional Documents | Generate conventions-data.md? |
66
- |---------------|-------------------|-------------------|------------------------------|
67
- | `backend` | All 8 docs | - | **Must Generate** - Contains ORM, data modeling, caching strategy |
68
- | `web` | All 8 docs | conventions-data.md | **Conditional** - Only when using ORM/data layer (Prisma, TypeORM, Sequelize, etc.) |
69
- | `mobile` | All 8 docs | conventions-data.md | **Default No** - Based on actual tech stack |
70
- | `desktop` | All 8 docs | conventions-data.md | **Default No** - Based on actual tech stack |
71
- | `api` | All 8 docs | conventions-data.md | **Conditional** - Based on whether data layer exists |
72
-
73
- ## Workflow
74
-
75
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/xml-workflow-spec.md`
76
-
77
- ```xml
78
1
  <?xml version="1.0" encoding="UTF-8"?>
79
2
  <workflow id="platform-conventions-generation" status="pending" version="1.0" desc="Platform conventions generation workflow">
80
3
 
@@ -868,79 +791,3 @@ ${output_path}/
868
791
  </block>
869
792
 
870
793
  </workflow>
871
- ```
872
-
873
- ## Constraints
874
-
875
- 1. **DO NOT create temporary scripts, batch files, or workaround code files (`.py`, `.bat`, `.sh`, `.ps1`, etc.)** under any circumstances
876
- 2. **DO NOT analyze files outside the specified `${source_path}`**
877
- 3. **All content MUST be in the language specified by `${language}`**
878
- 4. **Use `search_replace` for section filling, NEVER rewrite entire document**
879
- 5. **Mermaid diagrams MUST follow the rules in `mermaid-rule.md`**
880
- 6. **All links MUST use relative paths, NEVER `file://` protocol**
881
- 7. **Write each document to file immediately after generation - DO NOT accumulate all documents in memory**
882
- 8. **DO NOT create done marker file until ALL required documents have been verified to exist on disk**
883
-
884
- ## Task Completion Report
885
-
886
- When the task is complete, report the following:
887
-
888
- **Status:** `success` | `partial` | `failed`
889
-
890
- **Summary:**
891
- - Platform: `${platform_id}`
892
- - Type: `${platform_type}`
893
- - Framework: `${framework}`
894
- - Documents generated: 8 required + (1 optional if data layer detected)
895
-
896
- **Files Generated:**
897
- - `${output_path}/INDEX.md` - Platform technology index
898
- - `${output_path}/tech-stack.md` - Technology stack details
899
- - `${output_path}/architecture.md` - Architecture conventions
900
- - `${output_path}/conventions-design.md` - Design conventions
901
- - `${output_path}/conventions-dev.md` - Development conventions
902
- - `${output_path}/conventions-unit-test.md` - Unit testing conventions
903
- - `${output_path}/conventions-system-test.md` - System testing conventions
904
- - `${output_path}/conventions-build.md` - Build and deployment conventions
905
- - `${output_path}/conventions-data.md` - Data conventions (optional)
906
- - `${completed_dir}/${platform_id}.analysis-conventions.json` - Analysis coverage report
907
-
908
- ## Checklist
909
-
910
- ### Pre-Generation
911
- - [ ] All template files read successfully
912
- - [ ] All configuration files read and parsed
913
- - [ ] Technology stack extracted accurately
914
- - [ ] Conventions analyzed from config files
915
-
916
- ### Document Generation
917
- - [ ] INDEX.md generated with navigation
918
- - [ ] tech-stack.md generated with dependency tables
919
- - [ ] architecture.md generated with platform-specific patterns
920
- - [ ] conventions-design.md generated with design principles
921
- - [ ] conventions-dev.md generated with naming and style rules
922
- - [ ] conventions-unit-test.md generated with unit testing requirements
923
- - [ ] conventions-system-test.md generated with system testing requirements
924
- - [ ] conventions-build.md generated with build and deployment conventions
925
- - [ ] conventions-data.md generated (only if applicable per platform type mapping)
926
-
927
- ### Quality Checks
928
- - [ ] All files written to output_path
929
- - [ ] **Source traceability**: File reference block added to each document
930
- - [ ] **Source traceability**: Diagram Source annotations added after each Mermaid diagram
931
- - [ ] **Source traceability**: Section Source annotations added at end of major sections
932
- - [ ] **Mermaid compatibility**: No `style`, `direction`, `<br/>`, or nested subgraphs
933
- - [ ] **Document completeness**: All 8 required documents exist (verified in Step 3)
934
- - [ ] **Done marker integrity**: Done marker only created after verification
935
- - [ ] **Analysis Coverage Report**: `${platform_id}.analysis-conventions.json` generated
936
-
937
- ## CONTINUOUS EXECUTION RULES
938
-
939
- This skill MUST execute continuously without user interruption:
940
-
941
- 1. **All steps must complete in a single session** - from template reading to done marker creation
942
- 2. **If context window is running low**: Save checkpoint and inform user - DO NOT create false done marker
943
- 3. **No intermediate user confirmation required** between steps
944
- 4. **Error handling**: On error, log details and stop - do not proceed with incomplete data
945
- 5. **Verification gate**: Step 3 verification MUST pass before Step 4 done marker creation
946
- 6. **Memory management**: Write each document immediately after generation, do not accumulate in memory