{"data":{"slug":"discovered-e5d374c5bc597be78357bd40b165223e09be5afe3714c249","title":"Rjv Replica Screenshot","summary":"Produce a labeled HTML replica PR screenshot from real dumped server payload strings when the real screen will not render locally, under a strict honesty contract.","url":"https:\/\/skillshunter.net\/skills\/discovered-e5d374c5bc597be78357bd40b165223e09be5afe3714c249","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-e5d374c5bc597be78357bd40b165223e09be5afe3714c249","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-e5d374c5bc597be78357bd40b165223e09be5afe3714c249.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-e5d374c5bc597be78357bd40b165223e09be5afe3714c249\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before creating the replica, capture the exact strings from the real code path using the app's own builder or console logs. Ensure the markup mirrors the real component's DOM structure and Tailwind classes. Include a caption in the image and a line in the PR body stating it is rendered from the live payload and why the real screen couldn't be shown.","instructions":"---\nname: rjv-replica-screenshot\ndescription: \"How-to: produce a labeled HTML replica PR screenshot from real dumped server payload strings when the real screen will not render locally (broken dev build, feature flag, unstageable state, backend-only change). Uses rjv-github-image-upload and rjv-pr-descriptions. Triggers: page is blank\/broken in dev, live page cannot render, show the fix visually without reaching the screen.\"\nlicense: MIT\n---\n\n# Replica screenshot from real payload\n\nSometimes you fix a UI-visible bug but **can't screenshot the real screen**:\nthe dev build is broken by an unrelated import, the state is impractical to\nstage, the route is feature-flagged, or the change is backend-only and the page\nwon't render locally. You still want a credible screenshot in the PR.\n\nThe move: render a **faithful HTML replica of the actual component**, populated\nwith the **real server payload strings**, and screenshot that. Done honestly it\nis real evidence: the exact bytes the component renders, in the component's own\nlayout.\n\n## When to use\n\nUse it only when both hold:\n\n- The real UI won't render locally, and the change is visible in the UI.\n- You can obtain the exact strings the component receives (see Step 1).\n\nOtherwise:\n\n- The real page renders: screenshot the real page. A replica is a fallback\n  for a screen you cannot reach.\n- Any value would have to be invented: report the payload as text instead,\n  and say the screen couldn't render.\n\n## The honesty contract (non-negotiable)\n\n1. **Real data only.** Every value in the replica is the exact string the real\n   code path emits, dumped from it. A value you typed makes the image a mockup.\n2. **Faithful markup.** Mirror the real component's DOM structure and Tailwind\n   classes so the replica looks like the product's own row or card. Read the\n   component first.\n3. **Label it.** A caption in the image and a line in the PR body state it is\n   rendered from the live payload and why the real screen couldn't be shown.\n   A reviewer must never mistake it for a live screenshot.\n\n**A labeled replica of real data is evidence. An unlabeled replica, or one\nwith any invented value, is a fabricated screenshot. Never ship it.**\n\n## Steps\n\n1. **Capture the real payload, both states.**\n   Dump the exact strings the component receives, from the app's own code path.\n   - Backend change: run the real builder in `tinker` (or a console script) and\n     `dump()` the field(s). Backend edits take effect immediately, so dump **before**\n     your edit (the \"before\" strings) and **after** (the \"after\" strings). Both are real.\n   - Or read the Inertia\/JSON response (`X-Inertia` header) \/ a `console.log`.\n   Copy the dumped strings verbatim.\n\n   Done when you hold the before and after strings as tool output.\n\n2. **Read the real component** (the one that renders these fields) to copy its\n   structure and Tailwind classes: the wrapper, badges, labels, the exact element\n   that prints the field under test.\n\n3. **Build `after.html`**: the replica with the real after strings. A journey\n   gets one screenshot (`rjv-pr-descriptions`), so build no before image; the\n   before string goes in the PR text (step 6). Highlight the field under test.\n   Add a one-line caption at the bottom stating it's rendered from the live\n   payload.\n\n4. **Screenshot** it with your browser tool (e.g.\n   `agent-browser open file:\/\/\u2026\/after.html`, then\n   `agent-browser screenshot after.png`).\n\n5. **Upload and embed.** `rjv-github-image-upload` turns the PNG into a\n   `user-attachments` URL. `rjv-pr-descriptions` owns where it sits: under\n   the matching item.\n\n6. **Disclose in the PR body.** One line: the real screen couldn't render locally\n   because of `<reason>`, so the screenshot is rendered from the live server\n   payload (the exact strings the component prints), plus the verified transition\n   (e.g. `2026-08-24 00:00:00` \u2192 `24 Aug 26`).\n\n## Faithfulness checklist\n\nDone when every box holds:\n\n- [ ] Every string is dumped from the real code path (zero typed values).\n- [ ] Replica markup mirrors the real component (read it, matched structure + classes).\n- [ ] One image, the after state; the before string is in the text only.\n- [ ] Image caption + PR line both say \"rendered from live payload\" and why.\n- [ ] The verified string transition is stated in text too (image + words agree).\n\n## Evidence\n\nA worked case (client bug #3604) is in [`EVIDENCE.md`](.\/EVIDENCE.md).\n\n## Pairs with\n\n- `rjv-github-image-upload`: upload the PNG, get an embeddable URL.\n- `rjv-pr-descriptions`: the item the screenshot and disclosure line sit under.\n","use_cases":["Fixing a UI-visible bug when the dev build is broken","Creating a credible screenshot in a PR for a backend-only change","Displaying a visual fix for a feature-flagged route that cannot be staged locally"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/rjvim\/ai-skills\/blob\/9a942086adef21dbd0c061d9d9e8fd5f43328bf6\/skills\/rjv-replica-screenshot\/SKILL.md","source_commit":"9a942086adef21dbd0c061d9d9e8fd5f43328bf6","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:09:58.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"How to Create a Labeled HTML Replica PR Screenshot from Real Server-Pa","seo_description":"Learn how to produce a labeled HTML replica PR screenshot using real dumped server payload strings when the real screen cannot be rendered locally, following a strict set","seo_keywords":["replica screenshot","real payload","HTML replica","PR screenshot","labeled image","Tailwind classes","rjv-replica-screenshot"]}}