agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/design-system-integrator/SKILL.md

design-system-integrator

Skill1 starsChanged 19 days agoMITView on GitHub

Integrates design systems via a strict 4-scenario Decision Tree (Figma, existing codebase, brand/URL reference, or zero-design generation) using MCP tools and vendor libraries, and enforces Phase 6 component reuse. Use in Phase 3 and Phase 6.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Read docs/project/PRD.md, docs/project/STACK.md, .agents/rules/02-design-principles.md, and read …

    line 16
  2. Very specific:

    Scenario A (User has Figma): Use figma-console-mcp or design-context-bridge to extract DTCG tokens, typography, and component specs, and …

    line 18
  3. Very specific:

    Scenario C (User has a brand/URL reference): Use @designmdcc/mcp or designlang to extract the design language from the URL and record it in …

    line 20
  4. Very specific:

    Scenario D (User has NO design): Use standby-design-mcp or .agents/vendor/design-taste-frontend (with design-system-generator) to generate …

    line 21
  5. Very specific:

    Ensure docs/project/DESIGN.md meets all hard-floor rules (WCAG AA 4.5:1 contrast, focus states, prefers-reduced-motion, mobile fit, >= 3 …

    line 23
  6. Very specific:

    Before generating UI components in Phase 6, you MUST use ds-pilot or brandrail MCP (if available.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 System Integrator

Trigger

Phase 3 (Design System) and Phase 6 (Implementation).

Process

Phase 3: Strict Decision Tree

Read docs/project/PRD.md, docs/project/STACK.md, .agents/rules/02-design-principles.md, and read .agents/skills/design-system-integrator/references/mcp-design-tools.md on-demand for detailed MCP tool workflows. Select the matching scenario:

  • Scenario A (User has Figma): Use figma-console-mcp or design-context-bridge to extract DTCG tokens, typography, and component specs, and map them to docs/project/DESIGN.md.
  • Scenario B (User has an existing codebase): Scan CSS/Tailwind config to mine the de-facto styling and formalize it into docs/project/DESIGN.md.
  • Scenario C (User has a brand/URL reference): Use @designmdcc/mcp or designlang to extract the design language from the URL and record it in docs/project/DESIGN.md.
  • Scenario D (User has NO design): Use standby-design-mcp or .agents/vendor/design-taste-frontend (with design-system-generator) to generate a production-ready system from PRD tone and industry.

Ensure docs/project/DESIGN.md meets all hard-floor rules (WCAG AA 4.5:1 contrast, focus states, prefers-reduced-motion, mobile fit, >= 3 typography levels) and configure the stack's token files / theme provider.

Phase 6: Component & Token Reuse Rule

Before generating UI components in Phase 6, you MUST use ds-pilot or brandrail MCP (if available; see references/mcp-design-tools.md) to search the local codebase for existing components and tokens to prevent duplication. Bind every component to docs/project/DESIGN.md tokens.

Output Contract

  • docs/project/DESIGN.md recording the Decision Tree scenario (A-D), extracted or generated tokens, hard-floor compliance, and override justifications.
  • Configured theme provider and exported token files matching docs/project/STACK.md.

Checklist

  • Decision Tree scenario (A: Figma, B: Existing codebase, C: Brand/URL, D: No design) applied cleanly
  • Read .agents/skills/design-system-integrator/references/mcp-design-tools.md for MCP extraction/reuse details
  • Hard-floor rules satisfied and documented in docs/project/DESIGN.md
  • Phase 6 UI component generation preceded by ds-pilot / brandrail reuse search

Prohibitions

  • Defaulting to shadcn/ui or hardcoded styles when another system, Figma spec, codebase, or brand aesthetic applies.
  • Guessing tokens from memory instead of invoking MCP/codebase tools.
  • Creating duplicate UI components without searching existing components and tokens first.

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.