/mas-design-knowledge:adobe-photoshopfrom mas-design-knowledge
Automates Photoshop with UXP or ExtendScript, Actions, Batch/Image Processor, Smart Object pipelines, and color-managed exports. Catches profile, bit-depth, and headless-DOM failures agents routinely miss.
Ships in mas-design-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adobe Photoshop is a layer-based pixel compositor for retouching, design, and stills pipelines. Agents should treat documents as trees of layers / groups / Smart Objects / adjustment layers, Actions as recorded human-intent steps, and scripts (ExtendScript JSX or UXP) as deterministic I/O + export. Color is a first-class contract: document profile ≠ export intent (web sRGB vs print Adobe RGB / CMYK).
┌─────────────────────────────────────────────────────────────┐
│ Photoshop edit → script → export │
│ │
│ Document model │
│ ├── ArtLayer / LayerSet / Smart Object │
│ ├── Adjustment layers / masks / channels / paths │
│ └── History (non-destructive until flatten) │
│ │
│ Automation │
│ ├── Actions + Batch / Image Processor │
│ ├── ExtendScript DOM (app.activeDocument) │
│ └── UXP plugins (modern JS + manifest) │
│ │
│ Color & deliverables │
│ ├── Working space / convert on export │
│ └── PNG/JPEG/TIFF/PSD; Generator naming │
└─────────────────────────────────────────────────────────────┘
Version pins: document Photoshop major (e.g. 2025) and whether the studio standardizes on UXP (new panels) or ExtendScript (legacy farm scripts). Do not mix APIs in one file.
Use when
Do not use when
@substance-painter.sRGB IEC61966-2.1 for web).close(SaveOptions.DONOTSAVECHANGES) unless in-place save requested.doAction; keep paths/quality in script.{name}_{size}.{ext} conventions for design-system exports.// ExtendScript: max-edge 2048, convert to sRGB JPEG
(function () {
var inputFolder = Folder.selectDialog("Select input folder");
var outputFolder = Folder.selectDialog("Select output folder");
if (!inputFolder || !outputFolder) return;
var files = inputFolder.getFiles(/\.(jpg|jpeg|png|tif|tiff|psd)$/i);
var count = 0;
for (var i = 0; i < files.length; i++) {
var doc = open(files[i]);
var maxEdge = 2048;
var w = doc.width.as("px");
var h = doc.height.as("px");
var scale = Math.min(1, maxEdge / Math.max(w, h));
if (scale < 1) {
doc.resizeImage(
UnitValue(w * scale, "px"),
UnitValue(h * scale, "px"),
null,
ResampleMethod.BICUBICSHARPER
);
}
try {
doc.convertProfile("sRGB IEC61966-2.1", Intent.RELATIVECOLORIMETRIC, true, true);
} catch (e) {
// Unmanaged docs: assign sRGB first in Color Settings workflows if convert fails
}
var outFile = new File(
outputFolder + "/" + doc.name.replace(/\.[^\.]+$/, "") + "_2048.jpg"
);
var opts = new JPEGSaveOptions();
opts.quality = 10;
opts.embedColorProfile = true;
doc.saveAs(outFile, opts, true);
doc.close(SaveOptions.DONOTSAVECHANGES);
count++;
}
alert("Processed " + count + " files.");
})();
Hybrid pattern:
1. Record Action for retouch steps that need human brush intent
2. JSX: doAction("RetouchHero", "StudioSet")
3. JSX: deterministic export paths + profile + quality
Validation loop:
Edit → Color Settings (confirm RGB working space)
File → Scripts → browse JSX
Spot-check: open export → document profile shows sRGB
| Signature | Likely cause | Fix path |
|---|---|---|
activeDocument null / error | No file open | Open/create before DOM calls |
convertProfile throws | Missing/unmanaged profile | Assign profile then convert; try/catch with log |
| Batch skips files | Regex / ACL / cloud-only stubs | Fix extensions; ensure local files |
| Smart Object unexpectedly raster | Script used raster-only op | Edit Contents / export SO; avoid accidental rasterize |
| Washed or heavy print shift | Wrong working space / no convert | Match export intent; soft-proof for CMYK |
| UXP command fails, JSX works | Wrong host API | Use UXP batchPlay descriptors or keep JSX for that op |
| Action missing in Batch | Set/Action name mismatch | Exact doAction(name, set) strings |
Export As naming conventions agreed with design system.@adobe-illustrator — vector source (if present in catalog)@figma — UI design handoff (if present)@substance-painter — 3D texture maps sometimes finished in PS@cinema-4d — 3D stills often finished/comped in PSMANDATORY: Default to Smart Objects and explicit color-profile intent on export. Close batch docs with
DONOTSAVECHANGESunless the user requested saves. Prefer UXP for new panels and JSX for legacy farms—do not mix casually. Never invent Adobe credentials or press ICC profiles.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
photoshop, extendscript, uxp, actions, batch, smart-objects, color-management, icc
npx claudepluginhub alivirgo/major-ai-skills --plugin mas-design-knowledge5 skills in this plugin
/figmaBuild Figma plugins, export selected frames, audit components, and map variables to design tokens using the Plugin and REST APIs./linearManage Linear issues, projects, cycles, and labels through GraphQL and webhook-driven workflows./notionCreate and update Notion pages, blocks, database entries, and property schemas through its API./obsidianOrganize Obsidian vaults with Markdown, URI links, Templater, Dataview, and local plugin workflows.Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Oct 25, 2026