diff --git a/.claude/skills/upload-image/SKILL.md b/.claude/skills/upload-image/SKILL.md new file mode 100644 index 0000000..240c110 --- /dev/null +++ b/.claude/skills/upload-image/SKILL.md @@ -0,0 +1,30 @@ +--- +name: upload-image +description: Upload images to Banatie CDN. Use when user asks to upload an image, get CDN URL, or publish image to CDN. Supports JPEG, PNG, WebP. +argument-hint: +--- + +# Upload Image to Banatie CDN + +Upload images to the Banatie CDN and get the CDN URL. + +## Requirements + +- `BANATIE_API_KEY` in `.env` file +- Dependencies: tsx, form-data, dotenv + +## Usage + +```bash +tsx .claude/skills/upload-image/scripts/upload.ts +``` + +## Output + +- ID: unique image identifier +- URL: CDN URL for the image +- Size: dimensions (if available) + +## Supported formats + +JPEG, PNG, WebP diff --git a/scripts/image-upload.ts b/.claude/skills/upload-image/scripts/upload.ts similarity index 100% rename from scripts/image-upload.ts rename to .claude/skills/upload-image/scripts/upload.ts diff --git a/package.json b/package.json index b0e8892..26c22ff 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "reddit-to-md": "node scripts/html-reddit-to-markdown.js", - "upload:image": "tsx scripts/image-upload.ts" + "upload:image": "tsx .claude/skills/upload-image/scripts/upload.ts" }, "dependencies": { "cheerio": "^1.0.0-rc.12",