Agent Skills
› NeverSight/learn-skills.dev
› photoshop-automator
photoshop-automator
GitHub通过COM/ExtendScript桥接自动化Adobe Photoshop,支持文本更新、滤镜应用及动作回放。严格遵循ES3语法规范,提供脚本执行与文件导出功能,需注意文件系统访问安全及对话框阻塞问题。
Trigger Scenarios
需要批量修改PSD文本内容
自动应用滤镜或播放动作集
程序化生成或导出图像文件
Install
npx skills add NeverSight/learn-skills.dev --skill photoshop-automator -g -y
SKILL.md
Frontmatter
{
"name": "photoshop-automator",
"metadata": {
"openclaw": {
"requires": {
"os": [
"windows",
"macos"
],
"env": [],
"bins": [
"cscript",
"osascript"
],
"config": []
}
}
},
"description": "Professional Adobe Photoshop automation via COM\/ExtendScript bridge. Supports text updates, filters, and action playback."
}
Photoshop Automator Skill (v1.2.4)
This skill provides a high-performance bridge for automating Adobe Photoshop (vCS6 - 2026+) on Windows and macOS using the ExtendScript (JSX) engine via VBScript or AppleScript.
Commands
- runScript: Executes raw ExtendScript (ES3) code. Use this for complex document manipulation.
- updateText: Target a specific text layer by name and update its contents instantly.
- createLayer: Create new art layers with custom opacity and blending modes.
- applyFilter: Apply a professional Gaussian Blur filter to the active layer.
- playAction: Play recorded Photoshop actions (.atn) by name and set.
- export: Save the active document as a high-quality PNG or JPEG.
🛠 AI Protocol
1. Technical Constraints (Strict)
- ES3 Syntax Only: Photoshop's ExtendScript engine uses ECMAScript 3 (ES3).
- ❌ DO NOT USE:
const,let, arrow functions() => {}, template literals`${}`, orMap/Set. - ✅ USE: Only
var, standardfunctiondeclarations, and string concatenation ('a' + b).
- ❌ DO NOT USE:
- Assume Active Document: Commands operate on the active document. If none is open, scripts will fail unless they call
app.documents.add().
2. Security & Side Effects
- Filesystem Access: The
runScriptcommand allows execution of arbitrary ExtendScript. This engine has direct access to the host filesystem. - Side Effects: Scripts can create, modify, or delete files on the local machine via the
FileandFolderobjects. - Verification: Always review dynamically generated scripts before execution to prevent unintended document or filesystem modifications.
3. Error Handling
- GUI Blocks: If Photoshop has a modal dialog open (e.g., Save As window, error popup), COM operations will hang or fail. Direct the user to close any open dialogs.
- Layer Presence: If
updateTextfails, ensure the layer name provided matches exactly (case-sensitive) with the layer in the PSD.
Setup
Ensure Adobe Photoshop is installed on the host system. The skill automatically uses the registered COM server.
Developed for the OpenClaw community by Abdul Karim Mia.
Version History
- e0220ca Current 2026-07-05 22:17


