{"data":{"slug":"discovered-3a316d8bd9df7b5d90494755e4d8390781636d65c7954244","title":"Screenshot Relevance","summary":"Identify and report screenshots in a project's documentation that are outdated, missing, or irrelevant. The skill generates an HTML report with findings and does not alter images or manifest entries without explicit confirmation.","url":"https:\/\/skillshunter.net\/skills\/discovered-3a316d8bd9df7b5d90494755e4d8390781636d65c7954244","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-3a316d8bd9df7b5d90494755e4d8390781636d65c7954244","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-3a316d8bd9df7b5d90494755e4d8390781636d65c7954244.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-3a316d8bd9df7b5d90494755e4d8390781636d65c7954244\/download","category":{"slug":"product-design","name":"Product & Design"},"editor_note":"The skill will not run if the repo's SCREENSHOTS flag is set to 'no'. If the flag is unset, the user is asked to specify whether to use 'yes' or 'no' based on the presence of image files.","instructions":"---\nname: screenshot-relevance\ndescription: >-\n  Check that a project's docs screenshots are current, carry an edge, and exist where a page needs one.\n  TRIGGER when: \/wrap-up runs it, or the user asks whether the docs' screenshots are stale, orphaned or\n  missing.\n  DO NOT TRIGGER when: taking, framing or filing a picture (`docs-screenshot`), or whether the prose is\n  current (`docs-relevance`).\nuser-invocable: false\ncontext: fork\neffort: medium\nbackground: true\nallowed-tools: Read, Edit, Write, Bash(python ~\/.claude\/scripts\/worktree-sandbox.py:*), Bash(python ~\/.claude\/skills\/screenshot\/scripts\/hairline.py:*), Bash(python ~\/.claude\/skills\/docs-screenshot\/scripts\/contact-sheet.py:*), Bash(cd:*), Bash(git add:*), Bash(git diff:*), Bash(git status:*), Bash(git rev-parse:*), Bash(git ls-files:*), Bash(git grep:*), Bash(gh repo view:*), Bash(git log:*), Bash(file:*), Bash(cp:*), Bash(ls:*), Bash(mkdir:*), Bash(bash docs\/screenshots\/capture\/:*), Bash(pwsh -File docs\/screenshots\/capture\/:*)\n---\n\n<!--\nThis skill runs as a backgrounded forked subagent, with the same three consequences as docs-relevance: a fresh context\nthat sees nothing of the conversation, a tool set without `Grep` and `Glob` (use `git grep` and `git ls-files`), and\nedits that land outside the session's checkpoints, which is why step 0 works in a sandbox.\n-->\n\n\n# Check documentation screenshots\n\nFind the screenshots in a project's docs that no longer show the product, that have lost their edge, or that a page needs and has never had.\n\n## Context\n- Repo root: !`git rev-parse --show-toplevel 2>\/dev\/null || pwd`\n- Diff summary: !`git diff --stat $(git rev-parse -q --verify HEAD || echo 4b825dc642cb6eb9a060e54bf8d69288fbee4904)`\n- Code in unpushed commits (empty when there is none): !`git log --stat --oneline HEAD --not --remotes`\n- Doc image files: !`git ls-files --full-name -co --exclude-standard -- ':\/docs\/*.png' ':\/docs\/*.jpg' ':\/docs\/*.jpeg' ':\/docs\/*.gif' ':\/docs\/*.webp' ':(top,exclude,glob)docs\/**\/raw\/**' | grep . || echo NONE`\n- Screenshot manifest: !`R=$(git rev-parse --show-toplevel 2>\/dev\/null || pwd) && cat \"$R\/docs\/screenshots\/screenshots.json\" 2>\/dev\/null || echo MISSING`\n- Remotes, nothing above `(end of remotes)` meaning none: !`git remote -v; echo \"(end of remotes)\"`\n- Screenshots flag (`no`, `yes`, or empty when the repo has not said): !`python ~\/.claude\/skills\/shared\/repo_flags.py get \"$(git rev-parse --show-toplevel 2>\/dev\/null || pwd)\" SCREENSHOTS 2>&1`\n\nThe **Doc image files** pathspec is mirrored in `DOC_IMAGES` in `~\/.claude\/skills\/shared\/change_scope.py`, which decides whether `\/wrap-up` runs this skill; change both together.\n\n## Working directory\n\nRead `~\/.claude\/skills\/shared\/forked-sandbox.md` before anything else, with `screenshot-relevance` as `<name>`. Its Working directory section governs every path in this skill.\n\n## Process\n\n**First, read Screenshots flag**, the repo's committed `SCREENSHOTS` in `.claude\/repo-flags`, which alone decides whether this skill runs:\n\n- `no`: the documentation carries no screenshots. Run nothing below \u2014 no staleness pass, no manifest, no gap hunt, no offer \u2014 and report that the flag applied.\n- `yes`: run every step, the missing-shot pass included, whether the repo is public or private.\n- Empty: the repo has not answered, and an unset key means what `KEYS` in `~\/.claude\/skills\/shared\/repo_flags.py` says for every reader: the user is asked which value to record. Run nothing and report `SCREENSHOTS unset`, recommending `yes` when **Doc image files** lists any and `no` when it is `NONE`; the caller asks the user, and a fork cannot. A screenshot ban in a project `CLAUDE.md` is not read for this, as `change_scope.py` does not read it for `\/wrap-up`: convention 019 moves it into the flag.\n- A `repo_flags:` error line: the file is malformed. Stop and report it, since reading it as unset would raise the offers the repo turned off.\n\n**Then read the project's own guidelines, and let them override any step below.** A project `CLAUDE.md` \u2014 `.claude\/CLAUDE.md` where it exists, otherwise the one at the repo root \u2014 is where a repo says how it wants the screenshots it has handled, and this skill has opinions a repo is entitled to refuse: that a page describing something visual wants a picture, that a project with no images is the one most likely to want its first. Where the project says otherwise, the project wins, and the step is skipped rather than argued with. Say in the report which of its rules applied.\n\nNever infer a rule from the absence of something: a project with no screenshots and `SCREENSHOTS=yes` has not thereby declined them, which is exactly the case the missing-shot pass is built to raise.\n\n**Images another account owns are counted and nothing else.** Read **Remotes** from Context: an `upstream` pointing at an account that is not the user's marks a fork, and an `origin` that does marks a clone of someone else's project, where every file is upstream's. A finding nobody here can act on is not free: it reaches the caller, gets carried into the next `\/wrap-up`, and is dispositioned `drop` there \u2014 every time, on the same files, because nothing about them changes. So in such a repo every image under a directory that account wrote gets no staleness check, no edge check, no manifest entry, no policy question and no missing-shot pass, and **no memo**. Name the directories skipped and the number of images in them. The one exception is an image the user's own diff has made wrong, which is reported and left alone.\n\n0. **Work in a sandbox**, as step 0 of `~\/.claude\/skills\/shared\/forked-sandbox.md` says.\n\n1. **Check documentation screenshots.** A screenshot is documentation that goes stale invisibly \u2014 the prose beside it stays true while the pixels stop being. Run the staleness checks whenever **Doc image files** is not `NONE`; when it is `NONE`, say so rather than staying silent, and go straight to the missing-shot pass (**Look for the shot that is missing**) \u2014 a project with no images at all is the one most likely to want its first. `\/wrap-up` reaches that case only in a repo carrying `SCREENSHOTS=yes`. Report the counts on every run, including a clean one.\n\n   **Unless the project has said it does not use them.** A repo carrying `SCREENSHOTS=no` never reaches this step (see the top of the Process). Asking anyway is the specific failure that rule exists to stop, since the missing-shot pass finds the same absence every run and would re-raise it forever.\n\n\n   - **Start from the manifest, and leave it more complete than you found it.** **Screenshot manifest** in Context is `docs\/screenshots\/screenshots.json` \u2014 one entry per screenshot or per series taken together, recording what the frame shows, how to reproduce it, and whether this skill may replace it (`auto` \/ `confirm` \/ `never`). See `~\/.claude\/skills\/docs-screenshot\/references\/screenshot-manifest.md` for the schema, the policy semantics and the upkeep rules; read it before writing to the file. When Context reports `MISSING`, build the manifest during this run rather than working without one \u2014 every fact this step's other bullets establish belongs in it, so the next run does not re-derive them.\n   - **Ask about every undecided screenshot, once.** A file in **Doc image files** with no manifest entry, or an entry carrying no `policy`, has never been ruled on. Ask the user which policy it should have \u2014 `auto` (replace it without asking), `confirm` (propose, replace on approval), or `never` (report only; they take the picture) \u2014 and write their answer into `policy`. Ask about all of them in one exchange, not one question per image. When the question cannot be asked, write the entry with everything else you know and **no `policy` key at all**, then name those entries in the report so the next interactive run settles them. Never infer a policy from how a similar image was treated elsewhere.\n   - **Reconcile the manifest against the files too.** An entry whose files have all vanished is orphaned metadata \u2014 report it, and remove the entry only once the user confirms the image was dropped on purpose. An entry whose `files` list has grown stale (a renamed image) is a rename to fix, not a new screenshot to register.\n   - **Reconcile the files against the references.** List the referencing markup with `git grep --full-name -InoE '\\]\\([^)]+\\.(png|jpg|jpeg|gif|webp)\\)|src=.[^ >]+\\.(png|jpg|jpeg|gif|webp)' -- ':\/docs' ':\/README.md' ':!\/docs\/plans'` and resolve each path relative to the file citing it, skipping `http` and `data:` URLs. A reference with no file is **DANGLING** \u2014 a broken image on the published site. A file no reference resolves to is an orphan *candidate*: confirm with `git grep -F <basename> -- '*.md' '*.html' '*.json' '*.xml' ':!\/docs\/plans' ':!\/CHANGELOG.md'`, which catches the `href=` and `content=` forms the embed pattern misses (favicons, `og:image` cards, store manifests). **A prose mention is not a reference** \u2014 read the matching line before it clears anything. Those two exclusions matter: a plan doc or changelog recording that an image was *dropped* names the file, and grepping it unexcluded clears every orphan it names, turning the whole check into a silent pass. Before reporting that nothing is wrong, confirm the scan finds a reference you already know exists \u2014 a missed embed form returns a comfortable empty result forever.\n   - **Classify a confirmed orphan before proposing anything about it.** No output from `git log --oneline -S '<basename>' --all -- '*.md'` means it was never referenced in any revision \u2014 wired up wrong when it was added. Output means it lost a reference it once had, which is usually a deliberate removal recorded in a commit or a plan doc. Also look for a derived twin by stem before calling anything dead: the master under `docs\/` is often the source of a converted copy that a published site tree still serves, so an image orphaned in the docs can be live on the website. Report either kind; delete neither without asking.\n   - **Examine every shot that has never been examined; scope the rest to the diff.** An entry with no `verifiedAt` is opened and checked whatever the diff says, and so is any screenshot with no entry \u2014 otherwise a shot that went stale in an *earlier* commit is never revisited, because its backing source is not in today's diff, and it stays wrong indefinitely while the prose beside it keeps reading true. Record the current short sha in `verifiedAt` once a shot has been examined, stale or not. For shots that already carry one, map each page embedding a screenshot to its backing source by grepping the page's bolded and code-formatted terms over the source tree \u2014 filename tokens and co-change history rank candidates, they are not evidence \u2014 and check it when those files appear in **Diff summary**. In either case, once a shot is being checked, Read the screenshots that page embeds and check the code two ways: every literal visible in the shot still exists in source, and every set the source enumerates \u2014 menu items, tabs, status labels \u2014 appears in the shot in full. Scope the grep with `':!*.md' ':!docs' ':!CHANGELOG.md'`; unscoped, it hits the changelog entry describing the removal and reports a false negative. A missing literal, or a set the shot shows only part of, is **STALE** \u2014 name the commit with `git log -S`, ordering same-day commits by `git merge-base --is-ancestor`, never by date.\n   - **An impressionistic frame is held to what it argues, not to its literals.** A hero collage, a store marquee, an angled or overlapping composite exists to show *that* something is broad \u2014 several surfaces, several games, a lot of product \u2014 and is not read for a particular toggle or label. Literal matching flags such a frame on almost every release, and a verdict that fires every time trains the reader to skip it. Mark it `\"precision\": \"impressionistic\"` in its manifest entry and judge it by its claim instead: it goes stale when the claim does \u2014 a game it advertises is dropped, a whole surface it should show is missing, it no longer reads as broad \u2014 never because a control inside one of its panels gained an option. Still open it, still record `verifiedAt`, and say on the contact sheet which standard it was judged by. The default is literal; write the key only when the user tells you the frame is impressionistic, since it lowers what every future run will catch.\n   - **Only strings this repo renders are evidence.** A frame containing third-party UI \u2014 a mail client, a game table, the IDE's own menus, whatever runs inside a terminal pane \u2014 holds stable text that will never appear in this source, and reading its absence as proof produces a confident false positive on exactly the projects whose screenshots must not be re-shot. Where the frame is not wholly this project's UI, report `NOT CHECKED (third-party UI in frame)` and prove nothing. Making the check work there takes one hand-written line in that project's `CLAUDE.md` naming the source trees that own the strings \u2014 propose it, never guess it.\n   - **No verdict from a date.** File mtime is the checkout time and is identical across the whole tree; commit age says only that the codebase moved on. Neither is evidence of anything about an image.\n   - **When a shot is stale, sweep its neighbourhood** before reporting: its alt text and caption, the prose describing it, every other page embedding the same file, sibling shots of the same screen, and any second copy under a published site tree \u2014 a `site\/` or equivalent directory with its own derived images and its own `<figcaption>` text, which goes stale independently of the image it captions. Say whether that tree was scanned. Do not compare a master's dimensions against a derived copy's; deliberate re-crops make that a permanent false positive.\n   - **Report three verdicts and the size of the haystack** \u2014 `STALE` with its proof, `NOT CHECKED` with its reason, and a count of the images only inventoried \u2014 with any `NO EDGE` frame from the edge check (**Every published frame carries an edge**) listed beside them. Give the reach in one sentence: which directories were scanned, which images were opened rather than listed, and that this check reads text, so it can prove a shot stale and can never prove one current. Say what the manifest gained this run: entries added, policies answered, entries still carrying no `policy`, and any image replaced under `auto` \u2014 a capture that happened without a question must be the loudest line in the report, not a silent one.\n   - **Look for the shot that is missing, not only the one that is wrong.** This step's other checks all start from an image that exists, so a page that should carry one and never has is invisible to every one of them \u2014 the failure mode is a feature described in three paragraphs of prose that a picture would have settled in a glance. Sweep the user-facing pages for sections that describe **something with a visual result** \u2014 a window, a panel, a menu, a chart, a badge, a state the UI shows \u2014 and carry no image. Rank the gaps by how much the prose is straining: text naming a layout (\"the header tracks\u2026\", \"a small badge carrying\u2026\"), enumerating what is on screen, or describing where to click is doing a picture's work. A section documenting behaviour with no visual surface (a config field, a protocol, a timing rule) is not a gap \u2014 do not manufacture one. Sections whose sibling pages already carry a shot rank higher, since the inconsistency is itself confusing.\n     Propose at most the two or three strongest per run, each as: the page and section, what the shot would show, and why the prose alone is not enough. Then **ask whether to capture it**. This is the one place in this skill that may drive the product, so it is gated on an explicit yes every time \u2014 never bundle it into another approval, and take silence as no.\n     Number these in **their own series \u2014 G1, G2, \u2026** \u2014 so a reply can take some and drop others without colliding with the contact sheet's frame numbers, and carry the user's triage forward so a later run does not re-raise what they already declined.\n   - **Replacing a stale shot is governed by its entry's `policy`.** Detection runs for every screenshot; only replacement is gated.\n     - `never` \u2014 report it and stop. The user takes the picture.\n     - `confirm` \u2014 say what changed and what the replacement would show, then wait. Replace on approval.\n     - `auto` \u2014 replace it, then report what was replaced and why. No question first.\n     - An **absent `policy`**, and a screenshot with no entry at all, both behave as `confirm` \u2014 which is why undecided is safe to leave lying around: it stops to ask, so nothing is ever captured on silence. Settle it by asking, not by acting.\n\n     Under `never`, and under an absent `policy`, a replacement is not *offered*: a stale shot means the UI moved, and which of the several states it now has is worth documenting is the user's call, not something to infer. **But when they ask for one and name the state, that reason is spent** \u2014 an instruction like \"recapture it, and make sure nothing sensitive is in frame\" has already answered the only question the restriction was protecting, and refusing at that point is deferring to a rule instead of to the person the rule exists for. Capture it under every honesty rule the `docs-screenshot` skill sets, and show them the result before it replaces anything.\n   - **Every published frame carries an edge \u2014 check it on every run, whoever produced the frame.** Run `python ~\/.claude\/skills\/screenshot\/scripts\/hairline.py --check` over every screenshot the docs pages and the README embed \u2014 the files *Reconcile the files against the references* resolves to \u2014 not only over the ones this run captured. The flag applies `has_edge` and writes nothing, while the same script without it strokes every file it is given in place, whatever that file's `policy`. Report a frame with no edge as its own finding (`NO EDGE`) beside the staleness verdicts. It is the finding the other checks cannot make: the text is current, the frame is correct, and on a dark page it still has no boundary.\n     An image that is not a screenshot is not a frame and gets no edge: an icon, a diagram, generated chart output, or store art uploaded at a fixed size, which an outward border would grow past the store's size rule. Leave those out of the audit and of any proposal, and give their count in the reach sentence. **`has an edge` is a probe's opinion, not a measurement.** It reads the middle half of each side and needs three sides of four, so a frame bare on one side passes, and a crop whose content runs dense to the edge can pass on its glyphs. Say so in the reach sentence. When the run builds a contact sheet anyway, look at every opaque frame's edge on it with the theme toggle on dark; otherwise list the opaque frames in the reach sentence as passed by the probe, not checked by eye. A probe pass alone does not call for a sheet, and a clean pass stays one line. Only a single-frame PNG can be stroked \u2014 `hairline.py` refuses anything else \u2014 so a bare JPEG, GIF or WebP screenshot is `NO EDGE (convert to PNG first)`, and an animated GIF never joins a proposal to border the set.\n     Two reasons to skip the check are both wrong:\n     - **The site's theme.** The README reaches readers in dark mode whatever the site's scheme; the `docs-screenshot` skill's *Give a screenshot an edge when its own capture has none* carries the reasoning.\n     - **Consistency with a bare set.** When the committed frames all lack an edge, matching them repeats the defect across the new ones. The fix is to border the whole set, so propose it for every frame rather than leaving new frames bare to match; the entries' `policy` governs the change like any other, since it rewrites committed images.\n   - **Capturing, framing, filing and showing a picture belong to the `docs-screenshot` skill.** Read `~\/.claude\/skills\/docs-screenshot\/SKILL.md` in full and follow it wherever this step permits a capture \u2014 `confirm` after approval, `auto`, a named-state request, or an approved gap \u2014 wherever a frame the user supplied is filed, and wherever a `NO EDGE` frame is bordered. Its contact-sheet rules govern every run here with something visual to settle: under `confirm`, `never` and an absent `policy` the sheet is the proposal, so it is built before any capture. **A capture that takes the machine does not run from this fork.** That skill asks the user immediately before any capture that takes the machine, as the `screenshot` skill's step 2 defines it, and a backgrounded fork cannot ask; report such a capture as pending, with its `capture.command`, so the caller can ask and run it. A capture that takes none of it \u2014 a headless render of a fixture \u2014 runs here as that skill describes.\n\n2. **Report** what was found and changed, with the patch path. When step 1 opened an HTML report, say so and do not restate its findings in the chat \u2014 repeating them splits one decision across two surfaces, and the annotations come back from the page.\n\n## Out of scope\n\n- Do NOT examine an upstream-owned file for refinement at all, and do not report what such an examination would have found \u2014 a stale frame, an absent screenshot, prose that could be tighter. Screenshots that account owns are counted, never checked\n- Do NOT capture, crop, resize, recompress or retouch an image whose manifest entry says `never` \u2014 report those and let the user decide. Capture without asking is permitted only under `auto`; every other state, including an absent `policy`, requires their approval for that specific replacement first. Opening the step-1 HTML report is **not** covered by this: it renders findings to look at rather than producing an image, and alters nothing on disk\n- Do NOT capture a *new* shot for a documented gap without the explicit approval step 1 requires \u2014 never bundled into another yes, never inferred from enthusiasm about the gap itself\n- Do NOT delete an image file, and do NOT remove a manifest entry, without explicit confirmation\n- Do NOT write a `policy` the user did not give you, and do NOT raise one (`never` \u2192 `confirm` \u2192 `auto`) on their behalf \u2014 it widens what future runs may do unasked, so the key is theirs alone. Leaving it out is always available and always safe. Every other field is this skill's to maintain\n- Do NOT add a screenshot flag, demo mode, or seed-data hook to the product to make a capture easier. This holds even with a capture approved: permission to take the picture is not permission to change the product so the picture looks better. A fixture replayed through an input the product already takes is not such a hook. If neither real use nor such a fixture can reach the state, the shot is the user's to take\n","use_cases":["Identify outdated or missing screenshots in documentation","Ensure documentation screenshots are relevant and up-to-date","Generate a report on the status of screenshots in a project"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/AnotherSava\/claude-code-common\/blob\/1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93\/claude\/skills\/screenshot-relevance\/SKILL.md","source_commit":"1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93","license":null,"version":null,"listing_approved_at":"2026-12-01","created_at":"2026-11-30T08:08:37.000000Z","updated_at":"2026-12-01T12:48:20.000000Z","seo_title":"Check for Relevant and Current Screenshots in Documentation","seo_description":"Ensure that screenshots in a project's documentation are up-to-date, relevant, and present where needed. This skill identifies outdated, missing, or irrelevant images and","seo_keywords":["screenshot relevance","documentation quality","image audit","doc image check","screenshot manifest"]}}