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.
npx skills add DSY-Xueai/image2editable --skill image-to-psdgit clone --depth 1 https://github.com/DSY-Xueai/image2editableWrote 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.
[](https://agentmods.dev/skills/dsy-xueai/image2editable/image-to-psd)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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.
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_MODEL 和 LAMA_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
What ships with it
24 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/requirements.txt 362 B
- scripts/__init__.py 44 B runs code
- scripts/bg_model.py 40 KB runs code
- scripts/component_contracts.py 41 KB runs code
- scripts/component_quality.py 53 KB runs code
- scripts/component_underlay.py 19 KB runs code
- scripts/fg_extract.py 47 KB runs code
- scripts/image_to_ppt.py 193 KB runs code
- scripts/image_to_psd.py 7.0 KB runs code
- scripts/initial_diagnostics.py 3.0 KB runs code
- scripts/lama_inpaint.py 7.5 KB runs code
- scripts/lama_worker.py 808 B runs code
- scripts/object_detect.py 11 KB runs code
- scripts/object_worker.py 1.7 KB runs code
- scripts/ocr_worker.py 8.7 KB runs code
- scripts/performance_trace.py 5.4 KB runs code
- scripts/psd_assemble.py 4.3 KB runs code
- scripts/runtime_model_paths.py 4.6 KB runs code
- scripts/sam_worker.py 73 KB runs code
- scripts/text_detect.py 38 KB runs code
- scripts/visual_compare_qa.py 3.6 KB runs code
- scripts/visual_segment.py 75 KB runs code
- scripts/visual_worker.py 6.3 KB runs code
- scripts/worker_resources.py 3.1 KB runs code
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.
- 10d ago First seen · 132 lines · 75 tokens per session scan A 253f400ca7b5
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.
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…
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…
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.
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…
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…
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.