get-shit-pretty 0.6.2 → 0.6.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 +7 -12
- package/bin/install.js +96 -71
- package/gsp/agents/gsp-accessibility-auditor.md +3 -3
- package/gsp/agents/gsp-ascii-artist.md +1 -1
- package/gsp/agents/gsp-brand-auditor.md +2 -2
- package/gsp/agents/gsp-brand-engineer.md +131 -0
- package/gsp/agents/gsp-brand-strategist.md +2 -2
- package/gsp/agents/gsp-brand-syncer.md +8 -7
- package/gsp/agents/gsp-builder.md +48 -5
- package/gsp/agents/gsp-campaign-director.md +2 -3
- package/gsp/agents/gsp-creative-director.md +80 -0
- package/gsp/agents/gsp-critic.md +99 -17
- package/gsp/agents/gsp-designer.md +51 -4
- package/gsp/agents/gsp-project-researcher.md +3 -3
- package/gsp/agents/gsp-researcher.md +4 -4
- package/gsp/agents/gsp-reviewer.md +2 -2
- package/gsp/agents/gsp-scoper.md +2 -2
- package/gsp/hooks/hooks.json +5 -5
- package/gsp/references/design-trends.md +4 -4
- package/gsp/references/phase-transitions.md +12 -12
- package/gsp/references/questioning.md +1 -1
- package/gsp/references/token-mapping.md +329 -0
- package/gsp/skills/gsp-3d/SKILL.md +112 -0
- package/gsp/skills/gsp-accessibility/SKILL.md +11 -11
- package/gsp/skills/gsp-accessibility-audit/SKILL.md +6 -7
- package/gsp/skills/gsp-add-reference/SKILL.md +1 -1
- package/gsp/skills/gsp-art/SKILL.md +1 -1
- package/gsp/skills/gsp-brand-audit/SKILL.md +3 -3
- package/gsp/skills/gsp-brand-guidelines/SKILL.md +233 -0
- package/gsp/skills/gsp-brand-identity/SKILL.md +27 -18
- package/gsp/skills/gsp-brand-refine/SKILL.md +29 -22
- package/gsp/skills/gsp-brand-research/SKILL.md +2 -2
- package/gsp/skills/gsp-brand-strategy/SKILL.md +3 -3
- package/gsp/skills/gsp-brand-sync/SKILL.md +7 -7
- package/gsp/skills/gsp-color/SKILL.md +105 -0
- package/gsp/skills/gsp-design-system/SKILL.md +4 -4
- package/gsp/skills/gsp-doctor/SKILL.md +25 -18
- package/gsp/skills/gsp-help/SKILL.md +28 -28
- package/gsp/skills/gsp-icons/SKILL.md +108 -0
- package/gsp/skills/gsp-images/SKILL.md +197 -0
- package/gsp/skills/gsp-launch/SKILL.md +2 -3
- package/gsp/skills/gsp-logo/SKILL.md +173 -0
- package/gsp/skills/gsp-palette/SKILL.md +13 -13
- package/gsp/skills/gsp-pretty/SKILL.md +2 -2
- package/gsp/skills/gsp-progress/SKILL.md +20 -20
- package/gsp/skills/gsp-project-brief/SKILL.md +7 -8
- package/gsp/skills/gsp-project-build/SKILL.md +21 -21
- package/gsp/skills/gsp-project-critique/SKILL.md +13 -14
- package/gsp/skills/gsp-project-design/SKILL.md +17 -17
- package/gsp/skills/gsp-project-research/SKILL.md +5 -6
- package/gsp/skills/gsp-project-review/SKILL.md +7 -9
- package/gsp/skills/gsp-scaffold/SKILL.md +3 -3
- package/gsp/skills/gsp-start/SKILL.md +14 -14
- package/gsp/skills/gsp-style/SKILL.md +41 -43
- package/gsp/skills/gsp-style/styles/INDEX.yml +1 -1
- package/gsp/skills/gsp-style/styles/academia.yml +80 -0
- package/gsp/skills/gsp-style/styles/art-deco.yml +81 -0
- package/gsp/skills/gsp-style/styles/bauhaus.yml +78 -0
- package/gsp/skills/gsp-style/styles/bold-typography.yml +73 -0
- package/gsp/skills/gsp-style/styles/botanical.yml +78 -0
- package/gsp/skills/gsp-style/styles/claymorphism.yml +84 -0
- package/gsp/skills/gsp-style/styles/cyberpunk.yml +87 -0
- package/gsp/skills/gsp-style/styles/enterprise.yml +81 -0
- package/gsp/skills/gsp-style/styles/flat-design.yml +67 -0
- package/gsp/skills/gsp-style/styles/fluent.yml +82 -0
- package/gsp/skills/gsp-style/styles/glassmorphism.yml +83 -0
- package/gsp/skills/gsp-style/styles/humanist-literary.yml +74 -0
- package/gsp/skills/gsp-style/styles/industrial.yml +82 -0
- package/gsp/skills/gsp-style/styles/kinetic.yml +94 -0
- package/gsp/skills/gsp-style/styles/liquid-glass.yml +91 -0
- package/gsp/skills/gsp-style/styles/luxury.yml +83 -0
- package/gsp/skills/gsp-style/styles/material.yml +83 -0
- package/gsp/skills/gsp-style/styles/maximalism.yml +92 -0
- package/gsp/skills/gsp-style/styles/minimal-dark.yml +75 -0
- package/gsp/skills/gsp-style/styles/modern-dark.yml +88 -0
- package/gsp/skills/gsp-style/styles/monochrome.yml +68 -0
- package/gsp/skills/gsp-style/styles/neubrutalism.yml +83 -0
- package/gsp/skills/gsp-style/styles/neumorphism.yml +77 -0
- package/gsp/skills/gsp-style/styles/newsprint.yml +81 -0
- package/gsp/skills/gsp-style/styles/organic.yml +77 -0
- package/gsp/skills/gsp-style/styles/playful-geometric.yml +90 -0
- package/gsp/skills/gsp-style/styles/professional.yml +67 -0
- package/gsp/skills/gsp-style/styles/retro.yml +85 -0
- package/gsp/skills/gsp-style/styles/saas.yml +83 -0
- package/gsp/skills/gsp-style/styles/sketch.yml +86 -0
- package/gsp/skills/gsp-style/styles/swiss-minimalist.yml +69 -0
- package/gsp/skills/gsp-style/styles/terminal.yml +83 -0
- package/gsp/skills/gsp-style/styles/vaporwave.yml +84 -0
- package/gsp/skills/gsp-style/styles/web3.yml +82 -0
- package/gsp/skills/gsp-textures/SKILL.md +132 -0
- package/gsp/skills/gsp-typescale/SKILL.md +11 -11
- package/gsp/skills/gsp-typography/SKILL.md +108 -0
- package/gsp/skills/gsp-update/SKILL.md +1 -2
- package/gsp/skills/gsp-video/SKILL.md +101 -0
- package/gsp/templates/branding/config.json +1 -1
- package/gsp/templates/branding/roadmap.md +9 -9
- package/gsp/templates/exports-index.md +8 -8
- package/gsp/templates/phases/build.md +1 -1
- package/gsp/templates/phases/design.md +1 -1
- package/gsp/templates/phases/patterns.md +60 -71
- package/gsp/templates/phases/style.md +158 -0
- package/gsp/templates/projects/config.json +1 -1
- package/gsp/templates/projects/roadmap.md +7 -7
- package/gsp/templates/projects/state.md +1 -1
- package/package.json +1 -2
- package/.claude-plugin/plugin.json +0 -24
- package/gsp/agents/gsp-identity-designer.md +0 -74
- package/gsp/agents/gsp-pattern-architect.md +0 -189
- package/gsp/prompts/01-design-system-architect.md +0 -19
- package/gsp/prompts/02-brand-identity-creator.md +0 -16
- package/gsp/prompts/03-ui-ux-pattern-master.md +0 -21
- package/gsp/prompts/04-marketing-asset-factory.md +0 -14
- package/gsp/prompts/05-implementation-spec-expert.md +0 -15
- package/gsp/prompts/06-design-critique-partner.md +0 -14
- package/gsp/prompts/07-design-trend-synthesizer.md +0 -3
- package/gsp/prompts/08-accessibility-auditor.md +0 -23
- package/gsp/prompts/09-design-to-code-translator.md +0 -49
- package/gsp/prompts/10-project-scoper.md +0 -17
- package/gsp/prompts/11-deliverable-reviewer.md +0 -18
- package/gsp/prompts/12-project-researcher.md +0 -18
- package/gsp/skills/gsp-brand-patterns/SKILL.md +0 -240
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# The Accessibility Auditor
|
|
2
|
-
|
|
3
|
-
**Category:** Accessibility
|
|
4
|
-
**Use when:** Auditing a design or codebase for WCAG 2.2 compliance
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Prompt
|
|
9
|
-
|
|
10
|
-
Act as Apple Accessibility Specialist. Audit [DESIGN_OR_CODE] against WCAG 2.2 AA.
|
|
11
|
-
|
|
12
|
-
## Code Audit Mode
|
|
13
|
-
|
|
14
|
-
When spawned by `/gsp:accessibility --code`, shift focus to codebase analysis:
|
|
15
|
-
- Use Grep/Glob to find accessibility issues in actual source files
|
|
16
|
-
- Check for missing ARIA attributes, alt text, keyboard handlers, lang attributes
|
|
17
|
-
- Verify skip-nav, heading hierarchy, semantic HTML, focus management
|
|
18
|
-
- Report issues with actual file paths and line numbers
|
|
19
|
-
- Prioritize issues by severity (Critical > Major > Minor)
|
|
20
|
-
|
|
21
|
-
## Variables
|
|
22
|
-
|
|
23
|
-
- `[DESIGN_OR_CODE]` — Design chunks to audit, or codebase paths for code audit mode
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# The Design-to-Code Translator
|
|
2
|
-
|
|
3
|
-
**Category:** Design Engineering
|
|
4
|
-
**Use when:** Converting a design into production-ready frontend code
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Prompt
|
|
9
|
-
|
|
10
|
-
Act as a Vercel Design Engineer. Convert [DESIGN] into production-ready frontend code using [TECH STACK].
|
|
11
|
-
|
|
12
|
-
## Visual Quality
|
|
13
|
-
|
|
14
|
-
Every screen must pass these visual craft checks before marking complete:
|
|
15
|
-
|
|
16
|
-
1. **Background treatment** — never plain white/dark. Subtle gradient, texture, or decorative element.
|
|
17
|
-
2. **Shadow depth** — interactive elements need shadow transitions on hover. Tint shadows to background hue.
|
|
18
|
-
3. **Entrance motion** — content animates in on load (staggered fade-up, spring physics). Respect `prefers-reduced-motion`.
|
|
19
|
-
4. **Typography hierarchy** — at least 3 distinct levels per screen with weight, tracking, and color variation.
|
|
20
|
-
5. **State polish** — hover/focus/active/pressed feel deliberate (shadow shifts, subtle scale, translateY) not just color swaps.
|
|
21
|
-
6. **Content authenticity** — no Lorem Ipsum, no "John Doe", no fake round numbers. Real draft copy.
|
|
22
|
-
7. **Spacing intention** — consistent use of spacing scale (4/8px base). Visual grouping through proximity, not just borders.
|
|
23
|
-
8. **Color coherence** — one accent, consistent gray temperature, no stray saturated colors.
|
|
24
|
-
9. **Component personality** — components customized to brand, not library defaults. Adjusted radius, shadows, colors.
|
|
25
|
-
10. **Surface variety** — not all cards. Use spacing, borders, background shifts for hierarchy.
|
|
26
|
-
11. **Icon consistency** — one icon family, one stroke weight throughout.
|
|
27
|
-
12. **Image direction** — imagery style (photo/illustration/CSS-only) matches brand character.
|
|
28
|
-
13. **Responsive craft** — mobile is a designed experience, not just "it fits."
|
|
29
|
-
14. **Motion coherence** — spring physics for interactive, fade-up for content, all consistent energy.
|
|
30
|
-
|
|
31
|
-
When `{brand-name}.md` is provided, it is your primary style guide. Implement its signature effects and bold bets.
|
|
32
|
-
|
|
33
|
-
## Working Mode
|
|
34
|
-
|
|
35
|
-
You work directly in the codebase — not in `.design/build/`:
|
|
36
|
-
- Use Edit to modify existing source files
|
|
37
|
-
- Use Write to create new source files in the correct codebase locations
|
|
38
|
-
- Use Bash to install dependencies and verify compilation
|
|
39
|
-
- Follow `.design/system/CONVENTIONS.md` for file placement, naming, and patterns
|
|
40
|
-
- Leave all changes unstaged for the user to review and commit
|
|
41
|
-
- After implementation, write BUILD-LOG.md to `.design/projects/{project}/build/` as a record of what was done
|
|
42
|
-
|
|
43
|
-
## Variables
|
|
44
|
-
|
|
45
|
-
- `[DESIGN]` — Description or screenshot of the design to implement
|
|
46
|
-
- `[TECH STACK]` — Frontend stack (e.g., React + Tailwind, Next.js, Vue, SwiftUI)
|
|
47
|
-
- `[STACK]` — `.design/system/STACK.md` contents (empty when greenfield)
|
|
48
|
-
- `[COMPONENTS]` — `.design/system/COMPONENTS.md` contents (empty when greenfield)
|
|
49
|
-
- `[CONVENTIONS]` — `.design/system/CONVENTIONS.md` contents (empty when greenfield)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# The Project Scoper
|
|
2
|
-
|
|
3
|
-
**Category:** Project Scoping
|
|
4
|
-
**Use when:** Scoping a design project — determining screens, component adaptations, and implementation gaps
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Prompt
|
|
9
|
-
|
|
10
|
-
Act as a Senior Design Project Lead. Scope [PROJECT] using the brand's design system from [BRAND]. Encourage treating projects as bounded issues and PRs.
|
|
11
|
-
|
|
12
|
-
## Variables
|
|
13
|
-
|
|
14
|
-
- `[PROJECT]` — The project being scoped (from BRIEF.md)
|
|
15
|
-
- `[BRAND]` — The brand whose design system is being used
|
|
16
|
-
- `[IMPLEMENTATION_TARGET]` — One of: `shadcn`, `rn-reusables`, `existing`, `code`, `figma`
|
|
17
|
-
- `[INVENTORY]` — Existing codebase inventory (when available)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# The Deliverable Reviewer
|
|
2
|
-
|
|
3
|
-
**Category:** Quality Assurance
|
|
4
|
-
**Use when:** QA validating actual codebase implementation against design intent
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Prompt
|
|
9
|
-
|
|
10
|
-
Act as a Senior QA Design Engineer. Review the actual codebase implementation for [PROJECT] against the design intent from [BRAND]'s design system.
|
|
11
|
-
|
|
12
|
-
You review actual source code, not `.design/build/` specs. Use Grep/Glob to find issues in the codebase. Reference actual file paths and line numbers in all issues.
|
|
13
|
-
|
|
14
|
-
## Variables
|
|
15
|
-
|
|
16
|
-
- `[PROJECT]` — The project being reviewed
|
|
17
|
-
- `[BRAND]` — The brand whose design system was used
|
|
18
|
-
- `[CRITIQUE_FIXES]` — Prioritized fixes from the critique phase (if available)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# The Project Researcher
|
|
2
|
-
|
|
3
|
-
**Category:** Project Research
|
|
4
|
-
**Use when:** Deep research into UX patterns, competitor experiences, technical approaches, accessibility strategies, and reference specs for a specific project
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Prompt
|
|
9
|
-
|
|
10
|
-
Act as a Senior UX Researcher and Technical Analyst. Research [PROJECT_TYPE] deeply — UX patterns, competitor experiences, technical approaches, accessibility strategies, and reference specs for execution.
|
|
11
|
-
|
|
12
|
-
## Variables
|
|
13
|
-
|
|
14
|
-
- `[PROJECT_TYPE]` — What's being built (dashboard, e-commerce, social app, SaaS, etc.)
|
|
15
|
-
- `[TECH_STACK]` — Implementation technology (React + Tailwind, React Native, etc.)
|
|
16
|
-
- `[PLATFORM]` — Target platforms (web, iOS, Android)
|
|
17
|
-
- `[BRAND_DISCOVERY]` — Brand-level competitive audit and trends (to build on, not duplicate)
|
|
18
|
-
- `[SCOPE]` — Project scope from brief/scope.md
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brand-patterns
|
|
3
|
-
description: Build your design system — tokens, components, brand guidelines
|
|
4
|
-
user-invocable: true
|
|
5
|
-
model: opus
|
|
6
|
-
effort: high
|
|
7
|
-
allowed-tools:
|
|
8
|
-
- Read
|
|
9
|
-
- Write
|
|
10
|
-
- Bash
|
|
11
|
-
- Agent
|
|
12
|
-
- Grep
|
|
13
|
-
- Glob
|
|
14
|
-
---
|
|
15
|
-
<context>
|
|
16
|
-
Phase 4 of the GSP branding diamond. Builds the design system (foundations, components, tokens), generates a self-contained brand guidelines HTML, and transitions the user from the branding diamond to the project diamond.
|
|
17
|
-
|
|
18
|
-
Adapts strategy based on codebase context — generates from scratch, extends an existing system, or redesigns with migration mapping.
|
|
19
|
-
</context>
|
|
20
|
-
|
|
21
|
-
<objective>
|
|
22
|
-
Build the design system, generate brand guidelines, and complete the branding diamond.
|
|
23
|
-
|
|
24
|
-
**Input:** Brand identity + strategy + BRIEF.md
|
|
25
|
-
**Output:** `{brand}/patterns/` (foundations/, components/, principles.md, tokens.json, {brand-name}.yml, {brand-name}.md, INDEX.md) + `{brand}/guidelines.html`
|
|
26
|
-
**Agent:** `gsp-pattern-architect`
|
|
27
|
-
</objective>
|
|
28
|
-
|
|
29
|
-
<execution_context>
|
|
30
|
-
@${CLAUDE_SKILL_DIR}/../../prompts/01-design-system-architect.md
|
|
31
|
-
@${CLAUDE_SKILL_DIR}/../../templates/phases/patterns.md
|
|
32
|
-
@${CLAUDE_SKILL_DIR}/../../references/design-tokens.md
|
|
33
|
-
</execution_context>
|
|
34
|
-
|
|
35
|
-
<rules>
|
|
36
|
-
- Always use `AskUserQuestion` for user-facing questions — never raw text prompts
|
|
37
|
-
- One decision per question — never batch multiple questions in a single message
|
|
38
|
-
</rules>
|
|
39
|
-
|
|
40
|
-
<process>
|
|
41
|
-
## Step 0: Resolve brand
|
|
42
|
-
|
|
43
|
-
Resolve brand from `.design/branding/` (one → use it, multiple → ask). Set `BRAND_PATH`.
|
|
44
|
-
If BRAND_PATH doesn't exist, tell the user to run `/gsp:start` first.
|
|
45
|
-
|
|
46
|
-
## Step 1: Load context
|
|
47
|
-
|
|
48
|
-
### Identity (chunk-first)
|
|
49
|
-
|
|
50
|
-
Read `{BRAND_PATH}/identity/INDEX.md`. If it exists, load all identity chunks + `palettes.json`.
|
|
51
|
-
|
|
52
|
-
If INDEX.md doesn't exist, check if identity phase is complete in brand STATE.md. If not, tell the user to complete brand identity first (run `/gsp:brand-identity`).
|
|
53
|
-
|
|
54
|
-
### Strategy (selective, chunk-first)
|
|
55
|
-
|
|
56
|
-
Read `{BRAND_PATH}/strategy/INDEX.md`. If it exists, load selective chunks (voice-and-tone.md, brand-platform.md).
|
|
57
|
-
|
|
58
|
-
### Brand context
|
|
59
|
-
|
|
60
|
-
Read:
|
|
61
|
-
- `{BRAND_PATH}/BRIEF.md` — business, personas, goals
|
|
62
|
-
- `{BRAND_PATH}/config.json` — get `system_config.system_strategy`, `system_config.tech_stack`, `system_config.style_base`
|
|
63
|
-
|
|
64
|
-
### Style base presets (format reference)
|
|
65
|
-
|
|
66
|
-
If `style_base` is a non-empty array, load each preset's files from `${CLAUDE_SKILL_DIR}/../gsp-style/styles/`:
|
|
67
|
-
- `{preset-name}.yml` — format reference for custom style output
|
|
68
|
-
- `{preset-name}.md` — format reference for custom style prompt
|
|
69
|
-
|
|
70
|
-
If `style_base` is empty or missing, load `${CLAUDE_SKILL_DIR}/../gsp-style/styles/professional.yml` and `${CLAUDE_SKILL_DIR}/../gsp-style/styles/professional.md` as the default format reference. The agent always needs at least one example to produce the custom style output.
|
|
71
|
-
|
|
72
|
-
## Step 1.5: Codebase awareness
|
|
73
|
-
|
|
74
|
-
**Always scan:** If `.design/system/` docs don't exist, invoke `/gsp:design-system` via Skill tool to scan the codebase. If they already exist, read them. Either way, load STACK.md, COMPONENTS.md, and TOKENS.md before continuing.
|
|
75
|
-
|
|
76
|
-
Then ask the user (each as its own `AskUserQuestion`):
|
|
77
|
-
|
|
78
|
-
1. Tech stack — if the scan detected a stack, use `AskUserQuestion`:
|
|
79
|
-
- **Yes, build on {framework} + {styling}** — "Use what's already here"
|
|
80
|
-
- **Different stack** — "I want to target a different tech stack"
|
|
81
|
-
If no stack detected, use open-ended `AskUserQuestion`: "What tech stack will this brand target?"
|
|
82
|
-
Store answer in `{BRAND_PATH}/config.json` → `system_config.tech_stack`
|
|
83
|
-
|
|
84
|
-
2. System strategy — only ask if scan found existing tokens/components. Use `AskUserQuestion`:
|
|
85
|
-
- **Evolve** — "Extend the existing design system"
|
|
86
|
-
- **Rethink** — "Redesign from scratch, informed by what exists"
|
|
87
|
-
- **Ignore** — "Start fresh, don't reference the existing system"
|
|
88
|
-
Store strategy in `{BRAND_PATH}/config.json` → `system_config.system_strategy`
|
|
89
|
-
If scan found no tokens/components (greenfield/boilerplate): default to `generate`, skip this question
|
|
90
|
-
|
|
91
|
-
## Step 2: Determine system strategy
|
|
92
|
-
|
|
93
|
-
Read `system_config.system_strategy` from config.json (defaults to `generate` if missing).
|
|
94
|
-
|
|
95
|
-
Three strategies:
|
|
96
|
-
|
|
97
|
-
**GENERATE** (when `system_strategy` is `generate` or missing):
|
|
98
|
-
Full system from scratch. For `boilerplate` codebases, respect existing config structure (extend tailwind.config, not replace) and output tokens in the format the existing config uses (Tailwind extend, CSS custom properties, etc).
|
|
99
|
-
|
|
100
|
-
**EXTEND** (when `system_strategy` is `extend`):
|
|
101
|
-
Evolve the existing system rather than replacing it.
|
|
102
|
-
1. Audit existing tokens against the brand identity — keep what works, adjust what doesn't, fill gaps
|
|
103
|
-
2. Classify each existing component: KEEP / RESTYLE / REFACTOR / REPLACE
|
|
104
|
-
3. Design only net-new components not covered by existing ones
|
|
105
|
-
4. Output delta tokens — only new and changed values
|
|
106
|
-
5. Preserve existing naming conventions from `.design/system/CONVENTIONS.md`
|
|
107
|
-
|
|
108
|
-
**REFACTOR** (when `system_strategy` is `refactor`):
|
|
109
|
-
Redesign the system from the ground up, informed by what exists.
|
|
110
|
-
1. Read and understand existing tokens, components, patterns from `.design/system/` docs
|
|
111
|
-
2. Design a complete new system — same scope as GENERATE
|
|
112
|
-
3. Produce a migration mapping for every change
|
|
113
|
-
4. Preserve conventions unless the brand requires changes
|
|
114
|
-
5. Flag breaking changes explicitly
|
|
115
|
-
|
|
116
|
-
## Step 3: Spawn pattern architect — Pass 1: Foundations
|
|
117
|
-
|
|
118
|
-
Spawn the `gsp-pattern-architect` agent with:
|
|
119
|
-
- All identity chunks + palettes.json
|
|
120
|
-
- The BRIEF.md content
|
|
121
|
-
- The Design System Architect prompt (01)
|
|
122
|
-
- The patterns output template
|
|
123
|
-
- The design tokens reference
|
|
124
|
-
- The `system_strategy` and `tech_stack` values
|
|
125
|
-
- The `style_base` value + preset `.yml`/`.md` files (if loaded)
|
|
126
|
-
- The `.design/system/STACK.md`, `COMPONENTS.md`, `TOKENS.md` content (when exist)
|
|
127
|
-
- **Execution mode:** `"foundations"`
|
|
128
|
-
- **Output path:** `{BRAND_PATH}/patterns/`
|
|
129
|
-
|
|
130
|
-
The agent writes foundations only:
|
|
131
|
-
- `patterns/foundations/` (6 foundation chunks)
|
|
132
|
-
- `patterns/principles.md`
|
|
133
|
-
- `patterns/tokens.json` (foundations-only)
|
|
134
|
-
|
|
135
|
-
## Step 3.5: Foundation review (interactive)
|
|
136
|
-
|
|
137
|
-
Read the foundation outputs and present a compact summary:
|
|
138
|
-
|
|
139
|
-
"Design system foundations:
|
|
140
|
-
Color: {semantic mapping summary from foundations/color-system.md}
|
|
141
|
-
Typography: {type scale summary from foundations/typography.md}
|
|
142
|
-
Spacing: 8px base → {scale from foundations/spacing.md}
|
|
143
|
-
Design principles: {list from principles.md}"
|
|
144
|
-
|
|
145
|
-
Use `AskUserQuestion`:
|
|
146
|
-
- **Looks good** — "Build components on these foundations"
|
|
147
|
-
- **Adjust colors** — "I want to tweak the color system"
|
|
148
|
-
- **Adjust typography** — "I want to tweak the type scale"
|
|
149
|
-
- **Adjust other** — "I want to change spacing, principles, or other foundations"
|
|
150
|
-
|
|
151
|
-
If adjustments needed, update the relevant foundation chunks, then re-present.
|
|
152
|
-
|
|
153
|
-
## Step 3.75: Perspective check
|
|
154
|
-
|
|
155
|
-
Before building components, load persona profiles from `{BRAND_PATH}/BRIEF.md` and present stakeholder reactions:
|
|
156
|
-
|
|
157
|
-
"Before we build the component library:
|
|
158
|
-
|
|
159
|
-
{primary persona name}: {would they recognize this as {brand}? Does it feel right?}
|
|
160
|
-
Skeptic: {are the tokens flexible enough? Are the principles actionable?}
|
|
161
|
-
{top competitor}: {how does this compare to industry standards?}"
|
|
162
|
-
|
|
163
|
-
Use `AskUserQuestion`:
|
|
164
|
-
- **Build components** — "These foundations are solid, let's go"
|
|
165
|
-
- **Adjust** — "One of these concerns resonates — I want to change something"
|
|
166
|
-
|
|
167
|
-
If adjust → update foundations and re-present. If confirmed → proceed to components pass.
|
|
168
|
-
|
|
169
|
-
## Step 4: Spawn pattern architect — Pass 2: Components
|
|
170
|
-
|
|
171
|
-
Spawn the `gsp-pattern-architect` agent with:
|
|
172
|
-
- The existing foundations from Pass 1
|
|
173
|
-
- All identity chunks + palettes.json
|
|
174
|
-
- Strategy chunks: voice-and-tone.md, archetype.md, positioning.md (needed for custom style output)
|
|
175
|
-
- `.design/system/STACK.md`, `COMPONENTS.md`, `TOKENS.md` (if exist — component library detection for token mapping)
|
|
176
|
-
- The `style_base` value + preset `.yml`/`.md` files (if loaded)
|
|
177
|
-
- **Execution mode:** `"components"`
|
|
178
|
-
- Confirmed component scope from Step 1.5
|
|
179
|
-
- **Output path:** `{BRAND_PATH}/patterns/`
|
|
180
|
-
|
|
181
|
-
The agent writes components + custom style:
|
|
182
|
-
- `patterns/components/` (one per component)
|
|
183
|
-
- Updates `patterns/tokens.json` (adds component tokens)
|
|
184
|
-
- `patterns/{brand-name}.yml` (custom style preset — portable, reusable)
|
|
185
|
-
- `patterns/{brand-name}.md` (custom style prompt — AI-ready)
|
|
186
|
-
- `patterns/INDEX.md`
|
|
187
|
-
|
|
188
|
-
## Step 4.5: Update state
|
|
189
|
-
|
|
190
|
-
Update `{BRAND_PATH}/STATE.md`:
|
|
191
|
-
- Set Phase 4 (Patterns) status to `complete`
|
|
192
|
-
- Record completion date
|
|
193
|
-
- Set Prettiness Level to 100%
|
|
194
|
-
|
|
195
|
-
## Step 4.75: Generate brand guidelines
|
|
196
|
-
|
|
197
|
-
Create a self-contained HTML file at `{BRAND_PATH}/guidelines.html`.
|
|
198
|
-
|
|
199
|
-
Read all available brand outputs:
|
|
200
|
-
- `{BRAND_PATH}/identity/palettes.json` — color palette data
|
|
201
|
-
- `{BRAND_PATH}/identity/color-system.md` — color roles and usage
|
|
202
|
-
- `{BRAND_PATH}/identity/typography.md` — type scale and families
|
|
203
|
-
- `{BRAND_PATH}/strategy/voice-and-tone.md` — voice attributes (means / doesn't mean)
|
|
204
|
-
- `{BRAND_PATH}/strategy/messaging.md` — tagline directions
|
|
205
|
-
- `{BRAND_PATH}/identity/logo-directions.md` — logo direction descriptions
|
|
206
|
-
- `{BRAND_PATH}/strategy/archetype.md` — brand archetype
|
|
207
|
-
|
|
208
|
-
Generate a single self-contained HTML file with:
|
|
209
|
-
- **Embedded Google Fonts** `<link>` for the chosen typefaces
|
|
210
|
-
- **Page styled with brand colors** — background, text, and accent colors from palettes.json
|
|
211
|
-
- **Color palette swatches** — full ramp from 50→900 stops for each palette
|
|
212
|
-
- **Typography samples** — headings and body text at the defined type scale, using the chosen font families
|
|
213
|
-
- **Voice attributes** — each attribute with "means / doesn't mean" columns
|
|
214
|
-
- **Tagline directions** — listed with descriptions
|
|
215
|
-
- **Logo direction descriptions** — each direction with rationale
|
|
216
|
-
- **Archetype summary** — the selected archetype and its expression
|
|
217
|
-
|
|
218
|
-
Tell the user: "Brand kit saved to `guidelines.html` — open it in your browser to see your colors, typography, voice, and messaging in one page. You can also print or export to PDF as a shareable brand guide."
|
|
219
|
-
|
|
220
|
-
## Step 5: Phase transition output
|
|
221
|
-
|
|
222
|
-
Render phase transition (see `references/phase-transitions.md`).
|
|
223
|
-
|
|
224
|
-
**E2E mode:** Read `{BRAND_PATH}/config.json`. If `e2e` is `true`, auto-invoke `/gsp:start` via Skill tool — it will detect the completed brand and route directly to project setup (Step 4). No need to ask the user.
|
|
225
|
-
|
|
226
|
-
**Non-E2E:** When the user chooses "Start a project", invoke `/gsp:start` via the Skill tool. Do NOT attempt to handle project setup inline — `/gsp:start` has the codebase scanning, questioning rounds, and brief-writing logic needed for a proper project setup. The branding agent's context is spent on brand work and lacks the project setup methodology.
|
|
227
|
-
|
|
228
|
-
Also display a brand summary after the standard transition — this is the final branding phase:
|
|
229
|
-
|
|
230
|
-
```
|
|
231
|
-
brand complete — {brand-name}
|
|
232
|
-
|
|
233
|
-
discover {key finding}
|
|
234
|
-
strategy {archetype}, {positioning}, {top voice attributes}
|
|
235
|
-
identity {colors}, {typefaces}
|
|
236
|
-
patterns {N} foundations, {N} components
|
|
237
|
-
|
|
238
|
-
guidelines: {BRAND_PATH}/guidelines.html
|
|
239
|
-
```
|
|
240
|
-
</process>
|