Guide · Agent skill
How to use the GIMP Image Editing CLI agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
This guide explains how to install and use the GIMP image editing CLI agent skill, a SKILL.md package that teaches an AI agent to drive a command-line image editor instead of the GIMP application. It is built on Pillow and is aimed at developers scripting image work and designers assembling poster or overlay layouts from existing files. By the end you will know what the agent can do, how to install the skill, how to ask for work in plain language, and which checks to run before you trust a result.
Quick start
- 1Install the skill files. Download the skill ZIP from this page and unzip it into ~/.claude/skills/ or into a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.
- 2Install the CLI package. Make sure Python 3.10 or newer is available, then run pip install cli-anything-gimp. GIMP itself is optional.
- 3Check the install. Run cli-anything-gimp --help to confirm the command is available and to see the command groups.
- 4Create a project. Run cli-anything-gimp project new -o myproject.json, or ask the agent to create a project for your canvas.
- 5Request your edit in plain language. Describe the inputs, changes and output file. The agent selects the matching layer, canvas, filter, draw and export commands.
- 6Check the exported image. Open the rendered PNG and confirm the text, rectangles and offsets look right before using it.
What does this agent skill let the AI agent do?
An agent skill is a folder with a SKILL.md file that tells an AI agent how to perform a task with a specific tool. This one teaches the agent to use cli-anything-gimp, a stateful command-line interface for image editing. The tool works on a project file (JSON) rather than an open window, so the agent can build an image step by step and keep its state between commands.
The skill covers creating a project, adding and arranging layers, resizing, scaling or cropping the canvas, applying filters, drawing text or rectangles, and exporting a finished image. The agent can request machine-readable JSON output so it can read results reliably, and it can undo or redo steps.
- Create and save project files
- Add layers from image files, set opacity, visibility, blend mode and offsets
- Resize, scale, crop the canvas and set colour mode and DPI
- Apply and adjust filters on a layer
- Draw text and rectangles, which are applied when the project is rendered
- Export PNG or similar images, with undo and redo along the way
How do you install the GIMP image editing agent skill?
Download the skill ZIP from this page and unzip it. Then place the skill folder in one of two locations: your personal skills folder at ~/.claude/skills/, or a project-specific .claude/skills/ folder inside the project you are working in. A project folder keeps the skill available only to that project.
If you use the Claude apps instead of a local folder, upload the skill under Settings → Capabilities → Skills.
The underlying CLI is a Python package. The source lists this install command for the tool itself, which requires Python 3.10 or newer:
pip install cli-anything-gimpHow do you trigger the skill with natural requests?
You do not need to type the commands yourself. Once the skill is installed, describe the result you want in plain language and mention the image files involved. The agent will select the matching commands from the skill.
Good requests name the inputs, the operations and the output file. For example: 'Make a 1200 by 800 poster canvas, place logo.png in the top left, add the headline Launch Night in white, and export poster.png.' Vague requests such as 'make this nicer' give the agent too little to act on, so state the change you need.
- Name the source files, using absolute paths where you can
- Say what should change: resize, add layer, filter, text, rectangle
- Name the output file and whether it may overwrite an existing file
- Ask for JSON output if another script will read the result
What commands does the agent run?
The agent works through command groups: project, layer, canvas, filter, media, export, session and draw. The commands below are the basics the source documents. You can run them yourself to check what the agent did.
Commands can be run with a single call or inside an interactive session. With no subcommand, the CLI opens a REPL with tab-completion and history. JSON output is requested with the --json flag placed before the subcommand.
- project new creates a project file; project info reports on it
- layer list shows layers; layer set changes name, opacity, visible, mode, offset_x or offset_y
- canvas resize changes the canvas without scaling content; canvas scale scales everything
- filter list-available shows filters; filter add applies one to a layer
- draw text and draw rect are render-time operations
- export render writes the final image; session undo and session redo step through history
cli-anything-gimp --help
cli-anything-gimp project new -o myproject.json
cli-anything-gimp --json project info -p project.jsonExample: build a layered poster and export it
The source gives a layered composition workflow for overlay-heavy designs. It moves layer 0 by a negative horizontal and a positive vertical offset, adds a text layer, and renders the project to output.png. Negative offsets are accepted in both command mode and REPL mode.
Because text and rectangle draws are applied at render time, check the exported PNG itself, not only the project JSON.
- Set layer 0 offset_x to -48 and offset_y to 24
- Draw the text 'Launch Night' on layer 0 at x 96, y 120, size 72, colour #f6f1e8
- Render to output.png, overwriting if it exists
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 --overwriteWhat does the skill need, and what are the safety notes?
You need Python 3.10 or newer and the cli-anything-gimp pip package. GIMP is optional. The source recommends it for native batch rendering, but layered compositions can still render through the built-in Pillow path when GIMP is missing or when deferred draw operations are present. The source says the Pillow path is the stable default even when GIMP is installed for projects with deferred draw operations.
This skill runs scripts. It does not use the network, according to the listing. Because the agent executes commands on your machine and writes files, review what it proposes before running it on important files, and keep backups of originals. Use absolute paths and confirm output files exist after each export, as the source advises.
- Requires: Python 3.10 or newer, pip package cli-anything-gimp
- GIMP is optional
- Runs scripts: yes
- Uses network: no
- Critical or legal image work needs human review of the rendered output
Tips for reliable results
The source gives a short checklist for agents, and it applies equally to people reading the results. Undo covers up to 50 levels of history, which helps when a step goes wrong. Keep the project file as a record of the layers, but judge the work by the rendered image.
If something fails, check the return code (0 means success, non-zero means error) and read stderr for the message. For documentation beyond this page, the source points to README.md and TEST.md in the package.
- Always request --json when a script or agent reads the output
- Check return codes and parse stderr on failure
- Verify that the output file exists after export
- Review rendered output after offset, draw, blend-mode or filter changes
- Use session undo and session redo to step back
What people use it for
- Batch-compose overlay graphics from existing PNG files in a script
- Prototype a poster layout where an agent places a logo and headline on a canvas
- Resize or crop a set of images to a fixed canvas for a template
- Give an AI agent a stateful, undoable image editing tool inside a larger workflow
Frequently asked questions
Do I need GIMP installed to use the GIMP image editing agent skill?
No. The source says layered compositions can render through the built-in Pillow path when GIMP is unavailable. GIMP is recommended for native batch rendering, so install it only if you want that path.
What do I need to install cli-anything-gimp?
You need Python 3.10 or newer and the pip package cli-anything-gimp, installed with pip install cli-anything-gimp. The skill also needs the skill folder placed in ~/.claude/skills/ or a project's .claude/skills/ folder.
Is the GIMP agent skill free to use?
This skill is listed under the Apache-2.0 licence. Check the licence file in the source repository for the terms that apply to your use.
Is this the same as the GIMP application?
No. The source describes it as a Pillow-based tool, not the GIMP application. It does not provide the full GIMP interface or advanced manual retouching.
Why does my text or rectangle not appear in the project file?
Text and rectangle draws are applied at render time. The source says to treat the exported image, not only the project JSON, as the thing to review, so run export render and check the PNG.
Can the agent use the skill without internet access?
The listing says the skill does not use the network. It does run scripts on your machine, so review what the agent runs before you let it work on important files.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Choose this skill if you want an AI agent to batch-process or assemble images through a scriptable, stateful tool, and you can review rendered output. Pick a different tool if you need the full GIMP interface, manual retouching, or unreviewed work for legal or critical uses.
Download the skill