image-upload
Skill14 starsChanged 6 months agoMITView on GitHub
Upload images to your own GitHub repo and get jsDelivr CDN, GitHub raw, and Markdown URLs back. Supports file paths (single or batch in parallel) and clipboard (screenshots from Cmd+Shift+4, or files copied from Finder). Use when the user says: "upload image", "image upload", "image hosting", "screenshot upload", "upload to github", "paste this image", "host this image", "上传图片", "图床", "把截图传上去", "把这张图传到 github".
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- jspi-fu/Aeson-skillstheir own version, first seen Aug 21, 2026
- iamzifei/image-upload-skilltheir own version, first seen Aug 12, 2026
- Isaac-Flath/agent-starter-skillstheir own version, first seen Apr 12, 2026
- jjenkins/agent-image-skillstheir own version, first seen Mar 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- jspi-fu/Aeson-skills★ 46same name
- Isaac-Flath/agent-starter-skills★ 8same name
- iamzifei/image-upload-skill★ 6same name
- jjenkins/agent-image-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- app-icon-generatorSkill
- break-itSkill
- debug-modeSkill
- dev-launcherSkill
- diagram-proSkill
- localizeSkill
- mac-app-uninstallSkill
- mac-cleanup-diskSkill
- mac-cleanup-memorySkill
- mac-cleanup-processSkill
- macos-app-scaffoldSkill
- npm-safetySkill
- root-causeSkill
- skill-scanSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
A GitHub repo for images: Create one yourself (public preferred so jsDelivr CDN serves it), e.g.
- Very specific: line 79
Run the upload without --copy to get the URLs in stdout.
- Very specific: line 80
Use AskUserQuestion to ask which format the user wants to copy.
- Distinctive: line 87
When the user runs the script directly in their terminal (not through Claude), the script has its own built-in interactive prompt.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
image-upload
Upload any image to your own GitHub repo and get back three URL formats — jsDelivr CDN (fast, public), GitHub raw, and Markdown — ready to paste into documentation, blog posts, or chats.
Prerequisites (one-time setup)
- A GitHub repo for images. Create one yourself (public preferred so jsDelivr CDN serves it), e.g.
your-username/images. ghCLI installed and authenticated:brew install gh gh auth loginjqinstalled (for JSON serialization):brew install jqpngpaste(only for clipboard screenshot mode):brew install pngpaste- Set environment variables in your shell profile (
~/.zshrcor~/.bashrc):
Reload your shell orexport IMAGE_HOST_REPO="your-username/images" # required export IMAGE_HOST_BRANCH="master" # optional, default: master export IMAGE_HOST_BASE_DIR="uploads" # optional, default: uploadssource ~/.zshrc.
Per-invocation overrides via --repo, --branch, --base-dir flags also work.
Usage
Upload one or more files:
bash "${CLAUDE_SKILL_DIR}/scripts/upload_image.sh" path/to/image.png
bash "${CLAUDE_SKILL_DIR}/scripts/upload_image.sh" file1.jpg file2.png file3.webpUpload from clipboard (most recent screenshot, or files copied in Finder):
bash "${CLAUDE_SKILL_DIR}/scripts/upload_image.sh" --clipboardAuto-copy a specific URL format to system clipboard:
bash "${CLAUDE_SKILL_DIR}/scripts/upload_image.sh" --copy markdown file.png
bash "${CLAUDE_SKILL_DIR}/scripts/upload_image.sh" --copy jsdelivr --clipboard
bash "${CLAUDE_SKILL_DIR}/scripts/upload_image.sh" --copy raw file1.jpg file2.jpg--copy values: jsdelivr (CDN), raw (GitHub raw), markdown ( format).
How it works
- Files are renamed to timestamp format:
20260513-143025.jpg. Batch uploads add an index:-1,-2, etc. - Each image is committed to
<base-dir>/YYYY/MM/<name>.<ext>in your repo. - Filename conflicts auto-resolve with a numeric suffix.
- Multiple files upload in parallel (with retry on transient 409s from branch HEAD races).
- For each image, three URLs are printed: jsDelivr CDN, GitHub raw, and Markdown.
Calling from Claude Code
The Bash tool does NOT support interactive input, so when invoked through Claude:
- Run the upload without
--copyto get the URLs in stdout. - Use
AskUserQuestionto ask which format the user wants to copy. Options:- jsDelivr CDN URL
- GitHub Raw URL
- Markdown format
- Don't copy
- Based on the answer, use
echo -n "<url>" | pbcopyto copy that exact format.
When the user runs the script directly in their terminal (not through Claude), the script has its own built-in interactive prompt.
Failure modes
IMAGE_HOST_REPOnot set → script exits with code 2 and prints setup instructionsghnot authenticated → script exits with code 2 and tells user to rungh auth loginjq/pngpastemissing → script exits with helpful install hint- Upload fails after 3 retries → script reports the specific file that failed; other parallel uploads continue
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

