CommunityImagegithub.com

Art Director

Art director workflow for producing custom visuals (illustrations, backgrounds, scenes, diagrams, video footage) for websites, presentations, videos, product pages, posters, covers, etc.

What is Art Director?

This AI agent skill enables you to act as an art director, directing a pipeline to produce custom visuals for any project. It guides you through defining image needs, selecting production routes (stock libraries, AI generation, AI editing, SVG, HTML-to-image, screenshots, ffmpeg), generating and post-processing images (cropping, background removal, compositing), and integrating them into the final product. Supported platforms include any AI tool that supports custom skills (e.g., Claude Code, Cursor, Codex) and uses Cloudflare Workers AI for multi-model image generation and editing. The skill emphasizes deterministic tools over AI for precision tasks (text, logos, UI) and maintains a self-evolving notebook to capture verified techniques and lessons. Its internal scripts (gen.py, imgtool.py, etc.) handle generation, editing, and post-processing, while the AI acts as the director—planning, specifying, reviewing, and validating—to ensure consistent, high-quality results.

Works with✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/shirowhitee/art-director-kit/tree/HEAD/skills/art-director

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does Art Director do?

Claude cannot directly generate raster images, so do not treat "image generation" as an action to ask someone else to perform, but as a production pipeline you direct: I am the director, responsible for deciding what is needed, choosing tools, writing specifications, reviewing, and accepting; the generation model is the artist, good at texture and scenes; deterministic tools are for post-processing (cropping, background removal, compositing, HTML layout, ffmpeg), responsible for precision. Do not limit yourself to a single tool: for precision tasks like text, logos, UI, charts, generation models perform poorly—switch routes, don't repeatedly retry.

Process

0. Before Starting

  • On first use each day, silently run bash "$A/update.sh" --auto (definition of $A see "Setup & Tools"). It will self-determine if it has been checked today; if there is no new version or auto-update is disabled, it outputs nothing; if it outputs a line like "【Auto Update】" or "【Update Reminder】", relay that line to the user and explain that the AI tool needs to be reopened to load the new version.
  • Read notebook.md (verified experience and items to verify) and references/models.md (model matrix).
  • If there is a skill or file recording user preferences (e.g., lessons-learned or the project's CLAUDE.md), read the relevant section as standing preferences.
  • If the team or individual has a shared asset library (confirm the path with the user, or refer to project documentation), check the library first.
  • For large-scale generation, or if the model list in the notebook hasn't been updated for over a month: run gen.py --list-models to check for new or deprecated models.

1. Brief: Purpose, placement, dimensions & aspect ratio, style & color palette (extract from the project's existing design, do not start from scratch), restrictions (logos, client data). Do not ask the user for details that can be inferred from the project.

2. Image List: First list every image needed for the final output, then start working. For each image write: ID | Purpose & Position | Production Route | Model | Dimensions | Post-Processing Steps | Acceptance Criteria. For large projects, show the list to the user once; for small tasks, keep it in mind. First think "What does this image need to convey on the page?", then think about what to draw.

3. Select Route: Follow the decision table in references/routes.md. Core judgment: if precision is needed (text, logos, UI, numbers, flowcharts), do not use generation models; use them only for texture and atmosphere.

4. Create Draft: Free daily quota is about 10,000 neurons, shared across all models; one round of comparison can exhaust it. So first use cheap models (schnell, k4, phoenix) for small-scale exploration, 2 to 3 versions per concept; after selecting a direction, use dev for final output.

5. Review: Open and inspect each image (read image files with your tools), check item by item, reject and regenerate with revised specifications, maximum three rounds, and clearly state what was changed each round:

  • Text: any garbled characters (even when the prompt says "no text", garbled text often appears on screens and signs).
  • Anatomy: hands, faces, object structures—are they distorted?
  • Consistency: within a series, are the style, color tone, and line thickness consistent? Do colors match the project's color palette?
  • Composition: is the area for text overlay clean? Is the main subject cropped?
  • Edges & Noise: watermarks, strange borders, background removal residue.

6. Processing: Use scripts/imgtool.py for post-processing (crop, resize, background removal, overlay, composite, rounded corners). Use models for recoloring, style changes, or extending an existing image; to place an existing subject into a scene, use overlay, not multiple reference images (testing shows deformation). Text and logos must always be overlaid afterward using HTML or asset library.

7. Integration & Validation: Place images into the actual page, presentation, or video, take a screenshot to see the final effect (including narrow widths), not just judge each image in isolation. If the image looks out of place in context, go back to step 4 or 6.

8. Wrap Up & Iterate: Save assets, write notes (next section), report what was done and suggestions for next steps.

Role Distribution

RolePlayed ByTask
Art Director, ReviewerMePlan list, select routes, write specifications, review images for acceptance
Artist (Raster)Cloudflare models, see models.mdGenerate and edit individual images
Layout & VectorI write HTML/SVG, Chrome headless screenshotPrecise text, UI, charts, flowcharts
Post-Processingimgtool.py, ffmpegBackground removal, compositing, collage, video footage
Initial Screening, Prompt Variations (unverified)Cloudflare text or vision modelsBatch produce variations, auto initial screening; test on small scale before relying

Principle: Use deterministic tools over models; between roles, transfer only "file + specification", not vague verbal descriptions.

Self-Iteration

The notebook is the part of this skill that evolves, with the following rules designed to make it more accurate over time without being polluted by noise or one-time luck:

  • What goes into notebook.md: Technical facts I have personally tested and visually inspected (model behavior, parameters, prompt recipes, process pitfalls, failure reasons)—format described inside the file. Write directly at the end of a task, and report to the user which entries were added or modified; the user can veto.
  • Evidence Levels: A single test is marked "Single Test"; only when the same conclusion is reached from two independent tests does it upgrade to "Verified"; if later results contradict it, rewrite or delete—no contradictions left.
  • Sources: Only my own tests and the user's words. Web articles or the model's own descriptions are not taken as fact; only after testing do they enter the notebook.
  • What does not go into the notebook: The user's taste and preferences (e.g., which style they like), project-specific decisions. Record these separately in the user's preference record (e.g., lessons-learned skill or the project's CLAUDE.md): generalize into rules, show the user first, and write only after agreement.
  • New vs. Old Models: When --list-models finds new models, test them with a minimal set of prompts before adding to models.md; if a model disappears, mark it as removed.
  • Tidy up the notebook every time it is opened: Merge duplicates, remove outdated entries, and verify pending items whenever possible.

Boundaries

  • Use only official files for company and product logos (provided by the asset library or brand department); do not redraw, generate, or fetch from the web.
  • Prompts are sent to Cloudflare; do not include client names, internal data, or non-anonymized content.
  • Commercial licensing of generated images is not confirmed; have the user confirm before use in external deliverables. For assets added to the library, note the tool, date, and prompt in sources.md.
  • Do not generate portraits of real people or celebrities.

Setup & Tools

Credentials are in ~/.config/cloudflare-ai/account-id and api-token (permissions 600). Do not display or write them into project files or conversation. For first-time setup, run setup-cloudflare.sh in the scripts folder (bash "$A/setup-cloudflare.sh", $A see below); it will guide you to apply for a free Cloudflare account and token and save them securely. Manual method: Cloudflare dashboard AI → Workers AI → Use REST API, obtain Account ID and create a Workers AI API Token (Read + Edit), enter in a real terminal (use read -s for the password field so it won't display when pasted). The chat window's ! mode cannot receive keyboard input; if running setup-cloudflare.sh from there, the script will automatically open a new terminal window.

# The scripts location for this skill varies by AI tool (Codex, Cursor, etc. use ~/.agents/skills, Claude Code uses ~/.claude/skills); find it first:
A=$(ls -d ~/.agents/skills/art-director/scripts ~/.claude/skills/art-director/scripts 2>/dev/null | head -1)
python3 $A/gen.py "prompt" --out out.jpg --model k9 --size 1536x864     # Generate image; --ref a.jpg for editing; --n 3 for multiple images
python3 $A/gen.py --list-models                                          # List models available to your account
python3 $A/imgtool.py -h                                                 # Post-processing commands: rmbg keyout trim crop fit overlay grid round convert
python3 $A/bench.py --models k9 phoenix --prompts flat                   # Test suite, consumes quota; first see references/models.md

When quota runs out, gen.py will clearly state so and stop; wait until the next day to generate—do not brute-force with a loop. Background removal requires a local model ~/.cache/imgtool/u2net.onnx (approx. 168 MB); if not present, see the download instructions in references/models.md, but get user consent before downloading.

File Map

  • notebook.md: Living experience notes and pending verification list.
  • references/models.md: Model matrix, calling format, quota.
  • references/routes.md: Demand-to-production-route mapping.
  • references/prompting.md: How to prompt the model.
  • references/video.md: Creating video footage from static images and assets.
  • scripts/: gen.py, imgtool.py, bench.py, check.sh (health check), update.sh (update), setup-cloudflare.sh (credential setup).

Author & License

Author: Benny Lin. Current version: development version (0.3.0-dev), not final, content subject to change. License: Personal use only; not for copy or redistribution. For issues, contact [email protected].

Related Skills