/artcraft-skills:photocraft-imagesfrom artcraft-skills
Edits, retouches, composites, and exports raster images using PhotoCraft (Photoshop-class editor). Covers layers, masks, selections, filters, PSD/PNG/JPG/TIFF/WebP conversion, and non-destructive workflows.
Ships in artcraft-skills. 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.
PhotoCraft is an open-source, Photoshop-class raster editor (layers, masks, selections, adjustment
layers, smart objects, filters, retouching, type, shapes, paths, artboards; native .pcraft, also PSD,
PNG, JPG, TIFF, WebP, EXR...). You drive it with the photocraft MCP server (headless engine) or, for
paths outside its file roots or when the preflight fails, with photocraft-cli from Bash (section 1). This skill says what to build,
in what order, to what quality bar, and how to hand the result to the user.
A look is a decision, not a preset. Asked to "make it pop", you will reach for the image-feed average: teal-orange, plastic skin, haloed skylines, a cutout on a gradient. Corrective work (cleanup, cutouts, sizing) stays faithful to the photo; anything with a look (a grade, a composite, a poster, a collage) gets its character from a reference outside photo apps, a constraint on the palette or process, looks the user picks between, and a viewer who did not edit it. The user's reference or brand look always wins.
references/command-catalog.mdreferences/recipes.mdMCP tools: doc_new, doc_open, doc_save, doc_export, doc_export_layers, doc_place,
doc_inspect, render_preview (= doc_render_preview), session_list, doc_select, doc_close,
command_list, command_run, command_batch, jobs_list, jobs_cancel, plus bridge-only ui_* and
control_call. They are deferred: load schemas with ToolSearch (+photocraft, max_results 30) first.
command_list {filter:"curves"} (ids, labels, the
params doc, enabled/disabledReason). Never call it unfiltered: the catalogue is ~940 commands
(300 KB). The params doc is the truth, e.g. {"radius":0.1..1000=1} means optional number, default 1."#rrggbb".command_batch {steps:[{id,params}], stop_on_error} runs in order
but is not atomic (earlier steps stay applied on failure; fix and continue, or history.undo).layer (id) is given. layer.select {name|layer} changes the active layer. Creation commands return the new layer id: keep ids, names
can duplicate. doc_inspect lists layers top to bottom with ids, kind, bounds, opacity, masks.paint.remove, Photomerge) can run as
background jobs with wait:false: poll jobs_list, stop with jobs_cancel.type.rasterize, shape.rasterize), or convert to a smart
object first (layer.smartObjects.convertToSmartObject, then filters stay editable as smart filters).photocraft-cli mcp is headless and has no file access unless it was started with
--automation-read-root DIR / --automation-write-root DIR (each flag accepts a single directory for
PhotoCraft: it is not repeatable, unlike the other ArtCraft apps). Example registration:
claude mcp add --scope user photocraft -- /usr/bin/photocraft-cli mcp --automation-read-root /path/to/dir --automation-write-root /path/to/dir.
With roots granted (in sessions started after the MCP was registered), so:
doc_open, doc_place, doc_save, doc_export* work directly on paths under the root
(absolute or relative to the root). Paths outside it (for example a temp or scratch dir that is NOT
the root) fail with automation path rejected: absolute paths must be inside the automation root: put MCP working/preview files under the root, or use the CLI
route for them. Ambient-path commands (file.saveACopy, ...) stay disabled; use doc_save.session_list, then try doc_open/doc_save on the real path. If it is
refused (automation filesystem access is not granted = session started before the roots were added or
roots missing; path rejected = outside the root), use the CLI route below as the fallback,
and for the first case tell the user once that restarting Claude Code picks up the roots, and that the
MCP server must be registered with --automation-read-root/--automation-write-root. Do not edit the
user's config yourself.CLI route (fallback; works anywhere, no roots, in Bash): each run is a full pipeline on one file.
# never edit the user's original: make a project copy first (lossless, layered)
photocraft-cli convert /abs/photo.jpg /abs/work/photo.pcraft
# apply edits in place on the project copy (commands run in order; one failure aborts and saves nothing)
photocraft-cli run /abs/work/photo.pcraft \
--cmd layer.newAdjustmentLayer.curves --params '{"points":[[0,0],[128,142],[255,255]]}' \
--cmd layer.setProps --params '{"name":"Curves lift"}' --out /abs/work/photo.pcraft --in-place
# preview to look at (flattens), then Read the PNG
photocraft-cli convert /abs/work/photo.pcraft /path/to/tmp/preview.png
photocraft-cli info /abs/work/photo.pcraft # layer tree JSON (ids, names, kinds)
photocraft-cli run --new '{"width":1920,"height":1080,"background":"#ffffff","name":"Poster"}' --cmd ... --out /abs/x.pcraft
Notes: --cmd/--params pairs repeat, but --out and --in-place only once; --out equal to the input
is refused without --in-place; the selection and history do not survive between runs (selection-
dependent steps go in the same run); layer ids persist in .pcraft. --format, --quality 1-100,
--tiff-layers control output. photocraft-cli commands dumps the catalogue; batch/droplet process
folders. Preview files go in a temp dir, not next to the user's files.
.pcraft copy (project
dir or user-named path) and work there. New artwork: doc_new with the real target size.layer.setProps {visible}). Render each, save and open the project (section 7), then ask with the multiple-choice
question tool (AskUserQuestion in Claude Code; else a numbered list), multi-select for blends. Never
pick for the user. This rule covers creative directions, while technical options may carry a labelled
recommendation. Inside a subagent, return the options (project path, group names, preview paths,
brief) to the orchestrator, which asks the user. Keep the chosen group, delete the rest before final
export..pcraft (keeps everything editable) and Show and approve (section 7).Scale work to the request: a one-line "brighten this" is one adjustment layer and a preview, not a 10-layer retouch.
layer.newAdjustmentLayer.*: levels, curves, hueSaturation,
vibrance, colorBalance, exposure, selectiveColor, photoFilter, blackWhite, gradientMap, colorLookup...),
never image.adjustments.* on the pixels unless baking is the point. They keep params editable
(layer.setAdjustment) and take a mask: with a selection active the selection becomes the mask.layer.smartObjects.convertToSmartObject, then the filter; adjust later
with layer.smartFilter.setParams.layer.new.layer) with sampleAllLayers:true / sampleLayer
options on healing, spot healing, clone stamp, paint.remove {newLayer:true}, so the photo stays
untouched and the fix can be hidden.layer.new.layer {mode:"Overlay", fillNeutral:true}) painted black/white at low opacity.select.* then layer.layerMask.revealSelection / hideSelection, paint on
the mask with paint.stroke {target:"mask"}. Feather soft edges (select.modify.feather, or feather
in select.rect); select.modify.expand/contract/smooth fix halos. layer.removeBackground does
Select Subject to a mask in one step; refine afterwards. Isolated subject on transparent: export PNG/WebP.image.crop, image.imageSize), then
exposure/white balance, colour, local fixes, then sharpen last, at output size
(filter.sharpen.unsharpMask/smartSharpen, or filter.other.highPass in Overlay).image.imageSize {resolution, resample}); keep CMYK/16-bit only if asked
(image.mode.*).image.autoTone/autoColor
are starting points, judge the preview. Every adjustment layer should trace back to the brief,
the reference or a constraint; delete the ones that are there "to make it nicer".type.create {x,y,text,font,size,color,box?} (check type.fonts) and
shape.create {kind,rect,fill,stroke} stay editable vector/type layers until rasterized. Name layers
(layer.renameLayer) and group (layer.groupLayers) so the stack reads.layer.layerStyle.dropShadow {distance,size,opacity, angle}, .stroke, .colorOverlay, .outerGlow (non-destructive; add:true stacks).doc_place / file.placeEmbedded brings a file in as a smart object (lossless
scaling); match light direction, colour temperature, grain and edge softness before judging.| Goal | Commands |
|---|---|
| New/open | doc_new {width,height,background,mode,depth}, doc_open {path}, session_list, doc_select |
| Crop / size | image.crop {x,y,width,height,angle,targetWidth,targetHeight}, `image.imageSize {width |
| Tone/colour | layer.newAdjustmentLayer.levels/curves/exposure/vibrance/hueSaturation/colorBalance/selectiveColor, image.adjustments.shadowsHighlights |
| Select | select.rect {x,y,width,height,ellipse,feather,mode}, select.subject, select.sky, select.quick {points,size}, select.colorRange, select.magicWand {x,y,tolerance}, select.modify.*, select.saveSelection/loadSelection, select.deselect |
| Masks | layer.layerMask.revealAll/hideAll/revealSelection/hideSelection/apply, layer.removeBackground, layer.createClippingMask |
| Retouch | paint.spotHealing, paint.healingBrush, paint.cloneStamp, paint.remove, edit.contentAwareFill, paint.dodge/burn, filter.liquify, image.detectFaces |
| Paint/fill | tools.setColors, paint.stroke {points,size,hardness,color,target}, paint.gradient {from,to,colors}, paint.bucket, edit.fill {contents} |
| Filters | filter.blur.gaussianBlur/surfaceBlur/lensBlur, filter.sharpen.unsharpMask/smartSharpen, filter.noise.reduceNoise/addNoise, filter.other.highPass, filter.cameraRaw |
| Layers | layer.new.layer, layer.new.group, layer.duplicate, layer.setProps {opacity,blend,visible,fill,locked}, layer.moveTo, layer.align.*, layer.mergeDown, layer.flattenImage |
| Transform | `edit.transform {scaleX,scaleY,rotate,dx,dy,rect |
| Type/shape | type.create, type.setStyle, shape.create |
| Artboards | layer.new.artboard {preset,name}, file.export.artboardsToFiles {dir,format} |
After each major step:
doc_inspect (MCP) or photocraft-cli info FILE (CLI): check layer names, kinds, opacity, mask
presence, size, mode, history. Look for the active layer being the wrong one (most common error).render_preview {max_side:1600} (flattened PNG, default 1024, max 2048; 0 = full size
within the ceiling), or on the CLI route photocraft-cli convert proj.pcraft /path/to/tmp/preview.png
then Read it. Check halos on mask edges, banding, clipped highlights/blocked shadows, skin colour,
over-sharpening, noise, stray selection fills, text legibility and position.image.crop is destructive on the live doc, so on the CLI route
preview from a throw-away copy, or in MCP command_run history.undo after looking.history.undo/edit.undo, or by adjusting the layer's own params; repeat.layer.delete.hiddenLayers,
file.scripts.deleteAllEmptyLayers; not while unchosen look variants still need to stay), pixel
size is what the brief asked..pcraft (doc_save {path:"x.pcraft"}; no path writes back to a
.pcraft/PSD/PSB that is the document's own file). PSD keeps layers for Photoshop users;
doc_save/doc_export warnings list what the format cannot hold.png (lossless, transparency), jpg (quality 1-100; photos 82-90,
web 75-85), webp (quality => lossy, none => lossless), tif (tiffLayers to keep layers),
exr, tga, dds. Exports never replace the opened file unless saved in its own PSD/PCRAFT format.layer.new.artboard {preset} + file.export.artboardsToFiles {dir,format,quality};
doc_export_layers {dir,format} for per-layer assets; for resized copies run
image.imageSize {width, resample:"bicubicSharper"} on a duplicate (image.duplicate), never on the
master.portrait-retouched-v2.pcraft, hero-1600w.webp); report absolute paths.doc_save/doc_export; for paths outside it, or if the preflight fails
(section 1), the CLI route is how you save: photocraft-cli run ... --out F.Every task ends here, after the verify loop. The headless session has no window, so the user cannot see the work until it is saved and the real app is opened on it.
.pcraft into the project directory or the path the user named, with a
descriptive name, never over the user's original image unless they said so. Also write a flat preview
or deliverable copy next to it if useful. Note the full absolute paths./usr/bin/photocraft, photocraft [FILES]...):
setsid photocraft /abs/path/project.pcraft >/dev/null 2>&1 &
Native extension .pcraft (MIME application/x-photocraft); the app also opens PSD, PSB, PNG, JPG,
TIFF, WebP, GIF, BMP, TGA, EXR, ... On Linux a second launch opens the file as a new tab in the
PhotoCraft already running (--new-instance forces a separate window), so if the user already has
it open do not launch again unless you need the new file shown. setsid xdg-open file.pcraft ...
also works. If the app is already attached through a bridge (--control), just use that session.
Do not leave extra instances you started running past the task if the user did not ask for the app.references/command-catalog.md)select.deselect
when done, or later fills/filters are silently limited to it.tools.setColors (foreground) unless color is passed.params doc.layer.new.layer and others take layer/name forms only as documented; names can duplicate, use ids.image.crop, image.imageSize, image.canvasSize change the whole document; do them before layer work.doc_save of a flat format flattens the output only (layers stay in the open doc); the warning says
what was lost. A saved JPG is not a project file.layer.new.layerFromBackground unlocks it.preview max is 2048 px on the long side; judge detail on crops.doc_close; never delete user files.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dnviti/artcraft-skills --plugin artcraft-skills16 skills in this plugin
/artcraft-routerSelector for the ArtCraft skills: picks which ArtCraft skill(s) to load for a request and loads nothing else itself. Use when a creative request spans several ArtCraft apps (FigCraft, VectorCraft, DesignCraft, DeckCraft, PhotoCraft, LightCraft, FilmCraft, EffectCraft, SoundCraft, WordCraft, GridCraft, PdfCraft, CadCraft, SolidCraft) or when it is unclear which one fits: brand identity, landing page with custom icons, video with narration or animated titles, podcast from a script, magazine with retouched photos, report or deck with data, part plus drawing. Skip it when one skill clearly matches./cadcraft-drawingsDraft, dimension, annotate and plot 2D technical drawings in CadCraft (ArtCraft's AutoCAD-class 2D drafting app, driven through the `cadcraft` MCP server, tools mcp__cadcraft__*, or through `cadcraft-cli`). Use whenever the user mentions CadCraft or the cadcraft MCP tools, or asks for a 2D technical drawing: floor plan, site or room layout, elevation or section, mechanical/part drawing with dimensions, schematic or detail sheet, title block, layers, blocks, hatching, dimensions and annotations, plot or print to PDF at a scale (1:50, 1:100), or to open, inspect, fix, convert (DXF to DWG, SVG, PDF, PNG) or measure DXF/DWG files. Covers units and scale planning, layers, geometry, dimension styles, layouts and viewports, the render-and-verify loop, save/export and the mandatory show-and-approve phase. 3D parts (solid modelling, STEP/STL) belong to solidcraft-cad, vector artwork to vectorcraft-illustration, multi-page print layout to designcraft-layout./deckcraft-presentationsBuild and edit slide decks in DeckCraft (ArtCraft's PowerPoint-style presentation app, driven through the `deckcraft` MCP server, tools mcp__deckcraft__*). Use whenever the user mentions DeckCraft or the deckcraft MCP tools, or asks to create, design, restyle or edit a presentation, slide deck, pitch deck, keynote/talk, training or sales deck, or report-as-slides in/with DeckCraft (slides, layouts, themes, text, shapes, charts, tables, images, SmartArt, speaker notes, transitions, animations, .deckcraft/.pptx/.pdf output). Covers the outline, theme and layout choices, build, render-and-verify, save/export and the mandatory show-and-approve workflow. Not for cases where the user explicitly asked for another format or tool (a .pptx made with python-pptx, Google Slides, a Claude Slides artifact, PDF editing in PdfCraft, UI design in FigCraft)./designcraft-layoutLay out magazines, books, brochures, flyers, catalogues, designed annual reports and other multi-page print documents in DesignCraft (ArtCraft's InDesign-class layout app, via the `designcraft` MCP server or `designcraft-cli`). Use whenever the user mentions DesignCraft or the designcraft MCP tools, or asks for page layout or desktop publishing work: a magazine or book layout, spreads with facing pages, parent (master) pages, running heads and page numbers, columns and grids, paragraph/character styles, text flow across threaded frames, image placement, tables, table of contents, footnotes, bleed and crop marks, preflight, print-ready PDF/X, IDML/InDesign import/export, EPUB. Covers setup, parents, styles, content flow, render-and-verify and the mandatory show-and-approve phase. Single-flow documents (letters, reports, contracts) belong to wordcraft-documents, vector artwork and logos to vectorcraft-illustration, editing an existing PDF to pdfcraft-documents, UI design to figcraft-design./effectcraft-motionBuild motion graphics, animated titles, lower thirds, logo stings, kinetic typography, compositing and visual effects in EffectCraft (ArtCraft's After Effects-class compositor, via the `effectcraft` MCP server (mcp__effectcraft__*) or `effectcraft-cli`). Use whenever the user mentions EffectCraft or the effectcraft MCP tools, or asks for an animated composition, motion graphics, animated title/intro/lower third, keyframes, expressions, text animators, shape layers, particles, glow/blur/distortion, green-screen keying, rotoscoping, motion tracking, stabilizing, 3D cameras/lights, Lottie export, or to render a comp to MP4/ProRes/WebM/GIF/PNG sequence (with alpha); also .ecproj files. Covers comp, layers, keyframes, effects, frame-preview verify, render and the mandatory show-and-approve phase. Cutting/assembling footage on a timeline and colour grading belong to filmcraft-video, audio-only work to soundcraft-audio, still images to photocraft-images, static vector artwork to vectorcraft-illustration./figcraft-designDesign UI in FigCraft (ArtCraft's Figma-class design app, driven through the `figcraft` MCP server) and turn FigCraft designs into frontend code. Use whenever the user mentions FigCraft or the figcraft MCP tools, or asks to design a screen, app screen, mobile screen, landing page, dashboard, UI mockup, wireframe, design system, design tokens, color/text styles, variables, Light/Dark themes, components with variants, a clickable prototype or user flow; asks for a distinctive, unique, non-generic or 'not AI-looking' UI, a new product-UI visual direction, several divergent design directions to choose from or an art-director critique; or to implement, build, code up or hand off a FigCraft design (design to code, React, Tailwind, CSS variables, export assets/icons). Covers brief → divergent directions → tokens → anchor component → screens → screenshot-verify → adversarial review → prototype, with distinctive (non-generic) design as the default, and pixel-faithful implementation in the user's stack.Other plugins' skills for the same job