Skip to content

xinetzone/SpecWeave / .agents/skills/design-library-creator

design-library-creator

Flagged

Create, expand, and refine professional Design Libraries / Design Systems with structured token architecture. ONLY invoke when user EXPLICITLY mentions design-system terminology: 'Design Library', 'Design System', '设计系统', '设计库', 'token system', 'design tokens', '组件库规范', or provides a parsed design-spec bundle (ZIP/Figma export). Also covers creating a new theme / color theme as a design-system deliverable (创建主题/新建暖色主题/深色主题等 — tokens + palette + component styling). Do NOT route here for: '素材库', '全套素材', '素材合集', '物料库', '生成素材', '做一套设计', '做几张图', '设计一套页面', '帮我出图', page/poster/landing-page creation, or any visual-asset generation intent where the user does not demonstrate knowledge of design-system concepts. Those belong to solo-design.

FileKindSize
SKILL.mdskill md19.3 KB
aesthetics/dark-mode.mdmarkdown1.8 KB
aesthetics/index.mdmarkdown33.8 KB
aesthetics/navigation-footer.mdmarkdown2.2 KB
aesthetics/screen-craft.mdmarkdown9.2 KB
aesthetics/self-check.mdmarkdown24.9 KB
examples/templates/component-dispatch-rules.mdmarkdown9.1 KB
examples/templates/figma-token-gen.mdmarkdown50.3 KB
examples/templates/incremental.mdmarkdown5.7 KB
examples/templates/phase-2-analysts.mdmarkdown6.8 KB
examples/templates/phase-2-structured-spec.mdmarkdown8.8 KB
examples/templates/phase-2.5-intent-synthesis.mdmarkdown31.0 KB
examples/templates/phase-3-4-component.mdmarkdown9.0 KB
examples/templates/phase-4-ui-kit.mdmarkdown39.3 KB
examples/templates/phase-5-docs.mdmarkdown12.5 KB
examples/templates/scratch-token-gen.mdmarkdown14.4 KB
examples/templates/specimen-reference.htmlother6.0 KB
file-specs/css-json.mdmarkdown9.5 KB
file-specs/css-tokens.mdmarkdown33.6 KB
file-specs/design-library-output.mdmarkdown10.3 KB
file-specs/design-spec-bundle.mdmarkdown5.9 KB
file-specs/documentation.mdmarkdown12.3 KB
file-specs/preview-pages.mdmarkdown28.0 KB
file-specs/ui-kit.mdmarkdown28.5 KB
operation-policies/agent-orchestration.mdmarkdown20.2 KB
operation-policies/bundle-exploration.mdmarkdown9.0 KB
operation-policies/decision-rules.mdmarkdown10.7 KB
operation-policies/quality-gates.mdmarkdown10.5 KB
operation-policies/user-output-policy.mdmarkdown7.8 KB
scripts/check-design-library-phase.mjsscript85.1 KB
scripts/copy-bundle-assets.mjsscript12.3 KB
scripts/css-to-json.mjsscript53.1 KB
scripts/css-utils.mjsscript748 B
scripts/extract-components-css.mjsscript10.3 KB
scripts/generate-uikit-plan.mjsscript27.5 KB
scripts/jsonl-utils.mjsscript7.3 KB
scripts/validate-design-library-output.mjsscript3.1 KB
scripts/validate-intent.mjsscript7.3 KB
scripts/validate-token-input.mjsscript4.0 KB
scripts/validate-uikit-plan.mjsscript13.6 KB
skill-release-manifest.jsonconfig202 B
workflows/create-from-scratch.mdmarkdown22.5 KB
workflows/create-from-structured-spec.mdmarkdown17.5 KB
workflows/create-library.mdmarkdown53.0 KB
workflows/expand-components.mdmarkdown9.0 KB
workflows/generate-additional-kit.mdmarkdown4.9 KB
workflows/refine-library.mdmarkdown9.7 KB

examples/templates/specimen-reference.html

View on GitHub
<!--
  Specimen Reference Template
  ===========================
  This is the "North Star" layout for component preview pages.
  Phase 3 sub-agents MUST follow this structure when rendering
  intent-based component previews.

  Key patterns:
  - .specimen > .header + .stage (mandatory structure)
  - .specimen has border + radius + overflow:hidden (card container)
  - .story = one variant group (grid: 92px label + 1fr content)
  - .story-label stays inside the 92px label column; wrap or ellipsize long labels, never let labels overlap the rail
  - .story has its own padding + border + radius + background (independent card)
  - .rail = flex container for component instances (with border + bg)
  - Structure is normative; token names below are illustrative only.
    Generated previews MUST replace every var(--name) with names from
    the current library's colors_and_type.css.
  - Do not create local CSS variable aliases such as --bd, --rad, --bg2.
  - Responsive breakpoint at 460px
  - ALL interactive elements have real :hover/:focus-visible/:disabled pseudo-classes
  - Button/Tag min-width >= height (no crushed elements)
  - Text in controls: white-space:nowrap (no wrapping)
-->
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="stylesheet" href="../colors_and_type.css">
  <style>
  *{margin:0;box-sizing:border-box}
  .specimen{
    max-width:100%;
    margin:0 auto;
    border:1px solid var(--border-default);
    border-radius:var(--radius-m, 12px);
    overflow:hidden;
    background:var(--bg-base-default, #fff);
    font-family:var(--font-body);
  }
  .header{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    padding:var(--spacer-24) var(--spacer-24) var(--spacer-16);
    border-bottom:1px solid var(--border-subtle);
  }
  .header h1{font:var(--heading-lg);color:var(--text-default)}
  .header .sub{font:var(--body-md);color:var(--text-tertiary);margin-top:var(--spacer-4)}
  .pill{
    font:var(--body-xs);
    color:var(--text-secondary);
    border:1px solid var(--border-default);
    border-radius:var(--radius-full);
    padding:var(--spacer-4) var(--spacer-12);
    white-space:nowrap;
  }
  .stage{
    display:flex;
    flex-direction:column;
    gap:var(--spacer-12);
    padding:var(--spacer-16);
    background:var(--bg-base-secondary, #f9fafb);
  }
  .story{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    align-items:center;
    gap:var(--spacer-16);
    padding:var(--spacer-12);
    border:1px solid var(--border-subtle);
    border-radius:var(--radius-s, 8px);
    background:var(--bg-surface, var(--bg-base-default, #fff));
  }
  .story-label{
    font:var(--body-xs);
    color:var(--text-tertiary);
    text-transform:uppercase;
    width:92px;
    min-width:0;
    max-width:92px;
    flex-shrink:0;
    white-space:normal;
    overflow:hidden;
    overflow-wrap:anywhere;
    line-height:1.25;
  }
  .rail{
    display:flex;
    min-width:0;
    gap:var(--spacer-12);
    flex-wrap:wrap;
    align-items:center;
    padding:var(--spacer-8);
    border:1px solid var(--border-subtle);
    border-radius:var(--radius-s, 8px);
    background:var(--bg-base-secondary, var(--bg-base-default, #fafafa));
  }
  .divider{border:none;border-top:1px solid var(--border-subtle);margin:var(--spacer-8) 0}
  /* ---- Component-specific styles (Button example) ---- */
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:var(--spacer-8);
    border:none;
    cursor:pointer;
    font:var(--body-sm);
    border-radius:var(--radius-xs-6, 6px);
    padding:var(--spacer-6) var(--spacer-16);
    min-width:var(--control-height-m, 32px);
    height:var(--control-height-m, 32px);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    transition:background .15s, border-color .15s, opacity .15s;
  }
  .btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}
  .btn.brand{background:var(--bg-brand);color:var(--text-white)}
  .btn.brand:hover{background:var(--bg-brand-hover)}
  .btn.primary{background:var(--bg-neutral-l1);color:var(--text-default)}
  .btn.primary:hover{background:var(--bg-neutral-l2)}
  .btn.secondary{background:transparent;border:1px solid var(--border-neutral-l1);color:var(--text-default)}
  .btn.secondary:hover{border-color:var(--border-neutral-l2);background:var(--bg-neutral-l1)}
  .btn.ghost{background:transparent;color:var(--text-secondary)}
  .btn.ghost:hover{background:var(--bg-neutral-l1)}
  .btn:disabled,.btn[aria-disabled="true"]{opacity:.4;cursor:not-allowed;pointer-events:none}
  @media(max-width:460px){
    .story{grid-template-columns:1fr;gap:var(--spacer-8)}
    .story-label{width:auto;max-width:none}
  }
  </style>
</head>
<body>
<main class="specimen">
  <header class="header">
    <div>
      <h1>Button</h1>
      <div class="sub">Buttons define hierarchy through variant and density, not through color volume.</div>
    </div>
    <span class="pill">6px radius</span>
  </header>
  <div class="stage">
    <section class="story">
      <span class="story-label">Brand</span>
      <div class="rail">
        <button class="btn brand">Generate report</button>
        <button class="btn brand" disabled>Generate report</button>
      </div>
    </section>
    <section class="story">
      <span class="story-label">Primary</span>
      <div class="rail">
        <button class="btn primary">Save</button>
        <button class="btn primary" disabled>Save</button>
      </div>
    </section>
    <section class="story">
      <span class="story-label">Secondary</span>
      <div class="rail">
        <button class="btn secondary">Cancel</button>
        <button class="btn secondary" disabled>Cancel</button>
      </div>
    </section>
    <hr class="divider">
    <section class="story">
      <span class="story-label">Ghost</span>
      <div class="rail">
        <button class="btn ghost">Settings</button>
        <button class="btn ghost" disabled>Settings</button>
      </div>
    </section>
  </div>
</main>
</body>
</html>
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall