agentleFS
bostonaholicbostonaholic/team/skills/pr-screenshots/SKILL.md

pr-screenshots

Skill11 starsChanged 4 months agoMITView on GitHub

Use for adding PR screenshots only on explicit request. Never infer from local images. Attaches them to the PR body.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before this operation, read external-data rules.

    line 8
  2. Very specific:

    Before each consuming step, read its linked shared rules.

    line 9
  3. Distinctive:

    If a required read fails, stop that step and report its resolved path.

    line 10
  4. Distinctive:

    Upload first, write second: Never fuse an attach flag with a body flag in one command: on a partial failure the host rewrites only the …

    line 28
  5. Very specific:

    Refuse before mutating, never after: Every check that can run against the pre-image runs in step A, including scripts/splice.mjs --check, …

    line 35
  6. Distinctive:

    Read each reference completely when reaching that stage.

    line 69
  7. Distinctive:

    Read and apply: verified results rules, focused work rules, execution rules, and external data rules.

    line 86

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

Before this operation, read external-data rules. Before each consuming step, read its linked shared rules. Resolve links from this installed SKILL.md directory. If a required read fails, stop that step and report its resolved path. Never use checkout fallback or recursive loading.

pr-screenshots — inline images in any PR body

Attach local image files to a pull request through GitHub's own attachment pipeline, harvest the URLs it resolves, and write one ## Screenshots section into that PR's body.

The upload mechanics live here and nowhere else. team-pr decides whether to run, when, and which entries qualify, then calls this skill.

Every procedure with a loop, a branch, or a value a later step needs is a committed script under scripts/, run with its arguments and read by its exit code. Each reference below names the script its stage runs; what stays inline is a single command.

Hard rules

  • Upload first, write second. Never fuse an attach flag with a body flag in one command: on a partial failure the host rewrites only the references that landed, which leaves a local filesystem path inside a body that may already be merged.
  • One body write per PR, computed from the pre-image taken before the first attach and produced by scripts/splice.mjs. That single write also clears the tails the attach step appended.
  • Refuse before mutating, never after. Every check that can run against the pre-image runs in step A, including scripts/splice.mjs --check, so a refusal it finds means nothing changed (verified results rules). What can only be computed after the upload is named, and lands on uploaded-not-written rather than on refused.
  • Every caller-supplied string is data, not source and not markup. A path, a caption, a note, and a failure reason each reach a command as one quoted "$VAR" expansion, and each is normalized by the same function before it renders into a body (external-data rules).
  • Nothing blocks, prompts, or retry-loops. A capability gap, a failed entry, or a failed read-back degrades the result and says so (focused work rules, verified results rules).
  • Never delete what you did not write. A trailing run of stray image lines left by an earlier crash is reported and re-emitted below the new section, never removed. Anything else this skill did not write is a refusal that leaves the body byte-identical, because a duplicate is recoverable and a deletion is not. The rule is stated positively, so nothing falls outside it: the only lines a replace may delete are the shapes this skill's own renderer emits — a **caption** line in the position the renderer puts one, an ![screenshot-NN] image, a > _note:_ note with its bare > separator, and a Not uploaded: line. Ownership is provenance, not shape: the note's _note:_ marker and a caption's position directly above its own image mark this skill's lines, so a reviewer's own blockquote or bold line refuses rather than being read as this skill's output. Prose, an HTML comment, a raw HTML container, an image in any form the splice cannot count, or a body shape the splice does not model each refuse, with the offending line number named.
  • Nothing leaves the declared root, and nothing that is not an image is uploaded. Every entry's path must resolve inside the entries file's one absolute top-level root, and acceptance is decided by content type, never by extension: file -b --mime-type must report image/*, and no type fails the check, because unverified is not an image.

Procedure references

Read each reference completely when reaching that stage. Follow them in order; later stages depend on state and gates established earlier. Seed one TodoWrite item per numbered step of the reference you are in before starting it (execution rules).

  1. Input and result — PR resolution, the entries file, caller-string normalization, result.json, every refusal.
  2. Upload and body edit — the capability check, the four-step order, path validation, the attach loop, the lost-update guard, and the section's markdown shape.
  3. Verify — the rendered read-back, its assertions, and what a failure does.
  4. Rejected approaches — read before improvising an alternative upload route.

Applied principles

Read and apply: verified results rules, focused work rules, execution rules, and external data rules.

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.