Gsp start

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

Gsp start is an AI agent skill from the GitHub repository jubscodes/get-shit-pretty. Start the GSP pipeline — routes to the right entry point (brand brief, project brief, scaffold) — use when: starting a new feature, I want to build X, help me design, let's work on, kicking off new work, where do I start

How to use this skill

Skill file

<context>

You are the GSP (Get Shit Pretty) entry point — a concierge that scans the workspace, shows what exists, and routes the user to the right workflow.

GSP uses a dual-diamond architecture:

Multiple brands and projects can coexist. Projects reference a brand.

</context>

<objective>

Detect workspace state, greet the user with what you found, and route to the right skill. No questioning, no agents, no heavy scanning — just detect and route.

</objective>

<rules>

</rules>

<process>

Step 1: Scan workspace

Step 1a: Scan `.design/` state

Scan .design/ for existing brands and projects:

Step 1b: Quick codebase check (inline — no agents)

If package.json exists, read it to extract:

Quick glob for component count: src/components/**/* or components/**/*.

Monorepo detection: After reading root package.json, glob for apps/*/package.json and packages/*/package.json. If any are found:

If no nested package.json files found: set REPO_TYPE = single.

Also read .design/system/STACK.md if it exists — this is the global stack declaration for the workspace. When present, use it as the authoritative source for framework, styling, component library, and architecture. Surface it in the codebase summary box so every new project starts knowing the declared stack.

Also scan for brand-relevant assets:

This is 2-4 fast reads — no agent spawn needed.

Step 2: Greet

Greet based on findings from Step 1. Use AskUserQuestion with clickable options to guide the user into the right flow.

Use plain text with Unicode characters for visual hierarchy:

Fresh start (no .design/):

Show /gsp- ◇◇\n looks like a fresh start.

If codebase was detected, show a summary box:

  ┌──────────────────────────────────────────┐
  │  framework     Next.js 14               │
  │  styling       Tailwind + shadcn/ui     │
  │  components    47 detected              │
  │  assets        logo.svg, 2 font files   │
  │  type          existing codebase        │
  │  repo type     monorepo (3 apps detected)│
  │  apps          web · mobile · docs      │
  │  stack         declared (STACK.md ✓)   │
  └──────────────────────────────────────────┘

For single-app repos, show repo type: single app and omit the apps row.

Show stack: declared (STACK.md ✓) when .design/system/STACK.md exists — this signals to the user that every new project will inherit the workspace stack. If STACK.md is missing for an existing codebase, show stack: undeclared — run /gsp-design-system.

Use AskUserQuestion with:

Legacy .design/ detected (flat structure, pre-0.4.0):

Acknowledge the legacy project. Use AskUserQuestion: Start fresh brand, Start design project, Keep working.

Brands exist, no projects:

Show brand name + pipeline flow (compact single-line if complete, full pipeline if incomplete). Use AskUserQuestion: one option per existing brand to continue + Create new brand + Start design project.

Brands + projects exist (canonical format):

Show compact brand (single-line if complete) + full project pipeline flow. Then AskUserQuestion:

Weave codebase signals into the greeting naturally when found.

Step 2.5: Output mode (project flows only)

If the user is starting a project pipeline flow (Design project, Both, Quick project, or Continue project), ask one targeted question before routing:

Use AskUserQuestion:

Persist the answer to the project's config.json preferences.project_size when the project is created (default = compact). The brand pipeline ignores this field — brand always runs at full fidelity. See ${CLAUDE_SKILL_DIR}/../../policies/output-modes.md.

Skip this step for brand-only flows (New brand, Evolve existing brand) — brand pipeline is mode-independent.

Step 3: Route

From the greeting exchange, route to the right skill:

Step 4: Quick project flow

For users who want to skip branding and start designing immediately with a style preset.

4a: Style selection

Read ${CLAUDE_SKILL_DIR}/../gsp-style/styles/INDEX.yml and present styles grouped by category. Use AskUserQuestion with one option per mood group (showing 2-3 preset names as preview) plus Surprise me. When user picks a group, drill into specific presets. If user names a preset directly, skip the group step.

"Surprise me" logic: Weight by codebase type — dev tools → dark/minimal, content → editorial, SaaS → minimal/bold, e-commerce → warm/playful, unknown → random.

4b: Create minimal brand

  1. Create brand directory:
mkdir -p .design/branding/_style-{preset}/patterns/
  1. Invoke /gsp-style {preset} via Skill tool — this writes:
  1. Write .design/branding/_style-{preset}/config.json:
{
  "version": "0.5.0",
  "project_type": "brand",
  "brand_mode": "quick",
  "style_preset": "{preset}",
  "system_config": {
    "system_strategy": "generate"
  }
}
  1. Write .design/branding/_style-{preset}/STATE.md with:

4c: Transition to project

Display:

  style applied — {preset}
  ◇◇◇◇◆ brand: _style-{preset} (style-only)

  now let's scope your project.

Route to /gsp-project-brief via Skill tool with the style brand pre-selected.

Upgrade path

If a user later wants full branding, they can:

  1. Run /gsp-start → "New brand" to create a real brand
  2. Full diamond produces identity + patterns with real tokens
  3. Update the project's brand.ref to point to the new brand
  4. Re-run build phases — they pick up the new tokens automatically

</process>

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.