crossoverjie/skills · Archived

image-uploader

Uploads images to image hosting services (supports sm.ms, Imgur, and GitHub + jsDelivr CDN). Use this skill when the user wants to upload a local image file to the web and get a public URL.

First seen Feb 14, 2026

Installation

$ npx skills add crossoverjie/skills --skill image-uploader

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from crossoverjie/skills.

npx skills add crossoverjie/skills

Browse all from crossoverjie/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 19
License LICENSE
Default branch main
Open issues 2
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.2
LicenseApache-2.0
More metadata
author
crossoverJie
version
1.2

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,002 B
  • docs SUMMARY.md 211 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 24 installs

SKILL.md

Image Uploader Skill

This skill allows uploading local image files to public image hosting services. It supports sm.ms, Imgur, and GitHub (with jsDelivr CDN acceleration).

Prerequisites

  1. Dependencies: The skill requires Python 3 and the requests library.

``bash pip install -r skills/image-uploader/requirements.txt ``

  1. Configuration: An API token or client ID is required depending on the provider.

sm.ms (default): Config File: skills/image-uploader/config.json ``json { "smmstoken": "YOURTOKEN" } ` Environment Variable: SMMS_TOKEN * CLI Argument: --token`

Imgur: Config File: skills/image-uploader/config.json ``json { "imgurclientid": "YOURCLIENTID" } ` Environment Variable: IMGURCLIENTID * CLI Argument: --token`

GitHub: Config File: skills/image-uploader/config.json ``json { "githubtoken": "YOURGITHUBTOKEN", "githubowner": "YOURGITHUBUSERNAME", "githubrepo": "YOURIMAGEREPONAME", "githubpath": "images", "githubbranch": "main", "githubcdn": "jsdelivr" } ` Environment Variables: IMAGEUPLOADERGITHUBTOKEN, IMAGEUPLOADERGITHUBOWNER, IMAGEUPLOADERGITHUBREPO, IMAGEUPLOADERGITHUB_CDN CLI Argument: --token (for token only) CDN Options: "jsdelivr"cdn.jsdelivr.net (default, international) "china"jsd.cdn.zzko.cn` (China mirror)

Default Provider: Set defaultprovider in config.json to "smms", "imgur", or "github", or use the IMAGEUPLOADER_PROVIDER environment variable.

Usage

To upload an image, run the Python script:

python3 skills/image-uploader/image_uploader.py <path_to_image>

Examples

Upload to sm.ms (default, using config/env token):

python3 skills/image-uploader/image_uploader.py /Users/me/Pictures/screenshot.png

Upload to Imgur:

python3 skills/image-uploader/image_uploader.py /Users/me/Pictures/screenshot.png --provider imgur

Upload to GitHub (jsDelivr CDN):

python3 skills/image-uploader/image_uploader.py /Users/me/Pictures/screenshot.png --provider github

Upload with explicit token:

python3 skills/image-uploader/image_uploader.py image.png --token "YOUR_API_TOKEN"

Upload to Imgur using env var:

IMGUR_CLIENT_ID="your_id" python3 skills/image-uploader/image_uploader.py image.png --provider imgur

Upload to GitHub using env vars:

IMAGE_UPLOADER_GITHUB_TOKEN="your_token" IMAGE_UPLOADER_GITHUB_OWNER="user" IMAGE_UPLOADER_GITHUB_REPO="images" python3 skills/image-uploader/image_uploader.py image.png --provider github

Output

The script outputs the result to stdout.

Success (sm.ms):

✅ Upload Successful!
URL: https://s2.loli.net/2023/01/01/abcdefg.jpg
Delete Link: https://sm.ms/delete/xyz123
Filename: screenshot.png

Success (Imgur):

✅ Upload Successful!
URL: https://i.imgur.com/abcdefg.png
Delete Hash: AbCdEfGhIjK

Success (GitHub):

✅ Upload Successful!
CDN URL: https://cdn.jsdelivr.net/gh/user/repo@main/images/a1b2c3d4_screenshot.png
Raw URL: https://raw.githubusercontent.com/user/repo/main/images/a1b2c3d4_screenshot.png

Already Exists (sm.ms):

⚠️  Image already exists.
URL: https://s2.loli.net/2023/01/01/abcdefg.jpg

Failure:

❌ Upload Failed
Message: Unauthorized.