gspec 1.6.0 → 1.10.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.
Files changed (82) hide show
  1. package/README.md +4 -7
  2. package/bin/gspec.js +275 -8
  3. package/commands/gspec.analyze.md +2 -4
  4. package/commands/gspec.architect.md +2 -3
  5. package/commands/gspec.feature.md +37 -7
  6. package/commands/gspec.implement.md +14 -19
  7. package/commands/gspec.migrate.md +1 -2
  8. package/commands/gspec.practices.md +3 -1
  9. package/commands/gspec.research.md +1 -1
  10. package/commands/gspec.stack.md +11 -6
  11. package/commands/gspec.style.md +18 -23
  12. package/dist/antigravity/gspec-analyze/SKILL.md +2 -4
  13. package/dist/antigravity/gspec-architect/SKILL.md +3 -4
  14. package/dist/antigravity/gspec-feature/SKILL.md +39 -9
  15. package/dist/antigravity/gspec-implement/SKILL.md +15 -20
  16. package/dist/antigravity/gspec-migrate/SKILL.md +6 -7
  17. package/dist/antigravity/gspec-practices/SKILL.md +4 -2
  18. package/dist/antigravity/gspec-profile/SKILL.md +1 -1
  19. package/dist/antigravity/gspec-research/SKILL.md +4 -4
  20. package/dist/antigravity/gspec-stack/SKILL.md +12 -7
  21. package/dist/antigravity/gspec-style/SKILL.md +19 -24
  22. package/dist/claude/gspec-analyze/SKILL.md +2 -4
  23. package/dist/claude/gspec-architect/SKILL.md +3 -4
  24. package/dist/claude/gspec-feature/SKILL.md +39 -9
  25. package/dist/claude/gspec-implement/SKILL.md +15 -20
  26. package/dist/claude/gspec-migrate/SKILL.md +6 -7
  27. package/dist/claude/gspec-practices/SKILL.md +4 -2
  28. package/dist/claude/gspec-profile/SKILL.md +1 -1
  29. package/dist/claude/gspec-research/SKILL.md +4 -4
  30. package/dist/claude/gspec-stack/SKILL.md +12 -7
  31. package/dist/claude/gspec-style/SKILL.md +19 -24
  32. package/dist/codex/gspec-analyze/SKILL.md +2 -4
  33. package/dist/codex/gspec-architect/SKILL.md +3 -4
  34. package/dist/codex/gspec-feature/SKILL.md +39 -9
  35. package/dist/codex/gspec-implement/SKILL.md +15 -20
  36. package/dist/codex/gspec-migrate/SKILL.md +6 -7
  37. package/dist/codex/gspec-practices/SKILL.md +4 -2
  38. package/dist/codex/gspec-profile/SKILL.md +1 -1
  39. package/dist/codex/gspec-research/SKILL.md +4 -4
  40. package/dist/codex/gspec-stack/SKILL.md +12 -7
  41. package/dist/codex/gspec-style/SKILL.md +19 -24
  42. package/dist/cursor/gspec-analyze.mdc +2 -4
  43. package/dist/cursor/gspec-architect.mdc +3 -4
  44. package/dist/cursor/gspec-feature.mdc +39 -9
  45. package/dist/cursor/gspec-implement.mdc +15 -20
  46. package/dist/cursor/gspec-migrate.mdc +6 -7
  47. package/dist/cursor/gspec-practices.mdc +4 -2
  48. package/dist/cursor/gspec-profile.mdc +1 -1
  49. package/dist/cursor/gspec-research.mdc +4 -4
  50. package/dist/cursor/gspec-stack.mdc +12 -7
  51. package/dist/cursor/gspec-style.mdc +19 -24
  52. package/dist/opencode/gspec-analyze/SKILL.md +168 -0
  53. package/dist/opencode/gspec-architect/SKILL.md +361 -0
  54. package/dist/opencode/gspec-feature/SKILL.md +204 -0
  55. package/dist/opencode/gspec-implement/SKILL.md +200 -0
  56. package/dist/opencode/gspec-migrate/SKILL.md +118 -0
  57. package/dist/opencode/gspec-practices/SKILL.md +137 -0
  58. package/dist/opencode/gspec-profile/SKILL.md +221 -0
  59. package/dist/opencode/gspec-research/SKILL.md +302 -0
  60. package/dist/opencode/gspec-stack/SKILL.md +305 -0
  61. package/dist/opencode/gspec-style/SKILL.md +224 -0
  62. package/package.json +3 -1
  63. package/starters/features/about-page.md +98 -0
  64. package/starters/features/contact-form.md +147 -0
  65. package/starters/features/contact-page.md +103 -0
  66. package/starters/features/home-page.md +103 -0
  67. package/starters/features/responsive-navbar.md +113 -0
  68. package/starters/features/services-page.md +103 -0
  69. package/starters/features/site-footer.md +121 -0
  70. package/starters/features/theme-switcher.md +124 -0
  71. package/starters/practices/tdd-pipeline-first.md +192 -0
  72. package/starters/stacks/astro-tailwind-github-pages.md +283 -0
  73. package/starters/stacks/nextjs-supabase-vercel.md +319 -0
  74. package/starters/stacks/nextjs-vercel-typescript.md +264 -0
  75. package/starters/styles/clean-professional.md +316 -0
  76. package/starters/styles/dark-minimal-developer.md +442 -0
  77. package/templates/spec-sync.md +2 -2
  78. package/commands/gspec.epic.md +0 -228
  79. package/dist/antigravity/gspec-epic/SKILL.md +0 -232
  80. package/dist/claude/gspec-epic/SKILL.md +0 -233
  81. package/dist/codex/gspec-epic/SKILL.md +0 -232
  82. package/dist/cursor/gspec-epic.mdc +0 -231
@@ -1,231 +0,0 @@
1
- ---
2
- description: Break down a large epic into multiple focused feature PRDs with dependency mapping
3
- ---
4
-
5
- You are a senior Product Manager at a high-performing software company.
6
-
7
- Generate multiple Product Requirements Documents (PRDs) from a high-level epic description.
8
-
9
- ## Task
10
-
11
- Take the provided epic description (a large body of work) and break it down into **multiple focused Product Requirements Documents (PRDs)**, each representing a distinct feature or component that can be built independently.
12
-
13
- ## Important: Agent-Oriented Documentation
14
-
15
- **These epics and PRDs are designed for automated agent consumption** (via `gspec-implement`), with humans validating the content for accuracy and completeness. Write documents that are:
16
-
17
- - **Implementation-ready blueprints**, not project plans
18
- - Focused on **what** to build and **why**, not **when** or **how long**
19
- - Clear on technical and functional requirements an agent needs to execute
20
-
21
- **AVOID project management details:**
22
- - ❌ Sprint planning, week numbers, or timeline estimates
23
- - ❌ Team assignments or resource allocation
24
- - ❌ Velocity or story point estimates
25
- - ❌ Delivery schedules or milestone dates
26
- - ❌ "Phase 1 ships in Q2" or similar calendar commitments
27
-
28
- **DO include implementation guidance:**
29
- - ✅ Clear functional requirements and acceptance criteria
30
- - ✅ Dependencies between features (technical, not temporal)
31
- - ✅ Priority levels (P0, P1, P2) for scope decisions
32
- - ✅ Build order recommendations based on technical dependencies
33
- - ✅ Minimum viable epic (MVE) scope definition
34
- - ✅ Feature sequencing based on what must be built first
35
-
36
- ## Guidelines
37
-
38
- - **Read existing feature PRDs and epics** in `gspec/features/` and `gspec/epics/` to understand already-specified work and avoid overlap
39
- - Identify distinct features that make up the epic
40
- - **Ask all clarifying questions in the chat before writing specs** — never embed unresolved questions in the generated documents
41
- - When asking questions, offer 2-3 specific suggestions to guide the discussion
42
- - Ensure features can be built incrementally and independently when possible
43
- - Consider dependencies between features
44
- - Focus on user value, scope, and outcomes
45
- - Write for automated implementation with human validation
46
- - Be concise, structured, and decisive
47
-
48
- ---
49
-
50
- ## Portability
51
-
52
- 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.
53
-
54
- **To maintain portability, DO NOT read or incorporate context from:**
55
- - `gspec/profile.md` — Do not reference project-specific personas, competitive landscape, or positioning
56
- - `gspec/style.md` — Do not reference a specific design system or component library
57
- - `gspec/stack.md` — Do not reference specific technologies (already covered by Technology Agnosticism)
58
- - `gspec/practices.md` — Do not reference project-specific development standards
59
-
60
- **DO read existing feature PRDs and epics** in `gspec/features/` and `gspec/epics/` to:
61
- - Avoid duplicating or contradicting already-specified features
62
- - Identify cross-feature and cross-epic dependencies
63
- - Ensure consistent scope boundaries and terminology
64
-
65
- **Write in generic, portable terms:**
66
- - Use relative role descriptions ("primary users", "administrators", "content creators") not project-specific persona names
67
- - Justify priorities based on intrinsic user value and technical dependencies, not competitive landscape
68
- - Describe desired UX behavior generically ("clear error feedback", "responsive layout") without referencing a specific design system
69
- - Define success metrics in terms of each feature's own outcomes, not project-level KPIs
70
- - Sequence features based on logical dependencies, not project-specific stack constraints
71
-
72
- ## Output Rules
73
-
74
- - Output **multiple** Markdown documents (one per feature)
75
- - Save each file to the `gspec/features/` folder in the root of the project (create if it doesn't exist)
76
- - Name each file based on the feature (e.g., `user-authentication.md`, `dashboard-analytics.md`)
77
- - Begin every output file (both epic summary and individual feature PRDs) with YAML frontmatter containing the gspec version:
78
- ```
79
- ---
80
- gspec-version: 1.6.0
81
- ---
82
- ```
83
- The frontmatter must be the very first content in the file, before the main heading.
84
- - **Before generating the documents, you MUST resolve ambiguities through conversation.** Ask clarifying questions in the chat if:
85
- - The target users are unclear
86
- - The scope or boundaries of the epic are ambiguous
87
- - The breakdown into features is not obvious
88
- - Success criteria cannot be determined from the description
89
- - Priority or sequencing is unclear
90
- - Any assumption would materially change the shape of the specs
91
- - **When asking questions**, offer 2-3 specific suggestions to guide the discussion
92
- - **Do NOT embed unresolved questions in the generated specs.** All questions about scope, users, priorities, capabilities, feature boundaries, and sequencing must be resolved through conversation before writing the documents. The specs should reflect decisions, not open debates.
93
- - Create an epic summary document at `gspec/epics/[epic-name].md` that:
94
- - Lists all features in the epic
95
- - Shows dependencies between features
96
- - Provides a high-level roadmap or phasing suggestion
97
- - Links to each individual feature PRD
98
- - Avoid deep system architecture or low-level implementation
99
- - No code blocks except where examples add clarity
100
- - Clear acceptance criteria are required for each capability
101
- - Make tradeoffs and scope explicit
102
-
103
- ### Technology Agnosticism
104
-
105
- **IMPORTANT**: Epic and feature PRDs must remain technology-agnostic to enable implementation with different technology stacks. The `gspec/stack.md` file is the single source of truth for technology choices.
106
-
107
- **DO use generic architectural terms:**
108
- - ✅ "database", "data store", "persistent storage"
109
- - ✅ "authentication service", "IAM", "identity provider"
110
- - ✅ "API", "backend service", "server"
111
- - ✅ "frontend", "client application", "user interface"
112
- - ✅ "message queue", "event system", "pub/sub"
113
- - ✅ "object storage", "file storage"
114
- - ✅ "cache", "caching layer"
115
- - ✅ "search index", "full-text search"
116
-
117
- **DO NOT reference specific technologies:**
118
- - ❌ React, Vue, Angular, Svelte
119
- - ❌ PostgreSQL, MySQL, MongoDB, DynamoDB
120
- - ❌ AWS Lambda, Google Cloud Functions, Azure Functions
121
- - ❌ Redis, Memcached
122
- - ❌ Elasticsearch, Algolia, Solr
123
- - ❌ S3, GCS, Azure Blob Storage
124
- - ❌ Kafka, RabbitMQ, SQS
125
-
126
- 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.
127
-
128
- ## Epic Summary Document Structure
129
-
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.
131
-
132
- Create a file at `gspec/epics/[epic-name].md` with:
133
-
134
- ### 1. Epic Overview
135
- - Epic name
136
- - Executive summary
137
- - Strategic objective
138
-
139
- ### 2. Features Breakdown
140
- - List of all features with links to their PRDs, **using unchecked markdown checkboxes** (e.g., `- [ ] **P0**: [Feature Name](../features/feature-name.md) — Brief description`). The `gspec-implement` command will check these off (`- [x]`) as features are fully implemented, allowing incremental runs.
141
- - Brief description of each feature
142
- - Priority level (P0, P1, P2)
143
- - Estimated sequencing/dependencies
144
-
145
- ### 3. Success Metrics
146
- - Overall epic success criteria
147
- - Key performance indicators
148
- - How features collectively deliver value
149
-
150
- ### 4. Dependencies & Risks
151
- - Inter-feature dependencies
152
- - Technical dependencies
153
- - Business risks
154
- - Mitigation strategies
155
-
156
- ### 5. Phasing Recommendation
157
- - Suggested build order
158
- - Rationale for sequencing
159
- - Minimum viable epic (MVE) scope
160
-
161
- ## Individual Feature PRD Structure
162
-
163
- **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.
164
-
165
- For each feature, create a separate file in `gspec/features/[feature-name].md` with:
166
-
167
- ### 1. Overview
168
- - Feature name
169
- - Summary (1-2 sentences)
170
- - Problem being solved and why it matters now
171
- - **Parent Epic** (link to epic summary)
172
-
173
- ### 2. Users & Use Cases
174
- - Primary users (use generic role descriptions like "end users", "administrators", "content managers" — not project-specific persona names)
175
- - Key use cases (3-4 scenarios showing how users benefit)
176
-
177
- ### 3. Scope
178
- - In-scope goals
179
- - Out-of-scope items (things this feature explicitly won't do)
180
- - Deferred ideas (things we may do later, but not now)
181
-
182
- ### 4. Capabilities
183
- - What the feature provides to users, written in user-focused language
184
- - **Priority level** for each capability (P0 = must-have, P1 = should-have, P2 = nice-to-have)
185
- - Focus on *what* users can do, not *how* they do it — include UX expectations (empty states, error handling, key flows) as acceptance criteria on the relevant capabilities
186
- - **Use unchecked markdown checkboxes** for each capability to enable implementation tracking (e.g., `- [ ] **P0**: User can create an account`). The `gspec-implement` command will check these off (`- [x]`) as capabilities are implemented, allowing incremental runs.
187
- - **Each capability MUST include brief acceptance criteria** — 2-4 testable conditions that define "done" for that capability. These tell the implementing agent exactly when a capability is complete and give test writers concrete assertions. Format as a sub-list under each capability:
188
- ```
189
- - [ ] **P0**: User can create an account
190
- - Valid email + strong password → account is created and confirmation is sent
191
- - Duplicate email → error message explains email is taken
192
- - Weak password → inline validation shows password requirements
193
- ```
194
-
195
- ### 5. Dependencies
196
- - Dependencies on other features in this epic
197
- - External dependencies
198
- - If none, state "None"
199
-
200
- ### 6. Assumptions & Risks
201
- - Assumptions (what we're taking as true)
202
- - Open questions — **only** unknowns that genuinely cannot be answered until implementation or real-world usage begins (e.g., performance thresholds pending benchmarking, exact rate limits pending load testing). Questions about scope, users, priorities, or feature design must be asked and resolved in the chat before the specs are written. If there are no open questions, omit this sub-section.
203
- - Key risks and mitigations (brief bullet points — focus on risks that could affect implementation scope or approach)
204
-
205
- ### 7. Success Metrics
206
- - 2-4 measurable outcomes that define whether this feature is working
207
-
208
- ### 8. Implementation Context
209
- - Include the following standard note verbatim:
210
- > 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.
211
-
212
- ## Workflow
213
-
214
- 1. **Analyze the epic description** and identify logical feature boundaries
215
- 2. **Ask clarifying questions in the chat** and wait for answers before proceeding — do not generate specs with embedded questions
216
- 3. **Break down into features** that:
217
- - Can be built and shipped incrementally
218
- - Deliver independent user value (when possible)
219
- - Have clear boundaries and responsibilities
220
- - Consider technical and business dependencies
221
- 4. **Create the epic summary** document first
222
- 5. **Generate individual feature PRDs** for each feature
223
- 6. **Ensure consistency** across all documents (terminology, user personas, metrics)
224
-
225
- ## Tone & Style
226
-
227
- - Clear, neutral, product-led
228
- - No fluff, no jargon
229
- - Designed to be skimmed
230
- - Consistent across all generated documents
231
-