photocraft

photocraft is a skill for Claude Code, Codex from BlackBeltTechnology/pi-agent-dashboard. It costs 88 tokens per session (1,916 once invoked), scanned A, original, MIT.

A local, command-line image editor that works without opening a desktop app. It can crop, resize, adjust colour, select areas, apply masks, combine images, and convert many files at once.

In plain words
What is it for?
Use it for image cleanup, retouching, resizing, masking, compositing, colour correction, and batch conversion.
Why use it?
It lets you make repeatable image changes from scripts or an automated coding session instead of editing files by hand. It can also limit any generated-image step to a selected crop.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for image cleanup, retouching, resizing, masking, compositing, colour correction, and batch conversion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blackbelttechnology/pi-agent-dashboard/photocraft
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 BlackBeltTechnology/pi-agent-dashboard --skill photocraft
Clone the repo
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard

Made for: Claude Code, Codex.

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 photocraft

README.md
[![agentmods](https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/photocraft/github.svg)](https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/photocraft)
Your own site
<a href="https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/photocraft"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/photocraft/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 photocraft

Your own site · 80×15
<a href="https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/photocraft"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/photocraft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,916 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.
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.00088 $0.01916
Opus 5.5 $0.00035 $0.00766
Sonnet 5.5 $0.00018 $0.00383
Haiku 4.5 $0.00009 $0.00192

Measured yesterday against content hash 3c633276b3fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

photocraft 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 yesterday.

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.

packages/craft-apps/.pi/skills/photocraft/SKILL.md · 134 lines

How it starts

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

PhotoCraft — headless raster image editing

PhotoCraft is ArtCraft's Photoshop-class raster editor. pi-craft provisions the headless photocraft-cli on first use (no desktop app). Pair it with pi-nano-banana (Gemini) when an edit needs generated pixels: PhotoCraft does the precise local part; Gemini only ever sees a crop. Choosing between apps, the discover → execute → save → verify loop and the MCP policy live in craft-studio.

What it is for / formats

Raster images with layers, masks, selections, adjustments and filters. Reads/writes png jpg webp tif psd (PSD keeps layers); convert and batch change formats in bulk. For RAW development use LightCraft, for vector art VectorCraft.

CLI dialect

pi-craft photocraft exec <args…> (alias pi-photocraft exec) passes the arguments to photocraft-cli verbatim.

photocraft-cli run (<file> | --new <json>) --cmd <id> [--params <json>] [--cmd …] [--out <file>] [--format <ext>] [--quality 1-100]
photocraft-cli info <file> [--compact]          # size, mode, layers (JSON)
photocraft-cli convert <in> <out>               # .psd .png .jpg .webp .tif
photocraft-cli batch --actions actions.json --in ./originals --out ./exports [--format webp --quality 85]
  • One --out per run (last wins). Every --params applies to the --cmd before it.
  • Each command prints one JSON line ({"command":…,"result":…}); exit 1 + error: … on failure.
  • select.* bounds are [x,y,w,h] (as x,y,width,height params for select.rect); file.placeEmbedded bounds are [x0,y0,x1,y1].

State between invocations

None: run opens the file, applies the commands in order and saves --out. A selection lives only inside one run — chain the select.* command and the command that uses it in the same invocation. To continue editing later with layers intact, save as .psd and open that next time.

Discovery first

Command ids change between releases — never guess them.

pi-craft photocraft exec commands --filter feather            # ids by keyword
pi-craft photocraft exec commands --json --filter crop        # parameter schema of the matches
pi-craft photocraft exec info photo.png --compact

Read the full file on GitHub · 134 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. yesterday Changed · +8 lines · -4 tokens per session 3c633276b3fc
  2. 3d ago First seen · 126 lines · 92 tokens per session scan A 91b4263764c3

Subscribe to this mod's changes

photocraft is a skill published in the GitHub repository BlackBeltTechnology/pi-agent-dashboard (319 stars, last pushed yesterday), licensed MIT. It adds 88 tokens to every session and 1,916 once invoked, about $0.0004 per session on Opus 5.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-10-13.