github-screenshots
Installation
SKILL.md
Capturing screenshots and embedding them in GitHub
Why this skill exists
GitHub's native image hosting (github.com/user-attachments/…) only works from an
authenticated browser session. There is no gh CLI or REST API for it. Any
image URL in a PR/issue body written with gh … --body-file must already point at
something publicly hosted.
This skill covers two steps agents need:
- Capture a reliable PNG of a live page (Playwright), with a known local path.
- Host that file (or any local image) and get a public URL + markdown snippet.
Hosting prefers the uploads CLI when it is installed and a token is configured
(stable PR keys, image optimize, managed attachment comments). If not, it falls back
to a Cloudflare R2 bucket you configure (S3-compatible API or wrangler).