Communitygithub.com

cli-anything-krita

Harnais CLI pour Krita, l'application de peinture numérique open-source professionnelle — gérez projets, calques, filtres et exportations en ligne de commande. Utilisez-le pour automatiser les workflows Krita, traiter des images par lots ou utiliser Krita sans interface graphique.

Qu'est-ce que cli-anything-krita ?

Cette compétence fournit une interface en ligne de commande (CLI) complète pour contrôler Krita, l'application de peinture numérique open-source professionnelle, sans nécessiter d'interface graphique. Elle permet de gérer intégralement les projets (création, ouverture, sauvegarde, informations), de manipuler les calques (ajout, suppression, modification des propriétés comme l'opacité, la visibilité ou le mode de fusion), d'appliquer des filtres (flou, accentuation, niveaux, etc.), de redimensionner le canevas, d'exporter des images ou des animations dans de nombreux formats (PNG, JPEG, PSD, TIFF, etc.), et de gérer l'historique des actions (annuler/rétablir). Destinée aux développeurs et aux utilisateurs avancés, elle s'intègre parfaitement dans des workflows automatisés, des pipelines de traitement par lots ou des environnements sans affichage (serveur, CI/CD). Toutes les commandes supportent le mode JSON (`--json`) pour une sortie facilement exploitable par des scripts ou des agents d'IA. La compétence est écrite en Python et nécessite Python 3.10+ ainsi que Krita installé sur le système.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-krita

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait cli-anything-krita ?

Harnais CLI pour Krita, l'application professionnelle de peinture numérique open-source.

Prérequis

  • Krita installé sur le système
  • Python 3.10+

Installer la CLI :

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

Référence des commandes

Gestion de projet

cli-anything-krita project new -n "Mon 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

Gestion des calques

cli-anything-krita -p project.json layer add "Croquis" -t paintlayer
cli-anything-krita -p project.json layer add "Couleurs" --opacity 200
cli-anything-krita -p project.json layer add "Groupe" -t grouplayer
cli-anything-krita -p project.json layer remove "Croquis"
cli-anything-krita -p project.json layer list
cli-anything-krita -p project.json layer set "Couleurs" opacity 180
cli-anything-krita -p project.json layer set "Couleurs" visible false
cli-anything-krita -p project.json layer set "Couleurs" blending_mode multiply

Types de calques : paintlayer, grouplayer, vectorlayer, filterlayer, filllayer, clonelayer, filelayer

Filtres

cli-anything-krita -p project.json filter apply blur -l "Arrière-plan"
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

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

Opérations sur le canevas

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

Exportation

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

Préréglages : png, png-web, jpeg, jpeg-web, jpeg-low, tiff, tiff-lzw, psd, pdf, svg, webp, gif, bmp

Session (Annuler/Rétablir)

cli-anything-krita session undo
cli-anything-krita session redo
cli-anything-krita session history

Statut

cli-anything-krita status

Utilisation par agent (mode JSON)

Toutes les commandes supportent --json pour une sortie lisible par machine :

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

Exemple de workflow

# 1. Créer un projet
cli-anything-krita --json project new -n "Illustration" -w 3000 -h 4000 -o art.json

# 2. Configurer la pile de calques
cli-anything-krita --json -p art.json layer add "Arrière-plan" -t paintlayer
cli-anything-krita --json -p art.json layer add "Croquis" -t paintlayer --opacity 180
cli-anything-krita --json -p art.json layer add "Encrage" -t paintlayer
cli-anything-krita --json -p art.json layer add "Couleurs" -t paintlayer
cli-anything-krita --json -p art.json layer add "Effets" -t paintlayer --opacity 128

# 3. Appliquer des effets
cli-anything-krita --json -p art.json filter apply blur -l "Arrière-plan"

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

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

Skills associés