agentleFS
powerfooIpowerfooI/herdr-studio/.agents/skills/pr-visual-evidence/SKILL.md

pr-visual-evidence

Skill328 starsChanged 37 days agoMITView on GitHub

Create requested PR visual evidence for Roamgate: a leading screenshot and scripted video for animation, transitions, or multi-step interactions. Use when the user requests PR screenshots, before/after, video evidence, or visual guidance. UI changes alone do not require capture or upload.

  • Commits and pushes

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 1

    1. powerfooI/roamgate★ 328100% same

    Edited · 0

    None found.

    Wrote their own version · 1

    1. GalvinGao/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this repository-local skill when PR visual evidence is requested, including an explicit invocation of this skill.

    line 12
  2. Distinctive:

    Read the diff and identify the visible behavior to prove.

    line 20
  3. Distinctive:

    Keep evidence on the PR's current revision.

    line 31
  4. Very specific:

    Use CAPTURE.md for the Bun/Vite/Herdr setup, privacy isolation, readiness checks, and revision comparisons.

    line 37
  5. Distinctive:

    When the task includes publishing evidence, inspect the target PR's current body and preserve its summary, verification, issue links, and …

    line 56
  6. Distinctive:

    Keep the screenshot on line one, then the video and a short scenario caption.

    line 58
  7. Very specific:

    Use gh with --attach support (upstream requires 2.99.0 or newer).

    line 61
  8. Distinctive:

    Keep capture files and PR drafts in a unique directory per run.

    line 77
  9. Distinctive:

    If the first image is unrelated or spans multiple HTML lines, edit a copy of the full body instead of using the helper.

    line 93
  10. Distinctive:

    Keep captures, raw recordings, and temporary pages outside the repository.

    line 106
  11. Distinctive:

    Stop only servers started for this capture.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Roamgate PR visual evidence

Adapted for this repository from ghdiff's pr-visual-evidence.

Use this repository-local skill when PR visual evidence is requested, including an explicit invocation of this skill. Follow the repository PR rules: ordinary UI work does not require screenshots. A local capture request does not itself request a PR edit or upload.

Choose the evidence

Read the diff and identify the visible behavior to prove. A backend, CI, docs, or tooling change that renders identically needs no image. For visible changes, choose the smallest relevant case:

Roamgate changeEvidence
Layout, theme, copy, file preview or diff renderingFocused screenshot; labeled before/after when comparison helps.
Dialog, menu, inspector resize, terminal composer or multi-step workflowScreenshot of the result plus a scripted video of the interaction.
Terminal streaming, connection recovery, agent history or Ranger stateReal Herdr-backed state; preserve relevant loading and reconnect behavior.
Mobile layout or keyboard behaviorNarrow viewport capture; real device verification for platform keyboard, IME, and touch behavior.

Keep evidence on the PR's current revision. Record the commit, any uncommitted changes, route, browser, viewport, and scenario with the local artifacts. Do not fabricate terminal output, agent messages, task runs, or successful connections.

Capture

Use CAPTURE.md for the Bun/Vite/Herdr setup, privacy isolation, readiness checks, and revision comparisons. Capture the real UI and keep enough context to understand the change. Match the viewport, demo data, language, and theme between compared states. A before/after is one labeled image.

For requested evidence involving animation, transitions, or a multi-step interaction, also record a video unless the user requests stills only. Show only the relevant actions, with exactly 1 second idle before the first action and exactly 1 second idle after the last action's visible result has settled. Preserve the complete motion. Run the interaction in one small automation script, not separate agent-driven browser calls: tool and reasoning latency must never become pauses in the video. Follow VIDEO.md for scripted recording, frame-accurate padding, and verification. Browser recordings supplement the required validation; report the actual checks run and include bun run build:web for frontend changes.

Attach

When the task includes publishing evidence, inspect the target PR's current body and preserve its summary, verification, issue links, and existing evidence. Keep the screenshot on line one, then the video and a short scenario caption. Identify fixtures and platform limitations in the caption where relevant.

Use gh with --attach support (upstream requires 2.99.0 or newer); check gh pr create --help and gh pr edit --help for image and video support. Reference the shot as a Markdown image on line one of the body and pass the same path to --attach; gh rewrites the reference to the uploaded URL. An HTML <img> is not rewritten and the file gets appended to the end instead.

# Use the capture_work directory created in CAPTURE.md.
# Save the screenshot as pr-shot.png and the PR prose as pr-prose.md there.
printf '![Roamgate: describe the visible change](%s)\n\n' "$capture_work/pr-shot.png" > "$capture_work/pr-body.md"
cat "$capture_work/pr-prose.md" >> "$capture_work/pr-body.md"
gh pr create --base main --head "$head_branch" --title "$pr_title" \
  --body-file "$capture_work/pr-body.md" --attach "$capture_work/pr-shot.png"

Keep capture files and PR drafts in a unique directory per run. After verifying the uploaded attachments, remove only that run's directory when its local evidence is no longer needed.

Set head_branch and pr_title from the actual task. For video, follow VIDEO.md. Do not create a PR merely to exercise this skill.

Existing PR, when replacing its previous leading evidence image (the helper replaces any first-line Markdown image or single-line HTML image):

.agents/skills/pr-visual-evidence/scripts/pr-attach-image.sh \
  --pr "$pr_number" --image "$capture_work/pr-shot.png" \
  --alt "Roamgate: describe the visible change"

If the first image is unrelated or spans multiple HTML lines, edit a copy of the full body instead of using the helper. Fetch the body after upload; confirm the leading image uses a GitHub attachment URL, open the image/video, and check that the remaining prose is intact. Do not report success from the exit code alone. A partial upload can return a failure after creating or editing the PR; inspect the printed PR URL and body before retrying to avoid duplicate PRs.

Before handing back

  • For a published result, link the PR and verify its attachments. Otherwise, return local artifact paths and state what has not been uploaded.
  • Watch the exported video and verify its one-second idle boundaries and actions.
  • Report validation actually performed and any missing device/backend coverage.
  • Keep captures, raw recordings, and temporary pages outside the repository; do not commit evidence just for PR review or change app dependencies for it.
  • Stop only servers started for this capture. Retain local evidence until reviewed or verified online, then remove only this run's temporary directory.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.