pr-attachments

Installation
SKILL.md

PR Attachments

Publish local images as commit-pinned embeds in a managed ## Demo section of a pull request description. Confirm that every embed serves an image before the description is written.

The images are committed under docs/evidence/<topic>/ on the PR head branch and linked by commit SHA. Cleanup removes them from the branch once the PR is done. This skill does not capture screenshots.

The managed section starts at a ## Demo heading at column 0. A ## Demo line that is indented, or that sits inside a code fence, a quote, a comment or a <pre>, <script>, <style> or <textarea> block, is text and not the section. The helper never replaces or copies it, and it never removes a line outside the section.

The helper replaces or copies an existing Demo section only when every non-blank line under its heading is one this skill writes: an image embed (![<file stem>](<url>)) in the raw or the blob form. A heading, a fence, HTML, a table or free prose under the heading means the section is not the managed one, or its end was misjudged. The helper then changes nothing and reports unexpected-section-content.

Mode Trigger Writes the description
PR mode An open PR and image paths Yes
Embed mode mode:embed and image paths No. Returns a Demo file and a status line
Carry mode mode:carry, old= and new= No. Edits the new body file in place and returns a status line
Re-pin mode An open PR and no paths Only when a pin is stale
Cleanup Offered at the end of PR mode and Re-pin mode No. Removes the evidence files from the branch

Preconditions

Installs
1
GitHub Stars
33
First Seen
Nov 20, 2026