trinity-method-sdk 2.0.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.
- package/CHANGELOG.md +116 -0
- package/LICENSE +21 -0
- package/README.md +555 -0
- package/dist/cli/commands/deploy/agents.d.ts +14 -0
- package/dist/cli/commands/deploy/agents.js +59 -0
- package/dist/cli/commands/deploy/ci-cd.d.ts +13 -0
- package/dist/cli/commands/deploy/ci-cd.js +50 -0
- package/dist/cli/commands/deploy/claude-setup.d.ts +17 -0
- package/dist/cli/commands/deploy/claude-setup.js +91 -0
- package/dist/cli/commands/deploy/configuration.d.ts +13 -0
- package/dist/cli/commands/deploy/configuration.js +215 -0
- package/dist/cli/commands/deploy/directories.d.ts +12 -0
- package/dist/cli/commands/deploy/directories.js +38 -0
- package/dist/cli/commands/deploy/gitignore.d.ts +12 -0
- package/dist/cli/commands/deploy/gitignore.js +53 -0
- package/dist/cli/commands/deploy/index.d.ts +38 -0
- package/dist/cli/commands/deploy/index.js +156 -0
- package/dist/cli/commands/deploy/knowledge-base.d.ts +16 -0
- package/dist/cli/commands/deploy/knowledge-base.js +75 -0
- package/dist/cli/commands/deploy/linting.d.ts +18 -0
- package/dist/cli/commands/deploy/linting.js +51 -0
- package/dist/cli/commands/deploy/metrics.d.ts +13 -0
- package/dist/cli/commands/deploy/metrics.js +34 -0
- package/dist/cli/commands/deploy/pre-flight.d.ts +13 -0
- package/dist/cli/commands/deploy/pre-flight.js +29 -0
- package/dist/cli/commands/deploy/root-files.d.ts +16 -0
- package/dist/cli/commands/deploy/root-files.js +178 -0
- package/dist/cli/commands/deploy/sdk-install.d.ts +12 -0
- package/dist/cli/commands/deploy/sdk-install.js +57 -0
- package/dist/cli/commands/deploy/summary.d.ts +14 -0
- package/dist/cli/commands/deploy/summary.js +130 -0
- package/dist/cli/commands/deploy/templates.d.ts +14 -0
- package/dist/cli/commands/deploy/templates.js +84 -0
- package/dist/cli/commands/deploy/types.d.ts +39 -0
- package/dist/cli/commands/deploy/types.js +5 -0
- package/dist/cli/commands/update/agents.d.ts +14 -0
- package/dist/cli/commands/update/agents.js +31 -0
- package/dist/cli/commands/update/backup.d.ts +31 -0
- package/dist/cli/commands/update/backup.js +97 -0
- package/dist/cli/commands/update/commands.d.ts +14 -0
- package/dist/cli/commands/update/commands.js +75 -0
- package/dist/cli/commands/update/index.d.ts +15 -0
- package/dist/cli/commands/update/index.js +118 -0
- package/dist/cli/commands/update/knowledge-base.d.ts +14 -0
- package/dist/cli/commands/update/knowledge-base.js +38 -0
- package/dist/cli/commands/update/pre-flight.d.ts +13 -0
- package/dist/cli/commands/update/pre-flight.js +37 -0
- package/dist/cli/commands/update/summary.d.ts +20 -0
- package/dist/cli/commands/update/summary.js +47 -0
- package/dist/cli/commands/update/templates.d.ts +14 -0
- package/dist/cli/commands/update/templates.js +25 -0
- package/dist/cli/commands/update/types.d.ts +13 -0
- package/dist/cli/commands/update/types.js +7 -0
- package/dist/cli/commands/update/utils.d.ts +11 -0
- package/dist/cli/commands/update/utils.js +19 -0
- package/dist/cli/commands/update/verification.d.ts +20 -0
- package/dist/cli/commands/update/verification.js +54 -0
- package/dist/cli/commands/update/version.d.ts +18 -0
- package/dist/cli/commands/update/version.js +36 -0
- package/dist/cli/commands/update.d.ts +7 -0
- package/dist/cli/commands/update.js +7 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.js +36 -0
- package/dist/cli/types.d.ts +77 -0
- package/dist/cli/types.js +5 -0
- package/dist/cli/utils/deploy-ci.d.ts +22 -0
- package/dist/cli/utils/deploy-ci.js +138 -0
- package/dist/cli/utils/deploy-linting.d.ts +3 -0
- package/dist/cli/utils/deploy-linting.js +136 -0
- package/dist/cli/utils/detect-stack.d.ts +3 -0
- package/dist/cli/utils/detect-stack.js +270 -0
- package/dist/cli/utils/error-classes.d.ts +63 -0
- package/dist/cli/utils/error-classes.js +84 -0
- package/dist/cli/utils/error-handler.d.ts +59 -0
- package/dist/cli/utils/error-handler.js +127 -0
- package/dist/cli/utils/errors.d.ts +52 -0
- package/dist/cli/utils/errors.js +102 -0
- package/dist/cli/utils/get-sdk-path.d.ts +18 -0
- package/dist/cli/utils/get-sdk-path.js +31 -0
- package/dist/cli/utils/inject-dependencies.d.ts +2 -0
- package/dist/cli/utils/inject-dependencies.js +55 -0
- package/dist/cli/utils/linting-tools.d.ts +8 -0
- package/dist/cli/utils/linting-tools.js +206 -0
- package/dist/cli/utils/metrics/code-quality.d.ts +32 -0
- package/dist/cli/utils/metrics/code-quality.js +122 -0
- package/dist/cli/utils/metrics/dependency-parser.d.ts +21 -0
- package/dist/cli/utils/metrics/dependency-parser.js +153 -0
- package/dist/cli/utils/metrics/file-complexity.d.ts +26 -0
- package/dist/cli/utils/metrics/file-complexity.js +77 -0
- package/dist/cli/utils/metrics/framework-detector.d.ts +17 -0
- package/dist/cli/utils/metrics/framework-detector.js +120 -0
- package/dist/cli/utils/metrics/git-metrics.d.ts +30 -0
- package/dist/cli/utils/metrics/git-metrics.js +83 -0
- package/dist/cli/utils/metrics/index.d.ts +28 -0
- package/dist/cli/utils/metrics/index.js +100 -0
- package/dist/cli/utils/template-processor.d.ts +10 -0
- package/dist/cli/utils/template-processor.js +188 -0
- package/dist/cli/utils/validate-path.d.ts +80 -0
- package/dist/cli/utils/validate-path.js +180 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/templates/agents/aj-team/apo-documentation-specialist.md.template +572 -0
- package/dist/templates/agents/aj-team/bas-quality-gate.md.template +906 -0
- package/dist/templates/agents/aj-team/bon-dependency-manager.md.template +636 -0
- package/dist/templates/agents/aj-team/cap-configuration-specialist.md.template +670 -0
- package/dist/templates/agents/aj-team/dra-code-reviewer.md.template +768 -0
- package/dist/templates/agents/aj-team/kil-task-executor.md.template +764 -0
- package/dist/templates/agents/aj-team/uro-refactoring-specialist.md.template +759 -0
- package/dist/templates/agents/audit/juno-auditor.md.template +447 -0
- package/dist/templates/agents/deployment/ein-cicd.md.template +694 -0
- package/dist/templates/agents/deployment/ino-context.md.template +733 -0
- package/dist/templates/agents/deployment/tan-structure.md.template +661 -0
- package/dist/templates/agents/deployment/zen-knowledge.md.template +451 -0
- package/dist/templates/agents/leadership/aj-cc.md.template +462 -0
- package/dist/templates/agents/leadership/aj-maestro.md.template +943 -0
- package/dist/templates/agents/leadership/aly-cto.md.template +407 -0
- package/dist/templates/agents/planning/eus-decomposer.md.template +496 -0
- package/dist/templates/agents/planning/mon-requirements.md.template +323 -0
- package/dist/templates/agents/planning/ror-design.md.template +465 -0
- package/dist/templates/agents/planning/tra-planner.md.template +432 -0
- package/dist/templates/ci/cd.yml.template +175 -0
- package/dist/templates/ci/ci.yml.template +196 -0
- package/dist/templates/ci/generic-ci.yml +115 -0
- package/dist/templates/ci/github-actions.yml +86 -0
- package/dist/templates/ci/gitlab-ci.yml +103 -0
- package/dist/templates/claude/EMPLOYEE-DIRECTORY.md.template +545 -0
- package/dist/templates/documentation/ROOT-README.md.template +307 -0
- package/dist/templates/documentation/SUBDIRECTORY-README.md.template +261 -0
- package/dist/templates/investigations/bug.md.template +484 -0
- package/dist/templates/investigations/feature.md.template +564 -0
- package/dist/templates/investigations/performance.md.template +625 -0
- package/dist/templates/investigations/security.md.template +714 -0
- package/dist/templates/investigations/technical.md.template +433 -0
- package/dist/templates/knowledge-base/AI-DEVELOPMENT-GUIDE.md.template +957 -0
- package/dist/templates/knowledge-base/ARCHITECTURE.md.template +452 -0
- package/dist/templates/knowledge-base/CODING-PRINCIPLES.md.template +750 -0
- package/dist/templates/knowledge-base/DOCUMENTATION-CRITERIA.md.template +1118 -0
- package/dist/templates/knowledge-base/ISSUES.md.template +539 -0
- package/dist/templates/knowledge-base/TESTING-PRINCIPLES.md.template +894 -0
- package/dist/templates/knowledge-base/Technical-Debt.md.template +640 -0
- package/dist/templates/knowledge-base/To-do.md.template +407 -0
- package/dist/templates/knowledge-base/Trinity.md.template +464 -0
- package/dist/templates/linting/flutter/.pre-commit-config.yaml.template +27 -0
- package/dist/templates/linting/flutter/analysis_options.yaml.template +26 -0
- package/dist/templates/linting/nodejs/.eslintrc-commonjs.json.template +19 -0
- package/dist/templates/linting/nodejs/.eslintrc-esm.json.template +19 -0
- package/dist/templates/linting/nodejs/.eslintrc-typescript.json.template +22 -0
- package/dist/templates/linting/nodejs/.pre-commit-config.yaml.template +51 -0
- package/dist/templates/linting/nodejs/.prettierrc.json.template +10 -0
- package/dist/templates/linting/python/.flake8.template +16 -0
- package/dist/templates/linting/python/.pre-commit-config.yaml.template +30 -0
- package/dist/templates/linting/python/pyproject.toml.template +38 -0
- package/dist/templates/linting/rust/.pre-commit-config.yaml.template +28 -0
- package/dist/templates/linting/rust/clippy.toml.template +14 -0
- package/dist/templates/linting/rust/rustfmt.toml.template +12 -0
- package/dist/templates/root/CLAUDE.md.template +65 -0
- package/dist/templates/root/TRINITY.md.template +52 -0
- package/dist/templates/shared/claude-commands/trinity-agents.md.template +168 -0
- package/dist/templates/shared/claude-commands/trinity-audit.md.template +646 -0
- package/dist/templates/shared/claude-commands/trinity-changelog.md.template +624 -0
- package/dist/templates/shared/claude-commands/trinity-continue.md.template +549 -0
- package/dist/templates/shared/claude-commands/trinity-create-investigation.md.template +232 -0
- package/dist/templates/shared/claude-commands/trinity-decompose.md.template +181 -0
- package/dist/templates/shared/claude-commands/trinity-design.md.template +347 -0
- package/dist/templates/shared/claude-commands/trinity-docs.md.template +2093 -0
- package/dist/templates/shared/claude-commands/trinity-end.md.template +397 -0
- package/dist/templates/shared/claude-commands/trinity-init.md.template +606 -0
- package/dist/templates/shared/claude-commands/trinity-investigate-templates.md.template +725 -0
- package/dist/templates/shared/claude-commands/trinity-orchestrate.md.template +1061 -0
- package/dist/templates/shared/claude-commands/trinity-plan-investigation.md.template +135 -0
- package/dist/templates/shared/claude-commands/trinity-plan.md.template +201 -0
- package/dist/templates/shared/claude-commands/trinity-readme.md.template +1971 -0
- package/dist/templates/shared/claude-commands/trinity-requirements.md.template +148 -0
- package/dist/templates/shared/claude-commands/trinity-start.md.template +268 -0
- package/dist/templates/shared/claude-commands/trinity-verify.md.template +453 -0
- package/dist/templates/shared/claude-commands/trinity-workorder.md.template +249 -0
- package/dist/templates/source/base-CLAUDE.md.template +310 -0
- package/dist/templates/source/flutter-CLAUDE.md.template +593 -0
- package/dist/templates/source/nodejs-CLAUDE.md.template +531 -0
- package/dist/templates/source/python-CLAUDE.md.template +510 -0
- package/dist/templates/source/react-CLAUDE.md.template +513 -0
- package/dist/templates/source/rust-CLAUDE.md.template +653 -0
- package/dist/templates/source/tests-CLAUDE.md.template +432 -0
- package/dist/templates/trinity/CLAUDE.md.template +372 -0
- package/dist/templates/work-orders/ANALYSIS-TEMPLATE.md.template +276 -0
- package/dist/templates/work-orders/AUDIT-TEMPLATE.md.template +262 -0
- package/dist/templates/work-orders/IMPLEMENTATION-TEMPLATE.md.template +260 -0
- package/dist/templates/work-orders/INVESTIGATION-TEMPLATE.md.template +206 -0
- package/dist/templates/work-orders/PATTERN-TEMPLATE.md.template +320 -0
- package/dist/templates/work-orders/VERIFICATION-TEMPLATE.md.template +273 -0
- package/package.json +94 -0
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
# Feature Investigation: {{title}}
|
|
2
|
+
|
|
3
|
+
**Investigation ID:** {{investigationId}}
|
|
4
|
+
**Created:** {{createdAt}}
|
|
5
|
+
**Investigator:** {{investigator}}
|
|
6
|
+
**Status:** {{status}}
|
|
7
|
+
**Priority:** {{priority}}
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## ✨ Feature Summary
|
|
12
|
+
|
|
13
|
+
**Brief Description:**
|
|
14
|
+
{{description}}
|
|
15
|
+
|
|
16
|
+
**Feature Type:**
|
|
17
|
+
- [ ] New functionality
|
|
18
|
+
- [ ] Enhancement to existing feature
|
|
19
|
+
- [ ] User experience improvement
|
|
20
|
+
- [ ] API / Integration
|
|
21
|
+
- [ ] Performance optimization
|
|
22
|
+
- [ ] Security enhancement
|
|
23
|
+
- [ ] Accessibility improvement
|
|
24
|
+
|
|
25
|
+
**User Story:**
|
|
26
|
+
As a [user type], I want [goal] so that [benefit].
|
|
27
|
+
|
|
28
|
+
**Business Value:**
|
|
29
|
+
- [ ] Revenue generation
|
|
30
|
+
- [ ] Cost reduction
|
|
31
|
+
- [ ] User satisfaction
|
|
32
|
+
- [ ] Competitive advantage
|
|
33
|
+
- [ ] Regulatory compliance
|
|
34
|
+
- [ ] Technical debt reduction
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🔍 Trinity Method Guided Questions
|
|
39
|
+
|
|
40
|
+
### Requirements Analysis
|
|
41
|
+
|
|
42
|
+
**1. What problem does this feature solve?**
|
|
43
|
+
[Describe the user problem or business need]
|
|
44
|
+
|
|
45
|
+
**2. Who are the users?**
|
|
46
|
+
- Primary users:
|
|
47
|
+
- Secondary users:
|
|
48
|
+
- User segments:
|
|
49
|
+
|
|
50
|
+
**3. What are the user goals?**
|
|
51
|
+
- Goal 1:
|
|
52
|
+
- Goal 2:
|
|
53
|
+
- Goal 3:
|
|
54
|
+
|
|
55
|
+
**4. What is the current workaround?**
|
|
56
|
+
[How do users currently accomplish this without the feature?]
|
|
57
|
+
|
|
58
|
+
**5. What are the must-have requirements?**
|
|
59
|
+
- [ ] Requirement 1
|
|
60
|
+
- [ ] Requirement 2
|
|
61
|
+
- [ ] Requirement 3
|
|
62
|
+
|
|
63
|
+
**6. What are the nice-to-have requirements?**
|
|
64
|
+
- [ ] Requirement 1
|
|
65
|
+
- [ ] Requirement 2
|
|
66
|
+
- [ ] Requirement 3
|
|
67
|
+
|
|
68
|
+
**7. What are the non-functional requirements?**
|
|
69
|
+
- Performance: [e.g., load in < 2s]
|
|
70
|
+
- Scalability: [e.g., handle 10k users]
|
|
71
|
+
- Accessibility: [e.g., WCAG 2.1 AA]
|
|
72
|
+
- Security: [e.g., encrypt at rest]
|
|
73
|
+
- Reliability: [e.g., 99.9% uptime]
|
|
74
|
+
|
|
75
|
+
### User Experience
|
|
76
|
+
|
|
77
|
+
**8. What is the user flow?**
|
|
78
|
+
1. User starts at: [entry point]
|
|
79
|
+
2. User does: [action]
|
|
80
|
+
3. System responds: [response]
|
|
81
|
+
4. User sees: [feedback]
|
|
82
|
+
5. User completes: [goal]
|
|
83
|
+
|
|
84
|
+
**9. What is the happy path?**
|
|
85
|
+
[Describe the ideal user journey]
|
|
86
|
+
|
|
87
|
+
**10. What are the edge cases?**
|
|
88
|
+
- Edge case 1:
|
|
89
|
+
- Edge case 2:
|
|
90
|
+
- Edge case 3:
|
|
91
|
+
|
|
92
|
+
**11. What are the error scenarios?**
|
|
93
|
+
- Error 1: [What happens? How should system respond?]
|
|
94
|
+
- Error 2:
|
|
95
|
+
- Error 3:
|
|
96
|
+
|
|
97
|
+
**12. What is the user feedback mechanism?**
|
|
98
|
+
- Success states:
|
|
99
|
+
- Error states:
|
|
100
|
+
- Loading states:
|
|
101
|
+
- Empty states:
|
|
102
|
+
|
|
103
|
+
### Technical Feasibility
|
|
104
|
+
|
|
105
|
+
**13. Is this technically feasible?**
|
|
106
|
+
- [ ] Yes, straightforward
|
|
107
|
+
- [ ] Yes, but complex
|
|
108
|
+
- [ ] Yes, with limitations
|
|
109
|
+
- [ ] No, needs research
|
|
110
|
+
- [ ] Unknown, needs spike
|
|
111
|
+
|
|
112
|
+
**14. What are the technical dependencies?**
|
|
113
|
+
- Libraries / frameworks:
|
|
114
|
+
- APIs / services:
|
|
115
|
+
- Database changes:
|
|
116
|
+
- Infrastructure:
|
|
117
|
+
|
|
118
|
+
**15. What are the technical risks?**
|
|
119
|
+
- Risk 1: [Risk and mitigation]
|
|
120
|
+
- Risk 2:
|
|
121
|
+
- Risk 3:
|
|
122
|
+
|
|
123
|
+
**16. What is the estimated complexity?**
|
|
124
|
+
- Frontend: [XS/S/M/L/XL]
|
|
125
|
+
- Backend: [XS/S/M/L/XL]
|
|
126
|
+
- Database: [XS/S/M/L/XL]
|
|
127
|
+
- Infrastructure: [XS/S/M/L/XL]
|
|
128
|
+
- Overall: [XS/S/M/L/XL]
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 🎨 Design & Mockups
|
|
133
|
+
|
|
134
|
+
### User Interface Design
|
|
135
|
+
|
|
136
|
+
**Wireframes:**
|
|
137
|
+
- [Link to wireframe 1]
|
|
138
|
+
- [Link to wireframe 2]
|
|
139
|
+
|
|
140
|
+
**Mockups:**
|
|
141
|
+
- [Link to mockup 1]
|
|
142
|
+
- [Link to mockup 2]
|
|
143
|
+
|
|
144
|
+
**Interactive Prototype:**
|
|
145
|
+
- [Link to Figma / InVision]
|
|
146
|
+
|
|
147
|
+
### User Flow Diagram
|
|
148
|
+
```
|
|
149
|
+
[User flow diagram or description]
|
|
150
|
+
|
|
151
|
+
Start → Action 1 → Decision Point → Action 2 → End
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Data Model
|
|
155
|
+
```
|
|
156
|
+
[Database schema or data structure]
|
|
157
|
+
|
|
158
|
+
Table: features
|
|
159
|
+
- id: uuid
|
|
160
|
+
- name: string
|
|
161
|
+
- status: enum
|
|
162
|
+
- created_at: timestamp
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### API Design
|
|
166
|
+
```http
|
|
167
|
+
# Create feature
|
|
168
|
+
POST /api/features
|
|
169
|
+
Content-Type: application/json
|
|
170
|
+
|
|
171
|
+
{
|
|
172
|
+
"name": "Feature Name",
|
|
173
|
+
"description": "Description"
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
# Response
|
|
177
|
+
{
|
|
178
|
+
"id": "uuid",
|
|
179
|
+
"name": "Feature Name",
|
|
180
|
+
"status": "active"
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## 🛠️ Implementation Plan
|
|
187
|
+
|
|
188
|
+
### Epic Breakdown
|
|
189
|
+
|
|
190
|
+
**Epic:** [Feature Name]
|
|
191
|
+
|
|
192
|
+
**Stories:**
|
|
193
|
+
1. **User Story 1:** As a [user], I want [goal]
|
|
194
|
+
- Acceptance Criteria:
|
|
195
|
+
- [ ] Criterion 1
|
|
196
|
+
- [ ] Criterion 2
|
|
197
|
+
- Estimate: [X points]
|
|
198
|
+
|
|
199
|
+
2. **User Story 2:** As a [user], I want [goal]
|
|
200
|
+
- Acceptance Criteria:
|
|
201
|
+
- [ ] Criterion 1
|
|
202
|
+
- [ ] Criterion 2
|
|
203
|
+
- Estimate: [X points]
|
|
204
|
+
|
|
205
|
+
3. **User Story 3:** As a [user], I want [goal]
|
|
206
|
+
- Acceptance Criteria:
|
|
207
|
+
- [ ] Criterion 1
|
|
208
|
+
- [ ] Criterion 2
|
|
209
|
+
- Estimate: [X points]
|
|
210
|
+
|
|
211
|
+
**Total Estimate:** [X points / X days]
|
|
212
|
+
|
|
213
|
+
### Implementation Phases
|
|
214
|
+
|
|
215
|
+
**Phase 1: Backend API**
|
|
216
|
+
- [ ] Design API endpoints
|
|
217
|
+
- [ ] Implement data models
|
|
218
|
+
- [ ] Implement business logic
|
|
219
|
+
- [ ] Add validation
|
|
220
|
+
- [ ] Write API tests
|
|
221
|
+
- [ ] API documentation
|
|
222
|
+
|
|
223
|
+
**Phase 2: Frontend UI**
|
|
224
|
+
- [ ] Implement UI components
|
|
225
|
+
- [ ] Connect to API
|
|
226
|
+
- [ ] Add form validation
|
|
227
|
+
- [ ] Add loading states
|
|
228
|
+
- [ ] Add error handling
|
|
229
|
+
- [ ] Write UI tests
|
|
230
|
+
|
|
231
|
+
**Phase 3: Integration**
|
|
232
|
+
- [ ] End-to-end testing
|
|
233
|
+
- [ ] User acceptance testing
|
|
234
|
+
- [ ] Performance testing
|
|
235
|
+
- [ ] Accessibility audit
|
|
236
|
+
- [ ] Security review
|
|
237
|
+
|
|
238
|
+
**Phase 4: Launch**
|
|
239
|
+
- [ ] Feature flag setup
|
|
240
|
+
- [ ] Gradual rollout plan
|
|
241
|
+
- [ ] Monitoring setup
|
|
242
|
+
- [ ] Documentation
|
|
243
|
+
- [ ] User communication
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## ✅ Acceptance Criteria
|
|
248
|
+
|
|
249
|
+
### Functional Acceptance Criteria
|
|
250
|
+
|
|
251
|
+
**Must Have:**
|
|
252
|
+
- [ ] User can [primary action]
|
|
253
|
+
- [ ] System validates [input]
|
|
254
|
+
- [ ] System displays [feedback]
|
|
255
|
+
- [ ] User can [secondary action]
|
|
256
|
+
- [ ] Error handling works for [scenario]
|
|
257
|
+
|
|
258
|
+
**Should Have:**
|
|
259
|
+
- [ ] Feature works on mobile
|
|
260
|
+
- [ ] Feature works on tablet
|
|
261
|
+
- [ ] Feature works on desktop
|
|
262
|
+
- [ ] Feature supports keyboard navigation
|
|
263
|
+
- [ ] Feature is accessible (WCAG 2.1 AA)
|
|
264
|
+
|
|
265
|
+
**Could Have:**
|
|
266
|
+
- [ ] User can [nice-to-have action]
|
|
267
|
+
- [ ] System provides [enhanced feature]
|
|
268
|
+
|
|
269
|
+
### Non-Functional Acceptance Criteria
|
|
270
|
+
|
|
271
|
+
**Performance:**
|
|
272
|
+
- [ ] Page loads in < 2 seconds
|
|
273
|
+
- [ ] API responds in < 500ms
|
|
274
|
+
- [ ] No performance regressions
|
|
275
|
+
|
|
276
|
+
**Security:**
|
|
277
|
+
- [ ] Input validation implemented
|
|
278
|
+
- [ ] Authentication required
|
|
279
|
+
- [ ] Authorization enforced
|
|
280
|
+
- [ ] Security scan passes
|
|
281
|
+
|
|
282
|
+
**Accessibility:**
|
|
283
|
+
- [ ] Screen reader compatible
|
|
284
|
+
- [ ] Keyboard navigation works
|
|
285
|
+
- [ ] Color contrast meets WCAG AA
|
|
286
|
+
- [ ] Focus indicators visible
|
|
287
|
+
|
|
288
|
+
**Quality:**
|
|
289
|
+
- [ ] Code review approved
|
|
290
|
+
- [ ] Test coverage ≥80%
|
|
291
|
+
- [ ] No linting errors
|
|
292
|
+
- [ ] Documentation complete
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 🧪 Testing Strategy
|
|
297
|
+
|
|
298
|
+
### Test Scenarios
|
|
299
|
+
|
|
300
|
+
**Scenario 1: Happy Path**
|
|
301
|
+
- Given: [preconditions]
|
|
302
|
+
- When: [user action]
|
|
303
|
+
- Then: [expected result]
|
|
304
|
+
|
|
305
|
+
**Scenario 2: Edge Case**
|
|
306
|
+
- Given: [preconditions]
|
|
307
|
+
- When: [user action]
|
|
308
|
+
- Then: [expected result]
|
|
309
|
+
|
|
310
|
+
**Scenario 3: Error Handling**
|
|
311
|
+
- Given: [preconditions]
|
|
312
|
+
- When: [error condition]
|
|
313
|
+
- Then: [expected error handling]
|
|
314
|
+
|
|
315
|
+
### Automated Tests
|
|
316
|
+
|
|
317
|
+
**Unit Tests:**
|
|
318
|
+
```typescript
|
|
319
|
+
describe('Feature: {{title}}', () => {
|
|
320
|
+
describe('createFeature', () => {
|
|
321
|
+
it('should create feature with valid input', () => {
|
|
322
|
+
// Test implementation
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
it('should validate required fields', () => {
|
|
326
|
+
// Test validation
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
it('should handle errors gracefully', () => {
|
|
330
|
+
// Test error handling
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
**Integration Tests:**
|
|
337
|
+
```typescript
|
|
338
|
+
describe('Feature Integration', () => {
|
|
339
|
+
it('should complete end-to-end flow', async () => {
|
|
340
|
+
// Test full user journey
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
**E2E Tests:**
|
|
346
|
+
```typescript
|
|
347
|
+
describe('Feature E2E', () => {
|
|
348
|
+
it('should allow user to complete task', () => {
|
|
349
|
+
// Cypress / Playwright test
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### Manual Testing Checklist
|
|
355
|
+
- [ ] Test on Chrome
|
|
356
|
+
- [ ] Test on Firefox
|
|
357
|
+
- [ ] Test on Safari
|
|
358
|
+
- [ ] Test on mobile (iOS)
|
|
359
|
+
- [ ] Test on mobile (Android)
|
|
360
|
+
- [ ] Test with screen reader
|
|
361
|
+
- [ ] Test keyboard navigation
|
|
362
|
+
- [ ] Test with slow network
|
|
363
|
+
- [ ] Test with large datasets
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## 📈 Success Metrics
|
|
368
|
+
|
|
369
|
+
### User Metrics
|
|
370
|
+
- **Adoption Rate:** [Target: X% of users in first month]
|
|
371
|
+
- **Engagement:** [Target: Y actions per user per week]
|
|
372
|
+
- **Completion Rate:** [Target: Z% complete task successfully]
|
|
373
|
+
- **User Satisfaction:** [Target: NPS score of N]
|
|
374
|
+
|
|
375
|
+
### Technical Metrics
|
|
376
|
+
- **Performance:** [Target: <500ms p95 response time]
|
|
377
|
+
- **Reliability:** [Target: 99.9% uptime]
|
|
378
|
+
- **Error Rate:** [Target: <0.1% errors]
|
|
379
|
+
- **Test Coverage:** [Target: ≥80%]
|
|
380
|
+
|
|
381
|
+
### Business Metrics
|
|
382
|
+
- **Revenue Impact:** [Target: $X increase]
|
|
383
|
+
- **Cost Savings:** [Target: $Y savings]
|
|
384
|
+
- **Conversion Rate:** [Target: Z% improvement]
|
|
385
|
+
|
|
386
|
+
**How to Measure:**
|
|
387
|
+
- Analytics: [Google Analytics, Mixpanel, etc.]
|
|
388
|
+
- Monitoring: [DataDog, New Relic, etc.]
|
|
389
|
+
- User Feedback: [Surveys, support tickets]
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## 🚀 Launch Plan
|
|
394
|
+
|
|
395
|
+
### Feature Flag Strategy
|
|
396
|
+
- [ ] Implement feature flag
|
|
397
|
+
- [ ] Test with internal users (0%)
|
|
398
|
+
- [ ] Roll out to beta users (10%)
|
|
399
|
+
- [ ] Expand to early adopters (25%)
|
|
400
|
+
- [ ] Gradual rollout (50%)
|
|
401
|
+
- [ ] Full launch (100%)
|
|
402
|
+
|
|
403
|
+
**Rollback Plan:**
|
|
404
|
+
- [ ] Feature flag can disable feature instantly
|
|
405
|
+
- [ ] Database migrations are reversible
|
|
406
|
+
- [ ] Previous version available for rollback
|
|
407
|
+
|
|
408
|
+
### Communication Plan
|
|
409
|
+
|
|
410
|
+
**Internal:**
|
|
411
|
+
- [ ] Engineering team notified
|
|
412
|
+
- [ ] Support team trained
|
|
413
|
+
- [ ] Sales team briefed
|
|
414
|
+
- [ ] Documentation updated
|
|
415
|
+
|
|
416
|
+
**External:**
|
|
417
|
+
- [ ] Announcement blog post
|
|
418
|
+
- [ ] Email to users
|
|
419
|
+
- [ ] In-app notification
|
|
420
|
+
- [ ] Social media posts
|
|
421
|
+
|
|
422
|
+
---
|
|
423
|
+
|
|
424
|
+
## 📚 Documentation
|
|
425
|
+
|
|
426
|
+
**User Documentation:**
|
|
427
|
+
- [ ] Feature overview
|
|
428
|
+
- [ ] How-to guides
|
|
429
|
+
- [ ] Video tutorials
|
|
430
|
+
- [ ] FAQ
|
|
431
|
+
|
|
432
|
+
**Technical Documentation:**
|
|
433
|
+
- [ ] API documentation
|
|
434
|
+
- [ ] Architecture documentation
|
|
435
|
+
- [ ] Database schema
|
|
436
|
+
- [ ] Deployment guide
|
|
437
|
+
|
|
438
|
+
---
|
|
439
|
+
|
|
440
|
+
## 💡 Lessons Learned
|
|
441
|
+
|
|
442
|
+
### What Went Well
|
|
443
|
+
-
|
|
444
|
+
|
|
445
|
+
### Challenges Faced
|
|
446
|
+
-
|
|
447
|
+
|
|
448
|
+
### What Would We Do Differently
|
|
449
|
+
-
|
|
450
|
+
|
|
451
|
+
### Knowledge to Share
|
|
452
|
+
-
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
## 🔗 Related Resources
|
|
457
|
+
|
|
458
|
+
**Design:**
|
|
459
|
+
- [Figma design]
|
|
460
|
+
- [User research]
|
|
461
|
+
|
|
462
|
+
**Development:**
|
|
463
|
+
- [GitHub PR]
|
|
464
|
+
- [Technical spec]
|
|
465
|
+
|
|
466
|
+
**Project Management:**
|
|
467
|
+
- [Jira epic]
|
|
468
|
+
- [Project plan]
|
|
469
|
+
|
|
470
|
+
---
|
|
471
|
+
|
|
472
|
+
## 📚 Reference Documentation
|
|
473
|
+
|
|
474
|
+
**Trinity Method Core:**
|
|
475
|
+
- [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
|
|
476
|
+
- [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
|
|
477
|
+
- [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
|
|
478
|
+
|
|
479
|
+
**Knowledge Base:**
|
|
480
|
+
- [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
|
|
481
|
+
- [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
|
|
482
|
+
- [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
|
|
483
|
+
- [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
|
|
484
|
+
- [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
|
|
485
|
+
|
|
486
|
+
**Investigation Protocols:**
|
|
487
|
+
- READ-ONLY: No file modifications during investigation
|
|
488
|
+
- Document findings thoroughly
|
|
489
|
+
- Provide evidence-based recommendations
|
|
490
|
+
- Implementation requires separate approval
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
## 📋 DELIVERABLE REQUIREMENTS
|
|
495
|
+
|
|
496
|
+
### Investigation Report Format
|
|
497
|
+
**Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
|
|
498
|
+
**Location:** `trinity/reports/`
|
|
499
|
+
|
|
500
|
+
### Required Sections
|
|
501
|
+
1. **Investigation Summary** - Feature analysis overview and business value
|
|
502
|
+
2. **Findings** - Technical feasibility, user requirements, and acceptance criteria
|
|
503
|
+
3. **Design & Architecture** - Proposed architecture, API design, and data models
|
|
504
|
+
4. **Implementation Plan** - Phased implementation approach with estimates
|
|
505
|
+
5. **Success Metrics** - User adoption, technical performance, and business metrics
|
|
506
|
+
6. **Recommendations** - Work orders to create, dependencies to address, risks to mitigate
|
|
507
|
+
|
|
508
|
+
### Evidence to Provide
|
|
509
|
+
- User research findings or stakeholder feedback
|
|
510
|
+
- Wireframes/mockups (links to Figma, screenshots)
|
|
511
|
+
- API design documentation
|
|
512
|
+
- Complexity estimates (XS/S/M/L/XL per component)
|
|
513
|
+
- Competitive analysis or market research
|
|
514
|
+
- Performance/scalability requirements
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
## ✅ AFTER COMPLETION
|
|
519
|
+
|
|
520
|
+
When investigation is complete:
|
|
521
|
+
1. **Create Investigation Report:**
|
|
522
|
+
- [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
|
|
523
|
+
- [ ] Include all required sections listed above
|
|
524
|
+
- [ ] Attach all evidence and supporting documentation
|
|
525
|
+
|
|
526
|
+
2. **Move Investigation File:**
|
|
527
|
+
- [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
|
|
528
|
+
- [ ] Keep report in `trinity/reports/` until end of session
|
|
529
|
+
|
|
530
|
+
3. **Session Cleanup:**
|
|
531
|
+
- [ ] Run `/trinity-end` to archive both investigation and report
|
|
532
|
+
- [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
|
|
533
|
+
- [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
|
|
534
|
+
|
|
535
|
+
4. **Clean Slate:**
|
|
536
|
+
- [ ] Verify `trinity/sessions/` is empty (ready for next session)
|
|
537
|
+
- [ ] Verify `trinity/reports/` is empty (ready for next session)
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
## 🔄 Future Enhancements
|
|
542
|
+
|
|
543
|
+
**Phase 2 Ideas:**
|
|
544
|
+
1. [Enhancement idea 1]
|
|
545
|
+
2. [Enhancement idea 2]
|
|
546
|
+
3. [Enhancement idea 3]
|
|
547
|
+
|
|
548
|
+
**User Requests:**
|
|
549
|
+
-
|
|
550
|
+
|
|
551
|
+
**Technical Improvements:**
|
|
552
|
+
-
|
|
553
|
+
|
|
554
|
+
---
|
|
555
|
+
|
|
556
|
+
**Investigation Status:** {{status}}
|
|
557
|
+
**Priority:** {{priority}}
|
|
558
|
+
**Created:** {{createdAt}}
|
|
559
|
+
**Last Updated:** {{lastUpdated}}
|
|
560
|
+
**Next Review:** {{nextReview}}
|
|
561
|
+
**Investigator:** {{investigator}}
|
|
562
|
+
|
|
563
|
+
**Feature Status:** [Not Started / In Development / In Testing / Launched]
|
|
564
|
+
**Launch Date:** [Target date]
|