github-image-hosting
Upload images to img402.dev for embedding in GitHub PRs, issues, and comments. Images under 1MB are uploaded free (no payment, no auth) and persist for 7 days. Use when the agent needs to share an image in a GitHub context — screenshots, mockups, diagrams, or any visual. Triggers: "screenshot this", "attach an image", "add a screenshot to the PR", "upload this mockup", or any task producing an image for GitHub.
Why use this skill?
Learn how to use the github-image-hosting skill to automatically capture, upload, and embed screenshots into GitHub PRs and issues via OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/rahulgi/github-image-hostingWhat This Skill Does
The github-image-hosting skill provides a streamlined pipeline for OpenClaw agents to capture, process, and host images specifically for integration into GitHub PRs, issues, and discussions. By interfacing with the img402.dev API, the agent automates the entire lifecycle of a visual asset: capturing the screen, checking file constraints, uploading the file, and generating the correctly formatted Markdown string required for GitHub hosting. This eliminates the manual friction of taking screenshots, moving files to a hosting service, and copying links into the GitHub interface.
Installation
To integrate this capability into your OpenClaw environment, use the following installation command:
clawhub install openclaw/skills/skills/rahulgi/github-image-hosting
Ensure your system has the curl utility installed and configured to access external network endpoints. Once installed, the agent will detect triggers related to visual documentation and automatically utilize the img402 service.
Use Cases
- PR Documentation: Automatically attaching screenshots of UI changes or bug fixes to a Pull Request to provide instant visual context for reviewers.
- Issue Reporting: Attaching visual evidence (logs, error screens, or diagram comparisons) directly to an issue ticket for faster triaging.
- Feedback Loops: Providing rapid, visual feedback on design mockups or interface adjustments during a development sprint.
- Technical Communication: Generating diagrams or architectural representations on-the-fly and embedding them into technical discussions or documentation threads.
Example Prompts
- "Take a screenshot of the current login page and add it to the active Pull Request for verification."
- "I've generated a performance graph; upload this to img402 and comment it on issue #402."
- "Attach a screenshot of the failing test suite output to my latest PR comment so the maintainers can see the error."
Tips & Limitations
- Size Constraints: The service limits images to 1MB. If your screenshots exceed this, the agent will attempt to downscale them using the
sipsutility. For best results, use PNG format for UI screenshots to ensure text remains crisp. - Ephemeral Hosting: Note that images hosted on the free tier expire after 7 days. This skill is optimized for development workflows (PR reviews) and is not suitable for permanent documentation.
- Privacy: Since this uses a public hosting service for images, avoid uploading screenshots containing sensitive API keys, internal credentials, or proprietary PII (Personally Identifiable Information).
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-rahulgi-github-image-hosting": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, file-write, external-api