speccrew 0.7.74 → 0.7.76

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 (71) hide show
  1. package/.speccrew/agents/speccrew-feature-designer.md +4 -647
  2. package/.speccrew/agents/speccrew-product-manager.md +5 -480
  3. package/.speccrew/agents/speccrew-system-deployer.md +6 -457
  4. package/.speccrew/agents/speccrew-system-developer.md +9 -913
  5. package/.speccrew/agents/speccrew-test-manager.md +403 -1112
  6. package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +6 -149
  7. package/.speccrew/skills/speccrew-deploy-build/SKILL.md +2 -59
  8. package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +2 -64
  9. package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +2 -75
  10. package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +2 -70
  11. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +2 -381
  12. package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +2 -369
  13. package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +2 -362
  14. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +2 -304
  15. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +2 -294
  16. package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +2 -204
  17. package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +2 -173
  18. package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +2 -169
  19. package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +2 -173
  20. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +2 -251
  21. package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +2 -254
  22. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +2 -748
  23. package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +6 -105
  24. package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +6 -33
  25. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +3 -138
  26. package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +3 -283
  27. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +3 -1014
  28. package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +4 -343
  29. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +4 -235
  30. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +6 -72
  31. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +3 -534
  32. package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +3 -432
  33. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +4 -391
  34. package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +3 -98
  35. package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +3 -92
  36. package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +3 -181
  37. package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +3 -148
  38. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +3 -330
  39. package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +6 -159
  40. package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +3 -142
  41. package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +3 -568
  42. package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +3 -180
  43. package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +3 -154
  44. package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +3 -176
  45. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +3 -135
  46. package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +4 -88
  47. package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +4 -178
  48. package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +3 -102
  49. package/.speccrew/skills/speccrew-pm-phase0-init/SKILL.md +5 -78
  50. package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/SKILL.md +5 -85
  51. package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/SKILL.md +4 -100
  52. package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +14 -106
  53. package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +7 -84
  54. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +6 -66
  55. package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +4 -96
  56. package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +4 -131
  57. package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +6 -79
  58. package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +4 -76
  59. package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +3 -281
  60. package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +6 -165
  61. package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +6 -79
  62. package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +2 -35
  63. package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +6 -98
  64. package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +6 -94
  65. package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +6 -79
  66. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -58
  67. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -61
  68. package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +6 -94
  69. package/.speccrew/skills/speccrew-test-reporter/SKILL.md +2 -102
  70. package/.speccrew/skills/speccrew-test-runner/SKILL.md +3 -121
  71. package/package.json +1 -1
@@ -4,264 +4,12 @@ description: Feature Analysis SOP. Reads PRD documents and system knowledge to p
4
4
  tools: Read, Write, Glob, Grep
5
5
  ---
6
6
 
7
- # Methodology Foundation
8
-
9
- This skill applies ISA-95 Stages 1-3 as an internal thinking framework for analysis:
10
-
11
- | ISA-95 Stage | Analysis Purpose |
12
- |--------------|------------------|
13
- | Stage 1: Domain Description | Understand business context, scope boundaries, glossary |
14
- | Stage 2: Information Flows | Identify data sources, destinations, and cross-module exchanges |
15
- | Stage 3: Categories of Information | Classify data entities and establish information hierarchy |
16
-
17
- > ⚠️ **No separate modeling documents.** The methodology guides thinking quality, not document quantity.
18
-
19
7
  # Trigger Scenarios
20
-
21
8
  - PRD has been confirmed, user requests to start feature analysis
22
9
  - Feature Designer Agent needs to decompose PRD into functions before design
23
10
  - User asks "Analyze this feature" or "Break down this requirement"
24
11
 
25
12
  ## AgentFlow Definition
26
-
27
13
  <!-- @agentflow: SKILL.xml -->
28
-
29
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
30
-
31
- ## Workflow
32
-
33
- **MANDATORY:**
34
- - **Business Perspective Only** — Feature Analysis is a PURE BUSINESS document. It describes WHAT the system does from a business/user perspective, NOT HOW it's technically implemented.
35
- - **Mermaid for all diagrams** — ALL business flows, interaction sequences, and cross-function flows MUST use Mermaid syntax (`flowchart TB`, `sequenceDiagram`). Plain text ASCII flowcharts are FORBIDDEN.
36
-
37
- ## Absolute Constraints
38
-
39
- > **Violation = task failure**
40
-
41
- 1. **FORBIDDEN: Script execution failure** — If `update-progress.js` fails, HARD STOP and report error
42
- 2. **FORBIDDEN: Hand-written `.checkpoints.json`** — ALWAYS use `update-progress.js` script
43
- 3. **FORBIDDEN: Skip Checkpoint A** — User confirmation required before proceeding to design phase (unless `skip_checkpoint=true`)
44
- 4. **FORBIDDEN: Rename features** — Output filename MUST use the exact `feature_name` parameter value. DO NOT translate, abbreviate, paraphrase, or substitute with alternative names found in PRD content. The `feature_name` parameter is the SINGLE SOURCE OF TRUTH for file naming.
45
-
46
- ## Step 1: Read PRD Input
47
-
48
- ### 1.1 Input Parameters
49
-
50
- | Parameter | Required | Description |
51
- |-----------|----------|-------------|
52
- | `prd_path` | Yes | Path to the Sub-PRD document |
53
- | `feature_id` | No | Feature identifier (e.g., `F-CRM-01`) |
54
- | `feature_name` | No | Feature name in English (e.g., `customer-list`) |
55
- | `feature_type` | No | `Page+API` or `API-only` |
56
- | `iteration_id` | No | Current iteration identifier |
57
- | `frontend_platforms` | No | List of frontend platforms (auto-discover if not provided) |
58
- | `skip_checkpoint` | No | Boolean, default `false`. Skip Checkpoint A if `true` |
59
-
60
- ### 1.2 Read PRD
61
-
62
- Read the PRD document at `{prd_path}` (typically `speccrew-workspace/iterations/{number}-{type}-{name}/01.product-requirement/[module-name]-prd.md`)
63
-
64
- ### 1.3 Focus on Specific Feature (when feature_id provided)
65
-
66
- If `feature_id` is provided:
67
- - Locate the specific Feature in PRD Section 3.4 "Feature Breakdown"
68
- - Extract only the user stories and requirements related to this Feature
69
- - Ignore other Features in the same PRD
70
-
71
- ### 1.4 Backward Compatibility (when feature_id not provided)
72
-
73
- If `feature_id` is NOT provided, process entire PRD using legacy mode.
74
-
75
- ## Step 2: Load System Knowledge
76
-
77
- ### 2.1 Read System Overview
78
-
79
- Read: `speccrew-workspace/knowledges/bizs/system-overview.md`
80
-
81
- ### 2.2 Load Related Module Overviews
82
-
83
- Based on PRD content, identify related modules and read:
84
- ```
85
- speccrew-workspace/knowledges/bizs/{module-name}/{module-name}-overview.md
86
- ```
87
-
88
- ### 2.2b Discover Frontend Platforms
89
-
90
- Read `speccrew-workspace/knowledges/techs/techs-manifest.json` to identify frontend platforms:
91
-
92
- | Platform Type | Examples |
93
- |---------------|----------|
94
- | `web-*` | web-vue, web-react |
95
- | `mobile-*` | mobile-uniapp, mobile-flutter |
96
-
97
- - If `frontend_platforms` parameter provided, use that list
98
- - Otherwise, read techs-manifest.json directly
99
-
100
- ### 2.3 Query Knowledge Graph (Optional)
101
-
102
- If cross-module relationships need analysis, use `speccrew-knowledge-graph-query` skill.
103
-
104
- ## Step 3: Function Breakdown
105
-
106
- Break down PRD functional requirements into implementable system functions.
107
-
108
- ### 3.1 Feature-Based Decomposition (when feature_id provided)
109
-
110
- When processing a single Feature:
111
-
112
- 1. **Extract Feature Scope**: From PRD Section 3.4, locate the specific Feature by `feature_id`
113
- 2. **Identify Related User Stories**: Extract only user stories mapped to this Feature
114
- 3. **Decompose into Functions**: Break down into 3-8 focused Functions
115
- 4. **Check feature_type**: Mark `API-only` for backend-only design
116
-
117
- ### 3.2 Full PRD Decomposition (backward compatibility)
118
-
119
- When `feature_id` is NOT provided (legacy mode):
120
- - Decompose entire PRD into all required Functions
121
- - May result in 10-20 Functions for complex modules
122
-
123
- ### 3.3 Function Analysis
124
-
125
- For each function, identify:
126
-
127
- | Aspect | Analysis Content |
128
- |--------|------------------|
129
- | **Frontend Changes** | New pages, components, or modifications to existing UI |
130
- | **Backend Changes** | New interfaces or modifications to existing logic |
131
- | **Data Changes** | New data structures or modifications to existing data |
132
- | **System Relationship** | How this relates to existing system capabilities |
133
-
134
- ### Mark Relationship to Existing System
135
-
136
- | Marker | Meaning | Example |
137
- |--------|---------|---------|
138
- | `[EXISTING]` | Reuse current system capability | `[EXISTING] User authentication system` |
139
- | `[MODIFIED]` | Enhance/change existing feature | `[MODIFIED] Add validation to user profile form` |
140
- | `[NEW]` | Create brand new functionality | `[NEW] Order management module` |
141
-
142
- ### Checkpoint A: Present Function Breakdown for Confirmation
143
-
144
- **Conditional Execution:** If `skip_checkpoint=true`, skip user confirmation and proceed to Step 4.
145
-
146
- If `skip_checkpoint=false` (default):
147
- 1. Present function breakdown with [EXISTING]/[MODIFIED]/[NEW] markers to user
148
- 2. Ask: "Does this function breakdown align with your understanding of the requirements?"
149
- 3. **HARD STOP** — Wait for user confirmation before proceeding
150
-
151
- ### Checkpoint A Progress Update
152
-
153
- After user confirms (or if skipped):
154
-
155
- ```bash
156
- node speccrew-workspace/scripts/update-progress.js write-checkpoint \
157
- --file speccrew-workspace/iterations/{iteration_id}/02.feature-design/.checkpoints.json \
158
- --stage 02_feature_design \
159
- --checkpoint function_decomposition \
160
- --passed true
161
- ```
162
-
163
- Log: "✅ Checkpoint A (function_decomposition) passed and recorded"
164
-
165
- ## Step 4: Write Output Contract
166
-
167
- Write analysis results to `.feature-analysis.md`:
168
-
169
- ### Output Path
170
-
171
- | Mode | Output Path |
172
- |------|-------------|
173
- | With feature_id | `{prd_parent}/02.feature-design/{feature-id}-{feature-name}.feature-analysis.md` |
174
- | Legacy mode | `{prd_parent}/02.feature-design/.feature-analysis.md` |
175
-
176
- **CRITICAL — Filename Lock Rule:**
177
- - `{feature-name}` in the output path MUST be the exact value of the `feature_name` parameter
178
- - If PRD uses a different name for the same feature → use `feature_name` parameter for filename, note the discrepancy in the document header
179
- - Example: parameter `feature_name = "店铺信息管理"` → filename MUST contain "店铺信息管理", NOT "shop-management" or "多店切换"
180
-
181
- ### Output Structure
182
-
183
- ```markdown
184
- # Feature Analysis: {feature-name}
185
-
186
- ## Feature Information
187
- - Feature ID: {feature_id}
188
- - Feature Name: {feature_name}
189
- - Feature Type: {feature_type}
190
- - Source PRD: {prd_path}
191
-
192
- ## System Context Summary
193
- [System knowledge and module overviews summary]
194
-
195
- ## Frontend Platforms
196
- [List from techs-manifest.json]
197
-
198
- ## Function Breakdown (Total: {N} functions)
199
-
200
- | # | Function Name | Type | Related User Stories | System Relationship |
201
- |---|--------------|------|---------------------|---------------------|
202
- | 1 | {name} | {frontend/backend/both} | {story refs} | [EXISTING]/[MODIFIED]/[NEW] |
203
-
204
- ## Function Details
205
- ### F1: {function-name}
206
- - **Frontend Changes**: {description or N/A}
207
- - **Backend Changes**: {description}
208
- - **Data Changes**: {description}
209
- - **System Relationship**: [EXISTING]/[MODIFIED]/[NEW] — {explanation}
210
-
211
- > **Content Guidelines for Function Details:**
212
- >
213
- > | Aspect | ✅ ALLOWED (Business) | ❌ FORBIDDEN (Technical) |
214
- > |--------|----------------------|--------------------------|
215
- > | Frontend Changes | "New appointment list page with search/filter" | "AppointmentIndex.vue, ElDatePicker, v-hasPermi" |
216
- > | Backend Changes | "Create appointment management operations with validation" | "@PreAuthorize, AppointmentService.java, MapStruct" |
217
- > | Data Changes | "New appointment entity with status lifecycle" | "appointment_info table, customer_id BIGINT, SQL DDL" |
218
- > | System Relationship | "[NEW] Full new business module" | "yudao-module-appointment Maven submodule" |
219
- > | Diagrams | Mermaid flowchart/sequenceDiagram | ASCII text flowcharts |
220
-
221
- ## Name Discrepancy Notice (if applicable)
222
- - Parameter feature_name: {feature_name}
223
- - PRD actual feature name: {prd_name}
224
- - Discrepancy: {description}
225
- - File naming follows: parameter value (as per Filename Lock Rule)
226
-
227
- ## Decomposition Status
228
- - Checkpoint A: {passed/pending}
229
- - Confirmed at: {timestamp or null}
230
- ```
231
-
232
- ---
233
-
234
- # Key Rules
235
-
236
- | Rule | Description |
237
- |------|-------------|
238
- | **Business Perspective Only** | Feature Analysis describes business capabilities and functional requirements. Every section must describe WHAT from user/business perspective |
239
- | **FORBIDDEN: File Paths** | Do NOT include any file paths, code paths, or directory structures (e.g., views/appointment/AppointmentIndex.vue, yudao-module-appointment/...) |
240
- | **FORBIDDEN: Framework Code** | Do NOT include code snippets in any language — no Java classes, SQL DDL/DML, Vue templates, TypeScript API code, HTML markup, annotations (@PreAuthorize, @OperateLog, @TableLogic, @TableName) |
241
- | **FORBIDDEN: Framework/Library Names** | Do NOT reference specific framework/library names as implementation details (MyBatis-Plus, MapStruct, Element Plus, wot-design-uni, ElDatePicker, wd-cell, BaseMapperX, etc.) |
242
- | **FORBIDDEN: Database Artifacts** | Do NOT include database table names (appointment_info), column names (customer_id, staff_id), SQL types (BIGINT, VARCHAR), indexes, or any SQL statements |
243
- | **FORBIDDEN: Technical Types** | Do NOT use programming language types (Long, String, Integer). Use business types: Text, Number, Date, Boolean, Enum, Identifier |
244
- | **FORBIDDEN: ASCII Diagrams** | Do NOT use plain text or ASCII art flowcharts. ALL diagrams MUST use Mermaid syntax |
245
- | **Mermaid Required** | Use `flowchart TB` for business process flows, `sequenceDiagram` for interaction flows. Reference mermaid-rule.md for syntax compliance |
246
- | Analysis Only | Do NOT design UI wireframes, API specs, or data models — that belongs to Feature Design phase |
247
- | System Markers | Always use [EXISTING]/[MODIFIED]/[NEW] to indicate system relationship |
248
- | **Checkpoint A Required** | User confirmation required before design phase (unless skipped) |
249
- | **Use Script for JSON** | Always use `update-progress.js` for checkpoint files |
250
- | **Output Contract** | `.feature-analysis.md` serves as interface for downstream design skills |
251
-
252
- # Checklist
253
-
254
- - [ ] PRD has been read, all P0 requirements covered
255
- - [ ] **[Single Feature Mode]** Feature ID and name parameters received
256
- - [ ] **[Single Feature Mode]** Only related Feature content extracted from PRD
257
- - [ ] **[Legacy Mode]** All sub PRDs have been read (if master-sub structure)
258
- - [ ] System overview loaded for context
259
- - [ ] Related module overviews loaded
260
- - [ ] **[Cross-module]** Knowledge graph queried for relationship analysis
261
- - [ ] Function breakdown completed with [EXISTING]/[MODIFIED]/[NEW] markers
262
- - [ ] **[Single Feature Mode]** 3-8 focused Functions defined
263
- - [ ] Checkpoint A passed: function breakdown confirmed with user (or skipped)
264
- - [ ] `.checkpoints.json` updated via script
265
- - [ ] `.feature-analysis.md` written to correct path
266
- - [ ] **CRITICAL — Business Content Only**: All sections use business-level descriptions. ZERO file paths, framework names, code snippets, SQL, database table/column names, component library names, or technical types
267
- - [ ] **CRITICAL — Mermaid Diagrams**: All process flows use Mermaid syntax (flowchart TB or sequenceDiagram). No ASCII text flowcharts
14
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
15
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.