Agent skill

CLI Anything Gimp

by HKUDS in HKUDS/CLI-Anything

Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow.

Apache-2.0Auto-check passedMedia & Creative

Install CLI Anything Gimp

skills CLI
$ npx skills add HKUDS/CLI-Anything --skill cli-anything-gimp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HKUDS/CLI-Anything cli-anything-gimp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/CLI-Anything.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cli-anything-gimp .claude/skills/cli-anything-gimp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cli-anything-gimp
GitHub stars
52k
Token cost
~1.6k tokens
SKILL.md length
638 words
Files
1
Skills in repo
78
Repo updated
First seen
Licence
Apache-2.0

At a glance

Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow.

  • Works in 6 steps: Always use --json flag for parseable… → Check return codes - 0 for success,… → Parse stderr for error messages on failure → …
  • Tasks that involve Image editing
  • SKILL.md covers Installation, Usage, Command Groups and Examples, plus 5 more sections
  • Calls pip

What it does

CLI Anything Gimp is an agent skill from HKUDS/CLI-Anything. Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow. Designed for AI agents and pow...

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image editing. The repository describes itself as: "CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Image editing

Example prompts

  • “/cli-anything-gimp”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify outputs exist after export operations
  6. Review rendered outputs after offset, draw, blend-mode, or filter changes instead of trusting saved project state alone

What it can do on your machine

Read from SKILL.md and the folder at commit 34f5195. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CLI Anything Gimp loads about 1.6k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 638 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/CLI-Anything at commit 34f5195, republished under its Apache-2.0 licence (© HKUDS). 638 words, ~1,637 tokens.

Download SKILL.mdSave it as .claude/skills/cli-anything-gimp/SKILL.md (or your agent's skills folder).
name
cli-anything-gimp
description
Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow. Designed for AI agents and pow...

cli-anything-gimp

A stateful command-line interface for image editing, built on Pillow. Designed for AI agents and power users who need to create and manipulate images without a GUI.

Installation

This CLI is installed as part of the cli-anything-gimp package:

bash
pip install cli-anything-gimp

Prerequisites:

  • Python 3.10+
  • gimp is recommended for native batch rendering, but layered compositions can still render through the built-in Pillow path when GIMP is unavailable or when deferred draw operations are present

Usage

Basic Commands
bash
# Show help
cli-anything-gimp --help

# Start interactive REPL mode
cli-anything-gimp

# Create a new project
cli-anything-gimp project new -o project.json

# Run with JSON output (for agent consumption)
cli-anything-gimp --json project info -p project.json
REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

bash
cli-anything-gimp
# Enter commands interactively with tab-completion and history

Command Groups

Project

Project management commands.

CommandDescription
newCreate a new project
openOpen an existing project
saveSave the current project
infoShow project information
profilesList available canvas profiles
jsonPrint raw project JSON
Layer

Layer management commands.

CommandDescription
newCreate a new blank layer
add-from-fileAdd a layer from an image file
listList all layers
removeRemove a layer by index
duplicateDuplicate a layer
moveMove a layer to a new position
setSet a layer property (name, opacity, visible, mode, offset_x, offset_y); negative offsets are accepted naturally
flattenFlatten all visible layers
merge-downMerge a layer with the one below it
Canvas

Canvas operations.

CommandDescription
infoShow canvas information
resizeResize the canvas (without scaling content)
scaleScale the canvas and all content proportionally
cropCrop the canvas to a rectangle
modeSet the canvas color mode
dpiSet the canvas DPI
Filter Group

Filter management commands.

CommandDescription
list-availableList all available filters
infoShow details about a filter
addAdd a filter to a layer
removeRemove a filter by index
setSet a filter parameter
listList filters on a layer
Media

Media file operations.

CommandDescription
probeAnalyze an image file
listList media files referenced in the project
checkCheck that all referenced media files exist
histogramShow histogram analysis of an image
Export Group

Export/render commands.

CommandDescription
presetsList export presets
preset-infoShow preset details
renderRender the project to an image file; deferred draw ops are applied at render time
Session

Session management commands.

CommandDescription
statusShow session status
undoUndo the last operation
redoRedo the last undone operation
historyShow undo history
Show full SKILL.md (268 more words)Show less
Draw

Drawing operations (applied at render time).

CommandDescription
textDraw text on a layer (by converting it to a text layer)
rectDraw a rectangle (stored as drawing operation)

Examples

Create a New Project

Create a new gimp project file.

bash
cli-anything-gimp project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-gimp --json project new -o myproject.json
Interactive REPL Session

Start an interactive session with undo/redo support.

bash
cli-anything-gimp
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigation
Export Project

Export the project to a final output format.

bash
cli-anything-gimp --project myproject.json export render output.png --overwrite
Layered Composition Workflow

For overlay-heavy compositions:

bash
cli-anything-gimp --project poster.gimp-cli.json layer set 0 offset_x -48
cli-anything-gimp --project poster.gimp-cli.json layer set 0 offset_y 24
cli-anything-gimp --project poster.gimp-cli.json draw text --layer 0 --text "Launch Night" --x 96 --y 120 --size 72 --color "#f6f1e8"
cli-anything-gimp --project poster.gimp-cli.json export render output.png --overwrite

Notes:

  • layer set now accepts negative offset_x and offset_y values in both command mode and REPL mode.
  • draw text and draw rect are render-time operations. Treat the exported image, not only the project JSON, as the thing to review.
  • For projects with deferred draw ops, expect the Pillow render path to be the stable default even if GIMP is installed.

State Management

The CLI maintains session state with:

  • Undo/Redo: Up to 50 levels of history
  • Project persistence: Save/load project state as JSON
  • Session tracking: Track modifications and changes

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
bash
# Human output
cli-anything-gimp project info -p project.json

# JSON output for agents
cli-anything-gimp --json project info -p project.json

For AI Agents

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify outputs exist after export operations
  6. Review rendered outputs after offset, draw, blend-mode, or filter changes instead of trusting saved project state alone

More Information

  • Full documentation: See README.md in the package
  • Test coverage: See TEST.md in the package
  • Methodology: See HARNESS.md in the cli-anything-plugin

Version

1.0.0

© HKUDS, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/cli-anything-gimp of HKUDS/CLI-Anything.

Open the folder on GitHubat commit 34f5195

Compare with similar skills

CLI Anything Gimp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CLI Anything Gimp compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CLI Anything Gimp this skillHKUDS/CLI-Anything52k—~1.6kAutomated safety check: PassApache-2.0
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Media Useedenfunf/reelmimic1.7k2 repos~2kAutomated safety check: PassMIT
Generate Imageynulihao/AgentSkillOS61710 repos~1.7kAutomated safety check: NotesNone
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
HyperFrames Media Useheygen-com/hyperframes59k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Media Use

    edenfunf/reelmimic

    Agent Media OS, the single skill for every media need in a HyperFrames project.

    1.7k GitHub starsUsed in 2 repos~2k tokens
    Media & CreativeAuto-check passed
  • Generate Image

    ynulihao/AgentSkillOS

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

    617 GitHub starsUsed in 10 repos~1.7k tokens
    Media & CreativeAuto-check: notes
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 8 days ago
    Media & CreativeAuto-check: notes
  • HyperFrames Media Use

    heygen-com/hyperframes

    Finds, generates and edits media for HyperFrames video projects: music, sound effects, images, icons, logos, voiceovers, captions and color grades.

    59k GitHub stars~2.4k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Nanobanana

    ReScienceLab/opc-skills

    Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).

    1.8k GitHub starsUsed in 1 repo~1.3k tokens
    Media & CreativeAuto-check passed

More from HKUDS/CLI-Anything

All 78 skills in this repo
  • CLI-Anything for Codex

    HKUDS/CLI-Anything

    Lets Codex build, refine, test, validate and list CLI-Anything harnesses for GUI applications or source repositories, following the project's full methodology.

    52k GitHub stars~1.5k tokensUpdated 17 days ago
    Auto-check passed
  • CLI-Anything for Reasonix

    HKUDS/CLI-Anything

    Adapts the CLI-Anything methodology so Reasonix can build, refine, test and validate a command-line harness for an existing GUI application or source repository.

    52k GitHub stars~1.8k tokensUpdated 17 days ago
    Auto-check passed
  • Guides Hermes Agent through building, refining and testing a CLI-Anything harness that wraps a GUI application or source repository in a scriptable command line.

    52k GitHub stars~1.1k tokensUpdated 17 days ago
    Auto-check passed
  • Builds, refines, tests or validates a CLI-Anything harness that wraps a GUI application or source repository as a stateful Click CLI with JSON output and a REPL mode.

    52k GitHub stars~839 tokensUpdated 17 days ago
    Auto-check passed
  • Krita CLI Harness

    HKUDS/CLI-Anything

    Drives Krita from the command line to create projects, add layers, apply filters, resize the canvas and export images, with JSON output for agents.

    52k GitHub stars~931 tokensUpdated 17 days ago
    Auto-check passed
  • MacroCLI GUI Macros

    HKUDS/CLI-Anything

    Defines, lists, inspects and runs parameterized GUI macros from the command line, with the runtime choosing the execution backend.

    52k GitHub stars~1.4k tokensUpdated 17 days ago
    Auto-check passed

Questions about CLI Anything Gimp

What does CLI Anything Gimp do?

Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow. CLI Anything Gimp is an agent skill from HKUDS/CLI-Anything. Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow.

When should I use CLI Anything Gimp?

CLI Anything Gimp fits situations like: tasks that involve Image editing.

How do I install CLI Anything Gimp in Claude Code?

Run `npx skills add HKUDS/CLI-Anything --skill cli-anything-gimp -a claude-code`. Or copy the skill folder (skills/cli-anything-gimp in HKUDS/CLI-Anything) into .claude/skills/cli-anything-gimp in your project. Claude Code loads it when a task matches its description.

How do I install CLI Anything Gimp in Codex?

Run `npx skills add HKUDS/CLI-Anything --skill cli-anything-gimp -a codex`. Or copy the skill folder (skills/cli-anything-gimp in HKUDS/CLI-Anything) into .agents/skills/cli-anything-gimp in your project. Codex loads it when a task matches its description.

Can I use CLI Anything Gimp in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/CLI-Anything --skill cli-anything-gimp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cli-anything-gimp, .gemini/skills/cli-anything-gimp, .github/skills/cli-anything-gimp and .opencode/skills/cli-anything-gimp in your project.

What does CLI Anything Gimp need to run?

Going by SKILL.md and its folder, CLI Anything Gimp needs the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does CLI Anything Gimp access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is CLI Anything Gimp safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CLI Anything Gimp use?

CLI Anything Gimp is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CLI Anything Gimp use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CLI Anything Gimp?

Skills that share tags, products or a category with CLI Anything Gimp: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Media Use (edenfunf/reelmimic, 1.7k stars), Generate Image (ynulihao/AgentSkillOS, 617 stars) and GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CLI Anything Gimp?

HKUDS (a GitHub organization) maintains it in HKUDS/CLI-Anything, which has 51,696 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on September 22, 2026.

Source: HKUDS/CLI-Anything on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.