All skills
simota avatar

/pixel

@35ffd55
by shingo imotasimota/agent-skills85 stars
15

Generating pixel-accurate HTML/CSS code from image mockups (PNG/JPG/screenshots) and performing visual verification for faithful reproduction. Use when mockup-to-code generation is needed.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/pixel

This session only. Nothing lands on disk.

referencemodern-css-baseline.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Modern CSS Baseline Status (2025-2026)

Use this matrix to decide whether a CSS feature needs a fallback in generated code.

  • Widely Available = safe without fallback on modern projects
  • Newly Available = works in latest browsers; include @supports guard for older audiences

Feature Matrix

Feature Baseline Status Safe Without Fallback? Source
CSS Subgrid Widely Available (2026-03) Yes MDN Subgrid
Container Queries (@container) Widely Available (2025-08) Yes web.dev Aug 2025
CSS Nesting Widely Available (2023) Yes MDN Nesting
:has() selector Newly Available (2023-12; Widely ~2026-06) Yes (latest) State of CSS 2025
color-mix() Newly Available (2024; Widely ~2026-11) Yes (latest) Chrome devs
light-dark() Newly Available (2024-05; Widely ~2026-11) Yes (latest) web.dev
CSS Anchor Positioning Newly Available (2026; Chrome 125+/Firefox 147+/Safari 26+) Partial — @position-try needs Safari 18.4+ OddBird 2025 / caniuse
@scope Newly Available (2025-12; Firefox 146+) Yes (latest) web.dev Dec 2025
View Transitions (single-doc) Newly Available (2025-10; Chrome 111+/Firefox 133+/Safari 18+) Yes (latest) Chrome devs
View Transitions (cross-doc) Partial (Chrome 126+/Safari 18.2+; Firefox TBD 2026) No — Firefox missing MDN
Scroll-Driven Animations (animation-timeline) Partial (Chrome 115+/Firefox 110+/Safari 18+) Use @supports MDN
CSS Grid Lanes (formerly Masonry) Experimental (Safari 26 ships display:grid-lanes; Chrome 140 flag) No — not cross-browser W3C CSS WG 2025-09

Key Changes from Pre-2025 Assumptions

  • CSS Masonry spec was renamed to CSS Grid Lanes (display: grid-lanes). Avoid masonry as a value — use grid-lanes and inline-grid-lanes.
  • CSS Anchor Positioning is now multi-browser (Firefox 147+ stable, Jan 2026), but @position-try flip behavior requires Safari 18.4+. Use position-try-fallbacks with a safe fallback placement for older Safari.
  • @scope crossed Baseline "Newly Available" in December 2025 with Firefox 146 support.
  • Container queries graduated to Baseline Widely Available in August 2025 — no fallback needed for modern projects.

Container Query Authoring Rules

  • Prefer @container over @media for components reused across layout contexts (cards, widgets, sidebars).
  • Use container-type: inline-size on wrappers; always assign container-name when nesting — unnamed queries match the nearest ancestor and cause subtle bugs.
  • Avoid >3 levels of nested containment contexts (each adds browser evaluation overhead).
  • Keep @media for page-level layout and user preferences (prefers-color-scheme, prefers-reduced-motion).

Capability Detail (SKILL.md excerpt)

  • modern_css_reproduction: CSS Subgrid (Baseline Widely Available 2026-03), Container Queries (Baseline Widely Available 2025-08), CSS Nesting (Baseline Widely Available), Anchor Positioning (Baseline Newly Available 2026; Chrome 125+/Firefox 147+/Safari 26+), @scope (Baseline Newly Available 2025-12), CSS Grid Lanes/formerly Masonry (Safari 26 ships display:grid-lanes; Chrome 140 experimental), View Transitions single-doc (Baseline Newly Available 2025-10), scroll-driven animations (animation-timeline; Chrome 115+/Firefox 110+/Safari 18+)

Source: SKILL.md on GitHub

No alerts13d4 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The pixel skill provides a robust framework for converting image mockups into high-fidelity HTML and CSS. It includes detailed instructions for design value extraction, responsive design, and automated visual verification using tools like Playwright and pixelmatch. The skill follows industry best practices and references official resources from trusted organizations like Microsoft, Mozilla, and the W3C. No malicious code, exfiltration patterns, or safety bypasses were detected.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    1 finding · Score: 86/100

Signed by skilld at 35ffd55. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/pixel