gspec 1.6.0 → 1.7.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 +4 -7
- package/commands/gspec.analyze.md +1 -3
- package/commands/gspec.architect.md +2 -3
- package/commands/gspec.feature.md +37 -7
- package/commands/gspec.implement.md +11 -16
- package/commands/gspec.migrate.md +1 -2
- package/commands/gspec.research.md +1 -1
- package/dist/antigravity/gspec-analyze/SKILL.md +1 -3
- package/dist/antigravity/gspec-architect/SKILL.md +3 -4
- package/dist/antigravity/gspec-feature/SKILL.md +39 -9
- package/dist/antigravity/gspec-implement/SKILL.md +12 -17
- package/dist/antigravity/gspec-migrate/SKILL.md +6 -7
- package/dist/antigravity/gspec-practices/SKILL.md +1 -1
- package/dist/antigravity/gspec-profile/SKILL.md +1 -1
- package/dist/antigravity/gspec-research/SKILL.md +4 -4
- package/dist/antigravity/gspec-stack/SKILL.md +1 -1
- package/dist/antigravity/gspec-style/SKILL.md +1 -1
- package/dist/claude/gspec-analyze/SKILL.md +1 -3
- package/dist/claude/gspec-architect/SKILL.md +3 -4
- package/dist/claude/gspec-feature/SKILL.md +39 -9
- package/dist/claude/gspec-implement/SKILL.md +12 -17
- package/dist/claude/gspec-migrate/SKILL.md +6 -7
- package/dist/claude/gspec-practices/SKILL.md +1 -1
- package/dist/claude/gspec-profile/SKILL.md +1 -1
- package/dist/claude/gspec-research/SKILL.md +4 -4
- package/dist/claude/gspec-stack/SKILL.md +1 -1
- package/dist/claude/gspec-style/SKILL.md +1 -1
- package/dist/codex/gspec-analyze/SKILL.md +1 -3
- package/dist/codex/gspec-architect/SKILL.md +3 -4
- package/dist/codex/gspec-feature/SKILL.md +39 -9
- package/dist/codex/gspec-implement/SKILL.md +12 -17
- package/dist/codex/gspec-migrate/SKILL.md +6 -7
- package/dist/codex/gspec-practices/SKILL.md +1 -1
- package/dist/codex/gspec-profile/SKILL.md +1 -1
- package/dist/codex/gspec-research/SKILL.md +4 -4
- package/dist/codex/gspec-stack/SKILL.md +1 -1
- package/dist/codex/gspec-style/SKILL.md +1 -1
- package/dist/cursor/gspec-analyze.mdc +1 -3
- package/dist/cursor/gspec-architect.mdc +3 -4
- package/dist/cursor/gspec-feature.mdc +39 -9
- package/dist/cursor/gspec-implement.mdc +12 -17
- package/dist/cursor/gspec-migrate.mdc +6 -7
- package/dist/cursor/gspec-practices.mdc +1 -1
- package/dist/cursor/gspec-profile.mdc +1 -1
- package/dist/cursor/gspec-research.mdc +4 -4
- package/dist/cursor/gspec-stack.mdc +1 -1
- package/dist/cursor/gspec-style.mdc +1 -1
- package/package.json +1 -1
- package/templates/spec-sync.md +1 -1
- package/commands/gspec.epic.md +0 -228
- package/dist/antigravity/gspec-epic/SKILL.md +0 -232
- package/dist/claude/gspec-epic/SKILL.md +0 -233
- package/dist/codex/gspec-epic/SKILL.md +0 -232
- package/dist/cursor/gspec-epic.mdc +0 -231
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ 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 — `research`, `feature`, `
|
|
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`, `architect`, `analyze`, `dor`, and `record` — add structure and rigor when the scope or complexity warrants it.
|
|
29
29
|
|
|
30
30
|
```mermaid
|
|
31
31
|
flowchart LR
|
|
@@ -37,7 +37,7 @@ flowchart LR
|
|
|
37
37
|
competitive analysis"]
|
|
38
38
|
|
|
39
39
|
Specify["3. Specify
|
|
40
|
-
feature
|
|
40
|
+
feature"]
|
|
41
41
|
|
|
42
42
|
Architect["4. Architect
|
|
43
43
|
technical blueprint"]
|
|
@@ -97,10 +97,9 @@ Use `research` when you want to understand what competitors offer, identify tabl
|
|
|
97
97
|
|
|
98
98
|
| Command | Role | What it produces |
|
|
99
99
|
|---|---|---|
|
|
100
|
-
| `gspec.feature` | Product Manager |
|
|
101
|
-
| `gspec.epic` | Product Manager | Breaks a large epic into multiple feature PRDs with dependency mapping |
|
|
100
|
+
| `gspec.feature` | Product Manager | One or more feature PRDs with prioritized capabilities |
|
|
102
101
|
|
|
103
|
-
Use `feature` when you want
|
|
102
|
+
Use `feature` when you want detailed PRDs with prioritized capabilities and acceptance criteria before building. It handles both single features and larger bodies of work — if the scope is large enough, it will propose a multi-feature breakdown for your approval. For smaller tasks or rapid prototyping, you can skip straight to `implement` with a plain-language description.
|
|
104
103
|
|
|
105
104
|
**4. Architect** *(optional)* — Translate specs into a concrete technical blueprint.
|
|
106
105
|
|
|
@@ -182,8 +181,6 @@ project-root/
|
|
|
182
181
|
├── practices.md # Development standards
|
|
183
182
|
├── architecture.md # Technical architecture blueprint
|
|
184
183
|
├── research.md # Competitive analysis and feature gaps
|
|
185
|
-
├── epics/
|
|
186
|
-
│ └── onboarding-flow.md
|
|
187
184
|
└── features/
|
|
188
185
|
├── user-authentication.md
|
|
189
186
|
├── dashboard-analytics.md
|
|
@@ -27,8 +27,7 @@ Read **every** available gspec document in this order:
|
|
|
27
27
|
4. `gspec/practices.md` — Development standards, testing, conventions
|
|
28
28
|
5. `gspec/architecture.md` — Technical blueprint: project structure, data model, API design, environment
|
|
29
29
|
6. `gspec/research.md` — Competitive analysis and feature proposals
|
|
30
|
-
7. `gspec/
|
|
31
|
-
8. `gspec/features/*.md` — Individual feature requirements
|
|
30
|
+
7. `gspec/features/*.md` — Individual feature requirements and dependencies
|
|
32
31
|
|
|
33
32
|
If fewer than two spec files exist, inform the user that there is nothing to cross-reference and stop.
|
|
34
33
|
|
|
@@ -64,7 +63,6 @@ Systematically compare specs against each other. Look for these categories of di
|
|
|
64
63
|
#### Scope & Priority Conflicts
|
|
65
64
|
- A feature capability is marked P0 in one place but P1 or P2 in another
|
|
66
65
|
- Profile describes scope or positioning that conflicts with what features actually define
|
|
67
|
-
- Epic dependency ordering conflicts with feature priority levels
|
|
68
66
|
- Research recommendations conflict with decisions already made in other specs
|
|
69
67
|
|
|
70
68
|
#### Behavioral Conflicts
|
|
@@ -4,7 +4,7 @@ Your task is to take the established product specifications and produce a **Tech
|
|
|
4
4
|
|
|
5
5
|
Beyond defining the architecture, you are also responsible for **identifying technical gaps and ambiguities** in the existing specs and **proposing implementation solutions**. This is the place in the gspec workflow where underspecified technical behavior is surfaced and resolved — so that `gspec-implement` can focus on building rather than making architectural decisions.
|
|
6
6
|
|
|
7
|
-
This command is meant to be run **after** the foundation specs (profile, stack, style, practices) and feature specs
|
|
7
|
+
This command is meant to be run **after** the foundation specs (profile, stack, style, practices) and feature specs are defined, and **before** `gspec-implement`.
|
|
8
8
|
|
|
9
9
|
You should:
|
|
10
10
|
- Read all existing gspec documents first — this architecture must serve the product, stack, style, and features already defined
|
|
@@ -27,8 +27,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
27
27
|
2. **`gspec/stack.md`** — Technology choices, frameworks, and infrastructure. Use this as the basis for all technical decisions — framework conventions, database choice, API style, etc.
|
|
28
28
|
3. **`gspec/style.md`** — Design system and tokens. Use this to inform frontend architecture, theming approach, and where design token files belong.
|
|
29
29
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
30
|
-
5. **`gspec/
|
|
31
|
-
6. **`gspec/features/*.md`** — Individual feature requirements. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
30
|
+
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
32
31
|
|
|
33
32
|
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions — but flag them in the Open Decisions section.
|
|
34
33
|
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
You are a senior Product Manager at a high-performing software company.
|
|
2
2
|
|
|
3
|
-
Your task is to take the provided feature description (which may be vague or detailed) and produce
|
|
3
|
+
Your task is to take the provided feature description (which may be vague or detailed, small or large) and produce **one or more Product Requirements Documents (PRDs)** that clearly define *what* is being built and *why*, without deep technical or architectural implementation details.
|
|
4
|
+
|
|
5
|
+
## Scope Assessment
|
|
6
|
+
|
|
7
|
+
Before writing anything, assess whether the user's description is:
|
|
8
|
+
|
|
9
|
+
1. **A single feature** — a focused piece of functionality that can be captured in one PRD (e.g., "user authentication", "CSV export", "dark mode support")
|
|
10
|
+
2. **A large body of work** — something broad enough that it should be decomposed into multiple independent features (e.g., "a complete onboarding experience", "a full e-commerce checkout flow", "social features for the app")
|
|
11
|
+
|
|
12
|
+
**If it's a single feature**, produce one PRD and save it to `gspec/features/`.
|
|
13
|
+
|
|
14
|
+
**If it's large enough to warrant multiple features:**
|
|
15
|
+
|
|
16
|
+
1. Propose a breakdown — list the distinct features you'd create, with a one-line description of each and their dependencies on each other
|
|
17
|
+
2. **Ask the user to confirm, adjust, or reprioritize** the breakdown before writing any specs
|
|
18
|
+
3. Once confirmed, generate a separate PRD for each feature in `gspec/features/`
|
|
19
|
+
|
|
20
|
+
When in doubt, lean toward fewer features. Don't over-decompose — a feature should only be split out if it delivers independent user value and has a meaningfully different scope.
|
|
4
21
|
|
|
5
22
|
## Important: Agent-Oriented Documentation
|
|
6
23
|
|
|
@@ -57,19 +74,20 @@ Feature PRDs are designed to be **portable across projects**. A feature spec wri
|
|
|
57
74
|
|
|
58
75
|
## Output Rules
|
|
59
76
|
|
|
60
|
-
- Output
|
|
61
|
-
- Save
|
|
62
|
-
- Name
|
|
63
|
-
- Begin
|
|
77
|
+
- Output one or more Markdown documents — **one per feature**
|
|
78
|
+
- Save each file to the `gspec/features/` folder in the root of the project, create it if it doesn't exist
|
|
79
|
+
- Name each file based on the feature (e.g., `user-authentication.md`, `dashboard-analytics.md`)
|
|
80
|
+
- Begin each file with YAML frontmatter containing the gspec version:
|
|
64
81
|
```
|
|
65
82
|
---
|
|
66
83
|
gspec-version: <<<VERSION>>>
|
|
67
84
|
---
|
|
68
85
|
```
|
|
69
86
|
The frontmatter must be the very first content in the file, before the main heading.
|
|
70
|
-
- **Before generating
|
|
87
|
+
- **Before generating any document, you MUST resolve ambiguities through conversation.** Ask clarifying questions in the chat if:
|
|
71
88
|
- The target users are unclear
|
|
72
89
|
- The scope or boundaries of the feature are ambiguous
|
|
90
|
+
- The breakdown into multiple features is not obvious (for large requests)
|
|
73
91
|
- Success criteria cannot be determined from the description
|
|
74
92
|
- Priority or urgency is unspecified
|
|
75
93
|
- Any assumption would materially change the shape of the spec
|
|
@@ -107,7 +125,7 @@ This separation — combined with the portability principles above — allows th
|
|
|
107
125
|
|
|
108
126
|
---
|
|
109
127
|
|
|
110
|
-
## Required Sections
|
|
128
|
+
## Required Sections (per feature PRD)
|
|
111
129
|
|
|
112
130
|
**IMPORTANT**: Only include the sections listed below. Do NOT add additional sections such as "Technology Notes", "Implementation Details", "Technical Architecture", or any other custom sections. Stick strictly to this structure.
|
|
113
131
|
|
|
@@ -157,11 +175,23 @@ This separation — combined with the portability principles above — allows th
|
|
|
157
175
|
|
|
158
176
|
---
|
|
159
177
|
|
|
178
|
+
## Multi-Feature Output
|
|
179
|
+
|
|
180
|
+
When generating multiple features from a large request:
|
|
181
|
+
|
|
182
|
+
- **Cross-reference dependencies** — each feature's Dependencies section should link to sibling features when applicable
|
|
183
|
+
- **Maintain consistent terminology** — use the same terms for shared concepts across all generated PRDs
|
|
184
|
+
- **Assign priorities holistically** — P0/P1/P2 levels should be consistent across the set (don't make everything P0)
|
|
185
|
+
- **Suggest a build order** — after generating all PRDs, briefly note the recommended implementation sequence based on dependencies (e.g., "Build `user-authentication` first, then `user-profiles`, then `social-connections`")
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
160
189
|
## Tone & Style
|
|
161
190
|
|
|
162
191
|
- Clear, neutral, product-led
|
|
163
192
|
- No fluff, no jargon
|
|
164
193
|
- Designed to be skimmed
|
|
194
|
+
- Consistent across all generated documents
|
|
165
195
|
|
|
166
196
|
---
|
|
167
197
|
|
|
@@ -2,13 +2,13 @@ You are a Senior Software Engineer and Tech Lead at a high-performing software c
|
|
|
2
2
|
|
|
3
3
|
Your task is to take the project's **gspec specification documents** and use them to **implement the software**. You bridge the gap between product requirements and working code. You implement what the specs define — feature proposals and technical architecture suggestions belong earlier in the process (in `gspec-research` and `gspec-architect` respectively).
|
|
4
4
|
|
|
5
|
-
**Features
|
|
5
|
+
**Features are optional.** When `gspec/features/*.md` exist, they guide implementation feature by feature. When they don't exist, you rely on the remaining gspec files (`profile.md`, `stack.md`, `style.md`, `practices.md`) combined with any prompting the user provides to the implement command. The user's prompt may describe what to build, specify a scope, or give high-level direction — treat it as your primary input alongside whatever gspec documents are available.
|
|
6
6
|
|
|
7
7
|
You should:
|
|
8
8
|
- Read and internalize all available gspec documents before writing any code
|
|
9
9
|
- Implement incrementally, one logical unit at a time
|
|
10
10
|
- Follow the project's defined stack, style, and practices exactly
|
|
11
|
-
- **When no features
|
|
11
|
+
- **When no features exist**, use the user's prompt and the remaining gspec files to determine what to build, then plan and implement incrementally
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -19,8 +19,7 @@ You should:
|
|
|
19
19
|
Before writing any code, read all available gspec documents in this order:
|
|
20
20
|
|
|
21
21
|
1. `gspec/profile.md` — Understand what the product is and who it's for
|
|
22
|
-
2. `gspec/
|
|
23
|
-
3. `gspec/features/*.md` — Understand individual feature requirements
|
|
22
|
+
2. `gspec/features/*.md` — Understand individual feature requirements and dependencies
|
|
24
23
|
> **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.
|
|
25
24
|
4. `gspec/stack.md` — Understand the technology choices
|
|
26
25
|
5. `gspec/style.md` — Understand the visual design language
|
|
@@ -29,7 +28,7 @@ Before writing any code, read all available gspec documents in this order:
|
|
|
29
28
|
|
|
30
29
|
If any of these files are missing, note what's missing and proceed with what's available.
|
|
31
30
|
|
|
32
|
-
- **Features
|
|
31
|
+
- **Features are optional.** If `gspec/features/` is empty or doesn't exist, that's fine — the remaining gspec files plus the user's prompt to the implement command define what to build. Do not block on their absence or insist the user generate them first.
|
|
33
32
|
- For other missing files (profile, stack, style, practices), note the gap and ask the user if they want to generate them first or proceed without them.
|
|
34
33
|
|
|
35
34
|
#### Assess Implementation Status
|
|
@@ -47,8 +46,6 @@ For each feature PRD, build an implementation status summary:
|
|
|
47
46
|
|
|
48
47
|
Present this summary to the user so they understand the starting point. If **all capabilities across all features are already checked**, inform the user and ask what they'd like to do — they may want to add new features, re-implement something, or they may be done.
|
|
49
48
|
|
|
50
|
-
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.
|
|
51
|
-
|
|
52
49
|
### Phase 2: Plan — Define the Build Order
|
|
53
50
|
|
|
54
51
|
**Enter plan mode** and create a concrete, phased implementation plan.
|
|
@@ -108,8 +105,7 @@ Present a brief scaffold summary to the user before proceeding to feature implem
|
|
|
108
105
|
c. **Follow the style** — Apply the design system, tokens, and component patterns from `gspec/style.md`
|
|
109
106
|
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
|
|
110
107
|
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.
|
|
111
|
-
4. **
|
|
112
|
-
5. **Run tests** — Execute the tests defined for this phase (and any existing tests to catch regressions). Fix any failures before proceeding.
|
|
108
|
+
4. **Run tests** — Execute the tests defined for this phase (and any existing tests to catch regressions). Fix any failures before proceeding.
|
|
113
109
|
6. **Surface new gaps** — If implementation reveals new ambiguities, pause and consult the user rather than making silent assumptions
|
|
114
110
|
7. **Pause and report** — After completing the phase and confirming tests pass, present a phase completion summary to the user:
|
|
115
111
|
|
|
@@ -153,21 +149,20 @@ When you encounter something the specs don't fully cover during implementation:
|
|
|
153
149
|
|
|
154
150
|
## Selecting What to Implement
|
|
155
151
|
|
|
156
|
-
### When no features
|
|
152
|
+
### When no features exist:
|
|
157
153
|
|
|
158
|
-
If `gspec/features/`
|
|
154
|
+
If `gspec/features/` is empty or absent, use the **user's prompt** as the primary guide for what to build:
|
|
159
155
|
|
|
160
156
|
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.
|
|
161
157
|
2. **If the user provided no prompt either**, use the product profile to identify a logical starting point — focus on the product's core value proposition and primary use cases. Suggest a starting point and confirm with the user.
|
|
162
158
|
|
|
163
|
-
### When features
|
|
159
|
+
### When features exist:
|
|
164
160
|
|
|
165
161
|
**Filter by implementation status first.** Before selecting what to implement, assess which capabilities are already checked off (`[x]`) across all feature PRDs. Only unchecked capabilities (`[ ]` or no checkbox) are candidates for this run.
|
|
166
162
|
|
|
167
163
|
If the user doesn't specify which feature to implement:
|
|
168
164
|
|
|
169
|
-
1.
|
|
170
|
-
2. **Focus on features with unchecked capabilities** — Features with all capabilities checked are complete and can be skipped
|
|
165
|
+
1. **Focus on features with unchecked capabilities** — Features with all capabilities checked are complete and can be skipped
|
|
171
166
|
3. Among features with pending work, prioritize unchecked P0 capabilities over P1, P1 over P2
|
|
172
167
|
4. Respect dependency ordering — build foundations before dependent features
|
|
173
168
|
5. Suggest a starting point and confirm with the user
|
|
@@ -176,9 +171,9 @@ If the user specifies a feature, focus on that feature's **unchecked capabilitie
|
|
|
176
171
|
- Note any unmet dependencies
|
|
177
172
|
- If the user explicitly asks to re-implement a checked capability, honor that request
|
|
178
173
|
|
|
179
|
-
### When the user provides a prompt alongside existing features
|
|
174
|
+
### When the user provides a prompt alongside existing features:
|
|
180
175
|
|
|
181
|
-
The user's prompt takes priority for scoping. Use it to determine focus, and reference existing feature PRDs
|
|
176
|
+
The user's prompt takes priority for scoping. Use it to determine focus, and reference existing feature PRDs as supporting context rather than the sole driver.
|
|
182
177
|
|
|
183
178
|
---
|
|
184
179
|
|
|
@@ -11,7 +11,7 @@ Your task is to update existing gspec specification documents to match the curre
|
|
|
11
11
|
Scan the `gspec/` directory for all Markdown files:
|
|
12
12
|
- `gspec/*.md` (profile, stack, style, practices, architecture)
|
|
13
13
|
- `gspec/features/*.md` (individual feature PRDs)
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
|
|
16
16
|
For each file, check the YAML frontmatter at the top of the file:
|
|
17
17
|
- If the file starts with `---` followed by YAML content and another `---`, read the `gspec-version` field
|
|
@@ -40,7 +40,6 @@ For each file that needs migration, determine its document type and read the cor
|
|
|
40
40
|
| `gspec/practices.md` | Development Practices | Read the `gspec-practices` skill definition |
|
|
41
41
|
| `gspec/architecture.md` | Technical Architecture | Read the `gspec-architect` skill definition |
|
|
42
42
|
| `gspec/features/*.md` | Feature PRD | Read the `gspec-feature` skill definition |
|
|
43
|
-
| `gspec/epics/*.md` | Epic Summary | Read the `gspec-epic` skill definition |
|
|
44
43
|
|
|
45
44
|
The skill definitions are located in your installed skills directory. Read them to understand the current "Required Sections" structure for each document type.
|
|
46
45
|
|
|
@@ -27,7 +27,7 @@ Before conducting any research, read available gspec documents for context:
|
|
|
27
27
|
- **Market & Competition** section — direct competitors, indirect competitors or alternatives, white space or gaps the product fills
|
|
28
28
|
- **Value Proposition** section — differentiation and competitive advantages
|
|
29
29
|
2. `gspec/features/*.md` — **Optional.** If feature PRDs exist, read them to understand what capabilities are already specified. This enables gap analysis in later phases.
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
|
|
32
32
|
**If `gspec/profile.md` does not exist or has no Market & Competition section**, inform the user that a product profile with competitor information is required for competitive research. Suggest running `gspec-profile` first. Do not proceed without competitor information.
|
|
33
33
|
|
|
@@ -32,8 +32,7 @@ Read **every** available gspec document in this order:
|
|
|
32
32
|
4. `gspec/practices.md` — Development standards, testing, conventions
|
|
33
33
|
5. `gspec/architecture.md` — Technical blueprint: project structure, data model, API design, environment
|
|
34
34
|
6. `gspec/research.md` — Competitive analysis and feature proposals
|
|
35
|
-
7. `gspec/
|
|
36
|
-
8. `gspec/features/*.md` — Individual feature requirements
|
|
35
|
+
7. `gspec/features/*.md` — Individual feature requirements and dependencies
|
|
37
36
|
|
|
38
37
|
If fewer than two spec files exist, inform the user that there is nothing to cross-reference and stop.
|
|
39
38
|
|
|
@@ -69,7 +68,6 @@ Systematically compare specs against each other. Look for these categories of di
|
|
|
69
68
|
#### Scope & Priority Conflicts
|
|
70
69
|
- A feature capability is marked P0 in one place but P1 or P2 in another
|
|
71
70
|
- Profile describes scope or positioning that conflicts with what features actually define
|
|
72
|
-
- Epic dependency ordering conflicts with feature priority levels
|
|
73
71
|
- Research recommendations conflict with decisions already made in other specs
|
|
74
72
|
|
|
75
73
|
#### Behavioral Conflicts
|
|
@@ -9,7 +9,7 @@ Your task is to take the established product specifications and produce a **Tech
|
|
|
9
9
|
|
|
10
10
|
Beyond defining the architecture, you are also responsible for **identifying technical gaps and ambiguities** in the existing specs and **proposing implementation solutions**. This is the place in the gspec workflow where underspecified technical behavior is surfaced and resolved — so that `gspec-implement` can focus on building rather than making architectural decisions.
|
|
11
11
|
|
|
12
|
-
This command is meant to be run **after** the foundation specs (profile, stack, style, practices) and feature specs
|
|
12
|
+
This command is meant to be run **after** the foundation specs (profile, stack, style, practices) and feature specs are defined, and **before** `gspec-implement`.
|
|
13
13
|
|
|
14
14
|
You should:
|
|
15
15
|
- Read all existing gspec documents first — this architecture must serve the product, stack, style, and features already defined
|
|
@@ -32,8 +32,7 @@ Before generating the architecture document, read **all** existing gspec documen
|
|
|
32
32
|
2. **`gspec/stack.md`** — Technology choices, frameworks, and infrastructure. Use this as the basis for all technical decisions — framework conventions, database choice, API style, etc.
|
|
33
33
|
3. **`gspec/style.md`** — Design system and tokens. Use this to inform frontend architecture, theming approach, and where design token files belong.
|
|
34
34
|
4. **`gspec/practices.md`** — Development standards. Use this to align file organization, testing patterns, and code structure with team conventions.
|
|
35
|
-
5. **`gspec/
|
|
36
|
-
6. **`gspec/features/*.md`** — Individual feature requirements. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
35
|
+
5. **`gspec/features/*.md`** — Individual feature requirements and dependencies. Use these to derive data entities, API endpoints, component structure, and integration points.
|
|
37
36
|
|
|
38
37
|
All of these provide essential context. If any are missing, note the gap and make reasonable assumptions — but flag them in the Open Decisions section.
|
|
39
38
|
|
|
@@ -46,7 +45,7 @@ All of these provide essential context. If any are missing, note the gap and mak
|
|
|
46
45
|
- Begin the file with YAML frontmatter containing the gspec version:
|
|
47
46
|
```
|
|
48
47
|
---
|
|
49
|
-
gspec-version: 1.
|
|
48
|
+
gspec-version: 1.7.0
|
|
50
49
|
---
|
|
51
50
|
```
|
|
52
51
|
The frontmatter must be the very first content in the file, before the main heading.
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gspec-feature
|
|
3
|
-
description: Generate
|
|
3
|
+
description: Generate one or more product requirements documents (PRDs) for features
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
You are a senior Product Manager at a high-performing software company.
|
|
7
7
|
|
|
8
|
-
Your task is to take the provided feature description (which may be vague or detailed) and produce
|
|
8
|
+
Your task is to take the provided feature description (which may be vague or detailed, small or large) and produce **one or more Product Requirements Documents (PRDs)** that clearly define *what* is being built and *why*, without deep technical or architectural implementation details.
|
|
9
|
+
|
|
10
|
+
## Scope Assessment
|
|
11
|
+
|
|
12
|
+
Before writing anything, assess whether the user's description is:
|
|
13
|
+
|
|
14
|
+
1. **A single feature** — a focused piece of functionality that can be captured in one PRD (e.g., "user authentication", "CSV export", "dark mode support")
|
|
15
|
+
2. **A large body of work** — something broad enough that it should be decomposed into multiple independent features (e.g., "a complete onboarding experience", "a full e-commerce checkout flow", "social features for the app")
|
|
16
|
+
|
|
17
|
+
**If it's a single feature**, produce one PRD and save it to `gspec/features/`.
|
|
18
|
+
|
|
19
|
+
**If it's large enough to warrant multiple features:**
|
|
20
|
+
|
|
21
|
+
1. Propose a breakdown — list the distinct features you'd create, with a one-line description of each and their dependencies on each other
|
|
22
|
+
2. **Ask the user to confirm, adjust, or reprioritize** the breakdown before writing any specs
|
|
23
|
+
3. Once confirmed, generate a separate PRD for each feature in `gspec/features/`
|
|
24
|
+
|
|
25
|
+
When in doubt, lean toward fewer features. Don't over-decompose — a feature should only be split out if it delivers independent user value and has a meaningfully different scope.
|
|
9
26
|
|
|
10
27
|
## Important: Agent-Oriented Documentation
|
|
11
28
|
|
|
@@ -62,19 +79,20 @@ Feature PRDs are designed to be **portable across projects**. A feature spec wri
|
|
|
62
79
|
|
|
63
80
|
## Output Rules
|
|
64
81
|
|
|
65
|
-
- Output
|
|
66
|
-
- Save
|
|
67
|
-
- Name
|
|
68
|
-
- Begin
|
|
82
|
+
- Output one or more Markdown documents — **one per feature**
|
|
83
|
+
- Save each file to the `gspec/features/` folder in the root of the project, create it if it doesn't exist
|
|
84
|
+
- Name each file based on the feature (e.g., `user-authentication.md`, `dashboard-analytics.md`)
|
|
85
|
+
- Begin each file with YAML frontmatter containing the gspec version:
|
|
69
86
|
```
|
|
70
87
|
---
|
|
71
|
-
gspec-version: 1.
|
|
88
|
+
gspec-version: 1.7.0
|
|
72
89
|
---
|
|
73
90
|
```
|
|
74
91
|
The frontmatter must be the very first content in the file, before the main heading.
|
|
75
|
-
- **Before generating
|
|
92
|
+
- **Before generating any document, you MUST resolve ambiguities through conversation.** Ask clarifying questions in the chat if:
|
|
76
93
|
- The target users are unclear
|
|
77
94
|
- The scope or boundaries of the feature are ambiguous
|
|
95
|
+
- The breakdown into multiple features is not obvious (for large requests)
|
|
78
96
|
- Success criteria cannot be determined from the description
|
|
79
97
|
- Priority or urgency is unspecified
|
|
80
98
|
- Any assumption would materially change the shape of the spec
|
|
@@ -112,7 +130,7 @@ This separation — combined with the portability principles above — allows th
|
|
|
112
130
|
|
|
113
131
|
---
|
|
114
132
|
|
|
115
|
-
## Required Sections
|
|
133
|
+
## Required Sections (per feature PRD)
|
|
116
134
|
|
|
117
135
|
**IMPORTANT**: Only include the sections listed below. Do NOT add additional sections such as "Technology Notes", "Implementation Details", "Technical Architecture", or any other custom sections. Stick strictly to this structure.
|
|
118
136
|
|
|
@@ -162,11 +180,23 @@ This separation — combined with the portability principles above — allows th
|
|
|
162
180
|
|
|
163
181
|
---
|
|
164
182
|
|
|
183
|
+
## Multi-Feature Output
|
|
184
|
+
|
|
185
|
+
When generating multiple features from a large request:
|
|
186
|
+
|
|
187
|
+
- **Cross-reference dependencies** — each feature's Dependencies section should link to sibling features when applicable
|
|
188
|
+
- **Maintain consistent terminology** — use the same terms for shared concepts across all generated PRDs
|
|
189
|
+
- **Assign priorities holistically** — P0/P1/P2 levels should be consistent across the set (don't make everything P0)
|
|
190
|
+
- **Suggest a build order** — after generating all PRDs, briefly note the recommended implementation sequence based on dependencies (e.g., "Build `user-authentication` first, then `user-profiles`, then `social-connections`")
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
165
194
|
## Tone & Style
|
|
166
195
|
|
|
167
196
|
- Clear, neutral, product-led
|
|
168
197
|
- No fluff, no jargon
|
|
169
198
|
- Designed to be skimmed
|
|
199
|
+
- Consistent across all generated documents
|
|
170
200
|
|
|
171
201
|
---
|
|
172
202
|
|
|
@@ -7,13 +7,13 @@ You are a Senior Software Engineer and Tech Lead at a high-performing software c
|
|
|
7
7
|
|
|
8
8
|
Your task is to take the project's **gspec specification documents** and use them to **implement the software**. You bridge the gap between product requirements and working code. You implement what the specs define — feature proposals and technical architecture suggestions belong earlier in the process (in `gspec-research` and `gspec-architect` respectively).
|
|
9
9
|
|
|
10
|
-
**Features
|
|
10
|
+
**Features are optional.** When `gspec/features/*.md` exist, they guide implementation feature by feature. When they don't exist, you rely on the remaining gspec files (`profile.md`, `stack.md`, `style.md`, `practices.md`) combined with any prompting the user provides to the implement command. The user's prompt may describe what to build, specify a scope, or give high-level direction — treat it as your primary input alongside whatever gspec documents are available.
|
|
11
11
|
|
|
12
12
|
You should:
|
|
13
13
|
- Read and internalize all available gspec documents before writing any code
|
|
14
14
|
- Implement incrementally, one logical unit at a time
|
|
15
15
|
- Follow the project's defined stack, style, and practices exactly
|
|
16
|
-
- **When no features
|
|
16
|
+
- **When no features exist**, use the user's prompt and the remaining gspec files to determine what to build, then plan and implement incrementally
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
@@ -24,8 +24,7 @@ You should:
|
|
|
24
24
|
Before writing any code, read all available gspec documents in this order:
|
|
25
25
|
|
|
26
26
|
1. `gspec/profile.md` — Understand what the product is and who it's for
|
|
27
|
-
2. `gspec/
|
|
28
|
-
3. `gspec/features/*.md` — Understand individual feature requirements
|
|
27
|
+
2. `gspec/features/*.md` — Understand individual feature requirements and dependencies
|
|
29
28
|
> **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.
|
|
30
29
|
4. `gspec/stack.md` — Understand the technology choices
|
|
31
30
|
5. `gspec/style.md` — Understand the visual design language
|
|
@@ -34,7 +33,7 @@ Before writing any code, read all available gspec documents in this order:
|
|
|
34
33
|
|
|
35
34
|
If any of these files are missing, note what's missing and proceed with what's available.
|
|
36
35
|
|
|
37
|
-
- **Features
|
|
36
|
+
- **Features are optional.** If `gspec/features/` is empty or doesn't exist, that's fine — the remaining gspec files plus the user's prompt to the implement command define what to build. Do not block on their absence or insist the user generate them first.
|
|
38
37
|
- For other missing files (profile, stack, style, practices), note the gap and ask the user if they want to generate them first or proceed without them.
|
|
39
38
|
|
|
40
39
|
#### Assess Implementation Status
|
|
@@ -52,8 +51,6 @@ For each feature PRD, build an implementation status summary:
|
|
|
52
51
|
|
|
53
52
|
Present this summary to the user so they understand the starting point. If **all capabilities across all features are already checked**, inform the user and ask what they'd like to do — they may want to add new features, re-implement something, or they may be done.
|
|
54
53
|
|
|
55
|
-
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.
|
|
56
|
-
|
|
57
54
|
### Phase 2: Plan — Define the Build Order
|
|
58
55
|
|
|
59
56
|
**Enter plan mode** and create a concrete, phased implementation plan.
|
|
@@ -112,9 +109,8 @@ Present a brief scaffold summary to the user before proceeding to feature implem
|
|
|
112
109
|
b. **Follow the practices** — Adhere to coding standards, testing requirements, and conventions from `gspec/practices.md`
|
|
113
110
|
c. **Follow the style** — Apply the design system, tokens, and component patterns from `gspec/style.md`
|
|
114
111
|
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
|
|
115
|
-
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: 1.
|
|
116
|
-
4. **
|
|
117
|
-
5. **Run tests** — Execute the tests defined for this phase (and any existing tests to catch regressions). Fix any failures before proceeding.
|
|
112
|
+
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: 1.7.0\n---` at the top.
|
|
113
|
+
4. **Run tests** — Execute the tests defined for this phase (and any existing tests to catch regressions). Fix any failures before proceeding.
|
|
118
114
|
6. **Surface new gaps** — If implementation reveals new ambiguities, pause and consult the user rather than making silent assumptions
|
|
119
115
|
7. **Pause and report** — After completing the phase and confirming tests pass, present a phase completion summary to the user:
|
|
120
116
|
|
|
@@ -158,21 +154,20 @@ When you encounter something the specs don't fully cover during implementation:
|
|
|
158
154
|
|
|
159
155
|
## Selecting What to Implement
|
|
160
156
|
|
|
161
|
-
### When no features
|
|
157
|
+
### When no features exist:
|
|
162
158
|
|
|
163
|
-
If `gspec/features/`
|
|
159
|
+
If `gspec/features/` is empty or absent, use the **user's prompt** as the primary guide for what to build:
|
|
164
160
|
|
|
165
161
|
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.
|
|
166
162
|
2. **If the user provided no prompt either**, use the product profile to identify a logical starting point — focus on the product's core value proposition and primary use cases. Suggest a starting point and confirm with the user.
|
|
167
163
|
|
|
168
|
-
### When features
|
|
164
|
+
### When features exist:
|
|
169
165
|
|
|
170
166
|
**Filter by implementation status first.** Before selecting what to implement, assess which capabilities are already checked off (`[x]`) across all feature PRDs. Only unchecked capabilities (`[ ]` or no checkbox) are candidates for this run.
|
|
171
167
|
|
|
172
168
|
If the user doesn't specify which feature to implement:
|
|
173
169
|
|
|
174
|
-
1.
|
|
175
|
-
2. **Focus on features with unchecked capabilities** — Features with all capabilities checked are complete and can be skipped
|
|
170
|
+
1. **Focus on features with unchecked capabilities** — Features with all capabilities checked are complete and can be skipped
|
|
176
171
|
3. Among features with pending work, prioritize unchecked P0 capabilities over P1, P1 over P2
|
|
177
172
|
4. Respect dependency ordering — build foundations before dependent features
|
|
178
173
|
5. Suggest a starting point and confirm with the user
|
|
@@ -181,9 +176,9 @@ If the user specifies a feature, focus on that feature's **unchecked capabilitie
|
|
|
181
176
|
- Note any unmet dependencies
|
|
182
177
|
- If the user explicitly asks to re-implement a checked capability, honor that request
|
|
183
178
|
|
|
184
|
-
### When the user provides a prompt alongside existing features
|
|
179
|
+
### When the user provides a prompt alongside existing features:
|
|
185
180
|
|
|
186
|
-
The user's prompt takes priority for scoping. Use it to determine focus, and reference existing feature PRDs
|
|
181
|
+
The user's prompt takes priority for scoping. Use it to determine focus, and reference existing feature PRDs as supporting context rather than the sole driver.
|
|
187
182
|
|
|
188
183
|
---
|
|
189
184
|
|
|
@@ -5,7 +5,7 @@ description: Migrate existing gspec files to the current format when upgrading t
|
|
|
5
5
|
|
|
6
6
|
You are a Technical Documentation Migration Specialist.
|
|
7
7
|
|
|
8
|
-
Your task is to update existing gspec specification documents to match the current gspec format (version 1.
|
|
8
|
+
Your task is to update existing gspec specification documents to match the current gspec format (version 1.7.0). You preserve all substantive content while ensuring documents follow the latest structural conventions.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -16,19 +16,19 @@ Your task is to update existing gspec specification documents to match the curre
|
|
|
16
16
|
Scan the `gspec/` directory for all Markdown files:
|
|
17
17
|
- `gspec/*.md` (profile, stack, style, practices, architecture)
|
|
18
18
|
- `gspec/features/*.md` (individual feature PRDs)
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
|
|
21
21
|
For each file, check the YAML frontmatter at the top of the file:
|
|
22
22
|
- If the file starts with `---` followed by YAML content and another `---`, read the `gspec-version` field
|
|
23
23
|
- If no frontmatter exists, the file predates version tracking
|
|
24
|
-
- If `gspec-version` matches `1.
|
|
24
|
+
- If `gspec-version` matches `1.7.0`, the file is current — skip it
|
|
25
25
|
|
|
26
26
|
Present an inventory to the user:
|
|
27
27
|
|
|
28
28
|
> **gspec File Inventory:**
|
|
29
29
|
> - `gspec/profile.md` — no version (needs migration)
|
|
30
30
|
> - `gspec/stack.md` — version 1.0.3 (needs migration)
|
|
31
|
-
> - `gspec/style.md` — version 1.
|
|
31
|
+
> - `gspec/style.md` — version 1.7.0 (current, skipping)
|
|
32
32
|
> - `gspec/features/user-auth.md` — no version (needs migration)
|
|
33
33
|
|
|
34
34
|
Ask the user to confirm which files to migrate, or confirm all.
|
|
@@ -45,7 +45,6 @@ For each file that needs migration, determine its document type and read the cor
|
|
|
45
45
|
| `gspec/practices.md` | Development Practices | Read the `gspec-practices` skill definition |
|
|
46
46
|
| `gspec/architecture.md` | Technical Architecture | Read the `gspec-architect` skill definition |
|
|
47
47
|
| `gspec/features/*.md` | Feature PRD | Read the `gspec-feature` skill definition |
|
|
48
|
-
| `gspec/epics/*.md` | Epic Summary | Read the `gspec-epic` skill definition |
|
|
49
48
|
|
|
50
49
|
The skill definitions are located in your installed skills directory. Read them to understand the current "Required Sections" structure for each document type.
|
|
51
50
|
|
|
@@ -64,7 +63,7 @@ For each file to migrate:
|
|
|
64
63
|
5. **Add or update the frontmatter** — Ensure the file starts with:
|
|
65
64
|
```
|
|
66
65
|
---
|
|
67
|
-
gspec-version: 1.
|
|
66
|
+
gspec-version: 1.7.0
|
|
68
67
|
---
|
|
69
68
|
```
|
|
70
69
|
6. **Present the proposed changes** to the user before writing. Show what sections are being reorganized, what is being added, and confirm no content is being lost.
|
|
@@ -78,7 +77,7 @@ After migrating all files:
|
|
|
78
77
|
3. **Present a completion summary**:
|
|
79
78
|
|
|
80
79
|
> **Migration Complete:**
|
|
81
|
-
> - 4 files migrated to version 1.
|
|
80
|
+
> - 4 files migrated to version 1.7.0
|
|
82
81
|
> - 2 files were already current (skipped)
|
|
83
82
|
> - Content preserved in all files
|
|
84
83
|
> - Sections reorganized: [list any structural changes]
|