feat: upload skill
This commit is contained in:
parent
c67b9695b7
commit
59d1c6cc27
|
|
@ -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: <image-path>
|
||||
---
|
||||
|
||||
# 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 <image-path>
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
- ID: unique image identifier
|
||||
- URL: CDN URL for the image
|
||||
- Size: dimensions (if available)
|
||||
|
||||
## Supported formats
|
||||
|
||||
JPEG, PNG, WebP
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue