speccrew 0.1.11 → 0.2.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 (75) hide show
  1. package/.speccrew/agents/speccrew-feature-designer.md +120 -0
  2. package/.speccrew/agents/speccrew-product-manager.md +54 -0
  3. package/.speccrew/agents/speccrew-system-designer.md +163 -25
  4. package/.speccrew/agents/speccrew-system-developer.md +357 -52
  5. package/.speccrew/agents/speccrew-task-worker.md +43 -0
  6. package/.speccrew/agents/speccrew-team-leader.md +108 -11
  7. package/.speccrew/agents/speccrew-test-manager.md +285 -9
  8. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +47 -1
  9. package/.speccrew/skills/speccrew-dev-desktop/SKILL.md +51 -6
  10. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +49 -3
  11. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +50 -5
  12. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +70 -0
  13. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +158 -0
  14. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +65 -0
  15. package/.speccrew/skills/speccrew-sd-backend/SKILL.md +38 -0
  16. package/.speccrew/skills/speccrew-sd-desktop/SKILL.md +38 -0
  17. package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +38 -0
  18. package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +38 -0
  19. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +33 -0
  20. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +34 -0
  21. package/.speccrew/skills/speccrew-test-execute/SKILL.md +34 -0
  22. package/README.ar.md +70 -3
  23. package/README.bn.md +52 -0
  24. package/README.bs.md +70 -3
  25. package/README.da.md +70 -3
  26. package/README.de.md +70 -3
  27. package/README.el.md +52 -0
  28. package/README.en.md +69 -2
  29. package/README.es.md +70 -3
  30. package/README.fr.md +70 -3
  31. package/README.it.md +70 -3
  32. package/README.ja.md +70 -3
  33. package/README.ko.md +70 -3
  34. package/README.md +69 -2
  35. package/README.no.md +70 -3
  36. package/README.pl.md +70 -3
  37. package/README.pt-BR.md +70 -3
  38. package/README.ru.md +70 -3
  39. package/README.th.md +69 -2
  40. package/README.tr.md +69 -2
  41. package/README.uk.md +69 -2
  42. package/README.vi.md +52 -0
  43. package/README.zh-TW.md +70 -3
  44. package/docs/GETTING-STARTED.ar.md +78 -4
  45. package/docs/GETTING-STARTED.bn.md +78 -4
  46. package/docs/GETTING-STARTED.bs.md +78 -4
  47. package/docs/GETTING-STARTED.da.md +78 -4
  48. package/docs/GETTING-STARTED.de.md +78 -4
  49. package/docs/GETTING-STARTED.el.md +78 -4
  50. package/docs/GETTING-STARTED.en.md +78 -4
  51. package/docs/GETTING-STARTED.es.md +78 -4
  52. package/docs/GETTING-STARTED.fr.md +78 -4
  53. package/docs/GETTING-STARTED.it.md +78 -4
  54. package/docs/GETTING-STARTED.ja.md +79 -5
  55. package/docs/GETTING-STARTED.ko.md +79 -5
  56. package/docs/GETTING-STARTED.md +78 -4
  57. package/docs/GETTING-STARTED.no.md +78 -4
  58. package/docs/GETTING-STARTED.pl.md +78 -4
  59. package/docs/GETTING-STARTED.pt-BR.md +78 -4
  60. package/docs/GETTING-STARTED.ru.md +78 -4
  61. package/docs/GETTING-STARTED.th.md +79 -5
  62. package/docs/GETTING-STARTED.tr.md +78 -4
  63. package/docs/GETTING-STARTED.uk.md +78 -4
  64. package/docs/GETTING-STARTED.vi.md +79 -5
  65. package/docs/GETTING-STARTED.zh-TW.md +79 -5
  66. package/package.json +1 -1
  67. package/.speccrew/skills/speccrew-create-agents/SKILL.md +0 -98
  68. package/.speccrew/skills/speccrew-create-agents/templates/agents/designer-agent.md +0 -54
  69. package/.speccrew/skills/speccrew-create-agents/templates/agents/dev-agent.md +0 -79
  70. package/.speccrew/skills/speccrew-create-agents/templates/agents/test-agent.md +0 -80
  71. package/.speccrew/skills/speccrew-project-diagnosis/SKILL.md +0 -233
  72. package/.speccrew/skills/speccrew-project-diagnosis/templates/DIAGNOSIS-REPORT-TEMPLATE.md +0 -202
  73. package/.speccrew/skills/speccrew-workflow-diagnose/SKILL.md +0 -155
  74. package/workspace-template/docs/solutions/Agent/346/212/200/350/203/275/345/256/232/344/271/211+/351/234/200/346/261/202/346/226/207/346/241/243+UML/344/275/277/347/224/250/346/250/241/346/235/277/357/274/210ISA-95/345/205/255/346/256/265/345/274/217/350/236/215/345/220/210/347/211/210/357/274/211.md +0 -586
  75. package/workspace-template/docs/solutions/harness.md +0 -410
@@ -1,202 +0,0 @@
1
- # Project Diagnosis Report
2
-
3
- Generated At: {{GeneratedAt}}
4
-
5
- ## 1. Project Basic Information
6
-
7
- | Item | Content |
8
- |------|---------|
9
- | Project Name | {{ProjectName}} |
10
- | Project Type | {{WebFullStack/FrontendOnly/BackendOnly/DesktopClient/Mobile/CLI/Hybrid}} |
11
- | Determination Basis | {{DeterminationBasis}} |
12
-
13
- ## 2. Technology Stack List
14
-
15
- ### 2.1 Runtime & Languages
16
- - Language: {{LanguageAndVersion}}
17
- - Runtime: {{RuntimeEnvironment}}
18
-
19
- ### 2.2 Core Frameworks
20
- - Frontend: {{FrontendFrameworkAndVersion}}
21
- - Backend: {{BackendFrameworkAndVersion}}
22
- - Database: {{DatabaseType}}
23
-
24
- ### 2.3 Toolchain
25
- - Build: {{BuildTools}}
26
- - Package Management: {{PackageManager}}
27
- - Testing: {{TestingFramework}}
28
-
29
- ## 3. Project Directory Structure Conventions
30
-
31
- Source code directory structure of the diagnosed project:
32
-
33
- ```
34
- {{ProjectRootDirectoryStructure}}
35
- ```
36
-
37
- ## 4. Development Standards
38
-
39
- - Code Linting: {{LintingToolsAndConfig}}
40
- - Naming Style: {{NamingConventions}}
41
- - Commit Standards: {{CommitStandards}}
42
-
43
- ## 5. Follow-up Work Recommendations
44
-
45
- Based on diagnosis results, recommend creating the following:
46
-
47
- ### 5.1 Recommended Agents to Generate
48
-
49
- Based on project type `{{ProjectType}}`, recommend generating the following Agents:
50
-
51
- | Agent | Responsibility |
52
- |-------|----------------|
53
- | devcrew-designer-[techstack] | Detailed design |
54
- | devcrew-dev-[techstack] | Development implementation |
55
- | devcrew-test-[techstack] | Testing and validation |
56
-
57
- ### 5.2 Recommended devcrew-workspace Directory Structure
58
-
59
- Based on project type and diagnosis results, recommend creating the following directory structure:
60
-
61
- ```
62
- devcrew-workspace/
63
- ├── docs/ # Management documents
64
- │ ├── diagnosis-reports/ # Diagnosis reports
65
- │ │ └── diagnosis-report-{date}.md
66
- │ ├── README.md
67
- │ └── AGENTS.md
68
- ├── knowledge/ # Project knowledge base
69
- │ ├── README.md
70
- │ ├── constitution.md
71
- │ ├── architecture/ # Architecture docs (subdirs dynamically selected by project type)
72
- │ │ ├── system/ # System overall architecture
73
- │ │ ├── conventions/ # Development conventions
74
- │ │ {{#if hasFrontend}}├── frontend/ # Frontend architecture (Web Full-Stack / Frontend Only){{/if}}
75
- │ │ {{#if hasBackend}}├── backend/ # Backend architecture (Web Full-Stack / Backend Only){{/if}}
76
- │ │ {{#if hasDatabase}}├── data/ # Data architecture (Web Full-Stack / Backend Only){{/if}}
77
- │ │ {{#if hasDesktop}}├── desktop/ # Desktop architecture (Desktop Client){{/if}}
78
- │ │ {{#if hasMobile}}└── mobile/ # Mobile architecture (Mobile){{/if}}
79
- │ ├── bizs/ # Business knowledge (empty initially, content accumulated by PM Agent)
80
- │ │ {{#each detectedModules}}├── {{this}}/ # {{this}} module{{/each}}
81
- │ └── domain/ # Domain knowledge (empty initially, content accumulated later)
82
- │ ├── standards/
83
- │ ├── glossary/
84
- │ └── qa/
85
- └── projects/ # Iteration projects
86
- └── archive/ # Archive directory
87
- ```
88
-
89
- **architecture/ Subdirectory Description**:
90
- Based on project type `[{{ProjectType}}]` determined in Phase 2, dynamically select corresponding subdirectory combinations:
91
-
92
- | Project Type | Recommended Subdirectories | Mapping to SKILL.md Phase 2 |
93
- |--------------|----------------------------|----------------------------|
94
- | Web Full-Stack | system, conventions, frontend, backend, data | system, conventions, frontend, backend, data |
95
- | Frontend Only | system, conventions, frontend | system, conventions, frontend |
96
- | Backend Only | system, conventions, backend, data | system, conventions, backend, data |
97
- | Desktop Client | system, conventions, desktop | system, conventions, desktop |
98
- | Mobile | system, conventions, mobile | system, conventions, mobile |
99
- | Hybrid | Create based on actual included platforms | Combine subdirs from detected platforms |
100
-
101
- **bizs/ Dynamic Generation Rules**:
102
-
103
- Based on Phase 3.3 Business Module Clue Collection, dynamically generate `bizs/` subdirectories:
104
-
105
- | Condition | Generated Content |
106
- |-----------|-------------------|
107
- | `hasModules=true` | Create subdirectories named after detected business modules (e.g., `bizs/User/`, `bizs/Order/`) |
108
- | `hasModules=false` | Skip `bizs/` directory creation or create empty structure |
109
-
110
- **Initial Clues from Phase 3.3** (detected from code structure, to be confirmed by PM Agent):
111
- - {{Module1FromRoute/DirectoryAnalysis}} (Source: frontend routing / backend API routes / directory structure)
112
- - {{Module2FromRoute/DirectoryAnalysis}} (Source: frontend routing / backend API routes / directory structure)
113
- - ...
114
-
115
- > **Note**:
116
- > - `hasModules` = true when business modules detected from routes/entities/directories
117
- > - Business flows will be organized by PM Agent during PRD phase
118
- > - PM Agent will confirm and refine during actual project execution
119
-
120
- ## 6. Business Analysis (Initial)
121
-
122
- Based on source code route/directory structure analysis, preliminary identification of business modules:
123
-
124
- ### 6.1 Frontend Page Modules
125
-
126
- | Route Path | Page Name | Possible Function | Associated Module |
127
- |------------|-----------|-------------------|-------------------|
128
- | {{RoutePath1}} | {{PageName1}} | {{FunctionDesc1}} | {{ModuleName1}} |
129
- | {{RoutePath2}} | {{PageName2}} | {{FunctionDesc2}} | {{ModuleName2}} |
130
-
131
- > Data Source: Frontend routing configuration / pages directory structure analysis
132
-
133
- ### 6.2 Backend API Modules
134
-
135
- | Route Prefix | Module Name | Possible Function | HTTP Methods |
136
- |--------------|-------------|-------------------|--------------|
137
- | {{ApiPrefix1}} | {{ModuleName1}} | {{FunctionDesc1}} | {{Methods1}} |
138
- | {{ApiPrefix2}} | {{ModuleName2}} | {{FunctionDesc2}} | {{Methods2}} |
139
-
140
- > Data Source: Backend router files / API directory structure analysis
141
-
142
- ### 6.3 Data Model Clues
143
-
144
- | Table/Model Name | Associated Module | Possible Purpose | Key Fields |
145
- |------------------|-------------------|------------------|------------|
146
- | {{TableName1}} | {{Module1}} | {{Purpose1}} | {{Fields1}} |
147
- | {{TableName2}} | {{Module2}} | {{Purpose2}} | {{Fields2}} |
148
-
149
- > Data Source: ORM model files / database migration files analysis
150
-
151
- ### 6.4 Business Module Summary
152
-
153
- ```
154
- {{ProjectName}}
155
- ├── {{Module1Name}}
156
- │ ├── Frontend: {{Pages1}}
157
- │ ├── Backend: {{Apis1}}
158
- │ └── Data: {{Tables1}}
159
- ├── {{Module2Name}}
160
- │ ├── Frontend: {{Pages2}}
161
- │ ├── Backend: {{Apis2}}
162
- │ └── Data: {{Tables2}}
163
- ```
164
-
165
- > Note: This is preliminary analysis based on code structure only. Business logic details need to be confirmed by PM Agent during requirements phase.
166
-
167
- ---
168
-
169
- ## 7. Knowledge Base Initialization Guide
170
-
171
- Based on this diagnosis report, the following knowledge base structure should be generated during initialization:
172
-
173
- ### 7.1 Techs Layer (Auto-generated by Techs Pipeline)
174
-
175
- | Directory | Generated By | Input From This Report |
176
- |-----------|--------------|------------------------|
177
- | `knowledges/techs/{platform}/` | Techs Pipeline | Section 2: Technology Stack |
178
- | `knowledges/techs/{platform}/architecture.md` | Techs Pipeline | Section 2.2, 3: Framework & directory structure |
179
- | `knowledges/techs/{platform}/conventions-*.md` | Techs Pipeline | Section 4: Development standards |
180
-
181
- ### 7.2 Business Layer (Framework generated by Leader Agent)
182
-
183
- | Directory | Generated By | Input From This Report |
184
- |-----------|--------------|------------------------|
185
- | `bizs/{ModuleName}/` | Leader Agent | Section 6.4: Business module summary |
186
-
187
- ### 7.3 Domain Layer (Empty initially)
188
-
189
- | Directory | Content | Populated By |
190
- |-----------|---------|--------------|
191
- | `domain/standards/` | Industry standards | PM Agent on-demand |
192
- | `domain/glossary/` | Business terminology | PM Agent during PRD phase |
193
- | `domain/qa/` | Q&A knowledge | All Agents gradually |
194
-
195
- ---
196
-
197
- ## 8. Content for Deep Identification
198
-
199
- The following needs to be gradually accumulated during Agent usage:
200
- - **Business Flows**: Organized by PM Agent during PRD phase, associated with corresponding modules
201
- - **Domain Knowledge**: Added to `domain/` when involving industry standards
202
- - **Repetitive Operation Patterns**: Identified by Dev Agent during development and accumulated as Skills
@@ -1,155 +0,0 @@
1
- ---
2
- name: speccrew-workflow-diagnose
3
- description: Diagnose issues in AI engineering workflows. Analyze workflow bottlenecks, Agent behavior anomalies, deliverable quality issues, and provide solutions. Trigger scenarios: user mentions "workflow stuck", "diagnose problem", "Agent not working as expected", "poor deliverable quality"
4
- tools: Read, Glob, Grep
5
- ---
6
-
7
- # Trigger Scenarios
8
-
9
- - AI engineering workflow stuck at a certain stage
10
- - Agent output does not meet expectations
11
- - Deliverable quality does not meet standards
12
- - User mentions "workflow issues", "diagnose", "Agent behavior anomaly"
13
-
14
- # Workflow
15
-
16
- ## 1. Collect Problem Information
17
-
18
- Ask or identify the following information:
19
- - Which stage did the problem occur? (PM / Solution / Design / Development / Testing)
20
- - What are the specific symptoms?
21
- - What solutions have been tried?
22
-
23
- ## 2. Read Related Deliverables
24
-
25
- Based on the problem stage, read the corresponding deliverables:
26
-
27
- | Problem Stage | Deliverables to Read |
28
- |---------------|----------------------|
29
- | PM Stage | `se/prd.md` |
30
- | Solution Stage | `se/solution.md` |
31
- | Design Stage | `se/*-design.md` |
32
- | Development Stage | Related code files |
33
- | Testing Stage | Test cases, test reports |
34
-
35
- ## 3. Analyze Root Cause
36
-
37
- Common problem types and diagnostic directions:
38
-
39
- ### Agent Behavior Issues
40
-
41
- | Symptom | Possible Cause | Solution |
42
- |---------|----------------|----------|
43
- | Output too generic | Agent prompt lacks project-specific information | Use `agent-optimize` Skill to supplement specific tech stack |
44
- | Skipping necessary steps | Workflow description unclear | Add checklists (checkboxes) |
45
- | Output format chaotic | Output specification unclear | Provide specific template examples |
46
- | Responsibility overreach | Insufficient constraints | Clearly define prohibited actions |
47
-
48
- ### Workflow Handoff Issues
49
-
50
- | Symptom | Possible Cause | Solution |
51
- |---------|----------------|----------|
52
- | Design document unclear | Missing transition from Solution to design | Add context input requirements for design Agent |
53
- | Code does not match design | Design document not detailed enough | Output pseudo-code level details in design stage |
54
- | Test cases incomplete coverage | Testing Agent lacks design input | Ensure testing Agent reads design documents |
55
-
56
- ### Deliverable Quality Issues
57
-
58
- | Symptom | Possible Cause | Solution |
59
- |---------|----------------|----------|
60
- | PRD requirements vague | PM Agent did not fully explore requirements | Add multi-round dialogue confirmation |
61
- | Solution lacks feasibility analysis | Technical constraints not identified | Add technical feasibility checkpoints |
62
- | Design document too complex | Not following simple design principles | Split modules, design in phases |
63
-
64
- ## 4. Provide Solutions
65
-
66
- For identified problems, provide:
67
- 1. **Immediate Solution** - Actions that can be taken immediately
68
- 2. **Long-term Improvement** - Mechanisms to prevent similar issues
69
- 3. **Files to Modify** - Specific configurations or documents to adjust
70
-
71
- ## 5. Execute Fixes (Optional)
72
-
73
- If user agrees, execute fixes:
74
- - Use `agent-optimize` to adjust Agent prompts
75
- - Use `skill-develop` to create new check Skills
76
- - Update related deliverable templates
77
-
78
- # Diagnostic Checklist
79
-
80
- Standard checklist items when analyzing problems:
81
-
82
- - [ ] Problem stage accurately identified
83
- - [ ] Related deliverables have been read
84
- - [ ] Root cause analysis is well-founded
85
- - [ ] Solutions are specific and feasible
86
- - [ ] Long-term prevention measures considered
87
-
88
- # Common Diagnostic Scenarios
89
-
90
- ## Scenario 1: Agent Output Does Not Meet Expectations
91
-
92
- **Diagnostic Steps:**
93
- 1. Read the corresponding Agent file
94
- 2. Check if description contains trigger scenarios
95
- 3. Check if workflow has checklists
96
- 4. Check if constraints are clear
97
-
98
- **Fix Solutions:**
99
- - Optimize Agent prompts (call `agent-optimize`)
100
- - Add example outputs
101
- - Clearly define prohibited actions
102
-
103
- ## Scenario 2: Workflow Loops at a Certain Stage
104
-
105
- **Diagnostic Steps:**
106
- 1. Check if previous stage deliverables are complete
107
- 2. Check if current stage input requirements are clear
108
- 3. Check if deliverable standards are too high or vague
109
-
110
- **Fix Solutions:**
111
- - Adjust deliverable acceptance standards
112
- - Add intermediate checkpoints
113
- - Split overly long workflow steps
114
-
115
- ## Scenario 3: Multiple Agent Responsibility Conflicts
116
-
117
- **Diagnostic Steps:**
118
- 1. Compare responsibility descriptions of related Agents
119
- 2. Check for overlaps (what can/cannot be done)
120
- 3. Check deliverable definitions at handoff points
121
-
122
- **Fix Solutions:**
123
- - Redefine responsibility boundaries
124
- - Clarify deliverable handoff standards
125
- - Add dedicated handoff Agent
126
-
127
- # Verification Checklist
128
-
129
- - [ ] Problem root cause identified
130
- - [ ] Solutions provided
131
- - [ ] User understands and agrees with solution
132
- - [ ] If fixes needed, fixes completed
133
-
134
- # Output Format
135
-
136
- ```
137
- ## Workflow Diagnostic Report
138
-
139
- ### Problem Description
140
- [User described problem]
141
-
142
- ### Root Cause Analysis
143
- [Analyzed root cause]
144
-
145
- ### Solutions
146
- 1. **Immediate Measures**: [What can be done immediately]
147
- 2. **Long-term Improvement**: [Prevention mechanism]
148
-
149
- ### Files to Modify
150
- - [File path] - [Modification content]
151
-
152
- ### Recommendations
153
- [Next step action recommendations]
154
- ```
155
-