Imagemagick Cliのロゴ

Imagemagick Cli

コミュニティ
Yuki001
imagemagick-cli

Comprehensive ImageMagick 7 command-line image processing for inspecting, converting, resizing, cropping, compositing, masking, drawing, annotating, color correction, quantization, filtering, morphology, distortion, animation, montage, comparison, metadata, batch automation, and advanced pixel analysis. Use whenever a task mentions ImageMagick, `magick`, `identify`, `mogrify`, raster image conversion or batch image manipulation, or when a reproducible CLI pipeline is preferable to a GUI or language binding. Also use for debugging ImageMagick commands, porting ImageMagick 6 `convert` syntax to version 7, choosing coder/delegate options, and safely processing untrusted or large images. Do not use merely to edit an existing SVG as vector source or when the user explicitly requests a different image tool.

Add to TypingMind

概要

公開者Yuki001
リポジトリgame-dev-skills
スキル名imagemagick-cli
スター
104
フォーク
13
同梱ファイル
17
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 17個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Yuki001がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Imagemagick Cli」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Yuki001/game-dev-skills/tree/main/skills/imagemagick-cli
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Yuki001/game-dev-skills.git /tmp/game-dev-skills
mkdir -p .claude/skills
cp -r /tmp/game-dev-skills/skills/imagemagick-cli .claude/skills/imagemagick-cli
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでImagemagick Cliを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にImagemagick Cliを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Imagemagick Cliは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

ImageMagick CLI

Use ImageMagick 7 to build, run, and verify reproducible image-processing commands. Keep the main workflow short; load the bundled reference that matches the requested operation.

Workflow

  1. Resolve magick and run magick -version. Use scripts/resolve-imagemagick.ps1 on Windows or scripts/resolve-imagemagick.sh on Linux/macOS when discovery is uncertain. If ImageMagick cannot be found, tell the user to download and install it from https://imagemagick.org/download.
  2. Inspect the input with magick identify -ping or magick identify -verbose when metadata, alpha, profiles, pages, or frames matter.
  3. Read the relevant reference below, construct an ImageMagick 7 command for the user’s shell, and preserve originals unless in-place editing is explicit.
  4. Run the command when requested, check the exit code, then verify the output with identify, compare, and visual inspection as appropriate.

Core rules

  • Use ImageMagick 7 syntax: magick input [operators] output and subcommands such as magick identify, magick mogrify, magick montage, magick compare, and magick stream.
  • Respect sequential evaluation. Put read settings such as -density, raw -size, and decoder -define values before the input they affect.
  • Quote all paths and shell-sensitive geometry. Use parentheses to isolate operations on overlays, masks, clones, or other nested image lists.
  • Treat magick mogrify as destructive unless -path writes to a separate directory.
  • Run -auto-orient before geometry-sensitive work on camera images.
  • Use +repage after crop or trim when later operations should ignore the old virtual canvas.
  • Manage alpha, colorspace, profiles, animation timing, and multi-page scenes deliberately; do not silently discard them.
  • Confirm optional formats, fonts, delegates, policies, compose methods, and kernels with the installed magick -list ... commands.
  • For untrusted or very large inputs, use format allowlists and limits for area, memory, map, disk, time, and threads.
  • Verify outputs instead of relying on file existence alone.

Shell forms

PowerShell:

powershell
$magick = (Get-Command magick -ErrorAction Stop).Source
& $magick "input image.png" -auto-orient -resize "1600x1600>" "output image.jpg"

Pass parentheses as literal arguments:

powershell
& $magick "background.png" "(" "overlay.png" -resize "25%" ")" `
  -gravity southeast -geometry "+24+24" -compose over -composite "result.png"

Bash/zsh:

bash
magick "input image.png" -auto-orient -resize '1600x1600>' "output image.jpg"
magick background.png \( overlay.png -resize 25% \) \
  -gravity southeast -geometry +24+24 -compose over -composite result.png

Prefer PowerShell over cmd.exe for complex Windows commands. In cmd batch files, use ^ for continuation and double % characters.

Command references

  • references/cli-foundations.md — evaluation order, settings and operators, stacks, geometry grammar, pseudo-images, streams, shell quoting, and IM6-to-IM7 conversion.
  • references/inspect-formats-metadata.md — identify, percent escapes, EXIF/profiles, format prefixes, multi-image I/O, common and specialist coders, delegates, encrypted images, raw data, and large streams.
  • references/geometry-resize-crop.md — fit/fill/exact resize, thumbnails, resampling filters, density, orientation, crop/page/extent, advanced trim, borders, tiling, and framing.
  • references/color-tone-quantize.md — colorspaces, ICC, channels, alpha, grayscale, levels, histogram operations, thresholds, palettes, and dithering.
  • references/compose-mask-layers.md — compose operators, placement, opacity, alpha/read/write masks, background removal, chroma key, hole filling, regions, clones, layers, watermarks, and shadows.
  • references/draw-text-canvas.md — canvases, gradients, patterns, fonts, label/caption/annotate, Pango, form filling, gravity, symbols, MVG, paths, and text effects.
  • references/filters-effects-morphology.md — blur, sharpen, denoise, convolution, edge/Hough detection, morphology kernels and pattern matching, deskew, CLAHE, shade, and photographic effects.
  • references/distort-map-fx.md — affine/SRT, perspective, lens correction, control points, virtual pixels, displacement/absolute/variable-blur maps, -evaluate, -function, -fx, and sparse color.
  • references/animation-montage-compare.md — frame metadata, coalesce/disposal, animation edits/merging/optimization, video palettes/deinterlacing, contact sheets, metrics, diffs, and subimage search.
  • references/batch-performance-security.md — safe PowerShell/Bash batching, mogrify, naming, resource limits, concurrency, policies, temporary files, and failure logs.
  • references/advanced-analysis.md — histograms, pixel enumeration, connected components, convex hull, classification heuristics, kernels, FFT/HDRI, raw streaming, and calculated options.
  • references/photo-thumbnail-effects.md — digital-photo cleanup, selective focus/anonymization, multiple exposures, green screen, sketch/vignette work, thumbnail decoration, reflections, and constructed lighting effects.
  • references/options-index.md — on-demand alphabetized CLI option signatures. Search for the exact option; do not read the index end to end.
  • references/defines-index.md — on-demand -define keys grouped by coder or operation. Search for the coder/prefix or exact key; do not read the index end to end.

For large indexes, search before reading the entire file:

text
options-index.md:  ^### -resize\b
defines-index.md:  png:|jpeg:|compare:|connected-components:

Verification patterns

bash
magick identify -format '%f|%m|%wx%h|%z-bit|%[colorspace]|%[channels]|%n\n' output.png
magick identify -format '%s|%T|%D|%wx%h|%[page]\n' animation.gif
magick compare -metric RMSE expected.png actual.png null:

Comparison metrics commonly write to stderr, and a nonzero compare status can mean that images differ. Capture the metric and diagnostic text separately in automation.

Response style

  • State assumptions that affect pixels, cropping, transparency, metadata, colorspace, or animation behavior.
  • Give commands for the user’s actual shell.
  • Explain only the non-obvious ordering or operators.
  • Warn before destructive mogrify use.
  • Include verification for batch, lossy, animated, color-managed, multi-page, or security-sensitive work.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Imagemagick Cli」では何ができますか?

Comprehensive ImageMagick 7 command-line image processing for inspecting, converting, resizing, cropping, compositing, masking, drawing, annotating, color correction, quantization, filtering, morphology, distortion, animation, montage, comparison, metadata, batch automation, and advanced pixel analysis. Use whenever a task mentions ImageMagick, `magick`, `identify`, `mogrify`, raster image conversion or batch image manipulation, or when a reproducible CLI pipeline is preferable to a GUI or language binding. Also use for debugging ImageMagick commands, porting ImageMagick 6 `convert` syntax...

TypingMindでImagemagick Cliを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Imagemagick Cliはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにImagemagick Cliをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Yuki001/game-dev-skills/tree/main/skills/imagemagick-cliを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Imagemagick Cliを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Imagemagick Cliで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもImagemagick Cliを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Imagemagick Cli」は無料ですか?

Yuki001がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇