cli-anything-photoshop

cli-anything-photoshop is a skill for Claude Code, Codex from yb2460/harness-anything. It costs 43 tokens per session (1,609 once invoked), scanned A, original, MIT.

A command-line tool that controls Adobe Photoshop through Windows automation. It can work with Photoshop documents, layers, selections, text, image adjustments, and exports.

In plain words
What is it for?
Use it on Windows with Photoshop 2023 or newer to create, open, save, resize, crop, rotate, flip, adjust, and export PSD projects.
Why use it?
It lets an agent perform Photoshop tasks through commands and can return results as JSON, which is structured text that software can read.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it on Windows with Photoshop 2023 or newer to create, open, save, resize, crop, rotate, flip, adjust, and export PSD projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yb2460/harness-anything/cli-anything-photoshop
About the project

Harness Anything is a collection of tools that lets AI agents control office, research, and design applications through command-line interfaces and Windows automation. It supports tasks such as editing WPS or Microsoft Office files, managing Zotero research workflows, creating Illustrator graphics, and generating data-driven presentations.

yb2460/harness-anything · 1,738 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yb2460/harness-anything --skill cli-anything-photoshop
Clone the repo
git clone --depth 1 https://github.com/yb2460/harness-anything

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-anything-photoshop

README.md
[![agentmods](https://agentmods.dev/badge/skills/yb2460/harness-anything/cli-anything-photoshop/github.svg)](https://agentmods.dev/skills/yb2460/harness-anything/cli-anything-photoshop)
Your own site
<a href="https://agentmods.dev/skills/yb2460/harness-anything/cli-anything-photoshop"><img src="https://agentmods.dev/badge/skills/yb2460/harness-anything/cli-anything-photoshop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli-anything-photoshop

Your own site · 80×15
<a href="https://agentmods.dev/skills/yb2460/harness-anything/cli-anything-photoshop"><img src="https://agentmods.dev/badge/skills/yb2460/harness-anything/cli-anything-photoshop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01609
Opus 5 $0.00022 $0.00805
Sonnet 5 $0.00009 $0.00322
Haiku 4.5 $0.00004 $0.00161

Measured 12d ago against content hash cb4e9df4cdc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cli-anything-photoshop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

photoshop-harness/skills/cli-anything-photoshop/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLI-Anything Photoshop

通过 Windows COM 自动化接口操控 Adobe Photoshop 的命令行工具。

前置条件

  • Windows 10/11
  • Adobe Photoshop 2023+ (需注册 COM 接口)
  • Python 3.10+pywin32

安装

cd photoshop-harness/agent-harness
pip install -e .

安装后可使用 cli-anything-photoshop 命令。

命令结构

cli-anything-photoshop [--json] [--project <path>] [--dry-run] <command-group> <command> [options]

全局选项

选项 描述
--json 以 JSON 格式输出(供 AI Agent 解析)
--project <path> 自动打开或创建 PSD 项目文件
--dry-run 执行命令但不保存到磁盘

命令组

project — 项目管理

命令 选项 描述
new <path> -w width, -h height, -r resolution, -m mode, -b bg-color 创建新 PSD
open <path> 打开 PSD 文件
save [path] 保存文档
close --no-save 关闭文档

document — 文档操作

命令 选项 描述
info 文档信息
resize -w width, -h height, -r resolution 调整尺寸
canvas -w width, -h height, -a anchor 调整画布
crop --left --top --right --bottom 裁切
rotate -a angle 旋转画布
flip -d direction 翻转画布
mode -m mode 更改色彩模式
trim -t type 裁切边缘

layer — 图层操作

命令 选项 描述
add -n name, -t type, -o opacity, -b blend 添加图层
delete -n name 删除图层
duplicate -n name, --new-name name 复制图层
rename --old name, --new name 重命名
show / hide -n name 显示/隐藏
opacity -n name, -o opacity 设置透明度
blend -n name, -m mode 设置混合模式
list 列出所有图层
reorder -n name, -p position 调整顺序
merge -n name, --with-layer name 合并图层

selection — 选区操作

命令 选项 描述
all 全选
none 取消选区
invert 反转选区
feather -r radius 羽化
expand -p pixels 扩展
contract -p pixels 收缩
border -w width 边框选区
rect --left --top --right --bottom 矩形选区
fill -c color, -o opacity 填充选区

Read the full file on GitHub · 151 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 151 lines · 43 tokens per session scan A cb4e9df4cdc6

Subscribe to this mod's changes

cli-anything-photoshop is a skill published in the GitHub repository yb2460/harness-anything (1,738 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 1,609 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

project-illustrator

Create or refine a cohesive visual identity for a software project through mascots, logos, README heroes, social cards, circular thumbnails, and supporting illustrations. Use when project artwork must share one recognizable character, palette, composition language, and production-quality finish. Not for architecture…

mgiovani/cc-arsenal · 62 tokens

make-ppt

Use when the user wants to create or substantially improve a presentation from a topic, brief, source material, existing outline, or partial draft.

Orkas-AI/Orkas-Awesome-AgentSkills · 0 tokens

illustrator

Adobe Illustrator via MCP (npx illustrator-mcp-server). Use when the user needs vector art, artboards, exports, or Illustrator automation from the agent. Requires mcp/illustrator wired and Illustrator desktop installed/running.

rogue-dev-studio/ai-agents-rogue · 49 tokens

photoshop

Adobe Photoshop via MCP (uvx photoshop-mcp-server). Use when the user needs PSD edits, layers, exports, or Photoshop automation from the agent. Requires mcp/photoshop wired and Photoshop desktop installed/running.

rogue-dev-studio/ai-agents-rogue · 47 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

RudraDudhat2509/claude-skills · 59 tokens

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

RudraDudhat2509/claude-skills · 62 tokens