Logo van Reconcile Paper Sync

Reconcile Paper Sync

Organisatie
millionco
reconcile-paper-sync

Use when a built app that was derived from a Paper design looks "slightly off" versus the design, or to verify a Paper-to-code implementation against its source. Covers using a local paper-sync project as the canonical oracle, porting the real fonts, extracting exact type/color/spacing values from canonical frames, and screenshot-diffing the running app against the paper-sync `?preview#<frame>` render.

Overzicht

Uitgevermillionco
Repositoryskills
Skillnaamreconcile-paper-sync
Sterren
34
Forks
2
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door millionco op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Reconcile Paper Sync in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/millionco/skills/tree/main/skills/reconcile-paper-sync
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/millionco/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/reconcile-paper-sync .claude/skills/reconcile-paper-sync
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Reconcile Paper Sync in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Reconcile Paper Sync automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Reconcile Paper Sync niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Reconcile a Built App with paper-sync

You make a running app match the Paper design it was built from, using the project's paper-sync output as the canonical reference render.

This is the verification-and-repair phase that follows paper-to-code-components. The conversion produces maintainable code; this skill confirms the result still looks like the design and closes the gaps where it drifted.

When this applies

  • A Paper-derived app (e.g. a Next.js site) renders close to the design but "slightly off."
  • A paper-sync project exists (a .paper-sync/<fileId>/ directory and usually a dev server such as localhost:6006).
  • You want to verify a fresh Paper-to-code implementation before calling it done.

If there is no paper-sync project, fall back to the Paper screenshot as the oracle and apply the same method.

RED/GREEN Intent

This skill prevents these reconciliation failures:

  • Declaring parity from reading code instead of comparing rendered pixels
  • Leaving the app on system-ui/Geist/Georgia fallbacks while the design uses real licensed fonts
  • Collapsing the design's several typefaces into one font token
  • "Fixing" a difference that is actually newer design work in paper-sync by inventing data to match it
  • Dropping small decorations (code-chip backgrounds, hairlines, dashed outlines, badges) during conversion and never noticing

GREEN outcome: the running app, screenshotted at the frame's width, matches the paper-sync render on typeface, type scale, color, spacing, and per-element decoration — and any remaining differences are explicitly attributed to newer design iterations, not conversion bugs.

1. Find the paper-sync canonical

paper-sync mirrors the Paper file into the repo. For each Paper file it keeps:

  1. .paper-sync/<fileId>/.canonical/*.tsx — the verbatim Paper export per frame, the source of truth for exact values. Frame files are named page-1--frame-<id>-0.tsx and carry a header comment with the Paper URL (.../<FILE>/1-0/<FRAME>).
  2. .paper-sync/<fileId>/paper.css — @font-face declarations and the design's CSS.
  3. .paper-sync/<fileId>/public/paper-assets/fonts/*.otf — the real font files.
  4. A dev server with a preview route: ?preview#<FRAME> renders a single frame alone (the frame id is the uppercase hash, e.g. N66-0).

Map the frame you are reconciling to its canonical file by matching visible text (grep -l "We introduce React Bench" .canonical/*.tsx). The on-disk .canonical can lag the running server; trust the live ?preview#<frame> render for what the user sees, and the canonical .tsx for exact numeric values.

2. Fonts first — the biggest lever

Substituted fonts are the most common cause of "slightly off." Do this before chasing spacing.

  1. List the families the canonical frame uses: grep -ohE "font-\['[^']+'" <frame>.tsx | sort | uniq -c | sort -rn. Expect several distinct families by role (body, serif display, UI/label, numeric/mono, code).
  2. For each family, confirm the app self-hosts the real font via @font-face and maps it to its own token. If it instead falls back to Geist/Georgia/system, that is the bug.
  3. Port any missing fonts from public/paper-assets/fonts/*.otf into the app (e.g. public/fonts/), add @font-face per weight/style, and point each token at the real family with the system stack only as fallback. Keep distinct typefaces as distinct tokens — do not collapse them.

See paper-to-code-components §8 for the porting rules.

3. Extract exact values from the canonical

The .canonical/*.tsx holds the real numbers. For any element that looks off, read its canonical class list and match:

  1. Type: text-[15px]/6 is 15px / line-height 24px; replicate size AND line-height, not just size.
  2. Color: color(display-p3 ...) and hex — keep the exact gamut/value.
  3. Decoration: backgrounds, borders, dashed outlines, underlines, radii, small markers.

Do not read sizes or colors off a screenshot when the canonical source is available.

4. Screenshot-diff the running app against the frame

  1. Render both at the same width. A headless browser screenshot works without installing Playwright: drive a cached Chromium, e.g. chrome-headless-shell --hide-scrollbars --force-device-scale-factor=2 --virtual-time-budget=6000 --window-size=<w>,<h> --screenshot=out.png <url>. Allow time for @font-face to load before the shot.
  2. Capture the app (localhost:3000) and the frame (localhost:6006/?preview#<FRAME>), then compare side by side.
  3. Reconcile element stacking order (e.g. nav above vs below a header band), content width and text measure (same paragraph → same line count?), typeface, type scale, color, spacing, and every decoration. A flow/responsive layout will not be pixel-identical to absolute Paper coordinates — judge structural, typographic, and decorative fidelity, not coordinate equality.

5. Separate conversion drift from version drift

A difference has two possible causes; treat them differently:

  • Conversion drift — the app dropped or substituted something the source frame has (a font, a code-chip background, a hairline). Fix it to match.
  • Version drift — the paper-sync frame is a newer design than the export the app was built from (the frame header date / frame id differs; new elements like error bars or bullets appear that need data the app does not have). Do NOT invent data to fake it. Flag it to the user and let them decide whether to re-sync the app to the newer frame.

State which differences you fixed and which you attributed to a newer frame.

Escape Hatches Closed

You ThinkDo This Instead
"The code matches the design, so it's fine."Screenshot the build against the paper-sync frame and compare pixels.
"The font has a system-ui fallback, that's close enough."The fallback is not the design. Self-host the real .otf from public/paper-assets/fonts and @font-face it.
"I'll match the new error bars / bullets in the frame."Check the frame date/id first. If it's newer than the built export, that's version drift — flag it, don't invent data.
"I'll eyeball the sizes from the screenshot."Read exact text-[..]/.. and color(display-p3 ..) values from the .canonical/*.tsx.
"No Playwright installed, so I can't screenshot."Drive a cached chrome-headless-shell with --screenshot; no install needed.

Before Marking Complete, You MUST:

  1. Identify the canonical frame (file id + frame hash) the app section corresponds to
  2. Confirm every typeface the frame uses is self-hosted via @font-face and mapped to its own token — no design text left on a fallback font
  3. Match exact type size + line-height, colors, and decorations from the .canonical/*.tsx, not from a screenshot
  4. Screenshot the running app against ?preview#<frame> at matched width and reconcile the differences
  5. Classify each remaining difference as conversion drift (fixed) or version drift (flagged to the user)
  6. Re-run the app's lint/build after changes and report the screenshot comparison

Veelgestelde vragen

Wat doet de AI-skill Reconcile Paper Sync?

Use when a built app that was derived from a Paper design looks "slightly off" versus the design, or to verify a Paper-to-code implementation against its source. Covers using a local paper-sync project as the canonical oracle, porting the real fonts, extracting exact type/color/spacing values from canonical frames, and screenshot-diffing the running app against the paper-sync `?preview#<frame>` render.

Waarom Reconcile Paper Sync gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Reconcile Paper Sync bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Reconcile Paper Sync in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/millionco/skills/tree/main/skills/reconcile-paper-sync. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Reconcile Paper Sync gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Reconcile Paper Sync gebruiken?

Zoveel als je wilt. Je kunt Reconcile Paper Sync gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Reconcile Paper Sync gratis?

Ja. Deze skill is door millionco op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇