Capture and insert screenshots into PowerRustCOBOL's English documentation. Fills "π· Screenshot needed" placeholders and refreshes images invalidated by UI changes. Use when the user runs /doc-shots or when /docsync flags screenshots.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe β weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Doc Shots?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cloudlandbeta-doc-shots-powerrustcobol)
---
name: doc-shots
description: Capture and insert screenshots into PowerRustCOBOL's English documentation. Fills "π· Screenshot needed" placeholders and refreshes images invalidated by UI changes. Use when the user runs /doc-shots or when /docsync flags screenshots.
---
# /doc-shots β capture & insert documentation screenshots
Helper of the `/docsync` documentation phase (see `specs/steering/docs.md` β
Screenshot policy).
## Steps
1. **Find what's needed.** Scan the English docs for `π· Screenshot needed β
\`name.png\`` placeholders, plus any images `/docsync` flagged as stale. Build a
shot list: each item = file name + the exact IDE view/state to show.
**Any English Markdown document may carry a slot** β the repository's
top-level files (`README.md` among them) and everything under `docs/` at any
depth, which is exactly the set the in-IDE F12 tool offers
(`doc_shots::english_docs`). Do not limit the scan to the Developer's Guide.
2. **Run the IDE.** Build it (`cargo build -p cobolt-ide`) and launch the `.app`
bundle (re-sign with `codesign --force --sign - <app>` if `open` fails with
launch error 162). For a fresh build, copy the new binary into the bundle first.
3. **Capture each shot.** Get the target window id with a Swift
`CGWindowListCopyWindowInfo` snippet, then
`screencapture -x -o -l <window-id> assets/images/screenshots/<name>.png`.
- egui menus can't be clicked by automation on the bare binary; if a shot needs
a specific menu/dialog open, **ask the operator to drive to that view**, then
capture. Confirm each capture by reading the PNG back.
4. **Insert into the doc.** Replace the placeholder line with a centered image:
`<p align="center"><img src="<rel>/<name>.png" alt="β¦" width="β¦"></p>`, where
`<rel>` climbs from **the document's own directory** to
the directory the capture went to β `../assets/images/screenshots` for a
still in `docs/`, `../../β¦` one level deeper, and plain
`assets/images/screenshots` for `README.md` at the repository root.
(`doc_shots::rel_asset_path` computes exactly this; a hard-coded `../`
breaks the README.) Keep the alt text descriptive.
5. **Report** which shots were captured/inserted and any still pending operator
help.
## Rules
- **English docs only** (GOLDEN RULE #3). Screenshots are language-neutral, so
translations can reference the same files.
- Save a **still** to `assets/images/screenshots/` with the placeholder's exact
name. Save a **screen recording** to `assets/animations/` instead β it is an
APNG, which is a valid PNG, so it keeps the `.png` name and the same `<img>`;
what it does not keep is the directory, because a recording runs to tens of
megabytes and has no business among hundred-kilobyte stills (operator,
2026-09-06). `doc_shots::MOVIES_REL` is the one spelling of that path.
- A recording **does not need a document**: the popup's *Save recording only*
writes it to `assets/animations/` and rewrites nothing. Filling a slot is the
offer, not the requirement β but the file is always written either way.
- Don't commit/push unless asked.