Communitygithub.com

cli-anything-inkscape

ベクターグラフィックス編集のためのステートフルなコマンドラインインターフェース。GIMPやBlender CLIと同様のパターンで、SVG(XML)文書を直接操作し、JSONプロジェクト形式で状態を管理します。

cli-anything-inkscape とは?

cli-anything-inkscapeは、AIエージェントや開発者がInkscapeをプログラムから操作するためのステートフルなCLIツールです。GIMPやBlender用のCLIハーネスと同じ設計思想に基づいており、SVG文書を直接操作して、矩形や円、パスなどの図形の追加、スタイル設定、変形、レイヤー管理、テキストの追加・編集、グラデーションの適用、PNG/PDF/SVGへのエクスポートなどをコマンドラインから実行できます。状態管理機能(アンドゥ/リドゥ、プロジェクト永続化、セッション追跡)と、人間向けとJSON出力のデュアルモードを備えており、AIエージェントとの連携に適しています。REPLモードではインタラクティブにコマンドを実行でき、タブ補完や履歴機能も利用可能です。

対応~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-inkscape

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

cli-anything-inkscape は何をしますか?

ベクターグラフィックス編集のためのステートフルなコマンドラインインターフェース。GIMPやBlender CLIハーネスと同じパターンに従います。SVG(XML)文書を直接操作し、JSONプロジェクト形式で状態を追跡します。

インストール

このCLIはcli-anything-inkscapeパッケージの一部としてインストールされます。

pip install cli-anything-inkscape

前提条件:

  • Python 3.10+
  • システムにInkscapeがインストールされていること

使い方

基本コマンド

# ヘルプを表示
cli-anything-inkscape --help

# インタラクティブなREPLモードを開始
cli-anything-inkscape

# 新しいドキュメントを作成
cli-anything-inkscape document new -o project.json

# JSON出力で実行(エージェント消費用)
cli-anything-inkscape --json document info -p project.json

REPLモード

サブコマンドなしで起動すると、インタラクティブなREPLセッションが開始します。

cli-anything-inkscape
# タブ補完と履歴を使って対話的にコマンドを入力

また、存在しないプロジェクトパスを指定してREPLを起動することもできます。この場合、CLIは即座に失敗する代わりに、新しいインメモリドキュメントをシードします。

cli-anything-inkscape --project /abs/path/new-title.inkscape-cli.json

コマンドグループ

ドキュメント

ドキュメント管理コマンド。

コマンド説明
new新しいドキュメントを作成
open既存のプロジェクトを開く
save現在のプロジェクトを保存
infoドキュメント情報を表示
profiles利用可能なドキュメントプロファイルを一覧表示
canvas-sizeキャンバスサイズを設定
unitsドキュメントの単位を設定
json生のプロジェクトJSONを出力

図形

図形管理コマンド。

コマンド説明
add-rect矩形を追加
add-circle円を追加
add-ellipse楕円を追加
add-line線を追加
add-polygon多角形を追加
add-pathパスを追加
add-star星を追加
removeインデックスで図形を削除
duplicate図形を複製
listすべての図形/オブジェクトを一覧表示
get図形の詳細情報を取得

テキスト

テキスト管理コマンド。

コマンド説明
addテキスト要素を追加します。折り返しレイアウトのために --box-width、--box-height、--line-height をサポート。
setテキストのプロパティ(text、font-family、font-size、fill、box-width、box-height、line-heightなど)を設定
listすべてのテキストオブジェクトを一覧表示

スタイル

スタイル管理コマンド。

コマンド説明
set-fillオブジェクトの塗りつぶし色を設定
set-strokeオブジェクトのストローク色(オプションで幅も)を設定
set-opacityオブジェクトの不透明度を設定(0.0~1.0)
setオブジェクトに任意のスタイルプロパティを設定
getオブジェクトのスタイルプロパティを取得
list-properties利用可能なすべてのスタイルプロパティを一覧表示

変形

変形操作(移動、回転、拡大縮小、傾斜)。

コマンド説明
translateオブジェクトを移動
rotateオブジェクトを回転
scaleオブジェクトを拡大/縮小
skew-xオブジェクトを水平方向に傾斜
skew-yオブジェクトを垂直方向に傾斜
getオブジェクトの現在の変形を取得
clearオブジェクトからすべての変形をクリア

レイヤー

レイヤー管理コマンド。

コマンド説明
add新しいレイヤーを追加
removeインデックスでレイヤーを削除
move-objectオブジェクトを別のレイヤーに移動
setレイヤーのプロパティ(name、visible、locked、opacity)を設定
listすべてのレイヤーを一覧表示
reorderレイヤーをある位置から別の位置に移動
getレイヤーの詳細情報を取得

パスグループ

パスのブール演算。

コマンド説明
union2つのオブジェクトの結合
intersection2つのオブジェクトの積集合
difference2つのオブジェクトの差(AからBを引く)
exclusion2つのオブジェクトの排他的論理和(XOR)
convert図形をパスに変換
list-operations利用可能なパスのブール演算を一覧表示

グラデーション

グラデーション管理コマンド。

コマンド説明
add-linear線形グラデーションを追加
add-radial放射グラデーションを追加
applyグラデーションをオブジェクトに適用
listすべてのグラデーションを一覧表示

エクスポートグループ

エクスポート/レンダリングコマンド。

コマンド説明
pngドキュメントをPNGにレンダリング
svgドキュメントをSVGとしてエクスポート
pdfドキュメントをPDFとしてエクスポート(Inkscapeが必要)
presetsエクスポートプリセットを一覧表示

セッション

セッション管理コマンド。

コマンド説明
statusセッションの状態を表示
undo最後の操作を元に戻す
redo元に戻した操作をやり直す
history元に戻す履歴を表示

例

新しいプロジェクトを作成

新しいInkscapeプロジェクトファイルを作成します。

cli-anything-inkscape document new -o myproject.json
# またはプログラムでの使用のためにJSON出力を使用
cli-anything-inkscape --json document new -o myproject.json

インタラクティブなREPLセッション

アンドゥ/リドゥ機能を備えたインタラクティブセッションを開始します。

cli-anything-inkscape
# 対話的にコマンドを入力
# 'help' で利用可能なコマンドを表示
# 'undo' と 'redo' で履歴をナビゲーション

プロジェクトをエクスポート

プロジェクトを最終出力形式にエクスポートします。

cli-anything-inkscape --project myproject.json export pdf output.pdf --overwrite

テキストボックスの折り返し

タイトルカード、チップ、ポートレートセーフなパネルには、手動で改行を挿入する代わりに、折り返しテキストボックスを使用することを推奨します。

cli-anything-inkscape --project title.json text add \
  --text "Real capture + Veo cold open + Gemini score + thumbnail plate" \
  --x 180 --y 470 --font-size 118 \
  --box-width 1180 --box-height 260 --line-height 1.05

cli-anything-inkscape --project title.json text set 0 box-width 980
cli-anything-inkscape --project title.json text set 0 line-height 1.15

注意:

  • box-width は長いテキストを複数のエクスポートされたSVG tspan 行に折り返します。
  • box-height は長いテキストがキャンバスの外に溢れる代わりに安全に失敗できるようにします。
  • 長いコピーのグラフィックには、手動の改行に頼る前に折り返しテキストボックスを使用してください。

状態管理

CLIはセッション状態を以下のように管理します。

  • アンドゥ/リドゥ: 最大50レベルの履歴
  • プロジェクトの永続化: プロジェクト状態をJSONとして保存/読み込み
  • セッション追跡: 変更を追跡

出力形式

すべてのコマンドは二重の出力モードをサポートします。

  • 人間可読(デフォルト): テーブル、色、整形されたテキスト
  • 機械可読(--json フラグ): エージェント消費用の構造化JSON
# 人間向け出力
cli-anything-inkscape project info -p project.json

# エージェント向けJSON出力
cli-anything-inkscape --json project info -p project.json

AIエージェント向け

このCLIをプログラムで使用する場合:

  1. 常に --json フラグ を使用して解析可能な出力を得る
  2. リターンコードを確認 - 0は成功、非0はエラー
  3. stderrを解析 してエラーメッセージを取得
  4. 絶対パス ですべてのファイル操作を実行
  5. 出力が存在することを確認 エクスポート操作後
  6. 折り返しテキストボックスを優先 見出しや可変長コピーには、レイアウトが編集間で安定するように

詳細情報

  • 完全なドキュメント: パッケージ内のREADME.mdを参照
  • テストカバレッジ: パッケージ内のTEST.mdを参照
  • 方法論: cli-anything-plugin内のHARNESS.mdを参照

バージョン

1.0.1

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

>-

関連スキル