Communitygithub.com

cli-anything-krita

Krita 數位繪畫的 CLI 工具 — 透過命令列管理專案、圖層、濾鏡與匯出。適用於自動化 Krita 工作流程、批次處理圖像或無需 GUI 操作 Krita。

cli-anything-krita 是什麼?

cli-anything-krita 是一個專為 Krita 開發的命令列介面工具,讓 AI 代理或開發者可以在無圖形介面的情況下自動化數位繪畫工作流程。它支援專案管理、圖層操作、濾鏡應用、畫布調整以及多種格式匯出(如 PNG、JPEG、PSD、SVG 等),並提供 JSON 輸出模式以方便機器解析。此技能適用於 Claude Code、Cursor 或 Codex 等 AI 代理平台,透過簡單的 CLI 指令即可完成批次處理、腳本化繪圖任務或整合進 CI/CD 管線。使用者需預先安裝 Krita 與 Python 3.10 以上環境,並透過 pip 安裝相應的 harness 套件。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-krita

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-krita 是做什麼的?

專業開放原始碼數位繪畫應用程式 Krita 的命令列工具。

先決條件

  • 系統需安裝 Krita
  • Python 3.10 以上

安裝 CLI:

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

指令參考

專案管理

cli-anything-krita project new -n "我的作品" -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

圖層管理

cli-anything-krita -p project.json layer add "草稿" -t paintlayer
cli-anything-krita -p project.json layer add "色彩" --opacity 200
cli-anything-krita -p project.json layer add "群組" -t grouplayer
cli-anything-krita -p project.json layer remove "草稿"
cli-anything-krita -p project.json layer list
cli-anything-krita -p project.json layer set "色彩" opacity 180
cli-anything-krita -p project.json layer set "色彩" visible false
cli-anything-krita -p project.json layer set "色彩" blending_mode multiply

圖層類型:paintlayer、grouplayer、vectorlayer、filterlayer、filllayer、clonelayer、filelayer

濾鏡

cli-anything-krita -p project.json filter apply blur -l "背景"
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

可用濾鏡:blur、sharpen、desaturate、levels、curves、brightness-contrast、hue-saturation、color-balance、unsharp-mask、posterize、threshold

畫布操作

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

匯出

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

預設格式:png、png-web、jpeg、jpeg-web、jpeg-low、tiff、tiff-lzw、psd、pdf、svg、webp、gif、bmp

工作階段(復原/重做)

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

狀態

cli-anything-krita status

代理程式使用方式(JSON 模式)

所有指令都支援 --json 以輸出機器可讀的結果:

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

範例工作流程

# 1. 建立專案
cli-anything-krita --json project new -n "插畫" -w 3000 -h 4000 -o art.json

# 2. 設定圖層結構
cli-anything-krita --json -p art.json layer add "背景" -t paintlayer
cli-anything-krita --json -p art.json layer add "草稿" -t paintlayer --opacity 180
cli-anything-krita --json -p art.json layer add "線稿" -t paintlayer
cli-anything-krita --json -p art.json layer add "色彩" -t paintlayer
cli-anything-krita --json -p art.json layer add "效果" -t paintlayer --opacity 128

# 3. 套用效果
cli-anything-krita --json -p art.json filter apply blur -l "背景"

# 4. 匯出
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

>-

相關技能