cli-anything-photoshop

Automates Adobe Photoshop editing tasks through a Windows COM-based command-line interface.

Updated Sep 21, 2026
Ready to run
npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill cli-anything-photoshop-tangyixiao
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: cli-anything-photoshop
Source: https://github.com/tangyixiao/tangyixiao-skills/tree/main/cli-anything-photoshop
Command: npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill cli-anything-photoshop-tangyixiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pywin32.

What problem does it solve? Editing Photoshop documents programmatically normally requires manual GUI work or writing raw COM scripts. This Skill wraps Photoshop's Windows COM automation interface in a structured CLI so AI agents and users can create projects, manipulate layers, manage selections, edit text, and export files with simple commands and JSON output. ## Core Features & Use Cases - Project & Document Management: Create, open, save, resize, crop, rotate, and convert PSD documents from the command line. - Layer, Selection & Text Operations: Add, duplicate, reorder, merge, and blend layers; build and fill selections; insert and edit text layers with font, size, and color control. - Agent-Friendly Output: The --json flag returns structured results for AI parsing, --dry-run previews changes without saving, and a REPL mode reduces Photoshop startup overhead. - Use Case: An AI agent can generate a poster by creating an 800x600 PSD, adding a red Arial text layer, listing layers to verify state, and exporting the result as a PNG, all through sequential CLI calls. ## Quick Start Ask the AI to use the cli-anything-photoshop skill to create a new 800x600 PSD project, add a text layer saying "Hello World", and export it as a PNG file.

Frequently Asked Questions about cli-anything-photoshop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Photoshop from the command line?▼

Install the harness with pip install -e . from the agent-harness directory, then run cli-anything-photoshop commands for project, document, layer, selection, text, and export operations. Use the --json flag for structured output suitable for scripts and AI agents.

How to add a text layer to a PSD file programmatically?▼

Run cli-anything-photoshop --project file.psd text add with -t for content, -f for font, -s for size, and -c for color. The command creates the text layer through Photoshop's COM interface and saves it to the project.

Does Photoshop COM automation work on macOS or Linux?▼

No, this approach requires Windows 10 or 11 because it relies on the Windows COM interface exposed by Adobe Photoshop 2023 or later. macOS and Linux do not support COM automation.

What Python dependencies are needed for Photoshop CLI automation?▼

You need Python 3.10 or later and the pywin32 package, which provides access to the Windows COM bridge. Photoshop itself must be installed with its COM interface registered.

Can I preview Photoshop changes without saving the file?▼

Yes, use the --dry-run flag to execute commands without saving to disk. This lets you verify layer additions or edits before committing changes to the PSD file.

Why does the Photoshop CLI fail to connect to Photoshop?▼

Connection failures typically occur when Photoshop is not installed, its COM interface is not registered, or the Photoshop version is older than 2023. Verify Photoshop launches normally and that pywin32 is installed.