agentleFS
crywolfecrywolfe/claude-code-design/.claude/skills/ingest-screenshot/SKILL.md

ingest-screenshot

Skill0 starsChanged 8 days agoMITView on GitHub

Analyze an uploaded image (screenshot of a design, website, app) and extract design tokens to use as a starting point. Use when user pastes or attaches an image and says "recreate this", "match this image", "use this style".

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Follow-up: /create-design-system or start /make-deck / /interactive-prototype using these as starting point.

    line 37
  2. Distinctive:

    After ingest, always offer to pair with a real source (Figma, codebase) to lock in exact values — the screenshot gives a *starting …

    line 48

≈ “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

Ingest Screenshot

Extract design tokens from a static image using Claude's vision. Honest caveats: exact hex codes are approximate without source files. Claude recreates UIs more reliably from code than from screenshots.

Steps

  1. Resolve image path: $0. Bash(file <path>) to confirm it's an image (png/jpg/webp/heic).
  2. Read via multimodal Read: this loads the image for vision. Claude can see it.
  3. Analyze systematically. From the image, identify:
    • Dominant colors — pick 5-8 swatches with hex approximations. Flag uncertain ones ("looks like #2A4B6D but vision hex is approximate").
    • Typography — font family (match to common families: Inter-like, serif-like, display, mono), sizes (relative), weights (light/regular/medium/bold), line-height impression
    • Spacing rhythm — estimate base unit (4/6/8px) from gaps + padding
    • Radii — sharp / small / medium / pill
    • Component patterns — what types of elements appear (buttons, cards, navigation, inputs)
    • Aesthetic register — minimal / dense / decorative / playful / corporate / brutalist
  4. Write output:
    artifacts/ingested/screenshot-<timestamp>-tokens.json
    Same schema as ingest-github + "source": { "image": "<path>", "ingested_at": "..." } + "confidence": "low|medium|high" per category.
  5. Preview confidence: for each uncertain value, add a "confidence" field (low | medium | high). Vision-derived hex codes should be low or medium.
  6. Offer next step:
    • "Extracted tokens saved. Colors are approximate — do you have the source file (CSS, design system, brand guide) to cross-check?"
    • Follow-up: /create-design-system or start /make-deck / /interactive-prototype using these as starting point.

Limitations — tell the user

  • Vision returns approximate hex, not exact. For production accuracy, provide source files.
  • Multiple overlapping colors → Claude picks representative samples, not all variations
  • Typography recognition is fuzzy — "looks like Inter" ≠ "is Inter"
  • Pixel dimensions require the image's actual resolution to be readable

Workflow integration

After ingest, always offer to pair with a real source (Figma, codebase) to lock in exact values — the screenshot gives a starting direction, not ground truth.

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.