skills/use-workflow-pageshot/SKILL.md
Internal helper for /pr. Reads PR body (Preview URL + How to Test), drives agent-browser to capture a screenshot (1 step) or a video (2+ steps), and returns the artifact path for manual attachment on GitHub web UI.
npx skillsauth add thkt/dotclaude use-workflow-pageshotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Internal helper invoked by /pr when UI changes are detected. Not for direct user invocation.
| Field | Source |
| ----------- | ----------------------------------------------------------- |
| Preview URL | The leading Preview URL: <URL> line in the PR body |
| Steps | Numbered list under the ## How to Test section in PR body |
PR body is passed as a string from /pr. If Preview URL or How to Test is missing, return mode: failed with the missing field name and let /pr decide.
| Steps count | Mode | Artifact | | ----------- | ---------- | ----------- | | 1 | screenshot | step-01.png | | 2+ | video | capture.mp4 |
| Step | Action |
| ---- | --------------------------------------------------------------------------------------------- |
| 1 | Create output directory: ${CLAUDE_SKILL_DIR}/../../workspace/pageshot/$(date +%Y%m%d-%H%M%S)/ |
| 2 | agent-browser open {Preview URL} |
| 3 | Run Screenshot Flow or Video Flow based on Mode |
| 4 | Print absolute path of artifact to stdout |
| # | Command |
| - | -------------------------------------------------------------------------- |
| 1 | agent-browser snapshot to obtain accessibility tree |
| 2 | If the step contains operations, run agent-browser {click/type/fill/...} |
| 3 | agent-browser screenshot --full {outdir}/step-01.png |
| # | Command |
| - | ---------------------------------------------------------------------- |
| 1 | agent-browser record start {outdir}/capture.webm |
| 2 | For each step run snapshot then the operation in order |
| 3 | agent-browser record stop |
| 4 | ffmpeg -i {outdir}/capture.webm -vcodec libx264 {outdir}/capture.mp4 |
Insert agent-browser wait 500 between steps. Run snapshot before each operation to identify elements.
Single stdout line:
mode=screenshot artifact=/absolute/path/to/step-01.png
or
mode=video artifact=/absolute/path/to/capture.mp4
On failure:
mode=failed reason=<one-line reason>
documentation
Generates and updates .claude/OUTCOME.md interactively. When the file is absent or empty (no Behavior / all sections TBD), collects content via AskUserQuestion and writes the stub; when present, shows the current state and applies updates.
development
Judge a SKILL.md against craft axes (single responsibility, description distinctiveness, imperative voice, verifiable completion, calibration, progressive disclosure) and apply the fixes the audit surfaces. Do not use for format-presence-only checks (use reviewer-prompt) or reproducibility loops (use /tuning).
tools
Internal helper for /think Step 11. Renders SOW.md + Spec.md as an integrated Astro view and returns a dev server URL.
development
Extract repository spec while detecting bugs, spec gaps, and consistency drift via dual-purpose documentation. OUTCOME.md-axis question-driven exploration with ephemeral output. Do NOT use for code review (use /audit or /polish), feature implementation (use /code), planning only (use /think), or single-bug fix (use /fix).