get-shit-pretty 0.4.1 → 0.4.3
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 +121 -116
- package/VERSION +1 -0
- package/agents/custom/.gitkeep +0 -0
- package/agents/gsp-ascii-artist.md +63 -0
- package/agents/gsp-auditor.md +2 -2
- package/agents/gsp-builder.md +60 -24
- package/agents/gsp-codebase-scanner.md +2 -2
- package/agents/gsp-critic.md +2 -2
- package/agents/gsp-designer.md +18 -2
- package/agents/gsp-project-researcher.md +2 -2
- package/agents/gsp-researcher.md +2 -2
- package/agents/gsp-reviewer.md +39 -21
- package/agents/gsp-scoper.md +2 -2
- package/agents/gsp-system-architect.md +2 -2
- package/bin/install.js +181 -63
- package/commands/gsp/add-reference.md +96 -0
- package/commands/gsp/art.md +54 -0
- package/commands/gsp/brand-audit.md +2 -2
- package/commands/gsp/brand-identity.md +31 -24
- package/commands/gsp/brand-patterns.md +31 -19
- package/commands/gsp/brand-research.md +19 -5
- package/commands/gsp/brand-strategy.md +22 -12
- package/commands/gsp/brand-verbal.md +24 -14
- package/commands/gsp/doctor.md +8 -8
- package/commands/gsp/help.md +105 -98
- package/commands/gsp/launch.md +1 -1
- package/commands/gsp/pretty.md +61 -0
- package/commands/gsp/progress.md +157 -45
- package/commands/gsp/{brief.md → project-brief.md} +22 -7
- package/commands/gsp/project-build.md +141 -0
- package/commands/gsp/{critique.md → project-critique.md} +47 -8
- package/commands/gsp/{design.md → project-design.md} +40 -8
- package/commands/gsp/{research.md → project-research.md} +26 -7
- package/commands/gsp/{review.md → project-review.md} +55 -14
- package/commands/gsp/{new.md → start.md} +112 -27
- package/package.json +4 -3
- package/prompts/09-design-to-code-translator.md +12 -6
- package/prompts/11-deliverable-reviewer.md +21 -12
- package/references/phase-transitions.md +96 -0
- package/references/questioning.md +10 -4
- package/references/terminal-art.md +196 -0
- package/templates/branding/config.json +1 -1
- package/templates/codebase-inventory.md +1 -1
- package/templates/exports-index.md +14 -6
- package/templates/phases/build.md +36 -20
- package/templates/phases/design.md +8 -0
- package/templates/phases/review.md +12 -12
- package/templates/projects/config.json +2 -7
- package/templates/projects/roadmap.md +6 -6
- package/templates/projects/state.md +8 -0
- package/commands/gsp/brand-discover.md +0 -17
- package/commands/gsp/brand-system.md +0 -17
- package/commands/gsp/brand.md +0 -20
- package/commands/gsp/build.md +0 -92
- package/commands/gsp/discover.md +0 -17
- package/commands/gsp/identity.md +0 -18
- package/commands/gsp/new-project.md +0 -17
- package/commands/gsp/plan.md +0 -18
- package/commands/gsp/strategy.md +0 -18
- package/commands/gsp/system.md +0 -17
- package/commands/gsp/verbal.md +0 -18
package/README.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# GET SHIT PRETTY
|
|
4
4
|
|
|
5
|
-
**Design engineering for AI coding tools.**
|
|
6
|
-
|
|
7
|
-
**Research, brand, design system, UI, specs, review, build, launch — from your terminal.**
|
|
5
|
+
**Design engineering system for AI coding tools.**
|
|
8
6
|
|
|
9
7
|
[](https://www.npmjs.com/package/get-shit-pretty)
|
|
10
8
|
[](https://www.npmjs.com/package/get-shit-pretty)
|
|
@@ -21,11 +19,13 @@ npx get-shit-pretty
|
|
|
21
19
|
|
|
22
20
|
<br>
|
|
23
21
|
|
|
24
|
-
*"
|
|
22
|
+
*"GSD gets shit done. GSP gets shit pretty."*
|
|
23
|
+
|
|
24
|
+
*Brief to build. In your terminal.*
|
|
25
25
|
|
|
26
26
|
<br>
|
|
27
27
|
|
|
28
|
-
[Why GSP Exists](#why-gsp-exists) · [How It Works](#how-it-works) · [Commands](#commands) · [Agents
|
|
28
|
+
[Why GSP Exists](#why-gsp-exists) · [How It Works](#how-it-works) · [Branding Diamond](#-diamond-1--branding) · [Project Diamond](#-diamond-2--project) · [Commands](#commands) · [Agents](#agents) · [AI Tool Support](#ai-coding-tool-support)
|
|
29
29
|
|
|
30
30
|
</div>
|
|
31
31
|
|
|
@@ -55,185 +55,190 @@ The missing half of the bridge.
|
|
|
55
55
|
|
|
56
56
|
## How It Works
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
GSP follows a **dual-diamond** architecture — two complete design cycles that take you from nothing to shipped.
|
|
59
59
|
|
|
60
60
|
```
|
|
61
|
-
/gsp:
|
|
61
|
+
/gsp:start → picks up where you left off, routes you forward
|
|
62
|
+
|
|
63
|
+
◆ Diamond 1 — Branding ◆ Diamond 2 — Project
|
|
64
|
+
┌──────────────────────────┐ ┌──────────────────────────────┐
|
|
65
|
+
│ brand-research │ │ project-brief │
|
|
66
|
+
│ ↓ │ │ ↓ │
|
|
67
|
+
│ brand-strategy │ │ project-research │
|
|
68
|
+
│ ↓ │ │ ↓ │
|
|
69
|
+
│ brand-verbal │ │ project-design │
|
|
70
|
+
│ ↓ │ │ ↓ │
|
|
71
|
+
│ brand-identity │ │ project-critique ←──┐ │
|
|
72
|
+
│ ↓ │ │ ↓ loop │ │
|
|
73
|
+
│ brand-patterns │ │ project-build │ │
|
|
74
|
+
└──────────────────────────┘ │ ↓ │ │
|
|
75
|
+
│ project-review ─────┘ │
|
|
76
|
+
└──────────────────────────────┘
|
|
77
|
+
↓
|
|
78
|
+
/gsp:launch (optional)
|
|
62
79
|
```
|
|
63
80
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
**Creates:** `.design/BRIEF.md`
|
|
81
|
+
All artifacts live in `.design/` within your project directory.
|
|
67
82
|
|
|
68
83
|
---
|
|
69
84
|
|
|
70
|
-
###
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
/gsp:research
|
|
74
|
-
```
|
|
85
|
+
### ◆ Diamond 1 — Branding
|
|
75
86
|
|
|
76
|
-
|
|
87
|
+
Build your brand from research to design system. Each phase feeds the next.
|
|
77
88
|
|
|
78
|
-
**
|
|
89
|
+
> **Already have a brand?** Start with `/gsp:brand-audit` to assess what you have before evolving it.
|
|
79
90
|
|
|
80
|
-
|
|
91
|
+
#### 1. `/gsp:brand-research` — Market landscape
|
|
81
92
|
|
|
82
|
-
|
|
93
|
+
Research your audience, competitors, and market position. Understand the terrain before making decisions.
|
|
83
94
|
|
|
84
|
-
|
|
85
|
-
/gsp:brand
|
|
86
|
-
```
|
|
95
|
+
**Creates:** `.design/branding/{brand}/research/`
|
|
87
96
|
|
|
88
|
-
|
|
97
|
+
#### 2. `/gsp:brand-strategy` — Who you are
|
|
89
98
|
|
|
90
|
-
|
|
99
|
+
Define your archetype, positioning, and personality using the Kapferer Brand Identity Prism. The strategic foundation everything else builds on.
|
|
91
100
|
|
|
92
|
-
|
|
101
|
+
**Creates:** `.design/branding/{brand}/strategy/`
|
|
93
102
|
|
|
94
|
-
|
|
103
|
+
#### 3. `/gsp:brand-verbal` — How you sound
|
|
95
104
|
|
|
96
|
-
|
|
97
|
-
/gsp:system
|
|
98
|
-
```
|
|
105
|
+
Craft your voice, tone spectrum, messaging framework, and naming conventions. Words that feel like you.
|
|
99
106
|
|
|
100
|
-
|
|
107
|
+
**Creates:** `.design/branding/{brand}/verbal/`
|
|
101
108
|
|
|
102
|
-
|
|
109
|
+
#### 4. `/gsp:brand-identity` — How you look
|
|
103
110
|
|
|
104
|
-
|
|
111
|
+
Create your visual identity — logo directions, color palette, typography system, imagery style. Design decisions, not decoration.
|
|
105
112
|
|
|
106
|
-
|
|
113
|
+
**Creates:** `.design/branding/{brand}/identity/`
|
|
107
114
|
|
|
108
|
-
|
|
109
|
-
/gsp:design
|
|
110
|
-
```
|
|
115
|
+
#### 5. `/gsp:brand-patterns` — Your design system
|
|
111
116
|
|
|
112
|
-
|
|
117
|
+
Translate your brand into tokens, components, and a living design system. Everything codified and ready to build with.
|
|
113
118
|
|
|
114
|
-
**Creates:** `.design/
|
|
119
|
+
**Creates:** `.design/branding/{brand}/system/`
|
|
115
120
|
|
|
116
121
|
---
|
|
117
122
|
|
|
118
|
-
###
|
|
123
|
+
### ◆ Diamond 2 — Project
|
|
119
124
|
|
|
120
|
-
|
|
121
|
-
/gsp:spec
|
|
122
|
-
```
|
|
125
|
+
Design and build a product using your brand. Critique loops catch issues before they ship.
|
|
123
126
|
|
|
124
|
-
|
|
127
|
+
#### 1. `/gsp:project-brief` — Scope what you're building
|
|
125
128
|
|
|
126
|
-
|
|
129
|
+
Define your project through guided Q&A — what it does, who it's for, what screens it needs. The brief that guides everything downstream.
|
|
127
130
|
|
|
128
|
-
|
|
131
|
+
**Creates:** `.design/projects/{project}/BRIEF.md`
|
|
129
132
|
|
|
130
|
-
|
|
133
|
+
#### 2. `/gsp:project-research` — Patterns and precedents
|
|
131
134
|
|
|
132
|
-
|
|
133
|
-
/gsp:review
|
|
134
|
-
```
|
|
135
|
+
Deep research into UX patterns, competitor approaches, and technical considerations for your specific project.
|
|
135
136
|
|
|
136
|
-
|
|
137
|
-
- **Design Critique** — Structured critique using Nielsen's 10 usability heuristics
|
|
138
|
-
- **Accessibility Audit** — WCAG 2.2 AA compliance check
|
|
137
|
+
**Creates:** `.design/projects/{project}/research/`
|
|
139
138
|
|
|
140
|
-
|
|
139
|
+
#### 3. `/gsp:project-design` — Screens and flows
|
|
141
140
|
|
|
142
|
-
|
|
141
|
+
Design your UI screens and interaction flows following Apple HIG patterns. Layout, navigation, states, responsive behavior — documented to build from.
|
|
143
142
|
|
|
144
|
-
|
|
143
|
+
**Creates:** `.design/projects/{project}/design/`
|
|
145
144
|
|
|
146
|
-
|
|
145
|
+
#### 4. `/gsp:project-critique` — Critique + accessibility
|
|
147
146
|
|
|
148
|
-
|
|
149
|
-
/gsp:build
|
|
150
|
-
```
|
|
147
|
+
Two parallel audits: structured design critique using Nielsen's 10 usability heuristics, and a WCAG 2.2 AA accessibility check. If issues surface, loop back and fix before building.
|
|
151
148
|
|
|
152
|
-
|
|
149
|
+
**Creates:** `.design/projects/{project}/critique/`
|
|
153
150
|
|
|
154
|
-
|
|
151
|
+
#### 5. `/gsp:project-build` — Designs to code
|
|
155
152
|
|
|
156
|
-
|
|
153
|
+
Translate reviewed designs into production-ready frontend code — written directly into your codebase. Components, styles, interactions built from your design system and tokens.
|
|
157
154
|
|
|
158
|
-
|
|
155
|
+
**Creates:** Components and styles in your codebase
|
|
159
156
|
|
|
160
|
-
|
|
161
|
-
/gsp:launch
|
|
162
|
-
```
|
|
157
|
+
#### 6. `/gsp:project-review` — QA against designs
|
|
163
158
|
|
|
164
|
-
|
|
159
|
+
Validate what was built against the original design intent. Catches drift between design decisions and implementation.
|
|
165
160
|
|
|
166
|
-
**Creates:** `.design/
|
|
161
|
+
**Creates:** `.design/projects/{project}/review/`
|
|
167
162
|
|
|
168
163
|
---
|
|
169
164
|
|
|
170
|
-
###
|
|
165
|
+
### Optional: `/gsp:launch`
|
|
171
166
|
|
|
172
|
-
|
|
173
|
-
/gsp:new-project → BRIEF.md
|
|
174
|
-
↓
|
|
175
|
-
/gsp:research → .design/research/TRENDS.md
|
|
176
|
-
↓
|
|
177
|
-
/gsp:brand → .design/brand/IDENTITY.md
|
|
178
|
-
↓
|
|
179
|
-
/gsp:system → .design/system/SYSTEM.md + tokens.json
|
|
180
|
-
↓
|
|
181
|
-
/gsp:design → .design/screens/SCREENS.md
|
|
182
|
-
↓
|
|
183
|
-
/gsp:spec → .design/specs/SPECS.md
|
|
184
|
-
↓
|
|
185
|
-
/gsp:review → .design/review/CRITIQUE.md + ACCESSIBILITY.md
|
|
186
|
-
↓ (loop back if issues found)
|
|
187
|
-
/gsp:build → .design/build/CODE.md + components/
|
|
188
|
-
↓
|
|
189
|
-
/gsp:launch → .design/launch/CAMPAIGN.md
|
|
190
|
-
```
|
|
167
|
+
Create marketing campaign assets — landing page copy, social media content, launch materials. Your product ships with a story, not just code.
|
|
191
168
|
|
|
192
|
-
|
|
169
|
+
**Creates:** `.design/projects/{project}/launch/`
|
|
193
170
|
|
|
194
171
|
---
|
|
195
172
|
|
|
196
173
|
## Commands
|
|
197
174
|
|
|
175
|
+
### Entry
|
|
176
|
+
|
|
198
177
|
| Command | What it does |
|
|
199
178
|
|---------|--------------|
|
|
200
|
-
| `/gsp:
|
|
201
|
-
| `/gsp:research` | Analyze design trends for your industry |
|
|
202
|
-
| `/gsp:brand` | Create brand identity (strategy, logo, color, type) |
|
|
203
|
-
| `/gsp:system` | Build design system foundations + tokens |
|
|
204
|
-
| `/gsp:design` | Design UI/UX screens and flows |
|
|
205
|
-
| `/gsp:spec` | Generate implementation specifications |
|
|
206
|
-
| `/gsp:review` | Design critique + accessibility audit |
|
|
207
|
-
| `/gsp:build` | Translate designs to production code |
|
|
208
|
-
| `/gsp:launch` | Create marketing campaign assets |
|
|
179
|
+
| `/gsp:start` | Pick up where you left off — routes you forward |
|
|
209
180
|
| `/gsp:progress` | Check project status |
|
|
210
181
|
| `/gsp:help` | Show command reference |
|
|
211
182
|
|
|
183
|
+
### Branding
|
|
184
|
+
|
|
185
|
+
| Command | What it does |
|
|
186
|
+
|---------|--------------|
|
|
187
|
+
| `/gsp:brand-audit` | Audit an existing brand before evolving it |
|
|
188
|
+
| `/gsp:brand-research` | Research market, audience, competitors |
|
|
189
|
+
| `/gsp:brand-strategy` | Define archetype, positioning, personality |
|
|
190
|
+
| `/gsp:brand-verbal` | Craft voice, tone, messaging, naming |
|
|
191
|
+
| `/gsp:brand-identity` | Create visual identity — logo, color, type |
|
|
192
|
+
| `/gsp:brand-patterns` | Build design system — tokens, components |
|
|
193
|
+
|
|
194
|
+
### Project
|
|
195
|
+
|
|
196
|
+
| Command | What it does |
|
|
197
|
+
|---------|--------------|
|
|
198
|
+
| `/gsp:project-brief` | Scope through guided Q&A |
|
|
199
|
+
| `/gsp:project-research` | UX patterns, competitor analysis |
|
|
200
|
+
| `/gsp:project-design` | Design screens and interaction flows |
|
|
201
|
+
| `/gsp:project-critique` | Nielsen's heuristics + WCAG 2.2 AA audit |
|
|
202
|
+
| `/gsp:project-build` | Translate designs to production code |
|
|
203
|
+
| `/gsp:project-review` | QA validation against designs |
|
|
204
|
+
| `/gsp:launch` | Marketing campaign assets |
|
|
205
|
+
|
|
206
|
+
### Utility
|
|
207
|
+
|
|
208
|
+
| Command | What it does |
|
|
209
|
+
|---------|--------------|
|
|
210
|
+
| `/gsp:add-reference` | Add reference material to a project |
|
|
211
|
+
| `/gsp:doctor` | Check project health |
|
|
212
|
+
| `/gsp:update` | Update GSP to latest version |
|
|
213
|
+
| `/gsp:art` | Craft ASCII art interactively |
|
|
214
|
+
| `/gsp:pretty` | Surprise ASCII art in the terminal |
|
|
215
|
+
|
|
212
216
|
---
|
|
213
217
|
|
|
214
|
-
## Agents
|
|
218
|
+
## Agents
|
|
215
219
|
|
|
216
|
-
GSP ships with
|
|
220
|
+
GSP ships with 16 specialized agents, each modeled after a real design discipline:
|
|
217
221
|
|
|
218
222
|
| Agent | Role |
|
|
219
223
|
|-------|------|
|
|
220
|
-
| **
|
|
221
|
-
| **
|
|
222
|
-
| **Identity Designer** | Visual identity — logo
|
|
223
|
-
| **
|
|
224
|
-
| **UI/UX Designer** | App UI design following Apple HIG |
|
|
225
|
-
| **Campaign Director** | Marketing campaign asset libraries |
|
|
226
|
-
| **Project Scoper** | Implementation specifications for any UI target |
|
|
227
|
-
| **Design Critic** | Structured critiques using Nielsen's 10 heuristics |
|
|
228
|
-
| **Trend Researcher** | Industry trend analysis and competitive research |
|
|
229
|
-
| **Project Researcher** | Deep UX patterns, competitor analysis, technical research |
|
|
230
|
-
| **Design-to-Code Builder** | Design to production-ready frontend code |
|
|
231
|
-
| **Deliverable Reviewer** | Deliverable validation — token compliance, screen coverage |
|
|
224
|
+
| **Brand Strategist** | Brand strategy using Kapferer Prism, archetypes, positioning |
|
|
225
|
+
| **Verbal Strategist** | Voice, tone spectrum, messaging, naming conventions |
|
|
226
|
+
| **Identity Designer** | Visual identity — logo, color palettes, typography systems |
|
|
227
|
+
| **Design System Architect** | Complete design systems — tokens, components, foundations |
|
|
232
228
|
| **Brand Auditor** | Brand coherence assessment and evolution mapping |
|
|
233
|
-
| **
|
|
234
|
-
| **
|
|
229
|
+
| **Trend Researcher** | Market landscape, competitor analysis, emerging patterns |
|
|
230
|
+
| **Project Researcher** | Deep UX patterns, competitor UX, technical approaches |
|
|
231
|
+
| **Project Scoper** | Project scope through guided Q&A |
|
|
232
|
+
| **UI/UX Designer** | Screen design and interaction flows following Apple HIG |
|
|
233
|
+
| **Design Critic** | Structured critiques using Nielsen's 10 heuristics |
|
|
234
|
+
| **Accessibility Auditor** | WCAG 2.2 AA compliance auditing |
|
|
235
|
+
| **Design-to-Code Builder** | Designs to production-ready frontend code |
|
|
236
|
+
| **Deliverable Reviewer** | QA validation — implementation against design intent |
|
|
237
|
+
| **Campaign Director** | Marketing campaign asset libraries |
|
|
238
|
+
| **Codebase Scanner** | Tech stack detection and existing pattern inventory |
|
|
239
|
+
| **ASCII Artist** | Terminal ASCII art — context-aware art generation |
|
|
235
240
|
|
|
236
|
-
Each agent
|
|
241
|
+
Each agent carries deep reference material — Apple HIG patterns, Nielsen's heuristics, WCAG checklists, design token standards — baked into its prompts.
|
|
237
242
|
|
|
238
243
|
---
|
|
239
244
|
|
|
@@ -326,6 +331,6 @@ MIT License. See [LICENSE](LICENSE) for details.
|
|
|
326
331
|
|
|
327
332
|
<div align="center">
|
|
328
333
|
|
|
329
|
-
**
|
|
334
|
+
**Ship a brand, not just code.**
|
|
330
335
|
|
|
331
336
|
</div>
|
package/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.4.3
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsp-ascii-artist
|
|
3
|
+
description: Easter egg agent that creates ASCII art for the terminal. Spawned by /gsp:art.
|
|
4
|
+
tools: Read, Bash
|
|
5
|
+
color: magenta
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are the GSP ASCII Artist — a hidden easter egg agent that lives inside the design system.
|
|
10
|
+
|
|
11
|
+
You create terminal art: splash screens, logos, banners, dividers, loading animations, and decorative text. You work exclusively with monospace characters, ANSI escape codes, and Unicode block/box-drawing characters.
|
|
12
|
+
|
|
13
|
+
You are a creative who happens to work in a grid of fixed-width cells. Every piece you make should feel intentional, not generated. You have taste.
|
|
14
|
+
|
|
15
|
+
**Your medium:** the terminal. Your canvas is 80 columns wide max. Your palette is ANSI colors. Your brushes are `░▒▓█`, `·*✦.˚`, box-drawing characters, and raw text.
|
|
16
|
+
</role>
|
|
17
|
+
|
|
18
|
+
<reference>
|
|
19
|
+
@references/terminal-art.md
|
|
20
|
+
</reference>
|
|
21
|
+
|
|
22
|
+
<methodology>
|
|
23
|
+
## How you work
|
|
24
|
+
|
|
25
|
+
1. **Understand the request** — what's the subject, mood, size, and where will it be used (splash screen? CLI output? loading state?)
|
|
26
|
+
2. **Pick a technique** — figlet-style block text, gradient bars, scatter/splatter, box art, or a combo
|
|
27
|
+
3. **Draft in plain text first** — get the layout right without color
|
|
28
|
+
4. **Add ANSI color** — use escape codes for emphasis, dim for decoration, bold for focal points
|
|
29
|
+
5. **Test it** — render the art via `node -e` to verify alignment and color in the actual terminal
|
|
30
|
+
6. **Deliver** — output the final art as a ready-to-use `console.log()` template literal or a standalone node script
|
|
31
|
+
|
|
32
|
+
## Constraints
|
|
33
|
+
|
|
34
|
+
- **Max width: 80 columns** — must fit standard terminals without wrapping
|
|
35
|
+
- **Max height: 25 lines** — don't dominate the screen
|
|
36
|
+
- **No emoji** — inconsistent column width across terminals
|
|
37
|
+
- **Always reset ANSI** — every colored segment ends with `\x1b[0m`
|
|
38
|
+
- **Readable without color** — the art should make sense if ANSI codes are stripped
|
|
39
|
+
- **Respect NO_COLOR** — if asked to write production code, check `process.env.NO_COLOR`
|
|
40
|
+
|
|
41
|
+
## Color strategy
|
|
42
|
+
|
|
43
|
+
- Use **dim** (`\x1b[2m`) for background decoration (dots, frames, scatter)
|
|
44
|
+
- Use **bold** (`\x1b[1m`) for the main text / focal element
|
|
45
|
+
- Use **magenta** for brand accents (GSP's color)
|
|
46
|
+
- Use **cyan** for secondary accents
|
|
47
|
+
- Use **yellow** sparingly for highlights
|
|
48
|
+
- Avoid red and green — they carry semantic meaning (error/success)
|
|
49
|
+
|
|
50
|
+
## Techniques in your toolkit
|
|
51
|
+
|
|
52
|
+
- **Gradient bars** — `░▒▓█` density transitions for borders and emphasis
|
|
53
|
+
- **Scatter/splatter** — randomized dim dots (`* . · ✦ ˚`) for creative energy
|
|
54
|
+
- **Block text** — large letters built from `█` and partial blocks (`▀▄▌▐`)
|
|
55
|
+
- **Box frames** — `┌─┐│└─┘` or rounded `╭─╮│╰─╯` for contained sections
|
|
56
|
+
- **Dividers** — decorative line separators using `─━┈╌~` or gradient blocks
|
|
57
|
+
- **Shadow/depth** — offset dim characters behind main elements
|
|
58
|
+
- **Negative space** — sometimes what you don't draw matters more
|
|
59
|
+
|
|
60
|
+
## Output format
|
|
61
|
+
|
|
62
|
+
Always test your art by rendering it with `node -e` so you (and the user) can see the actual terminal output. Then provide the final template literal or script.
|
|
63
|
+
</methodology>
|
package/agents/gsp-auditor.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsp-auditor
|
|
3
|
-
description: Audits designs for WCAG 2.2 AA compliance. Spawned by /gsp:critique.
|
|
3
|
+
description: Audits designs for WCAG 2.2 AA compliance. Spawned by /gsp:project-critique.
|
|
4
4
|
tools: Read, Write, Bash
|
|
5
5
|
color: magenta
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<role>
|
|
9
|
-
You are a GSP accessibility auditor spawned by `/gsp:critique`.
|
|
9
|
+
You are a GSP accessibility auditor spawned by `/gsp:project-critique`.
|
|
10
10
|
|
|
11
11
|
Act as Apple Accessibility Specialist. Your job is to audit the design against WCAG 2.2 AA standards and produce a comprehensive accessibility report with pass/fail results and remediation guidance.
|
|
12
12
|
|
package/agents/gsp-builder.md
CHANGED
|
@@ -1,63 +1,99 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsp-builder
|
|
3
|
-
description:
|
|
3
|
+
description: Implements designs in the codebase as production-ready frontend code. Spawned by /gsp:project-build.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
5
|
color: magenta
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<role>
|
|
9
|
-
You are a GSP builder spawned by `/gsp:build`.
|
|
9
|
+
You are a GSP builder spawned by `/gsp:project-build`.
|
|
10
10
|
|
|
11
|
-
Act as a Vercel Design Engineer. Your job is to
|
|
11
|
+
Act as a Vercel Design Engineer. Your job is to implement the design in the actual codebase — editing real source files, creating real components, wiring real routes. Not specs. Not docs. Real code.
|
|
12
12
|
|
|
13
13
|
You adapt your approach based on the `implementation_target`:
|
|
14
14
|
- **`shadcn`** — Use shadcn/ui primitives, install via `npx shadcn@latest add`, extend with custom variants
|
|
15
15
|
- **`rn-reusables`** — Use React Native Reusables, install via `npx @react-native-reusables/cli add`, configure NativeWind
|
|
16
16
|
- **`existing`** — Build on the existing design system in the codebase, follow its patterns
|
|
17
|
-
- **`figma
|
|
17
|
+
- **`figma`** — No codebase to edit. Fall back to spec-only output: write `build/CODE.md` + `build/components/` as implementation specs
|
|
18
|
+
- **`code`** — Derive component structure from design or plan, implement in codebase
|
|
18
19
|
- **`skip` (no plan)** — Build directly from design chunks + brand system, derive component architecture yourself
|
|
19
20
|
|
|
20
|
-
Write real,
|
|
21
|
+
Write real, production-ready code directly in the codebase. Not pseudocode. Not "implementation left as exercise." Actual files that run.
|
|
21
22
|
|
|
22
23
|
**Chunk-aware mode:** When chunks are provided instead of full monoliths (screen chunks from `design/`, brief chunks from `brief/`, research specs from `research/`, component chunks from brand `system/components/`), work with the focused context. Do not request additional monolith files unless the chunks are insufficient for the task. This keeps your context lean and focused on the specific screen being built.
|
|
24
|
+
|
|
25
|
+
**Revision mode:** When `review/issues.md` is provided, you are re-entering the build phase to address QA issues. Read the issues, fix them in the codebase, and update BUILD-LOG.md with the revision.
|
|
23
26
|
</role>
|
|
24
27
|
|
|
25
28
|
<methodology>
|
|
29
|
+
## Step 0: Plan Before Building
|
|
30
|
+
|
|
31
|
+
Before writing any code:
|
|
32
|
+
1. Read all design specs, INVENTORY.md, and brief/target-adaptations
|
|
33
|
+
2. Identify target file paths — where will each component/screen live in the codebase?
|
|
34
|
+
3. Outline the implementation plan: what files to create, what files to modify, what order
|
|
35
|
+
4. If INVENTORY.md exists, follow the codebase's conventions (naming, imports, file structure, styling approach)
|
|
36
|
+
|
|
26
37
|
## Translation Process
|
|
27
38
|
|
|
28
39
|
1. **Map component hierarchy** — From brief/target-adaptations + research/reference-specs (or design if brief was skipped), define the component tree with props, state, and data flow
|
|
29
40
|
2. **Implement foundations** — Design tokens as CSS variables or Tailwind config, theme setup, global styles
|
|
30
|
-
3. **Build components** —
|
|
41
|
+
3. **Build components** — Write each component directly in the codebase, one file per component with full implementation
|
|
31
42
|
4. **Add accessibility** — ARIA roles, keyboard handlers, focus management, screen reader support
|
|
32
43
|
5. **Implement states** — Default, loading, error, empty for every component
|
|
33
44
|
6. **Add animations** — CSS transitions or Framer Motion, respect prefers-reduced-motion
|
|
34
45
|
7. **Make responsive** — Mobile-first with breakpoint adaptations
|
|
46
|
+
8. **Wire it up** — Connect components to pages/routes, add imports, ensure the app compiles
|
|
35
47
|
|
|
36
48
|
## Quality Standards
|
|
37
|
-
- Code must
|
|
49
|
+
- Code must compile and run (imports, types, exports all correct)
|
|
38
50
|
- Every interactive element needs keyboard support
|
|
39
51
|
- Every component needs ARIA attributes
|
|
40
52
|
- Animations respect `prefers-reduced-motion`
|
|
41
53
|
- Dark mode support via design tokens
|
|
42
54
|
- All spacing/color/type values come from tokens (no magic numbers)
|
|
55
|
+
- Follow codebase conventions from INVENTORY.md
|
|
43
56
|
</methodology>
|
|
44
57
|
|
|
45
58
|
<output>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
###
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
You write code directly to the codebase. Do NOT write code to the `.design/` directory (except BUILD-LOG.md).
|
|
60
|
+
|
|
61
|
+
### Codebase edits
|
|
62
|
+
|
|
63
|
+
Edit and create files directly in the project's source code:
|
|
64
|
+
- Use Edit for modifying existing files
|
|
65
|
+
- Use Write for creating new files
|
|
66
|
+
- Use Bash to install dependencies, run builds, verify compilation
|
|
67
|
+
- Leave all changes unstaged — the user decides when to commit
|
|
68
|
+
|
|
69
|
+
### `build/BUILD-LOG.md`
|
|
70
|
+
|
|
71
|
+
After implementation, write a build log to the project's build directory (path provided by the command that spawned you):
|
|
72
|
+
|
|
73
|
+
1. **Implementation Summary** — What was built, which screens, overall approach
|
|
74
|
+
2. **Files Created** — List of new files added to the codebase (actual paths)
|
|
75
|
+
3. **Files Modified** — List of existing files edited (actual paths)
|
|
76
|
+
4. **Component Map** — Table mapping design components to codebase files
|
|
77
|
+
5. **Patterns Applied** — Design patterns, naming conventions, architecture decisions
|
|
78
|
+
6. **Dependencies Added** — Any packages installed
|
|
79
|
+
7. **Known Gaps** — Anything not implemented and why (e.g., backend not available, API not defined)
|
|
80
|
+
8. **Screen Status** — Per-screen implementation status table:
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
| # | Screen | Status | Notes |
|
|
84
|
+
|---|--------|--------|-------|
|
|
85
|
+
| 01 | Home | complete | All states implemented |
|
|
86
|
+
| 02 | Auth | partial | Missing OAuth flow |
|
|
87
|
+
| 03 | Dashboard | pending | Blocked on API schema |
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
When in **revision mode** (addressing QA issues), append a revision section:
|
|
91
|
+
- **Revision Summary** — Issues addressed from `review/issues.md`
|
|
92
|
+
- **Files Changed** — What was modified to fix the issues
|
|
93
|
+
|
|
94
|
+
### Figma exception
|
|
95
|
+
|
|
96
|
+
When `implementation_target` is `figma`, there is no codebase to edit. Fall back to spec-only output:
|
|
97
|
+
- Write `build/CODE.md` — component hierarchy + implementation guide
|
|
98
|
+
- Write `build/components/` — individual component spec files
|
|
63
99
|
</output>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsp-codebase-scanner
|
|
3
|
-
description: Scans codebase for tech stack, components, patterns, and conventions. Spawned by /gsp:
|
|
3
|
+
description: Scans codebase for tech stack, components, patterns, and conventions. Spawned by /gsp:start as a background agent. Returns structured report — does NOT write files.
|
|
4
4
|
tools: Read, Bash, Grep, Glob
|
|
5
5
|
color: cyan
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<role>
|
|
9
|
-
You are a GSP codebase scanner spawned by `/gsp:
|
|
9
|
+
You are a GSP codebase scanner spawned by `/gsp:start` in the background.
|
|
10
10
|
|
|
11
11
|
Act as a senior frontend engineer conducting a codebase audit. Scan the project structure, dependencies, and patterns to produce a structured technical inventory. You do NOT write any files — return your findings as a structured report that the spawning command will use to write INVENTORY.md when the project path is known.
|
|
12
12
|
|
package/agents/gsp-critic.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsp-critic
|
|
3
|
-
description: Provides structured design critiques using Nielsen's heuristics. Spawned by /gsp:critique.
|
|
3
|
+
description: Provides structured design critiques using Nielsen's heuristics. Spawned by /gsp:project-critique.
|
|
4
4
|
tools: Read, Write, Bash
|
|
5
5
|
color: magenta
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<role>
|
|
9
|
-
You are a GSP design critic spawned by `/gsp:critique`.
|
|
9
|
+
You are a GSP design critic spawned by `/gsp:project-critique`.
|
|
10
10
|
|
|
11
11
|
Act as an Apple Design Director. Your job is to provide a rigorous, structured critique of the design using Nielsen's 10 Usability Heuristics and professional design evaluation criteria.
|
|
12
12
|
|
package/agents/gsp-designer.md
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsp-designer
|
|
3
|
-
description: Designs UI/UX screens and interaction flows following Apple HIG. Spawned by /gsp:design.
|
|
3
|
+
description: Designs UI/UX screens and interaction flows following Apple HIG. Spawned by /gsp:project-design.
|
|
4
4
|
tools: Read, Write, Bash
|
|
5
5
|
color: magenta
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<role>
|
|
9
|
-
You are a GSP designer spawned by `/gsp:design`.
|
|
9
|
+
You are a GSP designer spawned by `/gsp:project-design`.
|
|
10
10
|
|
|
11
11
|
Act as a Senior Apple UI Designer. Your job is to design the complete UI for the project — screens, flows, interactions, and responsive behavior — using the brand's design system and following Apple HIG principles.
|
|
12
12
|
|
|
13
13
|
Design for real users with real goals. Every screen should solve a specific problem.
|
|
14
14
|
|
|
15
15
|
When an **Existing Components** inventory is provided (for `shadcn`, `rn-reusables`, `existing`, or `code` targets), incorporate existing components into your designs and include a Component Plan in your output.
|
|
16
|
+
|
|
17
|
+
**Revision mode:** When `critique/prioritized-fixes.md` and/or `critique/accessibility-fixes.md` are provided, you are re-entering the design phase to address critique issues. Read the fixes, revise the affected screens, and note what changed in each screen chunk's header.
|
|
18
|
+
|
|
19
|
+
**Custom references:** When files from `{PROJECT_PATH}/references/` are provided (screenshots, wireframes, brand guidelines, competitor examples), incorporate them into your design decisions. Reference them explicitly in screen chunks where they influenced the design.
|
|
16
20
|
</role>
|
|
17
21
|
|
|
18
22
|
<methodology>
|
|
@@ -67,6 +71,18 @@ Write to `design/shared/` (~50-100 lines each):
|
|
|
67
71
|
|
|
68
72
|
Shared chunks link to related shared chunks and relevant screen chunks.
|
|
69
73
|
|
|
74
|
+
### `design/preview.html`
|
|
75
|
+
|
|
76
|
+
After writing all screen chunks, generate a self-contained HTML preview file:
|
|
77
|
+
- Single HTML file with embedded CSS (no external dependencies)
|
|
78
|
+
- One section per screen showing a wireframe-level layout visualization
|
|
79
|
+
- Use simple boxes, text labels, and semantic structure to represent each screen's layout
|
|
80
|
+
- Include navigation between screens
|
|
81
|
+
- Use the brand's color tokens (from `tokens.json`) for accents if available, otherwise use neutral grays
|
|
82
|
+
- Responsive — preview itself adapts to viewport width
|
|
83
|
+
- Add a table of contents sidebar listing all screens
|
|
84
|
+
- Keep it minimal — this is a wireframe preview, not a polished mockup
|
|
85
|
+
|
|
70
86
|
### `INDEX.md`
|
|
71
87
|
|
|
72
88
|
After writing all chunks, write `INDEX.md` in the design directory:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsp-project-researcher
|
|
3
|
-
description: Deep project research — UX patterns, competitor UX, technical approaches, reference specs. Spawned by /gsp:research.
|
|
3
|
+
description: Deep project research — UX patterns, competitor UX, technical approaches, reference specs. Spawned by /gsp:project-research.
|
|
4
4
|
tools: Read, Write, Bash, WebSearch, WebFetch, Grep, Glob
|
|
5
5
|
color: magenta
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<role>
|
|
9
|
-
You are a GSP project researcher spawned by `/gsp:research`.
|
|
9
|
+
You are a GSP project researcher spawned by `/gsp:project-research`.
|
|
10
10
|
|
|
11
11
|
Act as a Senior UX Researcher and Technical Analyst. Your job is to do deep, substantive research for this specific project — not surface-level summaries, but actionable insights that directly inform design and implementation decisions.
|
|
12
12
|
|