gspec 1.1.2 → 1.3.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/README.md +58 -12
- package/commands/gspec.epic.md +25 -15
- package/commands/gspec.feature.md +24 -14
- package/commands/gspec.implement.md +51 -118
- package/commands/gspec.practices.md +2 -3
- package/commands/gspec.research.md +276 -0
- package/commands/gspec.stack.md +29 -6
- package/commands/gspec.style.md +13 -46
- package/dist/antigravity/gspec-architect/SKILL.md +1 -1
- package/dist/antigravity/gspec-dor/SKILL.md +2 -2
- package/dist/antigravity/gspec-epic/SKILL.md +26 -16
- package/dist/antigravity/gspec-feature/SKILL.md +25 -15
- package/dist/antigravity/gspec-implement/SKILL.md +54 -121
- package/dist/antigravity/gspec-migrate/SKILL.md +5 -5
- package/dist/antigravity/gspec-practices/SKILL.md +3 -4
- package/dist/antigravity/gspec-profile/SKILL.md +1 -1
- package/dist/antigravity/gspec-record/SKILL.md +2 -2
- package/dist/antigravity/gspec-research/SKILL.md +280 -0
- package/dist/antigravity/gspec-stack/SKILL.md +30 -7
- package/dist/antigravity/gspec-style/SKILL.md +14 -47
- package/dist/claude/gspec-architect/SKILL.md +1 -1
- package/dist/claude/gspec-dor/SKILL.md +2 -2
- package/dist/claude/gspec-epic/SKILL.md +26 -16
- package/dist/claude/gspec-feature/SKILL.md +25 -15
- package/dist/claude/gspec-implement/SKILL.md +54 -121
- package/dist/claude/gspec-migrate/SKILL.md +5 -5
- package/dist/claude/gspec-practices/SKILL.md +3 -4
- package/dist/claude/gspec-profile/SKILL.md +1 -1
- package/dist/claude/gspec-record/SKILL.md +2 -2
- package/dist/claude/gspec-research/SKILL.md +281 -0
- package/dist/claude/gspec-stack/SKILL.md +30 -7
- package/dist/claude/gspec-style/SKILL.md +14 -47
- package/dist/cursor/gspec-architect.mdc +1 -1
- package/dist/cursor/gspec-dor.mdc +2 -2
- package/dist/cursor/gspec-epic.mdc +26 -16
- package/dist/cursor/gspec-feature.mdc +25 -15
- package/dist/cursor/gspec-implement.mdc +54 -121
- package/dist/cursor/gspec-migrate.mdc +5 -5
- package/dist/cursor/gspec-practices.mdc +3 -4
- package/dist/cursor/gspec-profile.mdc +1 -1
- package/dist/cursor/gspec-record.mdc +2 -2
- package/dist/cursor/gspec-research.mdc +279 -0
- package/dist/cursor/gspec-stack.mdc +30 -7
- package/dist/cursor/gspec-style.mdc +14 -47
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,14 +25,51 @@ These documents become the shared context for all subsequent AI interactions. Wh
|
|
|
25
25
|
|
|
26
26
|
The only commands you *need* are the four fundamentals and `implement`. Everything else exists to help when your project calls for it.
|
|
27
27
|
|
|
28
|
-
The fundamentals give your AI tool enough context to build well — it knows what the product is, how it should look, what technologies to use, and what engineering standards to follow. From there, `implement` can take a plain-language description and start building. The remaining commands — `feature`, `epic`, `architect`, `dor`, and `record` — add structure and rigor when the scope or complexity warrants it.
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Define
|
|
33
|
-
|
|
28
|
+
The fundamentals give your AI tool enough context to build well — it knows what the product is, how it should look, what technologies to use, and what engineering standards to follow. From there, `implement` can take a plain-language description and start building. The remaining commands — `research`, `feature`, `epic`, `architect`, `dor`, and `record` — add structure and rigor when the scope or complexity warrants it.
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
flowchart LR
|
|
32
|
+
Define["1. Define
|
|
33
|
+
profile · style
|
|
34
|
+
stack · practices"]
|
|
35
|
+
|
|
36
|
+
Research["2. Research
|
|
37
|
+
competitive analysis"]
|
|
38
|
+
|
|
39
|
+
Specify["3. Specify
|
|
40
|
+
feature · epic"]
|
|
41
|
+
|
|
42
|
+
Architect["4. Architect
|
|
43
|
+
technical blueprint"]
|
|
44
|
+
|
|
45
|
+
Build["5. Build
|
|
46
|
+
implement"]
|
|
47
|
+
|
|
48
|
+
Iterate["6. Iterate
|
|
49
|
+
dor · record"]
|
|
50
|
+
|
|
51
|
+
Define --> Research
|
|
52
|
+
Define --> Specify
|
|
53
|
+
Define --> Build
|
|
54
|
+
Research --> Specify
|
|
55
|
+
Research --> Build
|
|
56
|
+
Specify --> Architect
|
|
57
|
+
Specify --> Build
|
|
58
|
+
Architect --> Build
|
|
59
|
+
Build --> Iterate
|
|
60
|
+
Iterate --> Build
|
|
61
|
+
|
|
62
|
+
style Define fill:#4a9eff,color:#fff,stroke:none
|
|
63
|
+
style Research fill:#a855f7,color:#fff,stroke:none
|
|
64
|
+
style Specify fill:#f59e0b,color:#fff,stroke:none
|
|
65
|
+
style Architect fill:#f59e0b,color:#fff,stroke:none
|
|
66
|
+
style Build fill:#22c55e,color:#fff,stroke:none
|
|
67
|
+
style Iterate fill:#64748b,color:#fff,stroke:none
|
|
34
68
|
```
|
|
35
69
|
|
|
70
|
+
> **Blue** = required foundation. **Purple/Yellow** = optional depth. **Green** = implementation. **Gray** = maintenance.
|
|
71
|
+
> Every path starts with Define and passes through Build. The steps in between depend on your project's complexity.
|
|
72
|
+
|
|
36
73
|
**1. Define the Fundamentals** — Establish the foundation that drives every decision.
|
|
37
74
|
|
|
38
75
|
| Command | Role | What it produces |
|
|
@@ -42,7 +79,15 @@ Define → Specify → Architect → Build → Iterate
|
|
|
42
79
|
| `gspec.stack` | Software Architect | Technology stack, frameworks, infrastructure, architecture |
|
|
43
80
|
| `gspec.practices` | Engineering Lead | Development standards, code quality, testing, workflows |
|
|
44
81
|
|
|
45
|
-
**2.
|
|
82
|
+
**2. Research the Market** *(optional)* — Understand the competitive landscape before building.
|
|
83
|
+
|
|
84
|
+
| Command | Role | What it produces |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| `gspec.research` | Product Strategist | Competitive analysis with feature matrix, gap identification, and strategic recommendations |
|
|
87
|
+
|
|
88
|
+
Use `research` when you want to understand what competitors offer, identify table-stakes features you might be missing, and find differentiation opportunities. It reads competitors from your product profile, produces a persistent `gspec/research.md` file, and can optionally generate feature PRDs from the findings. The `implement` command automatically uses this file when it exists.
|
|
89
|
+
|
|
90
|
+
**3. Specify What to Build** *(optional)* — Define features and requirements.
|
|
46
91
|
|
|
47
92
|
| Command | Role | What it produces |
|
|
48
93
|
|---|---|---|
|
|
@@ -51,7 +96,7 @@ Define → Specify → Architect → Build → Iterate
|
|
|
51
96
|
|
|
52
97
|
Use `feature` when you want a detailed PRD with prioritized capabilities and acceptance criteria before building. Use `epic` when a body of work is large enough to need decomposition into multiple features with dependency mapping. For smaller tasks or rapid prototyping, you can skip straight to `implement` with a plain-language description.
|
|
53
98
|
|
|
54
|
-
**
|
|
99
|
+
**4. Architect** *(optional)* — Translate specs into a concrete technical blueprint.
|
|
55
100
|
|
|
56
101
|
| Command | Role | What it produces |
|
|
57
102
|
|---|---|---|
|
|
@@ -59,13 +104,13 @@ Use `feature` when you want a detailed PRD with prioritized capabilities and acc
|
|
|
59
104
|
|
|
60
105
|
Use `architect` when your feature involves significant technical complexity — new data models, service boundaries, auth flows, or integration points that benefit from upfront design. For straightforward features, `implement` can make sound architectural decisions on its own using your `stack` and `practices` specs.
|
|
61
106
|
|
|
62
|
-
**
|
|
107
|
+
**5. Build** — Implement with full context.
|
|
63
108
|
|
|
64
109
|
| Command | Role | What it does |
|
|
65
110
|
|---|---|---|
|
|
66
|
-
| `gspec.implement` | Senior Engineer | Reads all specs, identifies gaps,
|
|
111
|
+
| `gspec.implement` | Senior Engineer | Reads all specs (including research), identifies gaps, plans and builds |
|
|
67
112
|
|
|
68
|
-
**
|
|
113
|
+
**6. Iterate** *(optional)* — Keep specs and code in sync as the project evolves.
|
|
69
114
|
|
|
70
115
|
| Command | Role | What it does |
|
|
71
116
|
|---|---|---|
|
|
@@ -120,6 +165,7 @@ project-root/
|
|
|
120
165
|
├── stack.md # Technology stack and architecture
|
|
121
166
|
├── practices.md # Development standards
|
|
122
167
|
├── architecture.md # Technical architecture blueprint
|
|
168
|
+
├── research.md # Competitive analysis and feature gaps
|
|
123
169
|
├── epics/
|
|
124
170
|
│ └── onboarding-flow.md
|
|
125
171
|
└── features/
|
|
@@ -140,7 +186,7 @@ These are standard Markdown files. They live in your repo, are version-controlle
|
|
|
140
186
|
|
|
141
187
|
**Incremental implementation.** Feature PRDs use checkboxes to track which capabilities have been built. The `implement` command reads these to know what's done and what's remaining, so it can be run multiple times as your project grows.
|
|
142
188
|
|
|
143
|
-
**Competitive research.** The `
|
|
189
|
+
**Competitive research.** The `research` command analyzes competitors named in your product profile, identifying table-stakes features you might be missing and opportunities for differentiation. Its output is saved to `gspec/research.md` and automatically used by `implement` when present.
|
|
144
190
|
|
|
145
191
|
**Platform-agnostic.** A single set of source commands builds for Claude Code, Cursor, and Antigravity. The build system handles platform-specific formatting so the commands stay consistent across tools.
|
|
146
192
|
|
package/commands/gspec.epic.md
CHANGED
|
@@ -31,7 +31,7 @@ Take the provided epic description (a large body of work) and break it down into
|
|
|
31
31
|
|
|
32
32
|
## Guidelines
|
|
33
33
|
|
|
34
|
-
- **Read existing
|
|
34
|
+
- **Read existing feature PRDs and epics** in `gspec/features/` and `gspec/epics/` to understand already-specified work and avoid overlap
|
|
35
35
|
- Identify distinct features that make up the epic
|
|
36
36
|
- **Ask all clarifying questions in the chat before writing specs** — never embed unresolved questions in the generated documents
|
|
37
37
|
- When asking questions, offer 2-3 specific suggestions to guide the discussion
|
|
@@ -43,21 +43,27 @@ Take the provided epic description (a large body of work) and break it down into
|
|
|
43
43
|
|
|
44
44
|
---
|
|
45
45
|
|
|
46
|
-
##
|
|
46
|
+
## Portability
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
Epic summaries and the feature PRDs they produce are designed to be **portable across projects**. A feature spec written for one project should be reusable in a different project with a different profile, design system, tech stack, and development practices. Project-specific context is resolved at implementation time by `gspec-implement`, which reads all gspec documents (profile, style, stack, practices) alongside the feature PRDs.
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
**To maintain portability, DO NOT read or incorporate context from:**
|
|
51
|
+
- `gspec/profile.md` — Do not reference project-specific personas, competitive landscape, or positioning
|
|
52
|
+
- `gspec/style.md` — Do not reference a specific design system or component library
|
|
53
|
+
- `gspec/stack.md` — Do not reference specific technologies (already covered by Technology Agnosticism)
|
|
54
|
+
- `gspec/practices.md` — Do not reference project-specific development standards
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
- Ensure
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
**DO read existing feature PRDs and epics** in `gspec/features/` and `gspec/epics/` to:
|
|
57
|
+
- Avoid duplicating or contradicting already-specified features
|
|
58
|
+
- Identify cross-feature and cross-epic dependencies
|
|
59
|
+
- Ensure consistent scope boundaries and terminology
|
|
60
|
+
|
|
61
|
+
**Write in generic, portable terms:**
|
|
62
|
+
- Use relative role descriptions ("primary users", "administrators", "content creators") not project-specific persona names
|
|
63
|
+
- Justify priorities based on intrinsic user value and technical dependencies, not competitive landscape
|
|
64
|
+
- Describe desired UX behavior generically ("clear error feedback", "responsive layout") without referencing a specific design system
|
|
65
|
+
- Define success metrics in terms of each feature's own outcomes, not project-level KPIs
|
|
66
|
+
- Sequence features based on logical dependencies, not project-specific stack constraints
|
|
61
67
|
|
|
62
68
|
## Output Rules
|
|
63
69
|
|
|
@@ -113,7 +119,7 @@ If these files don't exist, proceed without them — they are optional context,
|
|
|
113
119
|
- ❌ S3, GCS, Azure Blob Storage
|
|
114
120
|
- ❌ Kafka, RabbitMQ, SQS
|
|
115
121
|
|
|
116
|
-
This separation allows the same epic and feature specs to be
|
|
122
|
+
This separation — combined with the portability principles above — allows the same epic and feature specs to be reused across projects with different technology stacks, design systems, and product contexts.
|
|
117
123
|
|
|
118
124
|
## Epic Summary Document Structure
|
|
119
125
|
|
|
@@ -161,7 +167,7 @@ For each feature, create a separate file in `gspec/features/[feature-name].md` w
|
|
|
161
167
|
- **Parent Epic** (link to epic summary)
|
|
162
168
|
|
|
163
169
|
### 2. Users & Use Cases
|
|
164
|
-
- Primary users
|
|
170
|
+
- Primary users (use generic role descriptions like "end users", "administrators", "content managers" — not project-specific persona names)
|
|
165
171
|
- Key use cases (3-4 scenarios showing how users benefit)
|
|
166
172
|
|
|
167
173
|
### 3. Scope
|
|
@@ -195,6 +201,10 @@ For each feature, create a separate file in `gspec/features/[feature-name].md` w
|
|
|
195
201
|
### 7. Success Metrics
|
|
196
202
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
197
203
|
|
|
204
|
+
### 8. Implementation Context
|
|
205
|
+
- Include the following standard note verbatim:
|
|
206
|
+
> This feature PRD is portable and project-agnostic. During implementation, consult the project's `gspec/profile.md` (target users, positioning), `gspec/style.md` (design system), `gspec/stack.md` (technology choices), and `gspec/practices.md` (development standards) to resolve project-specific context.
|
|
207
|
+
|
|
198
208
|
## Workflow
|
|
199
209
|
|
|
200
210
|
1. **Analyze the epic description** and identify logical feature boundaries
|
|
@@ -23,7 +23,7 @@ Your task is to take the provided feature description (which may be vague or det
|
|
|
23
23
|
- ✅ Build order recommendations based on technical dependencies
|
|
24
24
|
|
|
25
25
|
You should:
|
|
26
|
-
- **Read existing
|
|
26
|
+
- **Read existing feature PRDs** in `gspec/features/` to understand already-specified features and avoid overlap
|
|
27
27
|
- **Ask all clarifying questions in the chat before writing the spec** — never embed unresolved questions in the generated document
|
|
28
28
|
- When asking questions, offer 2-3 specific suggestions to guide the discussion
|
|
29
29
|
- Focus on user value, scope, and outcomes
|
|
@@ -32,20 +32,26 @@ You should:
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Portability
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Feature PRDs are designed to be **portable across projects**. A feature spec written for one project should be reusable in a different project with a different profile, design system, tech stack, and development practices. Project-specific context is resolved at implementation time by `gspec-implement`, which reads all gspec documents (profile, style, stack, practices) alongside the feature PRDs.
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
**To maintain portability, DO NOT read or incorporate context from:**
|
|
40
|
+
- `gspec/profile.md` — Do not reference project-specific personas, competitive landscape, or positioning
|
|
41
|
+
- `gspec/style.md` — Do not reference a specific design system or component library
|
|
42
|
+
- `gspec/stack.md` — Do not reference specific technologies (already covered by Technology Agnosticism)
|
|
43
|
+
- `gspec/practices.md` — Do not reference project-specific development standards
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- Ensure
|
|
48
|
-
|
|
45
|
+
**DO read existing feature PRDs** in `gspec/features/` to:
|
|
46
|
+
- Avoid duplicating or contradicting already-specified features
|
|
47
|
+
- Identify cross-feature dependencies
|
|
48
|
+
- Ensure consistent scope boundaries
|
|
49
|
+
|
|
50
|
+
**Write in generic, portable terms:**
|
|
51
|
+
- Use relative role descriptions ("primary users", "administrators", "content creators") not project-specific persona names
|
|
52
|
+
- Justify priorities based on the feature's intrinsic user value, not competitive landscape
|
|
53
|
+
- Describe desired UX behavior generically ("clear error feedback", "responsive layout") without referencing a specific design system
|
|
54
|
+
- Define success metrics in terms of the feature's own outcomes, not project-level KPIs
|
|
49
55
|
|
|
50
56
|
---
|
|
51
57
|
|
|
@@ -97,7 +103,7 @@ If these files don't exist, proceed without them — they are optional context,
|
|
|
97
103
|
- ❌ S3, GCS, Azure Blob Storage
|
|
98
104
|
- ❌ Kafka, RabbitMQ, SQS
|
|
99
105
|
|
|
100
|
-
This separation allows the same feature spec to be
|
|
106
|
+
This separation — combined with the portability principles above — allows the same feature spec to be reused across projects with different technology stacks, design systems, and product contexts.
|
|
101
107
|
|
|
102
108
|
---
|
|
103
109
|
|
|
@@ -111,7 +117,7 @@ This separation allows the same feature spec to be implemented using different t
|
|
|
111
117
|
- Problem being solved and why it matters now
|
|
112
118
|
|
|
113
119
|
### 2. Users & Use Cases
|
|
114
|
-
- Primary users
|
|
120
|
+
- Primary users (use generic role descriptions like "end users", "administrators", "content managers" — not project-specific persona names)
|
|
115
121
|
- Key use cases (3-4 scenarios showing how users benefit)
|
|
116
122
|
|
|
117
123
|
### 3. Scope
|
|
@@ -145,6 +151,10 @@ This separation allows the same feature spec to be implemented using different t
|
|
|
145
151
|
### 7. Success Metrics
|
|
146
152
|
- 2-4 measurable outcomes that define whether this feature is working
|
|
147
153
|
|
|
154
|
+
### 8. Implementation Context
|
|
155
|
+
- Include the following standard note verbatim:
|
|
156
|
+
> This feature PRD is portable and project-agnostic. During implementation, consult the project's `gspec/profile.md` (target users, positioning), `gspec/style.md` (design system), `gspec/stack.md` (technology choices), and `gspec/practices.md` (development standards) to resolve project-specific context.
|
|
157
|
+
|
|
148
158
|
---
|
|
149
159
|
|
|
150
160
|
## Tone & Style
|
|
@@ -8,9 +8,9 @@ When feature specs exist, they are a **guide to key functionality, not a compreh
|
|
|
8
8
|
|
|
9
9
|
You should:
|
|
10
10
|
- Read and internalize all available gspec documents before writing any code
|
|
11
|
-
- **
|
|
11
|
+
- **Use competitive research** from `gspec/research.md` when available to understand the competitive landscape and identify feature expectations
|
|
12
12
|
- Identify gaps, ambiguities, or underspecified behaviors in the specs
|
|
13
|
-
- **Propose additional features** informed by
|
|
13
|
+
- **Propose additional features** informed by competitive research (when available), product business needs, target users, and mission — even if not listed in the existing feature specs
|
|
14
14
|
- Use your engineering judgment and imagination to propose solutions for gaps
|
|
15
15
|
- **Always vet proposals with the user before implementing them** — use plan mode to present your reasoning and get approval
|
|
16
16
|
- Implement incrementally, one logical unit at a time
|
|
@@ -28,10 +28,12 @@ Before writing any code, read all available gspec documents in this order:
|
|
|
28
28
|
1. `gspec/profile.md` — Understand what the product is and who it's for
|
|
29
29
|
2. `gspec/epics/*.md` — Understand the big picture and feature dependencies
|
|
30
30
|
3. `gspec/features/*.md` — Understand individual feature requirements
|
|
31
|
+
> **Note:** Feature PRDs are designed to be portable and project-agnostic. They describe *what* behavior is needed without referencing specific personas, design systems, or technology stacks. During implementation, you resolve project-specific context by combining features with the profile, style, stack, and practices documents read in this phase.
|
|
31
32
|
4. `gspec/stack.md` — Understand the technology choices
|
|
32
33
|
5. `gspec/style.md` — Understand the visual design language
|
|
33
34
|
6. `gspec/practices.md` — Understand development standards and conventions
|
|
34
35
|
7. `gspec/architecture.md` — Understand the technical architecture: project structure, data model, API design, component architecture, and environment setup. **This is the primary reference for how to scaffold and structure the codebase.** If this file is missing, note the gap and suggest the user run `gspec-architect` first — but do not block on it.
|
|
36
|
+
8. `gspec/research.md` — If this file exists, read the competitive research findings. This provides pre-conducted competitor analysis including the competitive feature matrix, categorized findings, and accepted feature recommendations produced by `gspec-research`.
|
|
35
37
|
|
|
36
38
|
If any of these files are missing, note what's missing and proceed with what's available.
|
|
37
39
|
|
|
@@ -55,107 +57,24 @@ Present this summary to the user so they understand the starting point. If **all
|
|
|
55
57
|
|
|
56
58
|
For epic summary files, check whether the features listed in the "Features Breakdown" section have checkboxes. A feature in an epic is considered complete when all its capabilities in the corresponding feature PRD are checked.
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
- All named **direct competitors**
|
|
60
|
-
- All named **indirect competitors or alternatives**
|
|
61
|
-
- The **white space or gaps** the product claims to fill
|
|
62
|
-
- The **differentiation** and **competitive advantages** stated in the Value Proposition
|
|
60
|
+
### Phase 2: Analysis — Identify Gaps & Plan
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
After reading the specs, **enter plan mode** and:
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
After reading the specs, **ask the user whether they want you to conduct competitor research** before planning. Present this as a clear choice:
|
|
69
|
-
|
|
70
|
-
- **Yes** — You will research the competitors named in the product profile, build a competitive feature matrix, and use the findings to identify gaps and propose features. This adds depth but takes additional time.
|
|
71
|
-
- **No** — You will plan and implement based solely on the existing gspec documents and the user's prompt. Only features explicitly defined in `gspec/features/` (if any) and capabilities the user requests will be built.
|
|
72
|
-
|
|
73
|
-
**If the user declines competitor research**, skip Phase 2 entirely. In all subsequent phases, ignore instructions that reference competitor research findings — rely only on the gspec documents and user input. Inform the user: *"Understood — I'll plan and build based on your gspec documents and any direction you provide. Only features defined in your specs (or that you request) will be implemented."*
|
|
74
|
-
|
|
75
|
-
**If the user accepts**, proceed to Phase 2.
|
|
76
|
-
|
|
77
|
-
### Phase 2: Competitor Research — Understand the Landscape
|
|
78
|
-
|
|
79
|
-
> **This phase only runs if the user opted in during Phase 1.**
|
|
80
|
-
|
|
81
|
-
Research the competitors identified in `gspec/profile.md` to ground your feature proposals in market reality. This ensures the product doesn't miss table-stakes features and capitalizes on genuine differentiation opportunities.
|
|
82
|
-
|
|
83
|
-
#### Step 1: Research Each Competitor
|
|
84
|
-
|
|
85
|
-
For every direct and indirect competitor named in the profile:
|
|
86
|
-
|
|
87
|
-
1. **Research their product** — Investigate their publicly available information (website, documentation, product pages, feature lists, reviews, changelogs)
|
|
88
|
-
2. **Catalog their key features and capabilities** — What core functionality do they offer? What does their product actually do for users?
|
|
89
|
-
3. **Note their UX patterns and design decisions** — How do they structure navigation, onboarding, key workflows? What conventions has the market established?
|
|
90
|
-
4. **Identify their strengths and weaknesses** — What do users praise? What do reviews and discussions criticize? Where do they fall short?
|
|
91
|
-
|
|
92
|
-
#### Step 2: Build a Competitive Feature Matrix (IF a competitor is mentioned)
|
|
93
|
-
|
|
94
|
-
Synthesize your research into a structured comparison:
|
|
95
|
-
|
|
96
|
-
| Feature / Capability | Competitor A | Competitor B | Competitor C | Our Product (Specified) |
|
|
97
|
-
|---|---|---|---|---|
|
|
98
|
-
| Feature X | ✅ | ✅ | ✅ | ✅ |
|
|
99
|
-
| Feature Y | ✅ | ✅ | ❌ | ❌ (gap) |
|
|
100
|
-
| Feature Z | ❌ | ❌ | ❌ | ❌ (opportunity) |
|
|
101
|
-
|
|
102
|
-
#### Step 3: Categorize Findings
|
|
103
|
-
|
|
104
|
-
Classify every feature and capability into one of three categories:
|
|
105
|
-
|
|
106
|
-
1. **Table-Stakes Features** — Features that *every* or *nearly every* competitor offers. Users will expect these as baseline functionality. If our specs don't cover them, they are likely P0 gaps.
|
|
107
|
-
2. **Differentiating Features** — Features that only *some* competitors offer. These represent opportunities to match or exceed competitors. Evaluate against the product's stated differentiation strategy.
|
|
108
|
-
3. **White-Space Features** — Capabilities that *no* competitor does well (or at all). These align with the product profile's claimed white space and represent the strongest differentiation opportunities.
|
|
109
|
-
|
|
110
|
-
#### Step 4: Assess Alignment
|
|
111
|
-
|
|
112
|
-
Compare the competitive landscape against the product's existing specs:
|
|
113
|
-
|
|
114
|
-
- Which **table-stakes features** are missing from our feature specs? Flag these as high-priority gaps.
|
|
115
|
-
- Which **differentiating features** align with our stated competitive advantages? Confirm these are adequately specified.
|
|
116
|
-
- Which **white-space opportunities** support the product's mission and vision? These may be the most strategically valuable features to propose.
|
|
117
|
-
- Are there competitor features that contradict our product's "What It Isn't" section? Explicitly exclude these.
|
|
118
|
-
|
|
119
|
-
#### Step 5: Present Findings and Ask Feature-by-Feature Questions
|
|
120
|
-
|
|
121
|
-
Present the competitive feature matrix to the user, then **walk through each gap or opportunity individually** and ask the user whether they want to include it. Do not dump a summary and wait — make it a conversation.
|
|
122
|
-
|
|
123
|
-
**5a. Show the matrix.** Present the competitive feature matrix from Step 2 so the user can see the full landscape at a glance.
|
|
124
|
-
|
|
125
|
-
**5b. For each gap or opportunity, ask a specific question.** Group and present them by category (table-stakes first, then differentiators, then white-space), and for each one:
|
|
126
|
-
|
|
127
|
-
1. **Name the feature or capability**
|
|
128
|
-
2. **Explain what it is** and what user need it serves
|
|
129
|
-
3. **State the competitive context** — which competitors offer it, how they handle it, and what category it falls into (table-stakes / differentiator / white space)
|
|
130
|
-
4. **Give your recommendation** — should the product include this? Why or why not?
|
|
131
|
-
5. **Ask the user**: *"Do you want to include this feature?"* — Yes, No, or Modified (let them adjust scope)
|
|
132
|
-
|
|
133
|
-
Example:
|
|
134
|
-
> **CSV Export** — Competitors A and B both offer CSV export for all data views. This is a table-stakes feature that users will expect. I recommend including it as P1.
|
|
135
|
-
> → Do you want to include CSV export?
|
|
136
|
-
|
|
137
|
-
**5c. Compile the accepted list.** After walking through all items, summarize which features the user accepted, rejected, and modified. This accepted list carries forward into Phase 3 planning alongside any pre-existing gspec features.
|
|
138
|
-
|
|
139
|
-
**Do not proceed to Phase 3 until all questions are resolved.**
|
|
140
|
-
|
|
141
|
-
### Phase 3: Analysis — Identify Gaps & Plan
|
|
142
|
-
|
|
143
|
-
After reading the specs (and completing competitor research if the user opted in), **enter plan mode** and:
|
|
144
|
-
|
|
145
|
-
> **Competitor research is conditional.** Throughout this phase, instructions that reference competitor research findings only apply if the user opted into Phase 2. If they declined, skip those sub-steps and rely solely on gspec documents and user input. Features accepted during Phase 2's question-driven review are treated as approved scope alongside any pre-existing gspec features.
|
|
64
|
+
> **Competitive research is conditional.** Throughout this phase, instructions that reference competitive research findings only apply if `gspec/research.md` exists and was read during Phase 1. If no research file exists, skip those sub-steps and rely solely on gspec documents and user input. Features listed in `gspec/research.md`'s "Accepted Findings" section are treated as approved scope alongside any pre-existing gspec features.
|
|
146
65
|
|
|
147
66
|
#### When features/epics exist:
|
|
148
67
|
|
|
149
68
|
1. **Summarize your understanding** of the feature(s) to be implemented. **Distinguish between already-implemented capabilities (checked `[x]`) and pending capabilities (unchecked `[ ]`).** Only pending capabilities are in scope for this run. Reference already-implemented capabilities as context — they inform how new capabilities should integrate, but do not re-implement them unless the user explicitly requests it.
|
|
150
|
-
2. **Propose additional features** informed by the product profile (and
|
|
69
|
+
2. **Propose additional features** informed by the product profile (and competitive research, if available):
|
|
151
70
|
- Review the product profile's mission, target audience, use cases, and value proposition
|
|
152
|
-
- *If
|
|
71
|
+
- *If `gspec/research.md` exists:* Reference findings — identify where competitors set user expectations that our specs don't meet. Note that features listed in `gspec/research.md`'s "Accepted Findings" don't need to be re-proposed here.
|
|
153
72
|
- Consider supporting features that would make specified features more complete or usable (e.g., onboarding, settings, notifications, error recovery)
|
|
154
73
|
- Look for gaps between the product's stated goals/success metrics and the features specified to achieve them
|
|
155
74
|
- For each proposed feature, explain:
|
|
156
75
|
- What it is and what user need it serves
|
|
157
76
|
- How it connects to the product profile's mission or target audience
|
|
158
|
-
- *If
|
|
77
|
+
- *If `gspec/research.md` exists:* What the competitive landscape says — is this table-stakes, a differentiator, or white space?
|
|
159
78
|
- Suggested priority level (P0/P1/P2) and rationale
|
|
160
79
|
- Whether it blocks or enhances any specified features
|
|
161
80
|
- **The user decides which proposed features to accept, modify, or reject**
|
|
@@ -166,17 +85,17 @@ After reading the specs (and completing competitor research if the user opted in
|
|
|
166
85
|
- Undefined data models or API contracts (check `gspec/architecture.md`'s "Data Model" and "API Design" sections — if defined, use them as the basis for your data layer and API routes; if missing or incomplete, flag the gap)
|
|
167
86
|
- Integration points that aren't fully described
|
|
168
87
|
- Missing or unclear state management patterns
|
|
169
|
-
- *If
|
|
88
|
+
- *If `gspec/research.md` exists:* Patterns that differ from established competitor conventions without clear rationale — users may have ingrained expectations from competitor products
|
|
170
89
|
4. **Propose solutions** for each gap:
|
|
171
90
|
- Explain what's missing and why it matters
|
|
172
91
|
- Offer 2-3 concrete options when multiple approaches are viable
|
|
173
|
-
- *If
|
|
92
|
+
- *If `gspec/research.md` exists:* Reference how competitors handle the same problem when relevant — not to copy, but to inform
|
|
174
93
|
- Recommend your preferred approach with rationale
|
|
175
94
|
- Flag any proposals that deviate from or extend the original spec
|
|
176
95
|
5. **Present an implementation plan** covering only pending (unchecked) capabilities, with:
|
|
177
96
|
- Ordered list of components/files to create or modify
|
|
178
97
|
- Dependencies between implementation steps
|
|
179
|
-
- Which gspec requirements each step satisfies (including any features
|
|
98
|
+
- Which gspec requirements each step satisfies (including any features accepted from `gspec/research.md` and this phase)
|
|
180
99
|
- Estimated scope (small/medium/large) for each step
|
|
181
100
|
- Note which already-implemented capabilities the new work builds on or integrates with
|
|
182
101
|
|
|
@@ -191,7 +110,7 @@ When feature PRDs and epics are absent, derive what to build from the **user's p
|
|
|
191
110
|
- `gspec/style.md` — design system and UI patterns
|
|
192
111
|
- `gspec/practices.md` — development standards and quality gates
|
|
193
112
|
2. **Define the scope** — Based on the user's prompt and available gspec context, propose a clear scope of work: what you intend to build, broken into logical units
|
|
194
|
-
3. **Propose additional capabilities** informed by the product profile (and
|
|
113
|
+
3. **Propose additional capabilities** informed by the product profile (and competitive research from `gspec/research.md` if available), following the same guidelines as above (propose, explain rationale, let user decide)
|
|
195
114
|
4. **Identify gaps and ambiguities** in the user's prompt — areas where intent is unclear or important decisions need to be made. Propose solutions with 2-3 options where applicable.
|
|
196
115
|
5. **Present an implementation plan** with:
|
|
197
116
|
- Ordered list of components/files to create or modify
|
|
@@ -201,9 +120,9 @@ When feature PRDs and epics are absent, derive what to build from the **user's p
|
|
|
201
120
|
|
|
202
121
|
**Wait for user approval before proceeding.** The user may accept, modify, or reject any of your proposals.
|
|
203
122
|
|
|
204
|
-
### Phase
|
|
123
|
+
### Phase 2b: Codify Approved Features
|
|
205
124
|
|
|
206
|
-
After the user approves proposed features (whether from gap analysis,
|
|
125
|
+
After the user approves proposed features (whether from gap analysis, competitive research findings, or the user's own additions during planning), **write each approved feature as a formal PRD** in `gspec/features/` before implementing it. This ensures the project's spec library stays complete and that future implement runs have full context.
|
|
207
126
|
|
|
208
127
|
For each approved feature that doesn't already have a PRD in `gspec/features/`:
|
|
209
128
|
|
|
@@ -217,17 +136,17 @@ For each approved feature that doesn't already have a PRD in `gspec/features/`:
|
|
|
217
136
|
- Success Metrics
|
|
218
137
|
- Begin the file with YAML frontmatter: `---\ngspec-version: <<<VERSION>>>\n---`
|
|
219
138
|
2. **Name the file** descriptively based on the feature (e.g., `gspec/features/onboarding-wizard.md`, `gspec/features/export-csv.md`)
|
|
220
|
-
3. **
|
|
139
|
+
3. **Keep the PRD portable** — use generic role descriptions (not project-specific persona names), define success metrics in terms of the feature's own outcomes (not project-level KPIs), and describe UX behavior generically (not tied to a specific design system). The PRD should be reusable across projects; project-specific context is resolved when `gspec-implement` reads all gspec documents at implementation time.
|
|
221
140
|
4. **Keep the PRD product-focused** — describe *what* and *why*, not *how*. Implementation details belong in the code, not the PRD.
|
|
222
|
-
5. **Note the feature's origin** — in the Assumptions section, note that this feature was identified and approved during implementation planning (e.g., from
|
|
141
|
+
5. **Note the feature's origin** — in the Assumptions section, note that this feature was identified and approved during implementation planning (e.g., from competitive research, gap analysis, or user direction)
|
|
223
142
|
|
|
224
143
|
This step is not optional. Every feature the agent implements should be traceable to either a pre-existing PRD or one generated during this phase. Skipping this step leads to undocumented features that future sessions cannot reason about.
|
|
225
144
|
|
|
226
|
-
### Phase
|
|
145
|
+
### Phase 2c: Implementation Plan — Define the Build Order
|
|
227
146
|
|
|
228
|
-
After all approved features are codified as PRDs, **enter plan mode** and create a concrete, phased implementation plan. This is distinct from Phase
|
|
147
|
+
After all approved features are codified as PRDs, **enter plan mode** and create a concrete, phased implementation plan. This is distinct from Phase 2's gap analysis — this is the tactical build plan.
|
|
229
148
|
|
|
230
|
-
1. **Survey the full scope** — Review all feature PRDs (both pre-existing and newly codified in Phase
|
|
149
|
+
1. **Survey the full scope** — Review all feature PRDs (both pre-existing and newly codified in Phase 2b) and identify every unchecked capability that is in scope for this run
|
|
231
150
|
2. **Organize into implementation phases** — Group related capabilities into logical phases that can be built and verified independently. Each phase should:
|
|
232
151
|
- Have a clear name and objective (e.g., "Phase 1: Core Data Models & API", "Phase 2: Authentication Flow")
|
|
233
152
|
- List the specific capabilities (with feature PRD references) it will implement
|
|
@@ -237,12 +156,26 @@ After all approved features are codified as PRDs, **enter plan mode** and create
|
|
|
237
156
|
3. **Define test expectations per phase** — For each phase, specify what tests will be run to verify correctness before moving on (unit tests, integration tests, build verification, etc.)
|
|
238
157
|
4. **Present the plan** — Show the user the full phased plan with clear phase boundaries and ask for approval
|
|
239
158
|
|
|
240
|
-
**Wait for user approval before proceeding to Phase
|
|
159
|
+
**Wait for user approval before proceeding to Phase 3.** The user may reorder phases, adjust scope, or split/merge phases.
|
|
241
160
|
|
|
242
|
-
### Phase
|
|
161
|
+
### Phase 3: Implementation — Build It
|
|
243
162
|
|
|
244
163
|
Once the implementation plan is approved, execute it **phase by phase**.
|
|
245
164
|
|
|
165
|
+
#### Pre-Implementation: Git Checkpoint
|
|
166
|
+
|
|
167
|
+
Before writing any code, create a git commit to establish a clean rollback point:
|
|
168
|
+
|
|
169
|
+
1. **Check for uncommitted changes** — Run `git status` to see if there are staged or unstaged changes in the working tree
|
|
170
|
+
2. **If uncommitted changes exist**, stage and commit them:
|
|
171
|
+
- `git add -A`
|
|
172
|
+
- Commit with the message: `chore: pre-implement checkpoint`
|
|
173
|
+
- Inform the user: *"I've committed your existing changes as a checkpoint. If you need to roll back the implementation, you can return to this commit."*
|
|
174
|
+
3. **If the working tree is clean**, inform the user: *"Working tree is clean — no checkpoint commit needed."*
|
|
175
|
+
4. **If the project is not a git repository**, skip this step and note that no rollback point was created
|
|
176
|
+
|
|
177
|
+
This step is not optional. A clean checkpoint ensures the user can always `git reset` or `git diff` against the pre-implementation state.
|
|
178
|
+
|
|
246
179
|
#### Phase 0 (if needed): Project Scaffolding
|
|
247
180
|
|
|
248
181
|
Before implementing any feature logic, ensure the project foundation exists. **Skip this step entirely if the project is already initialized** (i.e., a `package.json`, `pyproject.toml`, `go.mod`, or equivalent exists and dependencies are installed).
|
|
@@ -267,7 +200,7 @@ Present a brief scaffold summary to the user before proceeding to feature implem
|
|
|
267
200
|
b. **Follow the practices** — Adhere to coding standards, testing requirements, and conventions from `gspec/practices.md`
|
|
268
201
|
c. **Follow the style** — Apply the design system, tokens, and component patterns from `gspec/style.md`
|
|
269
202
|
d. **Satisfy the requirements** — Trace each piece of code back to a functional requirement in the feature PRD (if available) or to the user's stated goals and the approved implementation plan
|
|
270
|
-
e. *If
|
|
203
|
+
e. *If `gspec/research.md` exists:* **Leverage competitive insights** — When making UX or interaction design decisions not fully specified in the style guide, consider established patterns from the competitive research. Don't blindly copy, but don't ignore proven conventions either.
|
|
271
204
|
3. **Mark capabilities as implemented** — After successfully implementing each capability, immediately update the feature PRD by changing its checkbox from `- [ ]` to `- [x]`. Do this incrementally as each capability is completed, not in a batch at the end. If a capability line did not have a checkbox prefix, add one as `- [x]`. This ensures that if the session is interrupted, progress is not lost. When updating gspec files, preserve existing `gspec-version` YAML frontmatter. If a file lacks frontmatter, add `---\ngspec-version: <<<VERSION>>>\n---` at the top.
|
|
272
205
|
4. **Update epic status** — When all capabilities in a feature PRD are checked, update the corresponding feature's checkbox in the epic summary file (if one exists) from `- [ ]` to `- [x]`.
|
|
273
206
|
5. **Run tests** — Execute the tests defined for this phase (and any existing tests to catch regressions). Fix any failures before proceeding.
|
|
@@ -282,14 +215,14 @@ Present a brief scaffold summary to the user before proceeding to feature implem
|
|
|
282
215
|
|
|
283
216
|
**Wait for user confirmation before starting the next phase.** This gives the user an opportunity to review the work, request adjustments, or reprioritize remaining phases.
|
|
284
217
|
|
|
285
|
-
### Phase
|
|
218
|
+
### Phase 4: Verification — Confirm Completeness
|
|
286
219
|
|
|
287
220
|
After implementation:
|
|
288
221
|
|
|
289
222
|
1. **Walk through each functional requirement** from the feature PRD (if available) or the approved implementation plan and confirm it's satisfied
|
|
290
223
|
2. **Review against acceptance criteria** — For each capability in the feature PRDs, check that every acceptance criterion listed under it is satisfied. These sub-listed conditions are the definition of "done" for each capability. If any criterion is not met, the capability should not be marked `[x]`.
|
|
291
224
|
3. **Check the Definition of Done** from `gspec/practices.md`
|
|
292
|
-
4. *If
|
|
225
|
+
4. *If `gspec/research.md` exists:* **Verify competitive positioning** — Does the implemented feature meet table-stakes expectations? Does it deliver on the product's stated differentiation?
|
|
293
226
|
5. **Note any deferred items** — Requirements that were intentionally postponed or descoped during implementation
|
|
294
227
|
6. **Verify checkbox accuracy** — Confirm that every capability marked `[x]` in the feature PRDs is genuinely implemented and working. Confirm that capabilities left as `[ ]` were intentionally deferred. Present a final status summary:
|
|
295
228
|
|
|
@@ -308,8 +241,8 @@ When you encounter something the specs don't cover, follow these principles:
|
|
|
308
241
|
- Propose sensible defaults based on the product profile and target users
|
|
309
242
|
- Infer behavior from similar patterns already specified in the PRDs (if available) or from the product profile and user's prompt
|
|
310
243
|
- Suggest industry-standard approaches for common problems (auth flows, error handling, pagination, etc.)
|
|
311
|
-
- *If
|
|
312
|
-
- *If
|
|
244
|
+
- *If `gspec/research.md` exists:* Reference competitor implementations to inform proposals — "Competitor X handles this with [approach], which works well because [reason]"
|
|
245
|
+
- *If `gspec/research.md` exists:* Use findings to validate table-stakes expectations — if every competitor offers a capability, users likely expect it
|
|
313
246
|
- Consider the user experience implications of each decision
|
|
314
247
|
- Present tradeoffs clearly (simplicity vs. completeness, speed vs. correctness)
|
|
315
248
|
- **Propose features** that the product profile implies but no feature PRD covers — the user's feature list (if any) is a starting point, not a ceiling
|
|
@@ -323,8 +256,8 @@ When you encounter something the specs don't cover, follow these principles:
|
|
|
323
256
|
- Assume technical constraints that aren't documented
|
|
324
257
|
- Skip gap analysis because the implementation seems obvious
|
|
325
258
|
- Propose features that contradict the product profile's "What It Isn't" section or stated non-goals
|
|
326
|
-
- *If
|
|
327
|
-
- *If
|
|
259
|
+
- *If `gspec/research.md` exists:* Blindly copy competitor features — research informs proposals, but the product's own identity, differentiation strategy, and stated non-goals take precedence
|
|
260
|
+
- *If `gspec/research.md` exists:* Treat competitor parity as an automatic requirement — some competitor features may be intentionally excluded per the product's positioning
|
|
328
261
|
|
|
329
262
|
---
|
|
330
263
|
|
|
@@ -335,7 +268,7 @@ When you encounter something the specs don't cover, follow these principles:
|
|
|
335
268
|
If `gspec/features/` and `gspec/epics/` are empty or absent, use the **user's prompt** as the primary guide for what to build:
|
|
336
269
|
|
|
337
270
|
1. **If the user provided a prompt** to the implement command, treat it as your primary directive. The prompt may describe a feature, a scope of work, a user story, or a high-level goal. Combine it with the remaining gspec files (profile, stack, style, practices) to plan and build.
|
|
338
|
-
2. **If the user provided no prompt either**, use the product profile to propose a logical starting point — focus on the product's core value proposition and primary use cases (and table-stakes features from
|
|
271
|
+
2. **If the user provided no prompt either**, use the product profile to propose a logical starting point — focus on the product's core value proposition and primary use cases (and table-stakes features from `gspec/research.md`, if available). Suggest a starting point and confirm with the user.
|
|
339
272
|
|
|
340
273
|
### When features and/or epics exist:
|
|
341
274
|
|
|
@@ -349,14 +282,14 @@ If the user doesn't specify which feature to implement:
|
|
|
349
282
|
2. **Focus on features with unchecked capabilities** — Features with all capabilities checked are complete and can be skipped
|
|
350
283
|
3. Among features with pending work, prioritize unchecked P0 capabilities over P1, P1 over P2
|
|
351
284
|
4. Respect dependency ordering — build foundations before dependent features
|
|
352
|
-
5. *If
|
|
285
|
+
5. *If `gspec/research.md` exists:* Review findings for table-stakes gaps — missing table-stakes features may need to be addressed early to meet baseline user expectations
|
|
353
286
|
6. Review the product profile for business needs that aren't covered by any existing feature PRD — propose additional features where the gap is significant
|
|
354
287
|
7. Suggest a starting point and confirm with the user
|
|
355
288
|
|
|
356
289
|
If the user specifies a feature, focus on that feature's **unchecked capabilities** but:
|
|
357
290
|
- Note any unmet dependencies
|
|
358
291
|
- Flag any closely related capabilities that the product profile suggests but no feature PRD covers — these may be worth implementing alongside or immediately after the specified feature
|
|
359
|
-
- *If
|
|
292
|
+
- *If `gspec/research.md` exists:* Note if competitors handle related workflows differently — the user may want to consider alternative approaches informed by market conventions
|
|
360
293
|
- If the user explicitly asks to re-implement a checked capability, honor that request
|
|
361
294
|
|
|
362
295
|
### When the user provides a prompt alongside existing features/epics:
|
|
@@ -367,11 +300,11 @@ The user's prompt takes priority for scoping. Use it to determine focus, and ref
|
|
|
367
300
|
|
|
368
301
|
## Output Rules
|
|
369
302
|
|
|
370
|
-
- **Use plan mode twice** — once in Phase
|
|
371
|
-
- **Pause between implementation phases** — After completing each phase in Phase
|
|
303
|
+
- **Use plan mode twice** — once in Phase 2 for gap analysis and feature proposals, and again in Phase 2c for the concrete implementation plan. Both require user approval before proceeding.
|
|
304
|
+
- **Pause between implementation phases** — After completing each phase in Phase 3, run tests and wait for user confirmation before starting the next phase
|
|
372
305
|
- Reference specific gspec documents and section numbers when discussing requirements
|
|
373
306
|
- When proposing gap-fills, clearly distinguish between "the spec says X" and "I'm proposing Y"
|
|
374
|
-
- *If
|
|
307
|
+
- *If `gspec/research.md` exists:* When referencing findings, clearly attribute them — "Competitor X does Y" not "the industry does Y"
|
|
375
308
|
- Create files following the project structure defined in `gspec/architecture.md` (or `gspec/stack.md` and `gspec/practices.md` if no architecture document exists)
|
|
376
309
|
- Write code that is production-quality, not prototypical — unless the user requests otherwise
|
|
377
310
|
- Include tests as defined by `gspec/practices.md` testing standards
|
|
@@ -383,5 +316,5 @@ The user's prompt takes priority for scoping. Use it to determine focus, and ref
|
|
|
383
316
|
- Collaborative and consultative — you're a partner, not an order-taker
|
|
384
317
|
- Technically precise when discussing implementation
|
|
385
318
|
- Product-aware when discussing gaps — frame proposals in terms of user value
|
|
386
|
-
- **Market-informed when proposing features** (if
|
|
319
|
+
- **Market-informed when proposing features** (if `gspec/research.md` exists) — ground recommendations in competitive reality, not just abstract best practices
|
|
387
320
|
- Transparent about assumptions and tradeoffs
|