By mrmarufpro
Pixel-exact Shopify Polaris UI from a screenshot/design: an isolated sandbox that renders your project's own Polaris, measures the reference, and asserts the rendered DOM against those numbers via Playwright. Bundles the polaris-design authoring skill.
Design and implement UI components and pages using Shopify Polaris in a React app. Guide layout, forms, data tables, feedback states, modals, and navigation following idiomatic Polaris patterns. Reference docs at https://polaris-react.shopify.com/components
Use when converting a UI reference (screenshot/design) into Polaris React, matching a design pixel-for-pixel, or verifying built UI against a target. Triggers on "make it match", "exact match", "build this UI from this screenshot/design", or when a previous attempt was "close but not exact". Renders in an isolated sandbox at localhost:6090 that loads YOUR project's Polaris, measures the reference, and asserts the rendered DOM against those numbers via Playwright.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Build pixel-exact Shopify Polaris UI from a screenshot or design, and prove it by measuring the reference and asserting the rendered DOM against those numbers — not by eyeballing a screenshot.
This repo is a Claude Code plugin marketplace. The plugin ships two skills and
an isolated visual sandbox that runs outside your project but renders your
project's own @shopify/polaris + React, so measurements match what your app
actually ships. Nothing is scaffolded into your repo.
| Skill | What it does |
|---|---|
polaris-visual-sandbox | The strict measure → build → assert → iterate → apply loop. Boots the sandbox, drives Playwright, asserts the DOM. |
polaris-design | Idiomatic Polaris authoring patterns (layout, forms, tables, modals, feedback states). |
Plus the sandbox app (sandbox/) and Python tooling (tokens.py, measure.py).
/plugin marketplace add mrmarufpro/polaris-visual-sandbox
/plugin install polaris-visual-sandbox@polaris-visual-sandbox
Restart Claude Code (or reload plugins) after installing. To update later:
/plugin marketplace update polaris-visual-sandbox.
Installing wires up the prerequisite MCP servers declared in .mcp.json
(playwright, context7) — approve them when prompted. If a teammate already has
those configured, the existing ones are reused.
The sandbox renders your project's Polaris and verifies the DOM, so each machine needs:
python3 with Pillow — pip install pillow (the measurement scripts use PIL)..mcp.json; approve on install..mcp.json (optional but recommended for prop docs).@shopify/polaris and react installed.From a Shopify Polaris project, ask Claude something like:
"Make this match exactly" + a screenshot, and the target file to apply it to.
The polaris-visual-sandbox skill triggers and runs the loop. Under the hood it boots
the sandbox from your project root:
"${CLAUDE_PLUGIN_ROOT}/skills/polaris-visual-sandbox/scripts/start-sandbox.sh"
which prints connection info as JSON:
{"type":"sandbox-started","url":"http://localhost:6090","port":6090,
"slot_path":"~/.cache/polaris-visual-sandbox/Slot.tsx",
"node_modules":"<your project>/web/frontend/node_modules",
"polaris_styles":".../@shopify/polaris/build/esm/styles.css","polaris_version":"13.9.5"}
The agent writes Polaris JSX to slot_path, screenshots localhost:6090, asserts
the DOM with Playwright, iterates until exact, then applies the result to your real
component/page. Stop + reset with:
"${CLAUDE_PLUGIN_ROOT}/skills/polaris-visual-sandbox/scripts/stop-sandbox.sh" --reset
start-sandbox.sh discovers your project's node_modules (searching cwd and
web/frontend, frontend, app, client, src; override with
--node-modules <path>). Vite aliases @shopify/polaris/react/react-dom to
that copy, and tokens.py reads the same styles.css. The plugin only
ships the build tooling — your project owns the components and tokens.
--port to change). If you also run an in-repo
sandbox on 6090, stop one first.--node-modules. pnpm symlinked stores are handled.~/.cache/polaris-visual-sandbox.Bump version in .claude-plugin/plugin.json and .claude-plugin/marketplace.json,
commit, and push. Teammates get the update via /plugin marketplace update (or on
the next plugin refresh).
.claude-plugin/{marketplace.json, plugin.json}
.mcp.json # playwright + context7
skills/
polaris-visual-sandbox/{SKILL.md, polaris-reference.md, scripts/}
polaris-design/SKILL.md
sandbox/ # Vite app source (run from a cache dir, not here)
npx claudepluginhub mrmarufpro/polaris-visual-sandbox --plugin polaris-visual-sandboxComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications
Write SQL, explore datasets, and generate insights faster. Build visualizations and dashboards, and turn raw data into clear stories for stakeholders.
Next.js development expertise with skills for App Router, Server Components, Route Handlers, Server Actions, and authentication patterns