Source profileQuality 74/100

nexu-io/open-design/plugins/_official/atoms/design-extract/SKILL.md

design-extract

Extract design tokens (color / typography / spacing) from imported source code, screenshots, or Figma exports into the canonical token bag token-map consumes.

Source repository stars
82,073
Declared platforms
0
Static risk flags
0
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

Spec §10 / §21.3.2: tokens scattered across a repo's CSS / theme files / Tailwind config / styled-components helpers / SCSS partials need to be lifted into one bag before token-map can crosswalk them onto the active OD design system. This atom does the lifting; the input shape i…

Best for

    Not for

    • Hard-coded hex values inside JSX literals (color: 'fff') are
    • Tailwind utility scans must dedupe palette references against the

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/nexu-io/open-design --skill "plugins/_official/atoms/design-extract"
    Safe inspection promptEditorial

    Inspect the Agent Skill "design-extract" from https://github.com/nexu-io/open-design/blob/89d6d4ef21baf80f871595abdf6f7de6e941dd44/plugins/_official/atoms/design-extract/SKILL.md at commit 89d6d4ef21baf80f871595abdf6f7de6e941dd44. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Inputs

      code/index.json from code-import (code-migration), OR

      code/index.json from code-import (code-migration), ORfigma/tree.json from figma-extract (figma-migration), ORA folder of screenshot images (tune-collab quick-tune flows).
    2. 02

      Output

      Each token entry carries:

      Each token entry carries:sources[] and usage[] are the audit trail token-map.unmatched.json references when a target token can't be found.
    3. 03

      Convergence

      The atom completes when code/tokens.json exists. Empty token bags emit a warning event but do not abort — token-map handles the empty case by skipping its mapping pass.

      The atom completes when code/tokens.json exists. Empty token bags emit a warning event but do not abort — token-map handles the empty case by skipping its mapping pass.
    4. 04

      Anti-patterns the prompt fragment forbids

      Hard-coded hex values inside JSX literals (color: 'fff') are

      Hard-coded hex values inside JSX literals (color: 'fff') areTailwind utility scans must dedupe palette references against the- Hard-coded hex values inside JSX literals (color: 'fff') are tokens for this atom's purposes; record them with kind:'color' and a synthetic name so they don't disappear into the noise. - Tailwind utility scans must de…

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score74/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars82,073SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    nexu-io/open-design
    Skill path
    plugins/_official/atoms/design-extract/SKILL.md
    Commit
    89d6d4ef21baf80f871595abdf6f7de6e941dd44
    License
    Apache-2.0
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    Design extract

    Spec §10 / §21.3.2: tokens scattered across a repo's CSS / theme files / Tailwind config / styled-components helpers / SCSS partials need to be lifted into one bag before token-map can crosswalk them onto the active OD design system. This atom does the lifting; the input shape is intentionally generic so the same atom serves both code-migration and figma-migration when fed different sources.

    Inputs

    • code/index.json from code-import (code-migration), OR
    • figma/tree.json from figma-extract (figma-migration), OR
    • A folder of screenshot images (tune-collab quick-tune flows).

    Output

    project-cwd/
    └── code/
        └── tokens.json     # { colors[], typography[], spacing[], radius[], shadow[] }
    

    Each token entry carries:

    {
      "kind":     "color",
      "name":     "primary-500",     // optional source name
      "value":    "#5b8def",          // canonical value
      "sources": ["styles/global.css:42", "tailwind.config.js:24"],
      "usage":   ["Header.tsx", "Footer.tsx"]
    }
    

    sources[] and usage[] are the audit trail token-map.unmatched.json references when a target token can't be found.

    Convergence

    The atom completes when code/tokens.json exists. Empty token bags emit a warning event but do not abort — token-map handles the empty case by skipping its mapping pass.

    Anti-patterns the prompt fragment forbids

    • Hard-coded hex values inside JSX literals (color: '#fff') are tokens for this atom's purposes; record them with kind:'color' and a synthetic name so they don't disappear into the noise.
    • Tailwind utility scans must dedupe palette references against the active theme — never list bg-blue-500 and bg-blue-600 as one token.

    Status

    Implemented by the daemon runner in apps/daemon/src/plugins/atoms/design-extract.ts. It scans the indexed source files, extracts CSS, Tailwind, and JavaScript token evidence, and writes code/tokens.json.

    Alternatives

    Compare before choosing