gsp-brand-guidelines
Identity made the creative decisions. This phase makes them work in code.
Input: Brand identity (enriched by domain skills) + strategy + BRIEF.md
Output: {brand}/patterns/ ({brand-name}.yml, STYLE.md, guidelines.html, components/, INDEX.md)
Agent: gsp-brand-engineer
Resolve brand from .design/branding/ (one → use it, multiple → ask). Set BRAND_PATH.
If BRAND_PATH doesn't exist, tell the user to run /gsp-start first.
Step 1: Load context
Identity (chunk-first)
Read {BRAND_PATH}/identity/INDEX.md. If it exists, load all identity chunks + palettes.json.
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).
Strategy (selective, chunk-first)
Read {BRAND_PATH}/strategy/INDEX.md. If it exists, load: voice-and-tone.md, archetype.md, positioning.md.
Brand context
Read:
{BRAND_PATH}/BRIEF.md— business, personas, goals{BRAND_PATH}/config.json— getsystem_config.system_strategy,system_config.tech_stack,system_config.style_base
Style base presets
If style_base is a non-empty array, load each preset's files from ${CLAUDE_SKILL_DIR}/../gsp-style/styles/:
{preset-name}.yml— structural scaffold (tokens + intensity + patterns + constraints + effects){preset-name}.md— design philosophy, bold bets, implementation patterns (CSS recipes, textures, animations)
Both files are needed: the .yml provides the structure to inherit from, the .md provides the philosophy and implementation content for STYLE.md rendering.
If style_base is empty or missing, load ${CLAUDE_SKILL_DIR}/../gsp-style/styles/professional.yml and professional.md as the default format reference. The agent always needs at least one example to produce the custom style output.
Step 1.5: Codebase awareness
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.
Then ask the user (each as its own AskUserQuestion):
-
Tech stack — if the scan detected a stack, use
AskUserQuestion:- Yes, build on {framework} + {styling} — "Use what's already here"
- Different stack — "I want to target a different tech stack"
If no stack detected, use open-ended
AskUserQuestion: "What tech stack will this brand target?" Store answer in{BRAND_PATH}/config.json→system_config.tech_stack
-
System strategy — only ask if scan found existing tokens/components. Use
AskUserQuestion:- Evolve — "Extend the existing design system"
- Rethink — "Redesign from scratch, informed by what exists"
- Ignore — "Start fresh, don't reference the existing system"
Store strategy in
{BRAND_PATH}/config.json→system_config.system_strategyIf scan found no tokens/components (greenfield/boilerplate): default togenerate, skip this question
Step 2: Determine system strategy
Read system_config.system_strategy from config.json (defaults to generate if missing).
Three strategies:
GENERATE (when system_strategy is generate or missing):
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).
EXTEND (when system_strategy is extend):
Evolve the existing system rather than replacing it.
- Audit existing tokens against the brand identity — keep what works, adjust what doesn't, fill gaps
- Classify each existing component: KEEP / RESTYLE / REFACTOR / REPLACE
- Design only net-new components not covered by existing ones
- Output delta tokens — only new and changed values
- Preserve existing naming conventions from
.design/system/CONVENTIONS.md
REFACTOR (when system_strategy is refactor):
Redesign the system from the ground up, informed by what exists.
- Read and understand existing tokens, components, patterns from
.design/system/docs - Design a complete new system — same scope as GENERATE
- Produce a migration mapping for every change
- Preserve conventions unless the brand requires changes
- Flag breaking changes explicitly
Step 3: Spawn brand engineer — Pass 1: Core
Load references and agent methodology
Read these files and hold their content for inlining into the agent prompt:
${CLAUDE_SKILL_DIR}/../../templates/phases/patterns.md— patterns output template${CLAUDE_SKILL_DIR}/design-tokens.md— design tokens reference${CLAUDE_SKILL_DIR}/methodology/gsp-brand-engineer.md— agent methodology
Spawn the gsp-brand-engineer agent. Inline all content — the agent should not need to read input files.
Pass in the agent prompt:
- Content of all identity chunks + palettes.json (loaded in Step 1)
- Content of strategy chunks: voice-and-tone.md, archetype.md, positioning.md (loaded in Step 1)
- Content of BRIEF.md (loaded in Step 1)
- Content of style base preset
.yml+.md(loaded in Step 1) —.ymlas structural scaffold,.mdas philosophy + implementation content for STYLE.md - Agent methodology (loaded above)
- Content of patterns output template (loaded above)
- Content of design tokens reference (loaded above)
- The
system_strategyandtech_stackvalues - Output path:
{BRAND_PATH}/patterns/
Produce the core brand artifacts ONLY:
{brand-name}.yml— source of truth (tokens + intensity + patterns + constraints + effects)STYLE.md— agent contract (rendered from.yml+ philosophy + bold bets)guidelines.html— visual brand guide (what the user sees in their browser)INDEX.md— core files only for nowDo NOT produce component artifacts yet (token-mapping, overrides, custom specs). Those come after the user reviews the visual output.
Step 3.5: Visual review
Tell the user: "Open {BRAND_PATH}/patterns/guidelines.html in your browser — this is your brand in one page."
Present a compact summary:
{brand-name} guidelines
═══════════════════════════════════════
.yml preset
colors: {primary}, {secondary}, {accent}
typography: {primary font}, {secondary font}
intensity: variance {N}/10, motion {N}/10, density {N}/10
STYLE.md
patterns: {N} components defined
constraints: {N} never, {N} always rules
effects: {interaction vocabulary list}
bold bets: {1-line summary of boldest bet}
→ open guidelines.html in your browser to preview
─────────────────────────────────────
Use AskUserQuestion:
- Looks good — "The brand looks right, build components"
- Adjust tokens — "I want to tweak colors, typography, or spacing"
- Adjust patterns — "I want to change component rules or constraints"
- Adjust intensity — "More/less creative, more/less motion, more/less density"
If adjustments needed, use /gsp-brand-refine with the feedback to surgically update the .yml, regenerate STYLE.md, and regenerate guidelines.html. Then re-present.
Step 3.75: Perspective check
Load persona profiles from {BRAND_PATH}/BRIEF.md and present stakeholder reactions:
"Stress-testing the brand visuals:
{primary persona name}: {would this visual language feel trustworthy and appropriate?} Skeptic: {are the constraints too restrictive or too loose? Is the intensity calibrated right?} {top competitor}: {is the brand visually differentiated?}"
Use AskUserQuestion:
- Lock it in — "The brand is solid, build components"
- Adjust — "One of these concerns resonates — I want to change something"
If adjust → use /gsp-brand-refine with the concern, then re-present. If confirmed → proceed to components.
Step 4: Spawn brand engineer — Pass 2: Components
Spawn the gsp-brand-engineer agent with (reuse Agent methodology loaded in Step 3):
- Content of the confirmed
{BRAND_PATH}/patterns/{brand-name}.yml - Content of
{BRAND_PATH}/patterns/STYLE.md - Content of
.design/system/STACK.md,COMPONENTS.md,TOKENS.md(when loaded in Step 1.5) - The
system_strategyandtech_stackvalues - Agent methodology (loaded in Step 3)
- Content of design tokens reference (loaded in Step 3)
- Output path:
{BRAND_PATH}/patterns/
Produce the component artifacts:
components/token-mapping.md— brand tokens → library theming API (always)- Component override specs (selective — only when tokens aren't enough)
- Custom component specs (selective — brand-distinctive with no library equivalent)
- Update
INDEX.mdwith the components sectionThe
.ymlandSTYLE.mdare confirmed — do not modify them. Focus on mapping tokens to the detected component library and specifying overrides.
Step 4.5: Update state
Update {BRAND_PATH}/STATE.md:
- Set Phase 4 (Patterns) status to
complete - Record completion date
- Set Prettiness Level to 100%
Step 5: Phase transition output
Invoke /gsp-phase-transition with phase guidelines and output directory {BRAND_PATH}/patterns/.
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.
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.
Also display a brand summary after the standard transition — this is the final branding phase:
brand complete — {brand-name}
discover {key finding}
strategy {archetype}, {positioning}, {top voice attributes}
identity {colors}, {typefaces}
guidelines .yml + STYLE.md + {N} components + guidelines.html
open: {BRAND_PATH}/patterns/guidelines.html
More from jubscodes/get-shit-pretty
gsp-visuals
Define visual direction — imagery, 3D, video, textures, and surface treatments
14gsp-accessibility
Quick contrast checks and token WCAG audits — inline, no agent
14gsp-help
Show all skills
14gsp-color
Design color systems — palettes, contrast, semantic mapping, dark mode
14gsp-typography
Design type systems — scale, pairing, fluid type, vertical rhythm
14gsp-brand-audit
Audit an existing brand before evolving it
13