ace-experience 0.1.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/LICENSE +22 -0
- package/README.md +40 -0
- package/ace/references/continuation-format.md +249 -0
- package/ace/references/gates.md +1078 -0
- package/ace/references/git-integration.md +254 -0
- package/ace/references/horsepower-profiles.md +73 -0
- package/ace/references/planning-config.md +189 -0
- package/ace/references/questioning.md +141 -0
- package/ace/references/tdd.md +263 -0
- package/ace/references/ui-brand.md +160 -0
- package/ace/references/verification-patterns.md +612 -0
- package/ace/templates/architect-prompt.md +117 -0
- package/ace/templates/brief.md +184 -0
- package/ace/templates/codebase/architecture.md +264 -0
- package/ace/templates/codebase/concerns.md +310 -0
- package/ace/templates/codebase/conventions.md +307 -0
- package/ace/templates/codebase/integrations.md +280 -0
- package/ace/templates/codebase/stack.md +186 -0
- package/ace/templates/codebase/structure.md +295 -0
- package/ace/templates/codebase/testing.md +480 -0
- package/ace/templates/config.json +36 -0
- package/ace/templates/continue-here.md +78 -0
- package/ace/templates/debug.md +159 -0
- package/ace/templates/detective-prompt.md +91 -0
- package/ace/templates/intel.md +283 -0
- package/ace/templates/milestone-archive.md +123 -0
- package/ace/templates/milestone.md +115 -0
- package/ace/templates/proof.md +322 -0
- package/ace/templates/pulse.md +176 -0
- package/ace/templates/recap.md +246 -0
- package/ace/templates/research/architecture.md +204 -0
- package/ace/templates/research/features.md +147 -0
- package/ace/templates/research/pitfalls.md +200 -0
- package/ace/templates/research/recap.md +170 -0
- package/ace/templates/research/stack.md +120 -0
- package/ace/templates/research-lite.md +146 -0
- package/ace/templates/research.md +552 -0
- package/ace/templates/specs.md +231 -0
- package/ace/templates/stage-prompt.md +567 -0
- package/ace/templates/track.md +202 -0
- package/ace/templates/uat.md +247 -0
- package/ace/templates/user-setup.md +311 -0
- package/ace/workflows/audit-stage.md +628 -0
- package/ace/workflows/audit-work.md +596 -0
- package/ace/workflows/continue-project.md +305 -0
- package/ace/workflows/diagnose-issues.md +231 -0
- package/ace/workflows/list-assumptions.md +178 -0
- package/ace/workflows/map-codebase.md +322 -0
- package/ace/workflows/research-stage.md +289 -0
- package/ace/workflows/run-plan.md +1844 -0
- package/ace/workflows/run-stage.md +686 -0
- package/ace/workflows/scope-stage.md +433 -0
- package/ace/workflows/ship-milestone.md +833 -0
- package/ace/workflows/transition.md +556 -0
- package/agents/ace-architect.md +1415 -0
- package/agents/ace-auditor.md +778 -0
- package/agents/ace-codebase-mapper.md +738 -0
- package/agents/ace-detective.md +1203 -0
- package/agents/ace-integration-checker.md +423 -0
- package/agents/ace-navigator.md +605 -0
- package/agents/ace-plan-reviewer.md +812 -0
- package/agents/ace-project-scout.md +865 -0
- package/agents/ace-runner.md +784 -0
- package/agents/ace-stage-scout.md +669 -0
- package/agents/ace-synthesizer.md +256 -0
- package/bin/install.js +1432 -0
- package/commands/ace.add-stage.md +211 -0
- package/commands/ace.add-todo.md +194 -0
- package/commands/ace.audit-milestone.md +277 -0
- package/commands/ace.audit.md +219 -0
- package/commands/ace.check-todos.md +229 -0
- package/commands/ace.complete-milestone.md +134 -0
- package/commands/ace.continue.md +46 -0
- package/commands/ace.dash.md +308 -0
- package/commands/ace.debug.md +169 -0
- package/commands/ace.discuss-stage.md +86 -0
- package/commands/ace.help.md +465 -0
- package/commands/ace.insert-stage.md +231 -0
- package/commands/ace.list-stage-assumptions.md +49 -0
- package/commands/ace.map-codebase.md +71 -0
- package/commands/ace.new-milestone.md +710 -0
- package/commands/ace.pause.md +132 -0
- package/commands/ace.plan-milestone-gaps.md +295 -0
- package/commands/ace.plan-stage.md +568 -0
- package/commands/ace.remove-stage.md +353 -0
- package/commands/ace.research-stage.md +200 -0
- package/commands/ace.run-stage.md +343 -0
- package/commands/ace.set-profile.md +116 -0
- package/commands/ace.settings.md +151 -0
- package/commands/ace.start.md +1008 -0
- package/commands/ace.status.md +364 -0
- package/hooks/dist/ace-check-update.js +67 -0
- package/hooks/dist/ace-statusline.js +96 -0
- package/package.json +85 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Pitfalls Research Template
|
|
2
|
+
|
|
3
|
+
Template for `.ace/research/pitfalls.md` — common mistakes to avoid in the project domain.
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Pitfalls Research
|
|
9
|
+
|
|
10
|
+
**Domain:** [domain type]
|
|
11
|
+
**Researched:** [date]
|
|
12
|
+
**Confidence:** [HIGH/MEDIUM/LOW]
|
|
13
|
+
|
|
14
|
+
## Critical Pitfalls
|
|
15
|
+
|
|
16
|
+
### Pitfall 1: [Name]
|
|
17
|
+
|
|
18
|
+
**What goes wrong:**
|
|
19
|
+
[Description of the failure mode]
|
|
20
|
+
|
|
21
|
+
**Why it happens:**
|
|
22
|
+
[Root cause — why developers make this mistake]
|
|
23
|
+
|
|
24
|
+
**How to avoid:**
|
|
25
|
+
[Specific prevention strategy]
|
|
26
|
+
|
|
27
|
+
**Warning signs:**
|
|
28
|
+
[How to detect this early before it becomes a problem]
|
|
29
|
+
|
|
30
|
+
**Stage to address:**
|
|
31
|
+
[Which track stage should prevent this]
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
### Pitfall 2: [Name]
|
|
36
|
+
|
|
37
|
+
**What goes wrong:**
|
|
38
|
+
[Description of the failure mode]
|
|
39
|
+
|
|
40
|
+
**Why it happens:**
|
|
41
|
+
[Root cause — why developers make this mistake]
|
|
42
|
+
|
|
43
|
+
**How to avoid:**
|
|
44
|
+
[Specific prevention strategy]
|
|
45
|
+
|
|
46
|
+
**Warning signs:**
|
|
47
|
+
[How to detect this early before it becomes a problem]
|
|
48
|
+
|
|
49
|
+
**Stage to address:**
|
|
50
|
+
[Which track stage should prevent this]
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### Pitfall 3: [Name]
|
|
55
|
+
|
|
56
|
+
**What goes wrong:**
|
|
57
|
+
[Description of the failure mode]
|
|
58
|
+
|
|
59
|
+
**Why it happens:**
|
|
60
|
+
[Root cause — why developers make this mistake]
|
|
61
|
+
|
|
62
|
+
**How to avoid:**
|
|
63
|
+
[Specific prevention strategy]
|
|
64
|
+
|
|
65
|
+
**Warning signs:**
|
|
66
|
+
[How to detect this early before it becomes a problem]
|
|
67
|
+
|
|
68
|
+
**Stage to address:**
|
|
69
|
+
[Which track stage should prevent this]
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
[Continue for all critical pitfalls...]
|
|
74
|
+
|
|
75
|
+
## Technical Debt Patterns
|
|
76
|
+
|
|
77
|
+
Shortcuts that seem reasonable but create long-term problems.
|
|
78
|
+
|
|
79
|
+
| Shortcut | Immediate Benefit | Long-term Cost | When Acceptable |
|
|
80
|
+
|----------|-------------------|----------------|-----------------|
|
|
81
|
+
| [shortcut] | [benefit] | [cost] | [conditions, or "never"] |
|
|
82
|
+
| [shortcut] | [benefit] | [cost] | [conditions, or "never"] |
|
|
83
|
+
| [shortcut] | [benefit] | [cost] | [conditions, or "never"] |
|
|
84
|
+
|
|
85
|
+
## Integration Gotchas
|
|
86
|
+
|
|
87
|
+
Common mistakes when connecting to external services.
|
|
88
|
+
|
|
89
|
+
| Integration | Common Mistake | Correct Approach |
|
|
90
|
+
|-------------|----------------|------------------|
|
|
91
|
+
| [service] | [what people do wrong] | [what to do instead] |
|
|
92
|
+
| [service] | [what people do wrong] | [what to do instead] |
|
|
93
|
+
| [service] | [what people do wrong] | [what to do instead] |
|
|
94
|
+
|
|
95
|
+
## Performance Traps
|
|
96
|
+
|
|
97
|
+
Patterns that work at small scale but fail as usage grows.
|
|
98
|
+
|
|
99
|
+
| Trap | Symptoms | Prevention | When It Breaks |
|
|
100
|
+
|------|----------|------------|----------------|
|
|
101
|
+
| [trap] | [how you notice] | [how to avoid] | [scale threshold] |
|
|
102
|
+
| [trap] | [how you notice] | [how to avoid] | [scale threshold] |
|
|
103
|
+
| [trap] | [how you notice] | [how to avoid] | [scale threshold] |
|
|
104
|
+
|
|
105
|
+
## Security Mistakes
|
|
106
|
+
|
|
107
|
+
Domain-specific security issues beyond general web security.
|
|
108
|
+
|
|
109
|
+
| Mistake | Risk | Prevention |
|
|
110
|
+
|---------|------|------------|
|
|
111
|
+
| [mistake] | [what could happen] | [how to avoid] |
|
|
112
|
+
| [mistake] | [what could happen] | [how to avoid] |
|
|
113
|
+
| [mistake] | [what could happen] | [how to avoid] |
|
|
114
|
+
|
|
115
|
+
## UX Pitfalls
|
|
116
|
+
|
|
117
|
+
Common user experience mistakes in this domain.
|
|
118
|
+
|
|
119
|
+
| Pitfall | User Impact | Better Approach |
|
|
120
|
+
|---------|-------------|-----------------|
|
|
121
|
+
| [pitfall] | [how users suffer] | [what to do instead] |
|
|
122
|
+
| [pitfall] | [how users suffer] | [what to do instead] |
|
|
123
|
+
| [pitfall] | [how users suffer] | [what to do instead] |
|
|
124
|
+
|
|
125
|
+
## "Looks Done But Isn't" Checklist
|
|
126
|
+
|
|
127
|
+
Things that appear complete but are missing critical pieces.
|
|
128
|
+
|
|
129
|
+
- [ ] **[Feature]:** Often missing [thing] — verify [check]
|
|
130
|
+
- [ ] **[Feature]:** Often missing [thing] — verify [check]
|
|
131
|
+
- [ ] **[Feature]:** Often missing [thing] — verify [check]
|
|
132
|
+
- [ ] **[Feature]:** Often missing [thing] — verify [check]
|
|
133
|
+
|
|
134
|
+
## Recovery Strategies
|
|
135
|
+
|
|
136
|
+
When pitfalls occur despite prevention, how to recover.
|
|
137
|
+
|
|
138
|
+
| Pitfall | Recovery Cost | Recovery Steps |
|
|
139
|
+
|---------|---------------|----------------|
|
|
140
|
+
| [pitfall] | LOW/MEDIUM/HIGH | [what to do] |
|
|
141
|
+
| [pitfall] | LOW/MEDIUM/HIGH | [what to do] |
|
|
142
|
+
| [pitfall] | LOW/MEDIUM/HIGH | [what to do] |
|
|
143
|
+
|
|
144
|
+
## Pitfall-to-Stage Mapping
|
|
145
|
+
|
|
146
|
+
How track stages should address these pitfalls.
|
|
147
|
+
|
|
148
|
+
| Pitfall | Prevention Stage | Verification |
|
|
149
|
+
|---------|------------------|--------------|
|
|
150
|
+
| [pitfall] | Stage [X] | [how to verify prevention worked] |
|
|
151
|
+
| [pitfall] | Stage [X] | [how to verify prevention worked] |
|
|
152
|
+
| [pitfall] | Stage [X] | [how to verify prevention worked] |
|
|
153
|
+
|
|
154
|
+
## Sources
|
|
155
|
+
|
|
156
|
+
- [Post-mortems referenced]
|
|
157
|
+
- [Community discussions]
|
|
158
|
+
- [Official "gotchas" documentation]
|
|
159
|
+
- [Personal experience / known issues]
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
*Pitfalls research for: [domain]*
|
|
163
|
+
*Researched: [date]*
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
</template>
|
|
167
|
+
|
|
168
|
+
<guidelines>
|
|
169
|
+
|
|
170
|
+
**Critical Pitfalls:**
|
|
171
|
+
- Focus on domain-specific issues, not generic mistakes
|
|
172
|
+
- Include warning signs — early detection prevents disasters
|
|
173
|
+
- Link to specific stages — makes pitfalls actionable
|
|
174
|
+
|
|
175
|
+
**Technical Debt:**
|
|
176
|
+
- Be realistic — some shortcuts are acceptable
|
|
177
|
+
- Note when shortcuts are "never acceptable" vs. "only in MVP"
|
|
178
|
+
- Include the long-term cost to inform tradeoff decisions
|
|
179
|
+
|
|
180
|
+
**Performance Traps:**
|
|
181
|
+
- Include scale thresholds ("breaks at 10k users")
|
|
182
|
+
- Focus on what's relevant for this project's expected scale
|
|
183
|
+
- Don't over-engineer for hypothetical scale
|
|
184
|
+
|
|
185
|
+
**Security Mistakes:**
|
|
186
|
+
- Beyond OWASP basics — domain-specific issues
|
|
187
|
+
- Example: Community platforms have different security concerns than e-commerce
|
|
188
|
+
- Include risk level to prioritize
|
|
189
|
+
|
|
190
|
+
**"Looks Done But Isn't":**
|
|
191
|
+
- Checklist format for verification during execution
|
|
192
|
+
- Common in demos vs. production
|
|
193
|
+
- Prevents "it works on my machine" issues
|
|
194
|
+
|
|
195
|
+
**Pitfall-to-Stage Mapping:**
|
|
196
|
+
- Critical for track creation
|
|
197
|
+
- Each pitfall should map to a stage that prevents it
|
|
198
|
+
- Informs stage ordering and success criteria
|
|
199
|
+
|
|
200
|
+
</guidelines>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Research Recap Template
|
|
2
|
+
|
|
3
|
+
Template for `.ace/research/recap.md` — executive summary of project research with track implications.
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Project Research Recap
|
|
9
|
+
|
|
10
|
+
**Project:** [name from brief.md]
|
|
11
|
+
**Domain:** [inferred domain type]
|
|
12
|
+
**Researched:** [date]
|
|
13
|
+
**Confidence:** [HIGH/MEDIUM/LOW]
|
|
14
|
+
|
|
15
|
+
## Executive Summary
|
|
16
|
+
|
|
17
|
+
[2-3 paragraph overview of research findings]
|
|
18
|
+
|
|
19
|
+
- What type of product this is and how experts build it
|
|
20
|
+
- The recommended approach based on research
|
|
21
|
+
- Key risks and how to mitigate them
|
|
22
|
+
|
|
23
|
+
## Key Findings
|
|
24
|
+
|
|
25
|
+
### Recommended Stack
|
|
26
|
+
|
|
27
|
+
[Summary from STACK.md — 1-2 paragraphs]
|
|
28
|
+
|
|
29
|
+
**Core technologies:**
|
|
30
|
+
- [Technology]: [purpose] — [why recommended]
|
|
31
|
+
- [Technology]: [purpose] — [why recommended]
|
|
32
|
+
- [Technology]: [purpose] — [why recommended]
|
|
33
|
+
|
|
34
|
+
### Expected Features
|
|
35
|
+
|
|
36
|
+
[Summary from FEATURES.md]
|
|
37
|
+
|
|
38
|
+
**Must have (table stakes):**
|
|
39
|
+
- [Feature] — users expect this
|
|
40
|
+
- [Feature] — users expect this
|
|
41
|
+
|
|
42
|
+
**Should have (competitive):**
|
|
43
|
+
- [Feature] — differentiator
|
|
44
|
+
- [Feature] — differentiator
|
|
45
|
+
|
|
46
|
+
**Defer (v2+):**
|
|
47
|
+
- [Feature] — not essential for launch
|
|
48
|
+
|
|
49
|
+
### Architecture Approach
|
|
50
|
+
|
|
51
|
+
[Summary from ARCHITECTURE.md — 1 paragraph]
|
|
52
|
+
|
|
53
|
+
**Major components:**
|
|
54
|
+
1. [Component] — [responsibility]
|
|
55
|
+
2. [Component] — [responsibility]
|
|
56
|
+
3. [Component] — [responsibility]
|
|
57
|
+
|
|
58
|
+
### Critical Pitfalls
|
|
59
|
+
|
|
60
|
+
[Top 3-5 from PITFALLS.md]
|
|
61
|
+
|
|
62
|
+
1. **[Pitfall]** — [how to avoid]
|
|
63
|
+
2. **[Pitfall]** — [how to avoid]
|
|
64
|
+
3. **[Pitfall]** — [how to avoid]
|
|
65
|
+
|
|
66
|
+
## Implications for Track
|
|
67
|
+
|
|
68
|
+
Based on research, suggested stage structure:
|
|
69
|
+
|
|
70
|
+
### Stage 1: [Name]
|
|
71
|
+
**Rationale:** [why this comes first based on research]
|
|
72
|
+
**Delivers:** [what this stage produces]
|
|
73
|
+
**Addresses:** [features from FEATURES.md]
|
|
74
|
+
**Avoids:** [pitfall from PITFALLS.md]
|
|
75
|
+
|
|
76
|
+
### Stage 2: [Name]
|
|
77
|
+
**Rationale:** [why this order]
|
|
78
|
+
**Delivers:** [what this stage produces]
|
|
79
|
+
**Uses:** [stack elements from STACK.md]
|
|
80
|
+
**Implements:** [architecture component]
|
|
81
|
+
|
|
82
|
+
### Stage 3: [Name]
|
|
83
|
+
**Rationale:** [why this order]
|
|
84
|
+
**Delivers:** [what this stage produces]
|
|
85
|
+
|
|
86
|
+
[Continue for suggested stages...]
|
|
87
|
+
|
|
88
|
+
### Stage Ordering Rationale
|
|
89
|
+
|
|
90
|
+
- [Why this order based on dependencies discovered]
|
|
91
|
+
- [Why this grouping based on architecture patterns]
|
|
92
|
+
- [How this avoids pitfalls from research]
|
|
93
|
+
|
|
94
|
+
### Research Flags
|
|
95
|
+
|
|
96
|
+
Stages likely needing deeper research during planning:
|
|
97
|
+
- **Stage [X]:** [reason — e.g., "complex integration, needs API research"]
|
|
98
|
+
- **Stage [Y]:** [reason — e.g., "niche domain, sparse documentation"]
|
|
99
|
+
|
|
100
|
+
Stages with standard patterns (skip research-stage):
|
|
101
|
+
- **Stage [X]:** [reason — e.g., "well-documented, established patterns"]
|
|
102
|
+
|
|
103
|
+
## Confidence Assessment
|
|
104
|
+
|
|
105
|
+
| Area | Confidence | Notes |
|
|
106
|
+
|------|------------|-------|
|
|
107
|
+
| Stack | [HIGH/MEDIUM/LOW] | [reason] |
|
|
108
|
+
| Features | [HIGH/MEDIUM/LOW] | [reason] |
|
|
109
|
+
| Architecture | [HIGH/MEDIUM/LOW] | [reason] |
|
|
110
|
+
| Pitfalls | [HIGH/MEDIUM/LOW] | [reason] |
|
|
111
|
+
|
|
112
|
+
**Overall confidence:** [HIGH/MEDIUM/LOW]
|
|
113
|
+
|
|
114
|
+
### Gaps to Address
|
|
115
|
+
|
|
116
|
+
[Any areas where research was inconclusive or needs validation during implementation]
|
|
117
|
+
|
|
118
|
+
- [Gap]: [how to handle during planning/execution]
|
|
119
|
+
- [Gap]: [how to handle during planning/execution]
|
|
120
|
+
|
|
121
|
+
## Sources
|
|
122
|
+
|
|
123
|
+
### Primary (HIGH confidence)
|
|
124
|
+
- [Context7 library ID] — [topics]
|
|
125
|
+
- [Official docs URL] — [what was checked]
|
|
126
|
+
|
|
127
|
+
### Secondary (MEDIUM confidence)
|
|
128
|
+
- [Source] — [finding]
|
|
129
|
+
|
|
130
|
+
### Tertiary (LOW confidence)
|
|
131
|
+
- [Source] — [finding, needs validation]
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
*Research completed: [date]*
|
|
135
|
+
*Ready for track: yes*
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
</template>
|
|
139
|
+
|
|
140
|
+
<guidelines>
|
|
141
|
+
|
|
142
|
+
**Executive Summary:**
|
|
143
|
+
- Write for someone who will only read this section
|
|
144
|
+
- Include the key recommendation and main risk
|
|
145
|
+
- 2-3 paragraphs maximum
|
|
146
|
+
|
|
147
|
+
**Key Findings:**
|
|
148
|
+
- Summarize, don't duplicate full documents
|
|
149
|
+
- Link to detailed docs (STACK.md, FEATURES.md, etc.)
|
|
150
|
+
- Focus on what matters for track decisions
|
|
151
|
+
|
|
152
|
+
**Implications for Track:**
|
|
153
|
+
- This is the most important section
|
|
154
|
+
- Directly informs track creation
|
|
155
|
+
- Be explicit about stage suggestions and rationale
|
|
156
|
+
- Include research flags for each suggested stage
|
|
157
|
+
|
|
158
|
+
**Confidence Assessment:**
|
|
159
|
+
- Be honest about uncertainty
|
|
160
|
+
- Note gaps that need resolution during planning
|
|
161
|
+
- HIGH = verified with official sources
|
|
162
|
+
- MEDIUM = community consensus, multiple sources agree
|
|
163
|
+
- LOW = single source or inference
|
|
164
|
+
|
|
165
|
+
**Integration with track creation:**
|
|
166
|
+
- This file is loaded as context during track creation
|
|
167
|
+
- Stage suggestions here become starting point for track
|
|
168
|
+
- Research flags inform stage planning
|
|
169
|
+
|
|
170
|
+
</guidelines>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Stack Research Template
|
|
2
|
+
|
|
3
|
+
Template for `.ace/research/stack.md` — recommended technologies for the project domain.
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Stack Research
|
|
9
|
+
|
|
10
|
+
**Domain:** [domain type]
|
|
11
|
+
**Researched:** [date]
|
|
12
|
+
**Confidence:** [HIGH/MEDIUM/LOW]
|
|
13
|
+
|
|
14
|
+
## Recommended Stack
|
|
15
|
+
|
|
16
|
+
### Core Technologies
|
|
17
|
+
|
|
18
|
+
| Technology | Version | Purpose | Why Recommended |
|
|
19
|
+
|------------|---------|---------|-----------------|
|
|
20
|
+
| [name] | [version] | [what it does] | [why experts use it for this domain] |
|
|
21
|
+
| [name] | [version] | [what it does] | [why experts use it for this domain] |
|
|
22
|
+
| [name] | [version] | [what it does] | [why experts use it for this domain] |
|
|
23
|
+
|
|
24
|
+
### Supporting Libraries
|
|
25
|
+
|
|
26
|
+
| Library | Version | Purpose | When to Use |
|
|
27
|
+
|---------|---------|---------|-------------|
|
|
28
|
+
| [name] | [version] | [what it does] | [specific use case] |
|
|
29
|
+
| [name] | [version] | [what it does] | [specific use case] |
|
|
30
|
+
| [name] | [version] | [what it does] | [specific use case] |
|
|
31
|
+
|
|
32
|
+
### Development Tools
|
|
33
|
+
|
|
34
|
+
| Tool | Purpose | Notes |
|
|
35
|
+
|------|---------|-------|
|
|
36
|
+
| [name] | [what it does] | [configuration tips] |
|
|
37
|
+
| [name] | [what it does] | [configuration tips] |
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Core
|
|
43
|
+
npm install [packages]
|
|
44
|
+
|
|
45
|
+
# Supporting
|
|
46
|
+
npm install [packages]
|
|
47
|
+
|
|
48
|
+
# Dev dependencies
|
|
49
|
+
npm install -D [packages]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Alternatives Considered
|
|
53
|
+
|
|
54
|
+
| Recommended | Alternative | When to Use Alternative |
|
|
55
|
+
|-------------|-------------|-------------------------|
|
|
56
|
+
| [our choice] | [other option] | [conditions where alternative is better] |
|
|
57
|
+
| [our choice] | [other option] | [conditions where alternative is better] |
|
|
58
|
+
|
|
59
|
+
## What NOT to Use
|
|
60
|
+
|
|
61
|
+
| Avoid | Why | Use Instead |
|
|
62
|
+
|-------|-----|-------------|
|
|
63
|
+
| [technology] | [specific problem] | [recommended alternative] |
|
|
64
|
+
| [technology] | [specific problem] | [recommended alternative] |
|
|
65
|
+
|
|
66
|
+
## Stack Patterns by Variant
|
|
67
|
+
|
|
68
|
+
**If [condition]:**
|
|
69
|
+
- Use [variation]
|
|
70
|
+
- Because [reason]
|
|
71
|
+
|
|
72
|
+
**If [condition]:**
|
|
73
|
+
- Use [variation]
|
|
74
|
+
- Because [reason]
|
|
75
|
+
|
|
76
|
+
## Version Compatibility
|
|
77
|
+
|
|
78
|
+
| Package A | Compatible With | Notes |
|
|
79
|
+
|-----------|-----------------|-------|
|
|
80
|
+
| [package@version] | [package@version] | [compatibility notes] |
|
|
81
|
+
|
|
82
|
+
## Sources
|
|
83
|
+
|
|
84
|
+
- [Context7 library ID] — [topics fetched]
|
|
85
|
+
- [Official docs URL] — [what was verified]
|
|
86
|
+
- [Other source] — [confidence level]
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
*Stack research for: [domain]*
|
|
90
|
+
*Researched: [date]*
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
<guidelines>
|
|
96
|
+
|
|
97
|
+
**Core Technologies:**
|
|
98
|
+
- Include specific version numbers
|
|
99
|
+
- Explain why this is the standard choice, not just what it does
|
|
100
|
+
- Focus on technologies that affect architecture decisions
|
|
101
|
+
|
|
102
|
+
**Supporting Libraries:**
|
|
103
|
+
- Include libraries commonly needed for this domain
|
|
104
|
+
- Note when each is needed (not all projects need all libraries)
|
|
105
|
+
|
|
106
|
+
**Alternatives:**
|
|
107
|
+
- Don't just dismiss alternatives
|
|
108
|
+
- Explain when alternatives make sense
|
|
109
|
+
- Helps user make informed decisions if they disagree
|
|
110
|
+
|
|
111
|
+
**What NOT to Use:**
|
|
112
|
+
- Actively warn against outdated or problematic choices
|
|
113
|
+
- Explain the specific problem, not just "it's old"
|
|
114
|
+
- Provide the recommended alternative
|
|
115
|
+
|
|
116
|
+
**Version Compatibility:**
|
|
117
|
+
- Note any known compatibility issues
|
|
118
|
+
- Critical for avoiding debugging time later
|
|
119
|
+
|
|
120
|
+
</guidelines>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Research Template
|
|
2
|
+
|
|
3
|
+
Template for `.ace/stages/XX-name/research.md` - shallow research for library/option decisions.
|
|
4
|
+
|
|
5
|
+
**Purpose:** Answer "which library/option should we use" questions during mandatory research in plan-stage.
|
|
6
|
+
|
|
7
|
+
For deep ecosystem research ("how do experts build this"), use `/ace.research-stage` which produces RESEARCH.md.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## File Template
|
|
12
|
+
|
|
13
|
+
```markdown
|
|
14
|
+
---
|
|
15
|
+
stage: XX-name
|
|
16
|
+
type: research
|
|
17
|
+
topic: [research-topic]
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<session_initialization>
|
|
21
|
+
Before beginning research, verify today's date:
|
|
22
|
+
!`date +%Y-%m-%d`
|
|
23
|
+
|
|
24
|
+
Use this date when searching for "current" or "latest" information.
|
|
25
|
+
Example: If today is 2025-11-22, search for "2025" not "2024".
|
|
26
|
+
</session_initialization>
|
|
27
|
+
|
|
28
|
+
<research_objective>
|
|
29
|
+
Discover [topic] to inform [stage name] implementation.
|
|
30
|
+
|
|
31
|
+
Purpose: [What decision/implementation this enables]
|
|
32
|
+
Scope: [Boundaries]
|
|
33
|
+
Output: research.md with recommendation
|
|
34
|
+
</research_objective>
|
|
35
|
+
|
|
36
|
+
<research_scope>
|
|
37
|
+
<include>
|
|
38
|
+
- [Question to answer]
|
|
39
|
+
- [Area to investigate]
|
|
40
|
+
- [Specific comparison if needed]
|
|
41
|
+
</include>
|
|
42
|
+
|
|
43
|
+
<exclude>
|
|
44
|
+
- [Out of scope for this research]
|
|
45
|
+
- [Defer to implementation stage]
|
|
46
|
+
</exclude>
|
|
47
|
+
</research_scope>
|
|
48
|
+
|
|
49
|
+
<research_protocol>
|
|
50
|
+
|
|
51
|
+
**Source Priority:**
|
|
52
|
+
1. **Context7 MCP** - For library/framework documentation (current, authoritative)
|
|
53
|
+
2. **Official Docs** - For platform-specific or non-indexed libraries
|
|
54
|
+
3. **WebSearch** - For comparisons, trends, community patterns (verify all findings)
|
|
55
|
+
|
|
56
|
+
**Quality Checklist:**
|
|
57
|
+
Before completing research, verify:
|
|
58
|
+
- [ ] All claims have authoritative sources (Context7 or official docs)
|
|
59
|
+
- [ ] Negative claims ("X is not possible") verified with official documentation
|
|
60
|
+
- [ ] API syntax/configuration from Context7 or official docs (never WebSearch alone)
|
|
61
|
+
- [ ] WebSearch findings cross-checked with authoritative sources
|
|
62
|
+
- [ ] Recent updates/changelogs checked for breaking changes
|
|
63
|
+
- [ ] Alternative approaches considered (not just first solution found)
|
|
64
|
+
|
|
65
|
+
**Confidence Levels:**
|
|
66
|
+
- HIGH: Context7 or official docs confirm
|
|
67
|
+
- MEDIUM: WebSearch + Context7/official docs confirm
|
|
68
|
+
- LOW: WebSearch only or training knowledge only (mark for validation)
|
|
69
|
+
|
|
70
|
+
</research_protocol>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<output_structure>
|
|
74
|
+
Create `.ace/stages/XX-name/research.md`:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
# [Topic] Research
|
|
78
|
+
|
|
79
|
+
## Summary
|
|
80
|
+
[2-3 paragraph executive summary - what was researched, what was found, what's recommended]
|
|
81
|
+
|
|
82
|
+
## Primary Recommendation
|
|
83
|
+
[What to do and why - be specific and actionable]
|
|
84
|
+
|
|
85
|
+
## Alternatives Considered
|
|
86
|
+
[What else was evaluated and why not chosen]
|
|
87
|
+
|
|
88
|
+
## Key Findings
|
|
89
|
+
|
|
90
|
+
### [Category 1]
|
|
91
|
+
- [Finding with source URL and relevance to our case]
|
|
92
|
+
|
|
93
|
+
### [Category 2]
|
|
94
|
+
- [Finding with source URL and relevance]
|
|
95
|
+
|
|
96
|
+
## Code Examples
|
|
97
|
+
[Relevant implementation patterns, if applicable]
|
|
98
|
+
|
|
99
|
+
## Metadata
|
|
100
|
+
|
|
101
|
+
<metadata>
|
|
102
|
+
<confidence level="high|medium|low">
|
|
103
|
+
[Why this confidence level - based on source quality and verification]
|
|
104
|
+
</confidence>
|
|
105
|
+
|
|
106
|
+
<sources>
|
|
107
|
+
- [Primary authoritative sources used]
|
|
108
|
+
</sources>
|
|
109
|
+
|
|
110
|
+
<open_questions>
|
|
111
|
+
[What couldn't be determined or needs validation during implementation]
|
|
112
|
+
</open_questions>
|
|
113
|
+
|
|
114
|
+
<validation_checkpoints>
|
|
115
|
+
[If confidence is LOW or MEDIUM, list specific things to verify during implementation]
|
|
116
|
+
</validation_checkpoints>
|
|
117
|
+
</metadata>
|
|
118
|
+
```
|
|
119
|
+
</output_structure>
|
|
120
|
+
|
|
121
|
+
<success_criteria>
|
|
122
|
+
- All scope questions answered with authoritative sources
|
|
123
|
+
- Quality checklist items completed
|
|
124
|
+
- Clear primary recommendation
|
|
125
|
+
- Low-confidence findings marked with validation checkpoints
|
|
126
|
+
- Ready to inform run.md creation
|
|
127
|
+
</success_criteria>
|
|
128
|
+
|
|
129
|
+
<guidelines>
|
|
130
|
+
**When to use research:**
|
|
131
|
+
- Technology choice unclear (library A vs B)
|
|
132
|
+
- Best practices needed for unfamiliar integration
|
|
133
|
+
- API/library investigation required
|
|
134
|
+
- Single decision pending
|
|
135
|
+
|
|
136
|
+
**When NOT to use:**
|
|
137
|
+
- Established patterns (CRUD, auth with known library)
|
|
138
|
+
- Implementation details (defer to execution)
|
|
139
|
+
- Questions answerable from existing project context
|
|
140
|
+
|
|
141
|
+
**When to use RESEARCH.md instead:**
|
|
142
|
+
- Niche/complex domains (3D, games, audio, shaders)
|
|
143
|
+
- Need ecosystem knowledge, not just library choice
|
|
144
|
+
- "How do experts build this" questions
|
|
145
|
+
- Use `/ace.research-stage` for these
|
|
146
|
+
</guidelines>
|