Index of every page on this site: llms.txt
All skills
genericservice avatar

/kitchen-sink-design-system

@b07f28f
Run it yourself

Script-First design system workflow. Uses a deterministic auditor script to detect frameworks, inventory components, and detect design drift (hardcoded hex, arbitrary Tailwind). Provides a clear report for the agent to judge and implement a Kitchen Sink page.

Use this Skill: https://skilld.dev/gh/genericservice/claude-skills/kitchen-sink-design-system

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈72 tokens for metadata: the name and description. ≈548 when used: this file. ≈10k more on demand in 5 files.

Description uses 3.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈288 characters, or 3.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Kitchen Sink Design System

Build every component for real, wire it into a single sink page, and let the page prove the design system works.

This workflow uses a Script-First approach: an auditor script handles the "labor" of crawling the codebase and identifying drift, leaving the agent to handle the "judgment" of fixing components and assembling the sink.

Usage

When asked for a Kitchen Sink page, Design System Audit, or Component Inventory:

  1. Run the auditor script:

    python3 ~/.agents/skills/kitchen-sink-design-system/scripts/audit_design_system.py \
      --root "." \
      --out "design_audit.json"
  2. Read the report: Load design_audit.json to see:

    • Detected framework (Next.js, Astro, etc.).
    • Inventory of existing components.
    • Design Drift Report: Hardcoded hex values and arbitrary Tailwind values (-[...]) found in component files.
    • Checklist Gap: Tier 1 primitives (Button, Card, etc.) missing from the codebase.
  3. Establish/Adopt:

    • If a guide exists: Map discovered tokens to the guide.
    • If no guide exists: Propose a design-tokens.md based on de-facto tokens found in the drift report.

Phase 1: Build & Fix Components

For every MISSING item or file with DRIFT:

  • Refactor to use semantic design tokens.
  • Apply the base + variant pattern (CVA for React, Props for Astro).
  • Wire into the sink page immediately.

Phase 2: Assemble Sink Page

Create the sink route (e.g., app/sink/page.tsx or src/pages/sink.astro) following the standard section order:

  1. Header & Franchise declaration
  2. Design Tokens visualization
  3. Voice & Tone
  4. Illustration Gallery (via omni-image)
  5. Component categories (Typography, Buttons, Forms, etc.)

Phase 3: Verify

pnpm build
pnpm lint
pnpm dlx @axe-core/cli http://localhost:3000/sink

Anti-patterns (The "Hot Take" List)

  • Agent labor: Don't manually grep for hex codes; use the script.
  • Draft placeholders: Build real components or nothing.
  • Arbitrary values: w-[37px] is a failure of the design system.
  • Count drift: Deriving counts from collections, not hardcoding strings.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The skill provides a deterministic workflow and automated scripts for auditing design systems, identifying UI component inventory, and detecting styling inconsistencies. It promotes best practices such as semantic tokens, accessibility auditing, and consistent documentation. No security risks or malicious patterns were identified.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at b07f28f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 7 months ago
version
2.0.0

README badge

README badge for genericservice/claude-skills/kitchen-sink-design-system