Imagekit Upload logo

Imagekit Upload

Community
kevinslin
imagekit-upload

Upload existing images to ImageKit and return CDN URLs.

Overview

Publisherkevinslin
Repositoryagstack
Skill nameimagekit-upload
Stars
26
Forks
1
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kevinslin on GitHub. Read the source before you install it.

Installation

Install the Imagekit Upload AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kevinslin/agstack/tree/main/active/tool-imagekit-upload
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/tool-imagekit-upload .claude/skills/imagekit-upload
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Imagekit Upload in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Imagekit Upload on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Imagekit Upload is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ImageKit Upload

This skill enables uploading images to ImageKit CDN from either local file paths or clipboard contents. The skill returns the uploaded image URL for immediate use.

Core Rule

Upload only existing image bytes from a real file path or from the clipboard.

If the requested image file cannot be found:

  • Stop.
  • Ask the user for the exact file path, or ask them to copy the image to the clipboard and confirm.

Do not recreate, redraw, approximate, crop from another image, or generate an SVG fallback.

Prerequisites

The upload script may be installed under ~/.codex/skills/imagekit-upload, while credentials from an older installation remain under ~/.llm/skills/tool-imagekit-upload/scripts/.env. This split installation is supported: the script first checks for .env beside upload.js, then falls back to the legacy .llm credential file.

Before concluding that credentials are missing, check both locations. Never print credential values.

For a new setup, create .env beside the upload script:

bash
cd /path/to/imagekit-upload/scripts
cp .env.example .env

Then edit .env and add your credentials:

  • IMAGEKIT_PUBLIC_KEY: Your ImageKit public key
  • IMAGEKIT_PRIVATE_KEY: Your ImageKit private key
  • IMAGEKIT_URL_ENDPOINT: Your ImageKit URL endpoint (e.g., https://ik.imagekit.io/your_id)

Find these in your ImageKit dashboard under Developer Options → API Keys.

Setup

Install Node.js dependencies from the skill's scripts directory:

bash
cd /path/to/imagekit-upload/scripts
npm install

This installs ImageKit SDK, dotenv for configuration, and clipboardy for clipboard support on macOS.

Usage

Upload from File Path

When the user provides a file path to an image, use the upload script:

bash
node ./scripts/upload.js --file "/path/to/image.jpg"

Optional parameters:

  • --name "custom-name": Custom file name (default: original filename)
  • --folder "/images": Upload to specific folder in ImageKit
  • --tags "tag1,tag2": Add comma-separated tags

Upload from Clipboard

When the user wants to upload an image from their clipboard:

bash
node ./scripts/upload.js --clipboard

This reads image data directly from the system clipboard.

Output

The script outputs a JSON object containing:

  • url: The full CDN URL of the uploaded image
  • fileId: The ImageKit file ID
  • name: The file name
  • size: File size in bytes

Display the URL prominently to the user for easy copying.

Error Handling

Common errors:

  • Missing credentials: Check for .env beside upload.js, then check ~/.llm/skills/tool-imagekit-upload/scripts/.env
  • File not found: Check the file path is correct and accessible
  • Invalid file type: ImageKit supports common image formats (JPG, PNG, GIF, WebP, SVG)
  • Clipboard empty: Ensure an image is copied to the clipboard before upload

If the file is not discoverable locally, do not improvise a replacement asset. Ask the user for the missing file path or for a clipboard copy instead.

When to Use This Skill

Use this skill when:

  • User requests to upload an image to ImageKit
  • User wants to get a CDN URL for an image
  • User says "upload this image" or "put this on ImageKit"
  • User provides an image path and mentions ImageKit or CDN
  • User wants to upload from clipboard/copy buffer

Examples

Example 1: Upload screenshot

User: Upload this screenshot to ImageKit: /tmp/screenshot.png
Assistant: [Uses this skill to upload the file and returns the CDN URL]

Example 2: Upload from clipboard

User: I just copied an image, can you upload it to ImageKit?
Assistant: [Uses this skill with --clipboard flag to upload and returns the CDN URL]

Example 3: Organized upload

User: Upload logo.png to ImageKit in the /brand folder
Assistant: [Uses this skill with --folder "/brand" parameter]

Example 4: Missing attachment file

User: Upload this attached image to ImageKit
Assistant: [Searches for the exact local file. If it cannot be found, stops and asks the user for the file path or to upload from clipboard. Does not recreate the image.]

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Imagekit Upload AI skill do?

Upload existing images to ImageKit and return CDN URLs.

Why use Imagekit Upload on TypingMind?

Because you install it once and use it with any model. Imagekit Upload is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Imagekit Upload in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinslin/agstack/tree/main/active/tool-imagekit-upload. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Imagekit Upload?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Imagekit Upload?

As many as you like. As long as a model supports skills, you can use Imagekit Upload with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Imagekit Upload AI skill free?

It is published on GitHub by kevinslin. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇