# Rjv Replica Screenshot

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.

**Canonical 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

**Instructions download URL:** https://skillshunter.net/skills/discovered-e5d374c5bc597be78357bd40b165223e09be5afe3714c249/download

**Category:** Software & Development

**Source URL:** https://github.com/rjvim/ai-skills/blob/9a942086adef21dbd0c061d9d9e8fd5f43328bf6/skills/rjv-replica-screenshot/SKILL.md

**Source commit:** 9a942086adef21dbd0c061d9d9e8fd5f43328bf6

**Listing approved at:** 2026-12-03

**Created at:** 2026-12-02T09:09:58.000000Z

**Updated at:** 2026-12-03T16:19:55.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's 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.

### When to use it

- 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

## Skill instructions

---
name: rjv-replica-screenshot
description: "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."
license: MIT
---

# Replica screenshot from real payload

Sometimes you fix a UI-visible bug but **can't screenshot the real screen**:
the dev build is broken by an unrelated import, the state is impractical to
stage, the route is feature-flagged, or the change is backend-only and the page
won't render locally. You still want a credible screenshot in the PR.

The move: render a **faithful HTML replica of the actual component**, populated
with the **real server payload strings**, and screenshot that. Done honestly it
is real evidence: the exact bytes the component renders, in the component's own
layout.

## When to use

Use it only when both hold:

- The real UI won't render locally, and the change is visible in the UI.
- You can obtain the exact strings the component receives (see Step 1).

Otherwise:

- The real page renders: screenshot the real page. A replica is a fallback
  for a screen you cannot reach.
- Any value would have to be invented: report the payload as text instead,
  and say the screen couldn't render.

## The honesty contract (non-negotiable)

1. **Real data only.** Every value in the replica is the exact string the real
   code path emits, dumped from it. A value you typed makes the image a mockup.
2. **Faithful markup.** Mirror the real component's DOM structure and Tailwind
   classes so the replica looks like the product's own row or card. Read the
   component first.
3. **Label it.** A caption in the image and a line in the PR body state it is
   rendered from the live payload and why the real screen couldn't be shown.
   A reviewer must never mistake it for a live screenshot.

**A labeled replica of real data is evidence. An unlabeled replica, or one
with any invented value, is a fabricated screenshot. Never ship it.**

## Steps

1. **Capture the real payload, both states.**
   Dump the exact strings the component receives, from the app's own code path.
   - Backend change: run the real builder in `tinker` (or a console script) and
     `dump()` the field(s). Backend edits take effect immediately, so dump **before**
     your edit (the "before" strings) and **after** (the "after" strings). Both are real.
   - Or read the Inertia/JSON response (`X-Inertia` header) / a `console.log`.
   Copy the dumped strings verbatim.

   Done when you hold the before and after strings as tool output.

2. **Read the real component** (the one that renders these fields) to copy its
   structure and Tailwind classes: the wrapper, badges, labels, the exact element
   that prints the field under test.

3. **Build `after.html`**: the replica with the real after strings. A journey
   gets one screenshot (`rjv-pr-descriptions`), so build no before image; the
   before string goes in the PR text (step 6). Highlight the field under test.
   Add a one-line caption at the bottom stating it's rendered from the live
   payload.

4. **Screenshot** it with your browser tool (e.g.
   `agent-browser open file://…/after.html`, then
   `agent-browser screenshot after.png`).

5. **Upload and embed.** `rjv-github-image-upload` turns the PNG into a
   `user-attachments` URL. `rjv-pr-descriptions` owns where it sits: under
   the matching item.

6. **Disclose in the PR body.** One line: the real screen couldn't render locally
   because of `<reason>`, so the screenshot is rendered from the live server
   payload (the exact strings the component prints), plus the verified transition
   (e.g. `2026-08-24 00:00:00` → `24 Aug 26`).

## Faithfulness checklist

Done when every box holds:

- [ ] Every string is dumped from the real code path (zero typed values).
- [ ] Replica markup mirrors the real component (read it, matched structure + classes).
- [ ] One image, the after state; the before string is in the text only.
- [ ] Image caption + PR line both say "rendered from live payload" and why.
- [ ] The verified string transition is stated in text too (image + words agree).

## Evidence

A worked case (client bug #3604) is in [`EVIDENCE.md`](./EVIDENCE.md).

## Pairs with

- `rjv-github-image-upload`: upload the PNG, get an embeddable URL.
- `rjv-pr-descriptions`: the item the screenshot and disclosure line sit under.

