gspec 1.13.2 → 1.14.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/commands/gspec.architect.md +4 -3
- package/commands/gspec.feature.md +1 -1
- package/commands/gspec.research.md +1 -1
- package/commands/gspec.stack.md +2 -7
- package/dist/antigravity/gspec-architect/SKILL.md +4 -3
- package/dist/antigravity/gspec-feature/SKILL.md +1 -1
- package/dist/antigravity/gspec-research/SKILL.md +1 -1
- package/dist/antigravity/gspec-stack/SKILL.md +2 -7
- package/dist/claude/gspec-architect/SKILL.md +4 -3
- package/dist/claude/gspec-feature/SKILL.md +1 -1
- package/dist/claude/gspec-research/SKILL.md +1 -1
- package/dist/claude/gspec-stack/SKILL.md +2 -7
- package/dist/codex/gspec-architect/SKILL.md +4 -3
- package/dist/codex/gspec-feature/SKILL.md +1 -1
- package/dist/codex/gspec-research/SKILL.md +1 -1
- package/dist/codex/gspec-stack/SKILL.md +2 -7
- package/dist/cursor/gspec-architect.mdc +4 -3
- package/dist/cursor/gspec-feature.mdc +1 -1
- package/dist/cursor/gspec-research.mdc +1 -1
- package/dist/cursor/gspec-stack.mdc +2 -7
- package/dist/opencode/gspec-architect/SKILL.md +4 -3
- package/dist/opencode/gspec-feature/SKILL.md +1 -1
- package/dist/opencode/gspec-research/SKILL.md +1 -1
- package/dist/opencode/gspec-stack/SKILL.md +2 -7
- package/package.json +1 -1
- package/templates/spec-sync.md +8 -6
|
@@ -29,7 +29,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
29
29
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
30
30
|
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
31
31
|
|
|
32
|
-
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions
|
|
32
|
+
All of these provide essential context. If any are missing, note the gap and ask the user to clarify before proceeding. If the user explicitly defers, make reasonable assumptions and record them in the Assumptions sub-section of the Technical Gap Analysis.
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
@@ -339,8 +339,9 @@ Examples of gaps to look for:
|
|
|
339
339
|
- Technical decisions that were inferred rather than explicitly specified in existing specs
|
|
340
340
|
|
|
341
341
|
### 10. Open Decisions
|
|
342
|
-
-
|
|
343
|
-
-
|
|
342
|
+
- **All technical questions and decisions must be resolved by asking the user before the document is saved.** Do not save the architecture with unresolved questions.
|
|
343
|
+
- If the user explicitly defers a decision, record it here with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
344
|
+
- Areas where the architecture may need to evolve as features are implemented may be noted, but these must be acknowledged evolution points — not unresolved questions.
|
|
344
345
|
|
|
345
346
|
---
|
|
346
347
|
|
|
@@ -163,8 +163,8 @@ This separation — combined with the portability principles above — allows th
|
|
|
163
163
|
|
|
164
164
|
### 6. Assumptions & Risks
|
|
165
165
|
- Assumptions (what we're taking as true)
|
|
166
|
-
- Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the spec is written. If there are no open questions, omit this sub-section.
|
|
167
166
|
- Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
|
|
167
|
+
- **No open questions** — All questions must be resolved by asking the user in the chat before the spec is saved. If the user explicitly defers a question, record it as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit the sub-section entirely. Never embed unresolved questions in the document by default.
|
|
168
168
|
|
|
169
169
|
### 7. Success Metrics
|
|
170
170
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
@@ -154,7 +154,7 @@ After writing `gspec/research.md`, ask the user:
|
|
|
154
154
|
- Scope (in-scope goals, out-of-scope items, deferred ideas)
|
|
155
155
|
- Capabilities (with P0/P1/P2 priority levels, using **unchecked checkboxes** `- [ ]` for each capability, each with 2-4 **acceptance criteria** as a sub-list)
|
|
156
156
|
- Dependencies (on other features or external services)
|
|
157
|
-
- Assumptions & Risks (assumptions,
|
|
157
|
+
- Assumptions & Risks (assumptions, key risks and mitigations — all questions must be resolved in the chat before saving; only record explicitly deferred decisions)
|
|
158
158
|
- Success Metrics
|
|
159
159
|
- Implementation Context (standard portability note)
|
|
160
160
|
- Begin the file with YAML frontmatter: `---\nspec-version: <<<SPEC_VERSION>>>\n---`
|
package/commands/gspec.stack.md
CHANGED
|
@@ -47,13 +47,8 @@ You should:
|
|
|
47
47
|
- Deployment target (cloud, on-premise, hybrid)
|
|
48
48
|
- Scale and performance requirements
|
|
49
49
|
|
|
50
|
-
### 2.
|
|
51
|
-
**
|
|
52
|
-
- Missing requirements that impact stack decisions
|
|
53
|
-
- Unclear constraints or preferences
|
|
54
|
-
- Team expertise or existing infrastructure questions
|
|
55
|
-
- Budget or licensing considerations
|
|
56
|
-
- **Mark as "None" if all information is clear**
|
|
50
|
+
### 2. Clarifications
|
|
51
|
+
**All questions that impact technology choices must be resolved by asking the user in the chat before the document is saved.** Do not save the stack spec with unresolved questions. If the user explicitly defers a decision, record it here as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
57
52
|
|
|
58
53
|
### 3. Core Technology Stack
|
|
59
54
|
|
|
@@ -34,7 +34,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
34
34
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
35
35
|
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
36
36
|
|
|
37
|
-
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions
|
|
37
|
+
All of these provide essential context. If any are missing, note the gap and ask the user to clarify before proceeding. If the user explicitly defers, make reasonable assumptions and record them in the Assumptions sub-section of the Technical Gap Analysis.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -344,8 +344,9 @@ Examples of gaps to look for:
|
|
|
344
344
|
- Technical decisions that were inferred rather than explicitly specified in existing specs
|
|
345
345
|
|
|
346
346
|
### 10. Open Decisions
|
|
347
|
-
-
|
|
348
|
-
-
|
|
347
|
+
- **All technical questions and decisions must be resolved by asking the user before the document is saved.** Do not save the architecture with unresolved questions.
|
|
348
|
+
- If the user explicitly defers a decision, record it here with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
349
|
+
- Areas where the architecture may need to evolve as features are implemented may be noted, but these must be acknowledged evolution points — not unresolved questions.
|
|
349
350
|
|
|
350
351
|
---
|
|
351
352
|
|
|
@@ -168,8 +168,8 @@ This separation — combined with the portability principles above — allows th
|
|
|
168
168
|
|
|
169
169
|
### 6. Assumptions & Risks
|
|
170
170
|
- Assumptions (what we're taking as true)
|
|
171
|
-
- Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the spec is written. If there are no open questions, omit this sub-section.
|
|
172
171
|
- Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
|
|
172
|
+
- **No open questions** — All questions must be resolved by asking the user in the chat before the spec is saved. If the user explicitly defers a question, record it as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit the sub-section entirely. Never embed unresolved questions in the document by default.
|
|
173
173
|
|
|
174
174
|
### 7. Success Metrics
|
|
175
175
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
@@ -159,7 +159,7 @@ After writing `gspec/research.md`, ask the user:
|
|
|
159
159
|
- Scope (in-scope goals, out-of-scope items, deferred ideas)
|
|
160
160
|
- Capabilities (with P0/P1/P2 priority levels, using **unchecked checkboxes** `- [ ]` for each capability, each with 2-4 **acceptance criteria** as a sub-list)
|
|
161
161
|
- Dependencies (on other features or external services)
|
|
162
|
-
- Assumptions & Risks (assumptions,
|
|
162
|
+
- Assumptions & Risks (assumptions, key risks and mitigations — all questions must be resolved in the chat before saving; only record explicitly deferred decisions)
|
|
163
163
|
- Success Metrics
|
|
164
164
|
- Implementation Context (standard portability note)
|
|
165
165
|
- Begin the file with YAML frontmatter: `---\nspec-version: v1\n---`
|
|
@@ -52,13 +52,8 @@ You should:
|
|
|
52
52
|
- Deployment target (cloud, on-premise, hybrid)
|
|
53
53
|
- Scale and performance requirements
|
|
54
54
|
|
|
55
|
-
### 2.
|
|
56
|
-
**
|
|
57
|
-
- Missing requirements that impact stack decisions
|
|
58
|
-
- Unclear constraints or preferences
|
|
59
|
-
- Team expertise or existing infrastructure questions
|
|
60
|
-
- Budget or licensing considerations
|
|
61
|
-
- **Mark as "None" if all information is clear**
|
|
55
|
+
### 2. Clarifications
|
|
56
|
+
**All questions that impact technology choices must be resolved by asking the user in the chat before the document is saved.** Do not save the stack spec with unresolved questions. If the user explicitly defers a decision, record it here as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
62
57
|
|
|
63
58
|
### 3. Core Technology Stack
|
|
64
59
|
|
|
@@ -34,7 +34,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
34
34
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
35
35
|
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
36
36
|
|
|
37
|
-
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions
|
|
37
|
+
All of these provide essential context. If any are missing, note the gap and ask the user to clarify before proceeding. If the user explicitly defers, make reasonable assumptions and record them in the Assumptions sub-section of the Technical Gap Analysis.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -344,8 +344,9 @@ Examples of gaps to look for:
|
|
|
344
344
|
- Technical decisions that were inferred rather than explicitly specified in existing specs
|
|
345
345
|
|
|
346
346
|
### 10. Open Decisions
|
|
347
|
-
-
|
|
348
|
-
-
|
|
347
|
+
- **All technical questions and decisions must be resolved by asking the user before the document is saved.** Do not save the architecture with unresolved questions.
|
|
348
|
+
- If the user explicitly defers a decision, record it here with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
349
|
+
- Areas where the architecture may need to evolve as features are implemented may be noted, but these must be acknowledged evolution points — not unresolved questions.
|
|
349
350
|
|
|
350
351
|
---
|
|
351
352
|
|
|
@@ -168,8 +168,8 @@ This separation — combined with the portability principles above — allows th
|
|
|
168
168
|
|
|
169
169
|
### 6. Assumptions & Risks
|
|
170
170
|
- Assumptions (what we're taking as true)
|
|
171
|
-
- Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the spec is written. If there are no open questions, omit this sub-section.
|
|
172
171
|
- Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
|
|
172
|
+
- **No open questions** — All questions must be resolved by asking the user in the chat before the spec is saved. If the user explicitly defers a question, record it as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit the sub-section entirely. Never embed unresolved questions in the document by default.
|
|
173
173
|
|
|
174
174
|
### 7. Success Metrics
|
|
175
175
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
@@ -159,7 +159,7 @@ After writing `gspec/research.md`, ask the user:
|
|
|
159
159
|
- Scope (in-scope goals, out-of-scope items, deferred ideas)
|
|
160
160
|
- Capabilities (with P0/P1/P2 priority levels, using **unchecked checkboxes** `- [ ]` for each capability, each with 2-4 **acceptance criteria** as a sub-list)
|
|
161
161
|
- Dependencies (on other features or external services)
|
|
162
|
-
- Assumptions & Risks (assumptions,
|
|
162
|
+
- Assumptions & Risks (assumptions, key risks and mitigations — all questions must be resolved in the chat before saving; only record explicitly deferred decisions)
|
|
163
163
|
- Success Metrics
|
|
164
164
|
- Implementation Context (standard portability note)
|
|
165
165
|
- Begin the file with YAML frontmatter: `---\nspec-version: v1\n---`
|
|
@@ -52,13 +52,8 @@ You should:
|
|
|
52
52
|
- Deployment target (cloud, on-premise, hybrid)
|
|
53
53
|
- Scale and performance requirements
|
|
54
54
|
|
|
55
|
-
### 2.
|
|
56
|
-
**
|
|
57
|
-
- Missing requirements that impact stack decisions
|
|
58
|
-
- Unclear constraints or preferences
|
|
59
|
-
- Team expertise or existing infrastructure questions
|
|
60
|
-
- Budget or licensing considerations
|
|
61
|
-
- **Mark as "None" if all information is clear**
|
|
55
|
+
### 2. Clarifications
|
|
56
|
+
**All questions that impact technology choices must be resolved by asking the user in the chat before the document is saved.** Do not save the stack spec with unresolved questions. If the user explicitly defers a decision, record it here as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
62
57
|
|
|
63
58
|
### 3. Core Technology Stack
|
|
64
59
|
|
|
@@ -34,7 +34,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
34
34
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
35
35
|
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
36
36
|
|
|
37
|
-
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions
|
|
37
|
+
All of these provide essential context. If any are missing, note the gap and ask the user to clarify before proceeding. If the user explicitly defers, make reasonable assumptions and record them in the Assumptions sub-section of the Technical Gap Analysis.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -344,8 +344,9 @@ Examples of gaps to look for:
|
|
|
344
344
|
- Technical decisions that were inferred rather than explicitly specified in existing specs
|
|
345
345
|
|
|
346
346
|
### 10. Open Decisions
|
|
347
|
-
-
|
|
348
|
-
-
|
|
347
|
+
- **All technical questions and decisions must be resolved by asking the user before the document is saved.** Do not save the architecture with unresolved questions.
|
|
348
|
+
- If the user explicitly defers a decision, record it here with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
349
|
+
- Areas where the architecture may need to evolve as features are implemented may be noted, but these must be acknowledged evolution points — not unresolved questions.
|
|
349
350
|
|
|
350
351
|
---
|
|
351
352
|
|
|
@@ -168,8 +168,8 @@ This separation — combined with the portability principles above — allows th
|
|
|
168
168
|
|
|
169
169
|
### 6. Assumptions & Risks
|
|
170
170
|
- Assumptions (what we're taking as true)
|
|
171
|
-
- Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the spec is written. If there are no open questions, omit this sub-section.
|
|
172
171
|
- Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
|
|
172
|
+
- **No open questions** — All questions must be resolved by asking the user in the chat before the spec is saved. If the user explicitly defers a question, record it as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit the sub-section entirely. Never embed unresolved questions in the document by default.
|
|
173
173
|
|
|
174
174
|
### 7. Success Metrics
|
|
175
175
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
@@ -159,7 +159,7 @@ After writing `gspec/research.md`, ask the user:
|
|
|
159
159
|
- Scope (in-scope goals, out-of-scope items, deferred ideas)
|
|
160
160
|
- Capabilities (with P0/P1/P2 priority levels, using **unchecked checkboxes** `- [ ]` for each capability, each with 2-4 **acceptance criteria** as a sub-list)
|
|
161
161
|
- Dependencies (on other features or external services)
|
|
162
|
-
- Assumptions & Risks (assumptions,
|
|
162
|
+
- Assumptions & Risks (assumptions, key risks and mitigations — all questions must be resolved in the chat before saving; only record explicitly deferred decisions)
|
|
163
163
|
- Success Metrics
|
|
164
164
|
- Implementation Context (standard portability note)
|
|
165
165
|
- Begin the file with YAML frontmatter: `---\nspec-version: v1\n---`
|
|
@@ -52,13 +52,8 @@ You should:
|
|
|
52
52
|
- Deployment target (cloud, on-premise, hybrid)
|
|
53
53
|
- Scale and performance requirements
|
|
54
54
|
|
|
55
|
-
### 2.
|
|
56
|
-
**
|
|
57
|
-
- Missing requirements that impact stack decisions
|
|
58
|
-
- Unclear constraints or preferences
|
|
59
|
-
- Team expertise or existing infrastructure questions
|
|
60
|
-
- Budget or licensing considerations
|
|
61
|
-
- **Mark as "None" if all information is clear**
|
|
55
|
+
### 2. Clarifications
|
|
56
|
+
**All questions that impact technology choices must be resolved by asking the user in the chat before the document is saved.** Do not save the stack spec with unresolved questions. If the user explicitly defers a decision, record it here as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
62
57
|
|
|
63
58
|
### 3. Core Technology Stack
|
|
64
59
|
|
|
@@ -33,7 +33,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
33
33
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
34
34
|
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
35
35
|
|
|
36
|
-
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions
|
|
36
|
+
All of these provide essential context. If any are missing, note the gap and ask the user to clarify before proceeding. If the user explicitly defers, make reasonable assumptions and record them in the Assumptions sub-section of the Technical Gap Analysis.
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
@@ -343,8 +343,9 @@ Examples of gaps to look for:
|
|
|
343
343
|
- Technical decisions that were inferred rather than explicitly specified in existing specs
|
|
344
344
|
|
|
345
345
|
### 10. Open Decisions
|
|
346
|
-
-
|
|
347
|
-
-
|
|
346
|
+
- **All technical questions and decisions must be resolved by asking the user before the document is saved.** Do not save the architecture with unresolved questions.
|
|
347
|
+
- If the user explicitly defers a decision, record it here with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
348
|
+
- Areas where the architecture may need to evolve as features are implemented may be noted, but these must be acknowledged evolution points — not unresolved questions.
|
|
348
349
|
|
|
349
350
|
---
|
|
350
351
|
|
|
@@ -167,8 +167,8 @@ This separation — combined with the portability principles above — allows th
|
|
|
167
167
|
|
|
168
168
|
### 6. Assumptions & Risks
|
|
169
169
|
- Assumptions (what we're taking as true)
|
|
170
|
-
- Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the spec is written. If there are no open questions, omit this sub-section.
|
|
171
170
|
- Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
|
|
171
|
+
- **No open questions** — All questions must be resolved by asking the user in the chat before the spec is saved. If the user explicitly defers a question, record it as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit the sub-section entirely. Never embed unresolved questions in the document by default.
|
|
172
172
|
|
|
173
173
|
### 7. Success Metrics
|
|
174
174
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
@@ -158,7 +158,7 @@ After writing `gspec/research.md`, ask the user:
|
|
|
158
158
|
- Scope (in-scope goals, out-of-scope items, deferred ideas)
|
|
159
159
|
- Capabilities (with P0/P1/P2 priority levels, using **unchecked checkboxes** `- [ ]` for each capability, each with 2-4 **acceptance criteria** as a sub-list)
|
|
160
160
|
- Dependencies (on other features or external services)
|
|
161
|
-
- Assumptions & Risks (assumptions,
|
|
161
|
+
- Assumptions & Risks (assumptions, key risks and mitigations — all questions must be resolved in the chat before saving; only record explicitly deferred decisions)
|
|
162
162
|
- Success Metrics
|
|
163
163
|
- Implementation Context (standard portability note)
|
|
164
164
|
- Begin the file with YAML frontmatter: `---\nspec-version: v1\n---`
|
|
@@ -51,13 +51,8 @@ You should:
|
|
|
51
51
|
- Deployment target (cloud, on-premise, hybrid)
|
|
52
52
|
- Scale and performance requirements
|
|
53
53
|
|
|
54
|
-
### 2.
|
|
55
|
-
**
|
|
56
|
-
- Missing requirements that impact stack decisions
|
|
57
|
-
- Unclear constraints or preferences
|
|
58
|
-
- Team expertise or existing infrastructure questions
|
|
59
|
-
- Budget or licensing considerations
|
|
60
|
-
- **Mark as "None" if all information is clear**
|
|
54
|
+
### 2. Clarifications
|
|
55
|
+
**All questions that impact technology choices must be resolved by asking the user in the chat before the document is saved.** Do not save the stack spec with unresolved questions. If the user explicitly defers a decision, record it here as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
61
56
|
|
|
62
57
|
### 3. Core Technology Stack
|
|
63
58
|
|
|
@@ -34,7 +34,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
34
34
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
35
35
|
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
36
36
|
|
|
37
|
-
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions
|
|
37
|
+
All of these provide essential context. If any are missing, note the gap and ask the user to clarify before proceeding. If the user explicitly defers, make reasonable assumptions and record them in the Assumptions sub-section of the Technical Gap Analysis.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -344,8 +344,9 @@ Examples of gaps to look for:
|
|
|
344
344
|
- Technical decisions that were inferred rather than explicitly specified in existing specs
|
|
345
345
|
|
|
346
346
|
### 10. Open Decisions
|
|
347
|
-
-
|
|
348
|
-
-
|
|
347
|
+
- **All technical questions and decisions must be resolved by asking the user before the document is saved.** Do not save the architecture with unresolved questions.
|
|
348
|
+
- If the user explicitly defers a decision, record it here with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
349
|
+
- Areas where the architecture may need to evolve as features are implemented may be noted, but these must be acknowledged evolution points — not unresolved questions.
|
|
349
350
|
|
|
350
351
|
---
|
|
351
352
|
|
|
@@ -168,8 +168,8 @@ This separation — combined with the portability principles above — allows th
|
|
|
168
168
|
|
|
169
169
|
### 6. Assumptions & Risks
|
|
170
170
|
- Assumptions (what we're taking as true)
|
|
171
|
-
- Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the spec is written. If there are no open questions, omit this sub-section.
|
|
172
171
|
- Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
|
|
172
|
+
- **No open questions** — All questions must be resolved by asking the user in the chat before the spec is saved. If the user explicitly defers a question, record it as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit the sub-section entirely. Never embed unresolved questions in the document by default.
|
|
173
173
|
|
|
174
174
|
### 7. Success Metrics
|
|
175
175
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
@@ -159,7 +159,7 @@ After writing `gspec/research.md`, ask the user:
|
|
|
159
159
|
- Scope (in-scope goals, out-of-scope items, deferred ideas)
|
|
160
160
|
- Capabilities (with P0/P1/P2 priority levels, using **unchecked checkboxes** `- [ ]` for each capability, each with 2-4 **acceptance criteria** as a sub-list)
|
|
161
161
|
- Dependencies (on other features or external services)
|
|
162
|
-
- Assumptions & Risks (assumptions,
|
|
162
|
+
- Assumptions & Risks (assumptions, key risks and mitigations — all questions must be resolved in the chat before saving; only record explicitly deferred decisions)
|
|
163
163
|
- Success Metrics
|
|
164
164
|
- Implementation Context (standard portability note)
|
|
165
165
|
- Begin the file with YAML frontmatter: `---\nspec-version: v1\n---`
|
|
@@ -52,13 +52,8 @@ You should:
|
|
|
52
52
|
- Deployment target (cloud, on-premise, hybrid)
|
|
53
53
|
- Scale and performance requirements
|
|
54
54
|
|
|
55
|
-
### 2.
|
|
56
|
-
**
|
|
57
|
-
- Missing requirements that impact stack decisions
|
|
58
|
-
- Unclear constraints or preferences
|
|
59
|
-
- Team expertise or existing infrastructure questions
|
|
60
|
-
- Budget or licensing considerations
|
|
61
|
-
- **Mark as "None" if all information is clear**
|
|
55
|
+
### 2. Clarifications
|
|
56
|
+
**All questions that impact technology choices must be resolved by asking the user in the chat before the document is saved.** Do not save the stack spec with unresolved questions. If the user explicitly defers a decision, record it here as a "Deferred Decision" with context explaining what was deferred and why. If there are no deferred decisions, omit this section entirely.
|
|
62
57
|
|
|
63
58
|
### 3. Core Technology Stack
|
|
64
59
|
|
package/package.json
CHANGED
package/templates/spec-sync.md
CHANGED
|
@@ -8,19 +8,21 @@ These specs define what the product is, how it should look, what technology it u
|
|
|
8
8
|
|
|
9
9
|
1. **Read the specs first** — Before making non-trivial changes, read the relevant gspec documents to understand existing decisions and constraints. At minimum, scan `gspec/profile.md` and any feature PRDs in `gspec/features/` related to your work.
|
|
10
10
|
|
|
11
|
-
2. **
|
|
11
|
+
2. **Spec before you build** — If the user asks for a feature or capability that isn't covered by an existing feature PRD in `gspec/features/`, run the `gspec-feature` command to create a new feature PRD before implementing it. Every feature should be specified before it's built — don't skip straight to code.
|
|
12
12
|
|
|
13
|
-
3. **Update
|
|
13
|
+
3. **Update feature checkboxes** — When you implement a capability defined in a feature PRD (`gspec/features/*.md`), change its checkbox from `- [ ]` to `- [x]`.
|
|
14
|
+
|
|
15
|
+
4. **Update specs that your changes contradict** — If your code change makes a spec statement incorrect (e.g., you changed the data model, switched a dependency, altered a UI pattern, or added a new API endpoint), update the spec to reflect reality. Common candidates:
|
|
14
16
|
- `gspec/architecture.md` — project structure, data model, API routes, component hierarchy
|
|
15
17
|
- `gspec/stack.md` — dependencies, frameworks, infrastructure
|
|
16
18
|
- `gspec/style.md` — design tokens, component styling, visual conventions
|
|
17
19
|
- `gspec/practices.md` — coding standards, testing conventions, workflows
|
|
18
20
|
- `gspec/profile.md` — product scope, target users, value proposition (rarely changes)
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
5. **Be surgical** — Change only what is necessary. Preserve the existing voice, structure, and formatting of each spec document. Do not rewrite sections that are still accurate.
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
6. **Announce spec updates** — When you update a spec, briefly mention what changed and why in your response. Never silently modify specs.
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
7. **Preserve frontmatter** — gspec files use YAML frontmatter with a `spec-version` field. Preserve it when editing. If a file lacks frontmatter, leave it as-is.
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
8. **Don't create new foundation specs** — Only update existing spec files. If you believe a new spec document is needed, suggest it to the user rather than creating it yourself.
|