Gsp project design

From jubscodes/get-shit-pretty · View interactive version

Gsp project design is an AI agent skill from the GitHub repository jubscodes/get-shit-pretty. Design screens and interaction flows (creative phase — benefits from capable models) — use when: design this, mock up, create wireframes, how should X look, lay out the UI for

How to use this skill

Skill file

<context>

Phase 3 of the GSP project diamond. Uses the UI/UX Pattern Master prompt to design core screens following Apple HIG and the brand's design system.

Works with the dual-diamond architecture: reads brand system from .design/branding/{brand}/patterns/ via brand.ref, reads/writes project assets in .design/projects/{project}/.

</context>

<objective>

Design core UI/UX screens and interaction flows.

Input: Research + brief + brand system + project BRIEF.md

Output: {project}/design/ (screen chunks + shared/ + INDEX.md) + exports/INDEX.md update

Agent: gsp-project-designer

Output mode: Honor ${CLAUDE_SKILL_DIR}/../../policies/output-modes.md per preferences.project_size (default compact). Chunk file counts and consolidation rules live in the policy.

</objective>

<execution_context>

@${CLAUDE_SKILL_DIR}/../../templates/phases/design.md

</execution_context>

<process>

Step 0: Resolve project and brand

If .design/projects/ does not exist: output "No GSP project found. Run /gsp-start to begin." and stop.

Resolve project from .design/projects/ (one → use it, multiple → ask). Set PROJECT_PATH.

Read {PROJECT_PATH}/brand.ref → set BRAND_PATH.

Step 0.5: Validate prerequisites

Read {PROJECT_PATH}/STATE.md. Check that Brief (Phase 1) is complete.

If not: "Brief hasn't been completed yet. Run /gsp-project-brief first." Then stop.

Research (Phase 2) is recommended but not required — if skipped, log: "No research artifacts found — designing from brief only."

Step 1: Load context

Read {PROJECT_PATH}/config.json — get implementation_target, design_scope, codebase_type.

Read {PROJECT_PATH}/BRIEF.md — app type, audience, goals.

Revision mode

Check {PROJECT_PATH}/STATE.md for design status. If status is needs-revision:

  1. Read {PROJECT_PATH}/critique/prioritized-fixes.md — design issues to address
  2. Read {PROJECT_PATH}/critique/accessibility-fixes.md — accessibility issues to address
  3. Log: "🔄 Revision mode — addressing critique issues from prioritized-fixes.md"
  4. Pass critique fixes to designer agent in Step 3

Custom references

If {PROJECT_PATH}/references/ exists, scan for files (images, PDFs, markdown, URLs). Pass any found references to the designer agent as additional context.

Brand patterns (chunk-first)

Read {BRAND_PATH}/patterns/INDEX.md. If it exists, load all foundation chunks + selective component chunks.

If it doesn't exist, tell the user to run /gsp-brand-guidelines first.

Brand context (selective)

Read {BRAND_PATH}/identity/INDEX.md. If it exists, load color-system.md, typography.md, and imagery-style.md.

STYLE.md (visual DNA)

Check for {BRAND_PATH}/patterns/STYLE.md. This is the single document that governs all visual decisions.

If found, read it. Pass to the designer agent in Step 3 as the primary visual direction — it contains intensity dials, component patterns, constraints (never/always), effects vocabulary, and bold bets.

If not found, fall back to scanning {BRAND_PATH}/patterns/ for a .md file that is NOT INDEX.md or inside components/ (legacy {brand-name}.md format).

If neither found, proceed without it (older brands may not have this file).

Brief (chunk-first)

Read {PROJECT_PATH}/brief/INDEX.md. If it exists, load scope.md and target-adaptations.md.

If brief doesn't exist, proceed without it (brief is informative, not blocking).

Research (chunk-first)

Read {PROJECT_PATH}/research/INDEX.md. If it exists, load ux-patterns.md, recommendations.md, and reference-specs.md.

If research doesn't exist, proceed without it (research is informative, not blocking).

Step 1.5: Scope check

If design_scope is tokens:

  1. Update {PROJECT_PATH}/STATE.md — set Phase 3 (Design) status to skipped
  2. Display: "Design phase skipped — design scope is tokens."
  3. Route: "Run /gsp-project-build."
  4. Stop here.

If design_scope is partial:

Read BRIEF.md "Target screens" to get the specific screen list.

Step 2: Load existing design system context

When implementation_target is not figma:

Step 2.5: Load design references

Read these reference files (relative to skill dir ${CLAUDE_SKILL_DIR}/):

Hold their content for inlining into the agent prompt in Step 3.

Note: Apple HIG patterns and anti-patterns are distilled into the gsp-project-designer agent prompt. Visual effects are covered by STYLE.md's patterns/constraints/effects blocks (from #69). Full refs remain on disk for edge-case agent lookup.

Step 2.8: Load agent methodology

Read ${CLAUDE_SKILL_DIR}/methodology/gsp-project-designer.md. Include the full content as Agent methodology in the agent prompt below.

Step 3: Spawn designer

Spawn the gsp-project-designer agent. Inline all content — the agent should not need to read any input files.

Pass in the agent prompt:

The agent writes chunks directly:

Step 4: Update state

Update {PROJECT_PATH}/STATE.md:

Step 5: Phase transition output

Invoke /gsp-phase-transition with phase design and output directory {PROJECT_PATH}/design/.

</process>

</output>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.