image-to-psd

image-to-psd is a skill for Claude Code from DSY-Xueai/image2editable. It costs 75 tokens per session (1,911 once invoked), scanned A, original, MIT.

A skill that reconstructs images as editable, layered Photoshop files. It separates the repaired background, visual components, and text into layers instead of leaving the page as one flat image.

In plain words
What is it for?
Use it with PNG, JPEG, BMP, TIFF, or WebP images to create PSD files with transparent visual components and editable text layers. It does not handle PDFs or PowerPoint files.
Why use it?
It helps when a finished image needs to be edited as individual parts. Quality checks stop the process if the result does not meet the required layer structure.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the image2editable plugin — 2 skills shipped together

Good fit Use it with PNG, JPEG, BMP, TIFF, or WebP images to create PSD files with transparent visual components and editable text layers. It does not handle PDFs or PowerPoint files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dsy-xueai/image2editable/image-to-psd
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 DSY-Xueai/image2editable --skill image-to-psd
Clone the repo
git clone --depth 1 https://github.com/DSY-Xueai/image2editable

Made for: Claude Code.

Or install image2editable, the plugin that ships this one along with the rest of its 2 skills.

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 image-to-psd

README.md
[![agentmods](https://agentmods.dev/badge/skills/dsy-xueai/image2editable/image-to-psd/github.svg)](https://agentmods.dev/skills/dsy-xueai/image2editable/image-to-psd)
Your own site
<a href="https://agentmods.dev/skills/dsy-xueai/image2editable/image-to-psd"><img src="https://agentmods.dev/badge/skills/dsy-xueai/image2editable/image-to-psd/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 image-to-psd

Your own site · 80×15
<a href="https://agentmods.dev/skills/dsy-xueai/image2editable/image-to-psd"><img src="https://agentmods.dev/badge/skills/dsy-xueai/image2editable/image-to-psd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,911 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.00075 $0.01911
Opus 5 $0.00037 $0.00955
Sonnet 5 $0.00015 $0.00382
Haiku 4.5 $0.00007 $0.00191

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

Security

Grade A, and why

image-to-psd 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 10d ago.

The scan reads SKILL.md. This mod also ships 23 executable files (scripts/__init__.py, scripts/bg_model.py, scripts/component_contracts.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/image-to-psd/SKILL.md · 132 lines

How it starts

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

Image to PSD

把图片重建为分层 PSD。文字只由可编辑文字图层贡献一次;视觉组件和背景不得残留文字像素。质量检查失败时停止,不把整页图片伪装成分层结果。

输入与授权

  • 仅支持 PNG、JPEG、BMP、TIFF 和 WebP。
  • 单图输出一个 .psd;多图输出到目录,同名文件使用稳定序号区分。
  • 每个 PSD 包含修复背景、按 z-order 排列的透明视觉组件和可编辑文字图层。
  • PSD 写入依赖已授权的 Aspose.PSD。模型推理前必须设置 ASPOSE_PSD_LICENSE;授权缺失或无效时立即停止。

Windows PowerShell:

$env:ASPOSE_PSD_LICENSE="C:\path\to\Aspose.PSD.lic"

Linux/macOS:

export ASPOSE_PSD_LICENSE=/path/to/Aspose.PSD.lic

授权文件、模型权重、OCR 缓存和运行产物都不存放在此 skill 中。

独立运行

独立模式不需要安装 image2editable 产品包。使用 Python 3.10-3.12,并从 skill 根目录安装依赖:

python -m pip install -r references/requirements.txt

若 OCR 尚未准备好,先让用户选择 PaddleOCR 或 Tesseract;未经确认不要安装。PaddleOCR 更适合中文、英文和复杂版面,Tesseract 较轻量但还需要系统程序。

# PaddleOCR
python -m pip install "paddleocr==3.7.0" "paddlepaddle==3.3.1" "PaddleX==3.7.2" "PyYAML==6.0.2"

# Tesseract Python adapter
python -m pip install pytesseract

开始转换前,把三个模型配置为绝对本地路径:SAM2_MODELLAMA_MODEL 指向文件,GROUNDING_DINO_MODEL 指向目录。独立模式不读取产品 receipt,也不运行 image2editable doctor

python -c "import os; from pathlib import Path; names=('SAM2_MODEL','LAMA_MODEL','GROUNDING_DINO_MODEL'); raw={name: os.environ.get(name, '') for name in names}; paths={name: Path(value) for name, value in raw.items()}; assert all(raw.values()) and all(path.is_absolute() for path in paths.values()) and paths['SAM2_MODEL'].is_file() and paths['LAMA_MODEL'].is_file() and paths['GROUNDING_DINO_MODEL'].is_dir(); print('runtime model paths: ok')"

推理不会下载模型或回退 Hugging Face cache。SAM 和 LaMa 文件必须匹配固定身份;DINO 目录视为用户明确提供的本地 override。LaMa 缺失或初始化失败时停止,不降级到容易产生条带或拖影的 OpenCV 修复。

检查当前设备后再运行:

python -c "import sys, torch; print({'platform': sys.platform, 'cuda': torch.cuda.is_available(), 'rocm': torch.version.hip})"

CPU 仍使用完整模型和相同质量门,速度会明显慢于 GPU。macOS 在真实 Apple Silicon 回归完成前不自动把 MPS 设为默认。

从 skill 根目录运行 module,不要直接执行脚本文件:

cd skills/image-to-psd
python -m scripts.image_to_psd input.png
python -m scripts.image_to_psd input.png -o output.psd
python -m scripts.image_to_psd img1.png img2.png -o psd-output
python -m scripts.image_to_psd images/ -o psd-output --lang en

Read the full file on GitHub · 132 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. 10d ago First seen · 132 lines · 75 tokens per session scan A 253f400ca7b5

Subscribe to this mod's changes

image-to-psd is a skill published in the GitHub repository DSY-Xueai/image2editable (37 stars, last pushed 7d ago), licensed MIT. It adds 75 tokens to every session and 1,911 once invoked, about $0.0004 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

ideagram

Turn a concept, feature description, blog post, or pitch into a single beautiful, on-brand illustration by matching it to a real unDraw illustration in a local library and recoloring it to the brand accent — genuine illustrator quality, not an AI-drawn approximation. Use whenever the user asks to "make an…

codeswithroh/tastemaker · 142 tokens

imagegen-frontend-web

Generate premium horizontal website design-reference images for landing pages, marketing sites, and product pages. Use when the requested deliverable is web design imagery or when an image-first implementation workflow needs upstream section concepts. Produce images only, one standalone image per page section; do not…

wedabro/bro-skills · 67 tokens

brandkit

Generate premium brand-identity imagery, logo systems, brand-guideline boards, visual-world directions, and identity mockups. Use for image-based brand exploration and presentation systems. Produce brand visuals only; do not implement websites, design mobile product screens, or write application code.

wedabro/bro-skills · 57 tokens

ip-as-logo

Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color, and a dominant lower-corner composition. Use when creating an animal, creature, robot, ghost, plant, object, or other character image, including when the agent…

s1dashu/ip-as-logo-skill · 78 tokens

pixel2motion

Turn a raster logo (PNG/JPG/WebP/screenshot) into a clean minimal SVG with edge smoothness as the primary hard gate and IoU optimized as high as reasonably possible without a fixed global threshold, then into a choreographed logo animation delivered as standalone JS-rendered HTML, applying Disney's 12 animation…

nolangz/pixel2motion · 163 tokens

frontend-slides

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

gooseworks-ai/goose-skills · 63 tokens