stylelock — An Art Director for Image Models
Ask an image model for "the same character, but angry" and you get her cousin. Ask for the same icon style next week and you get a different artist. Every person on a team phrases style differently, and the model drifts anyway.
A few months ago I wrote about the setup we built to keep hundreds of game assets in one style. stylelock is that setup turned into a tool anyone can run: a small command-line program plus a skill that turns your AI agent into an art director.

How It Works
Consistency comes from two locks, and both travel with every call:
- A versioned style guide. Palette in hex, rendering, light, camera, composition, mood, and a list of things to avoid. Once a version is active it can't be edited in place; changes become a new version, so old images stay reproducible.
- Reference anchors. Two to five approved images that show what the words can't: the face, the material, the brushwork.
It comes in two parts:
- The CLI does the deterministic part. It assembles the prompt from the guide, attaches the anchors, calls the image model and writes the image.
- The skill does the judgment part. The agent plans the shot list, writes each brief, looks at every result, rejects misses with countable reasons, and fixes near-misses locally instead of paying for rerolls.
Every Image Has a Receipt
Next to every image goes a small JSON file: the exact prompt, the guide version, the references, the provider and a fingerprint. When someone asks why an image from six weeks ago looks off, the receipt answers. When you need emotion number eighteen next month, it matches the first seventeen.
Every new prompt can be dry-run first, for free: you see exactly what would be sent before paying for a single image. Rejections are logged from a fixed list of reasons, never free text, because a reason you can't count never makes it back into the guide.

What You Can Make
Photoreal characters that stay the same person. A master image you approve, then 12–17 emotions, outfit variants and transparent cut-outs, all checked against that master.

Cartoon characters and mascots. Expression sets, hero and victory shots, two designs or a recolour, in any style written into a guide: 90s anime cel, claymation, ceramic product render, flat editorial vector, or a guide built from your own art.

Icon families. Twelve or forty icons that look like one set, not like twelve prompts. Two families can share one guide: same angle, size and rules, different materials and palette.
![]()
Animated backdrops. One generated plate becomes a seamless loop, animated locally for free, with your character cut out in front.

Bring Your Own Model
stylelock doesn't paint anything itself. It works with OpenAI's image models, Google Gemini, Replicate (FLUX) and any OpenAI-compatible endpoint, and you pay your provider directly. It adds no fees and no servers. Your key is entered in your own terminal and stored locally; it's never pasted into a chat or shown to the model.
It's built for Claude Code but not tied to it. Any agent with a terminal can drive the CLI, and it also runs as an MCP server, so an orchestrator like Arabella can plug it in as one more tool. The provider, model and key are fixed when the server starts, and no tool call can change them.
What Building It Taught Me
- A silent miss is worse than an error. In an early version, a reference passed by name could be filtered out without a word, and the call ran without it while looking normal. Now a named reference always attaches, and an unknown one stops the call.
- Name a substance, not a colour. "Kraft-tan" honeycomb toffee came back as cheese. "The colour of set treacle toffee" came back right.
- When a shape fights twice, change the subject. A tray kept being drawn from above. A tiered stand holds the same pastries and came back right the first time.
- When the guide and the finished art disagree, the art wins. Open a shipped image next to every new one before judging it.
Get It
stylelock is on Agensi, the marketplace for agent skills, in three packs. Each one comes with the CLI, the art-director skill, the local post-processing scripts and worked example guides.
- Realistic characters: photoreal faces that stay the same person, with emotion sets, outfits, matched poses and cut-outs.
- Cartoon characters: mascots, anime avatars and sticker sets that stay on-model.
- Icon packs: icon families that look like one set.