See the real thing.
Open the URL, preview, simulator, image, or rendered PDF. Capture locale, theme, data, and permissions.
OPEN SOURCE AI AGENT SKILL
An evidence-first protocol for mirroring websites, apps, images, and PDFs into editable interfaces — with the proof to show what changed.
npx mirror-goal install
Install once · use /mirror with any compatible AI agent · MIT licensed
THE PROTOCOL
Mirror Goal treats the source as a contract. It opens the real thing, turns sight into structured evidence, and gives the agent a line it cannot quietly move.
Open the URL, preview, simulator, image, or rendered PDF. Capture locale, theme, data, and permissions.
Segment surfaces and controls. Record coordinates, styles, roles, content, and actions.
Translate the source into accessible HTML/CSS or native components. Never use the screenshot as a background.
Replay every state, compare the evidence, and block completion when the threshold is exceeded.
WHY MIRROR GOAL
Coordinates, computed styles, semantic roles, and interaction states turn visual similarity into an implementation you can inspect, change, and trust.
Read how the artifacts workANY SURFACE
From web to app, image to web, or PDF to a working surface — the evidence changes shape, not standards.
DOM · accessibility · computed styles · states
native tree · testIDs · simulator captures · safe areas
pixels · segments · bounds · inferred semantics
pages · text blocks · page coordinates · layout
CONTROL THE DELTA
Visual tolerance is explicit, versioned, and visible in the final report. Tighten it for production. Loosen it only with a reason.
A production-minded default for a faithful mirror.
BEFORE YOU MIRROR
A short guide to the inputs, outputs, tolerance, and implementation rules behind an evidence-first mirror.
Mirror Goal is an open-source AI agent skill that inspects a source, captures its states, segments its surfaces, records coordinates and styles, builds an editable target, and verifies the result against a configurable visual tolerance.
It supports web, app, image, and PDF sources, with web or app targets. The source and target can be chosen for the direction of the work.
Run npx mirror-goal install in a terminal. Then use the /mirror command in a compatible AI agent with a source and a target.
Yes. The default visual threshold is 3%, and Mirror Goal keeps the tolerance explicit in the job configuration and verification report.
No. Screenshots are evidence for measurement and comparison. The destination is built with real HTML, CSS, or native components.
GET THE SKILL
Install it into any compatible AI agent, point it at a source and a target, and keep the artifacts when the UI matters.
npx mirror-goal install