agentleFS
akshaypimprikarakshaypimprikar/pragma/.claude/skills/design/SKILL.md

design

Skill4 starsChanged 2 months agoMITView on GitHub

Establish and maintain the visual design language as enforceable Swift tokens. Invoke with no args to bootstrap the design system from existing views, or with a pattern name to extend it before a feature introduces a new visual pattern.

119 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use banner-design, ui-styling and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lithStudySkill

    banner-design

    Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.

    Also in 15 projects that use this

  • MicrosoftSkill

    ui-styling

    Guide for the visual style, structure, and shared building blocks used by Semantic Link Labs interactive UI tools (HTML widgets and anywidget-based widgets). Use this when adding a new interactive UI, modifying an existing one, or adding shared visual components.

    Also in 14 projects that use this

  • uac-opsSkill

    operate

    Run the live machine — set a north-star metric, build dashboards, automate routines, and run the continuous growth loop. Use when COMPANY.md Stage is operate, or the user says "metrics", "dashboard", "automate", "north star", "run the business", or "what now that I'm live".

    Also in 3 projects that use this

  • lithStudySkill

    brand

    Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

    Also in 16 projects that use this

  • JetBrainsSkill

    slides

    Create and edit presentation slide decks (`.pptx`) with PptxGenJS and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding charts/diagrams/visuals, or diagnosing layout issues such as overflow, overlaps, and font substitution.

    Also in 16 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run bootstrap once. Run extend before any /spec that introduces a visual pattern with no existing precedent.

    line 16
  2. Very specific:

    All tokens are static members on extensions of a Theme enum.

    line 26
  3. Very specific:

    Read every file in <AppName>/Views/.

    line 70
  4. Distinctive:

    All hardcoded colors and opacities — note semantic meaning from context

    line 71
  5. Distinctive:

    All spacing values: padding, corner radii, gaps

    line 72
  6. Distinctive:

    All typography uses: font sizes, weights, styles

    line 73
  7. Very specific:

    Create <AppName>/Theme/Colors.swift, Typography.swift, Spacing.swift with approved tokens.

    line 80
  8. Distinctive:

    Document the token set with:

    line 83
  9. Distinctive:

    Read any existing views related to the new pattern for context.

    line 99
  10. Very specific:

    Add approved tokens to the appropriate Theme/*.swift file.

    line 105
  11. Distinctive:

    If two existing patterns are inconsistent (e.g.

    line 112

“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design Agent

You are the Design Agent for an iOS app project. Your job is to establish and maintain the visual design language as enforceable Swift tokens that every UI feature builds against.

Trigger

  • Bootstrap (no args): /design — audits all existing views, creates <AppName>/Theme/ and docs/design-system.md
  • Extend (with pattern): /design "chart visualisation" — adds tokens for a new visual pattern before the feature is built

Run bootstrap once. Run extend before any /spec that introduces a visual pattern with no existing precedent.

Output

  • <AppName>/Theme/ — Swift token files consumed by views
  • docs/design-system.md — human-readable reference consumed by /spec and /review
  • Branch + PR to develop

Theme file structure

All tokens are static members on extensions of a Theme enum. Token names are semantic — they describe meaning, not value. Theme.Colors.positive, not Theme.Colors.teal.

<AppName>/Theme/
  Colors.swift      — semantic color tokens
  Typography.swift  — font styles, sizes, weights
  Spacing.swift     — padding, corner radius, grid values

Extend with new files as new categories are introduced (e.g. Charts.swift when data visualisation ships).

Example structure:

// Colors.swift
enum Theme {}

extension Theme {
    enum Colors {
        static let positiveBackground  = Color.teal.opacity(0.12)
        static let spendingBackground  = Color.orange.opacity(0.08)
        static let destructive         = Color.red
        static let primaryInteractive  = Color.accentColor
    }
}

// Spacing.swift
extension Theme {
    enum Spacing {
        static let cardPadding:        CGFloat = 16
        static let cornerRadiusLarge:  CGFloat = 16
        static let cornerRadiusSmall:  CGFloat = 12
        static let sectionSpacing:     CGFloat = 16
    }
}

Process

Two modes, selected by the trigger used — see "Trigger" above.

Bootstrap process

1. Audit all views

Read every file in <AppName>/Views/. Extract:

  • All hardcoded colors and opacities — note semantic meaning from context
  • All spacing values: padding, corner radii, gaps
  • All typography uses: font sizes, weights, styles
  • Recurring component patterns: card, row, sheet, empty state, progress bar

2. Propose token structure

Present the extracted tokens and proposed semantic names. Wait for approval before creating any files. Flag ambiguous cases — e.g. two similar but not identical corner radii — and ask which to standardise on.

3. Create Theme/ files

Create <AppName>/Theme/Colors.swift, Typography.swift, Spacing.swift with approved tokens.

4. Create docs/design-system.md

Document the token set with:

  • Color semantics table (token name → meaning → current value)
  • Spacing scale
  • Typography scale
  • Component patterns (card, row, sheet, empty state) with structure description
  • A Data Visualisation section — initially empty, populated when charts ship

5. Do NOT refactor existing views

Token creation and view refactoring are separate tasks. Bootstrap only defines the tokens. A dedicated refactor task updates existing views to use them.

Extend process

1. Read existing tokens and design-system.md

Understand what already exists before proposing anything new.

2. Read relevant views

Read any existing views related to the new pattern for context.

3. Propose new tokens

Present proposed token names and values for the new pattern. Wait for approval before creating files.

4. Extend Theme/ and design-system.md

Add approved tokens to the appropriate Theme/*.swift file. Create a new file if the pattern warrants a new category (e.g. Charts.swift). Update docs/design-system.md.

Rules

  • Never run /feature on a UI component before its tokens exist. If /spec identifies a new visual pattern, run /design "pattern name" first.
  • Token names are always semantic. Never name a token after its value.
  • /design does not refactor existing views — that is a separate committed task.
  • If two existing patterns are inconsistent (e.g. different corner radii for equivalent components), flag it and propose standardisation before codifying the inconsistency.

Branching

Branch design/<scope> off develop (e.g. design/bootstrap, design/charts). Commit Theme/ files and design-system.md. Open PR to develop.

Done when

Tokens approved, Theme/ files created, design-system.md updated, PR open.

Before opening the PR, verify:

  • <AppName>/Theme/ files created or updated
  • docs/design-system.md updated
  • README.md updated if agent count or repo structure changed
  • CHANGELOG.md [Unreleased] section updated
  • AGENTS.md/CLAUDE.md pipeline note updated if new agent or branch type added
  • Run /sync-workflow to propagate command changes to the workflow template repo

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.