screenshot-to-interface
Skill2 starsChanged 11 days agoMITView on GitHub
Reconstruct a maintainable interface from screenshots or visual references. Use when fidelity to supplied visual evidence is the primary requirement. Not for greenfield art direction or copying logos, photos, or fonts without rights.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cmdr-chara/chara-toolkitword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- cmdr-chara/chara-toolkit★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bin/AGENTS.mdAGENTS.md
- evaluations/AGENTS.mdAGENTS.md
- orchestration/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- skills/llms.txtllms.txt
- bug-finderSkill
- codebase-evolution-controllerSkill
- codebase-improvement-plannerSkill
- completion-proofSkill
- content-provenance-hygieneSkill
- cpp-engineeringSkill
- debugging-investigatorSkill
- delegate-with-mission-cardsSkill
- documentation-synchronizerSkill
- expo-react-native-builderSkill
- flutter-production-builderSkill
- go-engineeringSkill
- kotlin-engineeringSkill
- mobile-architecture-directorSkill
- multi-agent-work-coordinatorSkill
- optimize-codebase-performanceSkill
- product-design-directorSkill
- production-web-builderSkill
- python-engineeringSkill
- repository-intelligenceSkill
- review-and-refactor-codeSkill
- rust-engineeringSkill
- security-reviewSkill
- swift-engineeringSkill
- toolchain-preflightSkill
- typescript-quality-enforcerSkill
- verification-and-releaseSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when screenshots, mockup exports, or visual references define the primary fidelity target: rebuilding a screen from an …
- Very specific: line 14
Do not trigger for greenfield art direction (product-design-director), production hardening without a visual target (the platform builder), …
- Distinctive: line 18
Every reference image with its source, owner, capture viewport, device pixel ratio, and theme.
- Very specific: line 28
Do not extract logos, photos, illustrations, icons, or fonts from a screenshot for shipping.
- Distinctive: line 30
Never invent data, copy, or legal text that the reference shows as real content.
- Very specific: line 57
Use product-design-director when the reference does not settle the experience direction or conflicts with the existing design system.
- Distinctive: line 63
Reference conflicts with tokens: follow the token where the gap is under the deviation threshold, and log larger gaps for a design decision.
- Distinctive: line 68
Stop when the rights basis for the reference or its assets is unknown and the work would reproduce protected material.
- Distinctive: line 69
Stop for confirmation before adding design-system components or overriding shared tokens.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Screenshot to Interface
A screenshot is evidence of one rendered state at one size. Rebuild what it proves with the target codebase's own components and tokens, label everything it does not prove as an assumption, and measure fidelity instead of eyeballing it.
Trigger boundary
Use this skill when screenshots, mockup exports, or visual references define the primary fidelity target: rebuilding a screen from an image, matching an approved design export, or porting a captured UI into an existing codebase.
Do not trigger for greenfield art direction (product-design-director), production hardening without a visual target (the platform builder), or copying assets the user has no rights to.
Required inputs
- Every reference image with its source, owner, capture viewport, device pixel ratio, and theme.
- The rights basis: the user's own product, a licensed design, or inspiration only.
- Target platform, framework, design system, tokens, and component library.
- Which areas must match exactly and which may follow the design system.
- Interactive behavior the reference cannot show, or permission to infer it as labelled assumptions.
- Working-tree state of the target repository.
Safety baseline
- Preserve uncommitted work and existing components; extend or compose them rather than forking near-duplicates.
- Do not extract logos, photos, illustrations, icons, or fonts from a screenshot for shipping. Follow
references/asset-handling.md. - Reproducing a third party's distinctive trade dress or a whole product UI needs a stated rights basis; without one, reconstruct layout and behavior with the target's own visual identity.
- Never invent data, copy, or legal text that the reference shows as real content; use labelled placeholders.
- Accessibility does not degrade for fidelity: semantics, focus order, contrast, and target sizes meet the project's target even where the image suggests otherwise.
Workflow
- Intake the reference. Record provenance, rights, viewport, DPR, and theme for each image, and what each one does and does not prove. Read
references/reference-intake.md. - Decompose and measure. Derive the layout structure, spacing scale, type ramp, color roles, and component inventory from measurements, not impressions. Map each measured value to an existing token or log a deviation. Read
references/decomposition-and-mapping.md, and use the helper below. - Plan the build. Map regions to existing components, name the new components needed, and list inferred states and responsive behavior as assumptions. Stop for confirmation when the plan adds new design-system components or overrides tokens.
- Build semantically. Implement with real structure (landmarks, headings, lists, buttons, labelled inputs), the target's tokens, and the asset decision order.
- Verify fidelity. Capture the build at the reference's exact viewport, DPR, theme, and content, compare it, and fix the largest deviations first. Read
references/fidelity-verification.md. - Report. Give the deviation log, assumptions, asset record, and the accessibility checks that ran.
Measurement helper
scripts/measure_tokens.py is read-only and uses only the standard library:
python skills/screenshot-to-interface/scripts/measure_tokens.py contrast "#111827" "#ffffff"
python skills/screenshot-to-interface/scripts/measure_tokens.py colors --tokens tokens.json "#2564ea"
python skills/screenshot-to-interface/scripts/measure_tokens.py scale 16 32 48 --dpr 2
python skills/screenshot-to-interface/scripts/measure_tokens.py scale 15 33 --tokens tokens.json --group spacingcontrast checks WCAG ratios, colors snaps sampled colors to the nearest token by CIEDE2000 and flags non-matches, and scale converts device pixels to CSS pixels and infers a base unit or snaps values to dimension tokens. Treat its output as measurement evidence; the decision to adopt a token or log a deviation is still yours.
Handoffs and interaction boundaries
Use product-design-director when the reference does not settle the experience direction or conflicts with the existing design system. Use the relevant builder (production-web-builder, flutter-production-builder, expo-react-native-builder) for production architecture and hardening. Security-specific review goes to security-review.
Failure handling
- Unknown viewport or DPR: infer it from known element sizes (for example a 16px body font), state the inference, and lower the fidelity claim.
- Compressed or blurry reference: measure at structural boundaries and snap to the scale. Do not chase single-pixel noise.
- Reference conflicts with tokens: follow the token where the gap is under the deviation threshold, and log larger gaps for a design decision.
- Hidden states: build the states the platform needs (hover, focus, disabled, loading, error, empty), mark them as inferred, and ask for references when they matter.
Stop conditions
- Stop when the rights basis for the reference or its assets is unknown and the work would reproduce protected material.
- Stop for confirmation before adding design-system components or overriding shared tokens.
- The work is complete when every captured viewport passes the agreed fidelity threshold, or the remaining deviations are logged with a reason; assets have recorded sources; inferred behavior is labelled; and accessibility checks pass.
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
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.

