Agent skill

Krita CLI Harness

by HKUDS in 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.

Apache-2.0Auto-check passedMedia & Creative

Install Krita CLI Harness

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

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

GitHub CLI
$ gh skill install HKUDS/CLI-Anything cli-anything-krita --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-krita .claude/skills/cli-anything-krita && 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-krita
GitHub stars
52k
Token cost
~931 tokens
SKILL.md length
83 words
Files
1
Skills in repo
78
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Automating Krita image work without opening the GUI
  • SKILL.md covers Prerequisites, Command Reference, Agent Usage (JSON Mode) and Example Workflow
  • Calls pip
  • Batch applying filters to layers and exporting to several formats

What it does

This skill documents the cli-anything-krita command, installed with pip from the krita/agent-harness folder. Command groups cover projects (new with name, width and height, open, save, info), layers (add paint, group, vector, filter, fill, clone and file layers, with opacity) and filters such as blur, sharpen, levels, curves, hue-saturation, posterize and threshold. Canvas commands resize and report info, and export renders to presets including png, jpeg, tiff, psd, pdf, svg, webp, gif and bmp.

A session group provides undo, redo and history, and a status command reports the current state. Every command takes a json flag that returns machine-readable output, which suits agent use, and an example workflow starts with creating an illustration project. It needs Krita installed on the system and Python 3.10 or newer.

When your agent uses it

  • Automating Krita image work without opening the GUI
  • Batch applying filters to layers and exporting to several formats
  • Creating a layered Krita project from a script or agent
  • Reading project and layer information as JSON for later steps

Example prompts

  • “Create a new Krita project called Illustration at 3000 by 4000 and add Sketch and Colors layers.”
  • “Apply a blur to the Background layer and export the result as a PNG.”
  • “List the layers in project.json as JSON and tell me which ones are filter layers.”
  • “Resize the canvas of art.json to 4096 by 4096 and export a PSD.”

Requirements

  • Krita installed on the system
  • Python 3.10 or newer

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

Krita CLI Harness loads about 931 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 83 words of instructions outside code blocks.

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

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). 83 words, ~931 tokens.

Download SKILL.mdSave it as .claude/skills/cli-anything-krita/SKILL.md (or your agent's skills folder).
name
cli-anything-krita
description
CLI harness for Krita digital painting — manage projects, layers, filters, and export via command line. Use when automating Krita workflows, batch processing images, or operating Krita without a GUI.

cli-anything-krita

CLI harness for Krita, the professional open-source digital painting application.

Prerequisites

  • Krita installed on the system
  • Python 3.10+

Install the CLI:

bash
cd krita/agent-harness && pip install -e .

Command Reference

Project Management
bash
cli-anything-krita project new -n "My Art" -w 2048 -h 2048 -o project.json
cli-anything-krita project open project.json
cli-anything-krita --project project.json project save
cli-anything-krita --project project.json project info
Layer Management
bash
cli-anything-krita -p project.json layer add "Sketch" -t paintlayer
cli-anything-krita -p project.json layer add "Colors" --opacity 200
cli-anything-krita -p project.json layer add "Group" -t grouplayer
cli-anything-krita -p project.json layer remove "Sketch"
cli-anything-krita -p project.json layer list
cli-anything-krita -p project.json layer set "Colors" opacity 180
cli-anything-krita -p project.json layer set "Colors" visible false
cli-anything-krita -p project.json layer set "Colors" blending_mode multiply

Layer types: paintlayer, grouplayer, vectorlayer, filterlayer, filllayer, clonelayer, filelayer

Filters
bash
cli-anything-krita -p project.json filter apply blur -l "Background"
cli-anything-krita -p project.json filter apply sharpen
cli-anything-krita -p project.json filter apply levels -c '{"shadows": 10, "highlights": 240}'
cli-anything-krita filter list

Available: blur, sharpen, desaturate, levels, curves, brightness-contrast, hue-saturation, color-balance, unsharp-mask, posterize, threshold

Canvas Operations
bash
cli-anything-krita -p project.json canvas resize -w 4096 -h 4096
cli-anything-krita -p project.json canvas resize --resolution 600
cli-anything-krita -p project.json canvas info
Export
bash
cli-anything-krita -p project.json export render output.png -p png --overwrite
cli-anything-krita -p project.json export render output.jpg -p jpeg
cli-anything-krita -p project.json export render output.psd -p psd
cli-anything-krita -p project.json export animation ./frames/ -p png
cli-anything-krita export presets
cli-anything-krita export formats

Presets: png, png-web, jpeg, jpeg-web, jpeg-low, tiff, tiff-lzw, psd, pdf, svg, webp, gif, bmp

Session (Undo/Redo)
bash
cli-anything-krita session undo
cli-anything-krita session redo
cli-anything-krita session history
Status
bash
cli-anything-krita status

Agent Usage (JSON Mode)

All commands support --json for machine-readable output:

bash
cli-anything-krita --json -p project.json project info
cli-anything-krita --json -p project.json layer list
cli-anything-krita --json status

Example Workflow

bash
# 1. Create project
cli-anything-krita --json project new -n "Illustration" -w 3000 -h 4000 -o art.json

# 2. Set up layer stack
cli-anything-krita --json -p art.json layer add "Background" -t paintlayer
cli-anything-krita --json -p art.json layer add "Sketch" -t paintlayer --opacity 180
cli-anything-krita --json -p art.json layer add "Inking" -t paintlayer
cli-anything-krita --json -p art.json layer add "Colors" -t paintlayer
cli-anything-krita --json -p art.json layer add "Effects" -t paintlayer --opacity 128

# 3. Apply effects
cli-anything-krita --json -p art.json filter apply blur -l "Background"

# 4. Export
cli-anything-krita --json -p art.json export render final.png -p png --overwrite

© 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-krita of HKUDS/CLI-Anything.

Open the folder on GitHubat commit 34f5195

Compare with similar skills

Krita CLI Harness 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.

Krita CLI Harness compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Krita CLI Harness this skillHKUDS/CLI-Anything52k—~931Automated safety check: PassApache-2.0
Fal AI Generationwitnesstodark/mr-mak-workspace343—~1kAutomated safety check: NotesMIT
Stable Diffusion with DiffusersOrchestra-Research/AI-Research-SKILLs13k5 repos~3.2kAutomated safety check: PassMIT
Image Processingjezweb/claude-skills1.1k—~1.8kAutomated safety check: PassMIT
Image Remove Backgroundgodot-fun/gai182—~1.5kAutomated safety check: PassMIT
UAV Trajectory Overlay from VideoXXLiu-HNU/visualize_uav_trajectory242—~535Automated safety check: PassGPL-3.0

Similar skills

  • Fal AI Generation

    witnesstodark/mr-mak-workspace

    Generate and edit images, create video, audio, 3D assets or material maps through fal.ai MCP or the Python queue client.

    343 GitHub stars~1k tokensUpdated today
    Media & CreativeAuto-check: notes
  • Stable Diffusion with Diffusers

    Orchestra-Research/AI-Research-SKILLs

    Generates and edits images with Stable Diffusion through Hugging Face Diffusers, covering text-to-image, image-to-image, inpainting, SDXL and custom pipelines.

    13k GitHub starsUsed in 5 repos~3.2k tokens
    Media & CreativeAuto-check passed
  • Image Processing

    jezweb/claude-skills

    Process images for web development — resize, crop, trim whitespace, convert formats (PNG/WebP/JPG), optimise file size, generate thumbnails, create OG card images.

    1.1k GitHub stars~1.8k tokensUpdated 3 days ago
    Media & CreativeAuto-check passed
  • Removes image backgrounds and exports transparent PNGs using rembg (U2Net / BiRefNet).

    182 GitHub stars~1.5k tokensUpdated today
    Media & CreativeAuto-check passed
  • UAV Trajectory Overlay from Video

    XXLiu-HNU/visualize_uav_trajectory

    Composites several moments from real drone footage into one still with ghost trails, then lays out paper figures and an editable PowerPoint file.

    242 GitHub stars~535 tokensUpdated 12 days ago
    Media & CreativeAuto-check passed
  • Photo Abstract Editorial

    kwhi6693-web/photo-abstract-editorial

    A skill your agent uses when one or more photographs must become adaptive photo-plus-abstraction editorial compositions while source facts, spatial relationships, and strict photo preservation…

    113 GitHub stars~870 tokensUpdated 1 mo ago
    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
  • 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
  • Capability-based matrix for video production in which the agent picks a provider per capability, from storyboard and sound design to captions, render checks and packaging.

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

Works with

Questions about Krita CLI Harness

What does Krita CLI Harness do?

Drives Krita from the command line to create projects, add layers, apply filters, resize the canvas and export images, with JSON output for agents. This skill documents the cli-anything-krita command, installed with pip from the krita/agent-harness folder. Command groups cover projects (new with name, width and height, open, save, info), layers (add paint, group, vector, filter, fill, clone and file layers, with opacity) and filters such as blur, sharpen, levels, curves, hue-saturation, posterize and threshold.

When should I use Krita CLI Harness?

Krita CLI Harness fits situations like: automating Krita image work without opening the GUI; batch applying filters to layers and exporting to several formats; creating a layered Krita project from a script or agent; reading project and layer information as JSON for later steps.

How do I install Krita CLI Harness in Claude Code?

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

How do I install Krita CLI Harness in Codex?

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

Can I use Krita CLI Harness 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-krita -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-krita, .gemini/skills/cli-anything-krita, .github/skills/cli-anything-krita and .opencode/skills/cli-anything-krita in your project.

What does Krita CLI Harness need to run?

Going by SKILL.md and its folder, Krita CLI Harness needs the command-line tools its instructions call (pip). Our summary lists: Krita installed on the system; Python 3.10 or newer.

Does Krita CLI Harness 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 Krita CLI Harness 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 Krita CLI Harness use?

Krita CLI Harness 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 Krita CLI Harness use?

About 931 tokens (SKILL.md is roughly 3.7k 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 Krita CLI Harness?

Skills that share tags, products or a category with Krita CLI Harness: Fal AI Generation (witnesstodark/mr-mak-workspace, 343 stars), Stable Diffusion with Diffusers (Orchestra-Research/AI-Research-SKILLs, 13k stars), Image Processing (jezweb/claude-skills, 1.1k stars) and Image Remove Background (godot-fun/gai, 182 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Krita CLI Harness?

HKUDS (a GitHub organization) maintains it in HKUDS/CLI-Anything, which has 51,768 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.