Λογότυπο Ai Pixel Art Image Generation

Ai Pixel Art Image Generation

Κοινότητα
ianlintner
ai-pixel-art-image-generation

This skill should be used when the user wants to generate images via OpenAI, Azure AI Foundry, or fal.ai OR wants to create pixel-art sprites, tileset sheets, walk-cycle animations, tile maps, or other game graphic assets for 2D games. Triggers on "generate image", "create image", "make picture", "draw", "illustrate", and also on "pixel art sprite", "tileset", "spritesheet", "tiled map", "walk cycle", "generate tiles for my game". Handles Azure auth (CLI → DefaultAzureCredential → API key), Gemini 2.5 Flash Image auth (API key) for frame-consistent animation, fal.ai auth (API key) for Flux/Stable Diffusion models, pixel-art post-processing (nearest-neighbor + palette quantize + optional rembg), and Tiled-compatible TSX/TMJ export.

Επισκόπηση

Εκδότηςianlintner
Αποθετήριοai-pixel-art-image-generation
Όνομα δεξιότηταςai-pixel-art-image-generation
Αστέρια
26
Διακλαδώσεις
3
Συνοδευτικά αρχεία
60
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 60

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό ianlintner. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Ai Pixel Art Image Generation στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/ianlintner/ai-pixel-art-image-generation/tree/main
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ianlintner/ai-pixel-art-image-generation.git \
  .claude/skills/ai-pixel-art-image-generation
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Ai Pixel Art Image Generation σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Ai Pixel Art Image Generation μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Ai Pixel Art Image Generation δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

AI Pixel Art & Tile Map Generator

Overview

Generate images via OpenAI/Azure AI Foundry and, via an integrated pixel-art pipeline, produce Tiled-compatible pixel-art sprites, tileset sheets, and short sprite-sheet animations for 2D games. The skill covers two user paths:

  1. General image generation — text-to-image via gpt-image-2 (OpenAI/Azure) or Flux/Stable Diffusion (fal.ai).
  2. Pixel-art game-asset mode — generation + nearest-neighbor downscale + palette quantize + (for animations) Gemini 2.5 Flash Image reference-based frame consistency + TSX/TMJ export for Tiled.

Direct OpenAI uses OPENAI_API_KEY. Azure uses AZURE_OPENAI_ENDPOINT (or --endpoint) plus Azure CLI, DefaultAzureCredential, or AZURE_OPENAI_API_KEY. fal.ai uses FAL_KEY (or --fal-api-key). Provider selection is auto: Azure is used when AZURE_OPENAI_ENDPOINT is set, otherwise direct OpenAI is used. Pass --provider fal explicitly to use fal.ai.

When to Use Which Script

ScriptUse when user wants...
scripts/generate_image.pyA general-purpose image (any subject, fixed or flexible gpt-image-2 size).
scripts/generate_sprite.pyA single pixel-art sprite (16/32/64 px) with a named palette.
scripts/generate_tileset.pyN unique tiles packed into a sheet + TSX + TMJ for Tiled.
scripts/generate_animation.py2–8 frame sprite-sheet animation (walk/idle) + TSX with <animation>.
scripts/pixelize.pyPost-process an existing image into pixel art (no generation).
scripts/qa_report.pyStandalone QA metrics on an existing pixel-art PNG.

All scripts are invokable directly via python3 and print their output paths on completion.

Available Image Models

OpenAI / Azure

ModelProviderUse case
gpt-image-2OpenAI/AzureDefault — highest quality
gpt-image-1OpenAI/AzureOlder generation compatibility
gpt-image-1-miniOpenAI/AzureFaster/cheaper drafts
sora-2OpenAI/AzureVideo (not images)

fal.ai — Text-to-Image

ModelBest for
fal-ai/recraft/v3/text-to-imagePixel art tiles & sprites — SOTA vector art, consistent style
fal-ai/flux/devGeneral purpose, high quality (default)
fal-ai/flux/schnellFast iteration, 4-step distilled, cheap batch tiles
fal-ai/nano-banana-proGoogle's latest — excellent realism + editing combo
fal-ai/qwen-imageComplex text rendering (UI/HUD elements)
fal-ai/flux-pro/v1.1-ultraMaximum quality, best composition
fal-ai/recraft/v4/pro/text-to-imageProduction-ready, refined lighting & materials
fal-ai/seedream/v4.5/editByteDance unified generation + editing

fal.ai — Image-to-Image (Sprite Editing)

ModelBest for
fal-ai/nano-banana-pro/editBest editor — refine generated sprites, restyle
fal-ai/flux-pro/kontextReference image + text → targeted local edits
fal-ai/reve/editSimple image-to-image transform via text prompt
fal-ai/bria/fibo-edit/editJSON + Mask + Image precise editing

fal.ai — Utility Tools

ModelToolUse case
fal-ai/bria/background/removebg-remove-briaBest BG removal — commercially safe
fal-ai/seedvr/upscale/imageupscale-seedvrSeedVR2 upscale — $0.001/megapixel
fal-ai/topaz/upscale/imageupscale-topazProfessional-grade upscale (highest fidelity)
fal-ai/ffmpeg-api/images-to-videoimages-to-videoAnimation export — stitch frames → MP4
fal-ai/kling-video/v3/pro/image-to-videoimage-to-videoAnimate a still sprite into video

Gemini (separate provider): gemini-2.5-flash-image ("Nano Banana") — used for multi-frame animation consistency via reference images.

Auth

OpenAI

Use OPENAI_API_KEY or --openai-api-key.

Azure

  1. Azure CLI (az login) — tried first; best for local/interactive.
  2. DefaultAzureCredential — managed identity, env service principal, workload identity.
  3. API key (AZURE_OPENAI_API_KEY or --api-key) — fallback for CI/headless.

Install to enable credential auth: pip install azure-identity

Endpoint gotcha. Azure AI Foundry resources expose two URLs. Use the Azure OpenAI legacy endpoint for gpt-image-*, not the AI Services endpoint:

  • ✅ https://<resource>.openai.azure.com/ — works with scripts/lib/azure_client.py.
  • ❌ https://<resource>.services.ai.azure.com/ — Foundry-native API, not compatible with this skill.

Discover it with:

bash
az cognitiveservices account show --name <resource> --resource-group <rg> \
  --query 'properties.endpoints' -o json

Provider auto-select. Provider resolves to azure when AZURE_OPENAI_ENDPOINT is set in the environment. Some shells/tools (e.g. agent runners) don't source ~/.zshrc; if --provider auto falls back to OpenAI unexpectedly, either prefix the call (AZURE_OPENAI_ENDPOINT=... python scripts/…) or pass --provider azure --endpoint https://… explicitly.

Deploying a model on Azure

Before first use you need a deployment of the image model on your resource. The az cognitiveservices account deployment create extension has a bug where it pins an unsupported api-version. Use az rest directly:

bash
SUB=$(az account show --query id -o tsv)
RG=$(az cognitiveservices account list \
       --query "[?name=='<resource>'].resourceGroup" -o tsv)

az rest --method put \
  --url "https://management.azure.com/subscriptions/${SUB}/resourceGroups/${RG}/providers/Microsoft.CognitiveServices/accounts/<resource>/deployments/gpt-image-2?api-version=2024-10-01" \
  --body '{"sku":{"name":"GlobalStandard","capacity":1},"properties":{"model":{"format":"OpenAI","name":"gpt-image-2","version":"2026-04-21"}}}'

Check what's deployable in your region first:

bash
az cognitiveservices model list --location <region> \
  --query "[?kind=='OpenAI' && starts_with(model.name,'gpt-image')].{name:model.name,version:model.version}" -o table

Regional availability (as of 2026-04). gpt-image-2 (version 2026-04-21) is only published in eastus2. gpt-image-1, gpt-image-1-mini, and gpt-image-1.5 are more broadly available. If your resource lives elsewhere, either deploy gpt-image-1.5 (newest broadly-available) or create a second resource in eastus2.

Gemini (only for generate_animation.py)

API key via GEMINI_API_KEY env var (or --gemini-api-key). Google has no usable Entra equivalent for this endpoint.

fal.ai

API key via FAL_KEY env var (or --fal-api-key). Get a key at https://fal.ai/dashboard/keys.

bash
export FAL_KEY="your-key-here"
# or pass per-command:
python3 scripts/generate_image.py --provider fal --fal-api-key "..." --prompt "..." --output ~/img.png

Default model. fal-ai/flux/dev is the default. Override with --model or --deployment, or set FAL_MODEL in the environment.

Quality mapping. When using fal-ai/flux/dev (default):

  • --quality low or --quality medium → switches to fal-ai/flux/schnell (faster, 4-step distilled)
  • --quality high → stays on fal-ai/flux/dev (best quality)

Size mapping. fal.ai uses named presets. Standard sizes (1024x1024, 1024x768, etc.) are mapped automatically. Unrecognized sizes fall back to square_hd (1024×1024).

fal.ai Utility Tools

The scripts/lib/fal_tools.py module provides fal-hosted utilities as cloud alternatives to local libraries. Import and use directly:

python
from lib.fal_tools import remove_background_bria, upscale_seedvr, images_to_video

# Background removal (Bria RMBG 2.0 — commercially safe)
no_bg = remove_background_bria(sprite_bytes)

# Upscale before pixelize downscale (SeedVR2 — $0.001/megapixel)
hi_res = upscale_seedvr(sprite_bytes, scale=2)

# Stitch walk-cycle frames into MP4 animation
video = images_to_video([frame0, frame1, frame2, frame3], fps=8, hold_frames=15)

# Animate a still sprite into video (Kling 3.0 Pro)
animated = image_to_video(sprite_bytes, prompt="idle breathing animation")

Or use the dispatcher:

python
from lib.fal_tools import run_tool
result = run_tool("bg-remove-bria", image_bytes)
result = run_tool("upscale-seedvr", image_bytes, scale=2)
video = run_tool("images-to-video", [frame0, frame1, frame2, frame3])

Dependencies

bash
pip install openai azure-identity google-genai fal-client pillow rembg onnxruntime
  • openai, azure-identity → direct OpenAI, Azure auth, and image generation.
  • google-genai → Gemini reference-image generation (required for generate_animation.py).
  • fal-client → fal.ai image generation (Flux, Stable Diffusion, etc.) and utility tools (background removal, upscaling).
  • pillow → post-processing pipeline.
  • rembg + onnxruntime → optional local background removal (needed only when --transparent-bg is passed; pulls ~100 MB of ONNX runtime).

Workflows

1. General image generation

bash
# OpenAI (default)
python3 scripts/generate_image.py \
  --prompt "a cat on mars, photorealistic" \
  --size 1024x1024 --quality medium \
  --output ~/cat.png

# fal.ai with Flux
python3 scripts/generate_image.py \
  --provider fal --model fal-ai/flux/dev \
  --prompt "a cat on mars, photorealistic" \
  --size 1024x1024 --quality high \
  --output ~/cat_fal.png

Common sizes: 1024x1024, 1536x1024, 1024x1536, 2048x2048, 2048x1152, 3840x2160, 2160x3840, auto. Custom gpt-image-2 sizes are accepted when they satisfy the model constraints. Qualities: low, medium, high.

2. Single pixel-art sprite

bash
python3 ~/.claude/skills/ai-pixel-art-image-generation/scripts/generate_sprite.py \
  --prompt "orange tabby cat, front view, idle stance" \
  --size 64 --palette db32 --transparent-bg \
  --output ~/cat_64.png
  • --size is the final pixel dimension (square).
  • --palette is one of: gameboy, pico8, db16, db32, nes, aap64, or auto.
  • --palette auto picks a palette from subject keywords — see the Palette Auto-Pick table.
  • --outline {none,palette-darkest} — default palette-darkest. Adds a 1-px dark ring via alpha dilation → XOR → darkest-luminance neighbour colour before palette quantize.
  • --transparent-bg runs rembg before downscale.
  • --qa runs QA metrics after save, writes <output>.qa.json, and exits non-zero on hard-gate failure.

Output: square RGBA PNG at --size × --size, limited to palette colors, hard edges.

3. Tileset for Tiled

bash
python3 ~/.claude/skills/ai-pixel-art-image-generation/scripts/generate_tileset.py \
  --prompt "grass, dirt, stone, water, sand, path, wood plank, stone brick" \
  --tile-size 32 --count 16 --columns 4 --palette pico8 \
  --name overworld --output-dir ~/tilesets/overworld/

Comma-separated tile concepts in --prompt; repeats if fewer than --count. Emits:

  • overworld.png — packed sheet at columns*K × rows*K.
  • overworld.tsx — Tiled tileset XML with per-tile name properties.
  • overworld.tmj — minimal example map filled with tile 1, openable in Tiled.

Tileset flags:

  • --palette {gameboy,pico8,db16,db32,nes,aap64,auto} — auto picks from keywords (e.g., "stone" → db32).
  • --seamless {none,crop,torus,auto} — default auto. Pixelizes source at 3× tile size, centre-crops for edge consistency, then if seam_diff ≥ 12.0 runs a torus-wrap feather blend. See references/seamless.md (if present) or lib/seamless.py.
  • --qa runs QA metrics (per-tile seam_diff mean, palette fidelity, alpha crispness) and writes a .qa.json sidecar.

4. Sprite-sheet animation

bash
python3 ~/.claude/skills/ai-pixel-art-image-generation/scripts/generate_animation.py \
  --prompt "knight with blue cape, side view, walking right" \
  --frames 4 --tile-size 32 --palette db16 \
  --duration-ms 120 --action walk \
  --name knight_walk --output-dir ~/sprites/knight/
  • Frame 0 is generated via OpenAI/Azure (gpt-image-2).
  • Frames 1..N use Gemini 2.5 Flash Image with frame 0 as a reference image to maintain character consistency.
  • TSX emits an <animation> block on tile id 0 that cycles all frames at --duration-ms.
  • Frame prompts come from POSE_LIBRARY in generate_animation.py, keyed by (action, frame_idx, total). Supported actions today: walk (4 frames, contact/passing/contact-mirror/passing-mirror), idle (2 frames), attack (4 frames: wind-up/strike/recoil/recovery). Unknown keys fall back to generic "frame N of M" phrasing.
  • --qa runs animation QA (palette fidelity, alpha crispness, silhouette_iou between frame 0 and frame 2, bbox_drift_x, bbox_drift_y) and writes a .qa.json sidecar.
  • --transparent-bg enables rembg on every frame, then applies a shared bbox crop across all frames so the character stays aligned frame-to-frame. Per-frame tight-crop would drift position and break the walk-cycle feel.

Consistency caveat: walk cycles may need rerolls. Rerun for different frames if one drifts.

5. Post-process an existing image

bash
python3 ~/.claude/skills/ai-pixel-art-image-generation/scripts/pixelize.py \
  --input raw.png --output sprite.png \
  --size 32 --palette pico8 --transparent-bg

Prompt Engineering

See references/pixel_art_prompting.md for detailed guidance. Key rules:

  • Include "pixel art sprite, clean hard edges, limited palette, plain flat background, no text, no watermark".
  • Specify view angle explicitly ("side view profile", "top-down").
  • For tilesets, add "top-down game tile, seamless, centered".
  • Avoid "photorealistic", "smooth shading", "gradients".

Tiled Format Notes

See references/tiled_format.md. Quick facts:

  • TSX <image source="..."> is relative to the TSX file — keep PNG + TSX in the same directory.
  • TMJ data array uses global ids (firstgid + local_id). Tile 0 in TSX → gid 1 in TMJ.
  • Tile animations declared inline; game engines must re-implement playback at runtime (the <animation> tag is metadata).

Palettes

See references/palettes.md. Available: gameboy (4), pico8 (16), db16 (16), db32 (32), nes (54), aap64 (64).

Palette auto-pick

When --palette auto is passed, lib/palettes.suggest_palette scans the prompt against a keyword table and picks a palette whose colour range matches the subject. Explicit --palette <name> always wins. The chosen palette and matched keyword are logged to stderr.

Keyword patternPaletteWhy
metal|steel|armor|stone|grey|gray|silver|iron|dungeon|rock|brickdb32Mid-greys present; avoids "stone on pico8" fail
tropical|beach|coral|jungle|aquatic|underwater|reefaap64Wide warm/cool range for saturated scenes
gameboy|monochrome|green onlygameboy4-shade monochrome
arcade|nes|8-bit|8bitnesCanonical NES palette
knight|fantasy|rpg|character|hero|warrior|wizard|magedb16DB16 is the canonical RPG-character palette
terrain|tile|overworld|map|landscape|biomedb32Covers earth/foliage/water tones
detailed|portrait|hi-detail|high-detailaap6464 colours support subtle shading
(no match)db32Default safe choice

QA metrics and hard gates

When --qa is passed to any generator, or via scripts/qa_report.py <input>, lib/qa_metrics computes the following and writes a <artifact>.qa.json sidecar:

MetricScopeThresholdGate
palette_fidelityall== 1.0hard
alpha_crispnessall≥ 0.999hard
tile_seam_diff_meantileset≤ 12.0 (L2 0–255, per-tile mean)hard
silhouette_iou_f0_f2animation≥ 0.85hard
bbox_drift_xanimation≤ 6 px (walk-cycle leg extension)hard
bbox_drift_yanimation≤ 3 px (1–2 px bob allowed)hard
baseline_alignmentsprite≥ 3 contiguous opaque in lowest rowhard
outline_coveragesprite≥ 0.85soft
palette_coveragesprite0.15 ≤ x ≤ 0.60soft

Hard failures cause non-zero exit. Standalone re-run:

bash
python3 ~/.claude/skills/ai-pixel-art-image-generation/scripts/qa_report.py \
  --input ~/tilesets/overworld/overworld.png --kind tileset \
  --palette db32 --tile-size 32 --columns 4

Troubleshooting

  • Azure 401 — CLI token expired (az login) or wrong API key.
  • Azure 404 DeploymentNotFound — Deployment name mismatch; verify with az cognitiveservices account deployment list -n <resource> -g <rg>. If the model exists in the region but isn't deployed yet, create the deployment (see "Deploying a model on Azure" above).
  • Azure 404 from AI Services endpoint — you're pointing at https://<resource>.services.ai.azure.com/ instead of https://<resource>.openai.azure.com/. The skill's client needs the legacy OpenAI endpoint.
  • Azure 429 — deployment rate limit hit; default rate on fresh GlobalStandard image deployments is ~1 req/60s at capacity 1. Bump capacity via the same az rest deploy command (PATCH with higher sku.capacity) or wait between generations.
  • Azure api-version error on deployment create — the CLI extension pins 2025-09-01 which Azure rejects and ignores --api-version. Use the az rest workaround in "Deploying a model on Azure".
  • Azure ContentFilterError — Rephrase prompt; Azure content policy violation.
  • ERROR: OpenAI provider requires OPENAI_API_KEY when you expected Azure — AZURE_OPENAI_ENDPOINT isn't in the process env (shell didn't source ~/.zshrc, or the runner strips it). Prefix inline: AZURE_OPENAI_ENDPOINT=https://<resource>.openai.azure.com/ python scripts/… or pass --provider azure --endpoint ….
  • Gemini auth error — GEMINI_API_KEY unset; obtain a key from Google AI Studio.
  • Gemini 429 RESOURCE_EXHAUSTED on gemini-2.5-flash-preview-image — the image-generation model has zero free-tier quota. Upgrade to a paid Google AI Studio plan to use generate_animation.py.
  • rembg missing — pip install rembg onnxruntime; first run downloads the u2net model (~100 MB).
  • Tileset renders as magenta in Tiled — image path wrong; ensure PNG and TSX sit side-by-side.
  • Walk cycle frame breaks — reroll by rerunning with a slightly different action verb ("walking left foot forward").
  • Mushy output — richer palette, larger --size, tighter prompt. See references/pixel_art_prompting.md.
  • QA outline_coverage soft-fail at 32px low quality — expected. The model doesn't reliably draw 1-px outlines at small sizes. Either raise --quality medium, increase --size 64, or rely on --outline palette-darkest post-process (default) which adds the ring deterministically.
  • QA palette_coverage soft-fail < 0.15 — prompt/style is producing a near-monochrome sprite. Loosen prompt colour constraints or switch to a smaller palette (e.g. gameboy/pico8).

Recommendations

Lessons from real runs — read before kicking off a batch.

Model selection

  • Default to gpt-image-2 when deployed in your region (currently eastus2-only on Azure). Best silhouette fidelity and palette discipline.
  • gpt-image-1.5 is the best broadly-available fallback. Near-parity quality, wider region coverage.
  • gpt-image-1-mini for iteration/drafts: ~3× faster, good enough to validate prompt/style/layout before committing. Weaker at 1-px outlines and small-detail fidelity.
  • Never ask sora-2 for images — it's a video model and will fail or waste quota.

Quality vs size

GoalRecommended combo
Final 32×32 sprite--size 32 --quality medium, rely on --outline palette-darkest
Final 64×64 sprite--size 64 --quality medium or high
Tileset (32-px tiles)--tile-size 32 --quality medium + --seamless auto
Walk cycle--tile-size 32 --quality medium — frame 0 dictates everything; invest quality there
Iteration / A-B prompts--size 32 --quality low --deployment gpt-image-1-mini

--quality low at 32 px is fine for shape testing but will soft-fail outline/coverage QA. Don't chase hard gates at low.

Palette strategy

  • When in doubt, use --palette auto and trust the keyword table.
  • db32 is the default safe choice: covers earth/foliage/water/metal.
  • pico8 over-saturates dungeons, armour, and stone — its auto-pick rules already steer those to db32, don't override.
  • For animation consistency, pass the same palette to all frames. Gemini frame-to-frame drift is absorbed by the palette quantize step.

Animation-specific

  • Frame 0 is generated by gpt-image-2 / Azure. Frames 1..N are Gemini with frame 0 as reference. Spend your prompt-engineering budget on frame 0.
  • walk with 4 frames is the sweet spot. 2 frames looks janky; 8 frames rarely improves perceived motion and 4× the Gemini cost.
  • --transparent-bg uses a shared bbox across all frames — do not post-process frames individually or they will jitter.
  • Expect to reroll ~1-in-4 animations. Budget for it.

Cost / rate

  • Fresh Azure image deployments default to capacity 1 ≈ 1 req/60s. For batch generation (e.g. 16-tile tileset), either bump capacity (PATCH sku.capacity) or run sequentially with retry.
  • OpenAI direct has no per-deployment cap but is priced per-image; low quality is roughly 1/4 the cost of high.
  • rembg (on --transparent-bg) is local CPU — free but slow (~2-4 s/image on first call, cached after).

QA-driven iteration loop

  1. First pass: --quality low, no --qa — just eyeball shape and pose.
  2. Second pass: --quality medium --qa. Read .qa.json. If all hard gates pass, ship.
  3. On soft fails:
    • outline_coverage → already handled by --outline palette-darkest default; only worry if you set --outline none.
    • palette_coverage low → richer prompt or smaller palette.
    • palette_coverage high → subject is too busy for the palette; scale down palette or simplify prompt.
  4. On hard fails, don't tune — regenerate with a different seed/prompt. Hard-fail metrics (palette fidelity, alpha crispness, silhouette IoU) are binary problems, not degrees.

Path / install

Scripts in this doc are shown under ~/.claude/skills/ai-pixel-art-image-generation/ but the skill is agent-agnostic. Substitute your install root:

  • Claude Code: ~/.claude/skills/ai-pixel-art-image-generation/
  • OpenCode: ~/.config/opencode/skill/ai-pixel-art-image-generation/
  • Cloned repo / dev: run from the repo root with python scripts/…

Scope

Supported:

  • Tiled TSX/TMJ export, uniform grid sheets, per-tile names, simple frame animations.
  • Seamless tiling post-process (3× crop + torus-blend fallback).
  • 1-px sprite outlines via dilate-XOR-darkest-neighbour.
  • Explicit per-frame pose library for walk/idle/attack animations using frame 0 as the Gemini reference.
  • Keyword-based palette auto-pick (--palette auto).
  • QA metrics with hard-gate exits (--qa on any generator, or scripts/qa_report.py standalone).

Not in this skill:

  • LDtk export, Aseprite .ase export.
  • Tile bleed/extrude for runtime texture filtering (planned P1).
  • Auto-reroll of broken frames, animated tile-scene compositing.
  • Autotile / Wang 47-tile blob sets.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Ai Pixel Art Image Generation;

This skill should be used when the user wants to generate images via OpenAI, Azure AI Foundry, or fal.ai OR wants to create pixel-art sprites, tileset sheets, walk-cycle animations, tile maps, or other game graphic assets for 2D games. Triggers on "generate image", "create image", "make picture", "draw", "illustrate", and also on "pixel art sprite", "tileset", "spritesheet", "tiled map", "walk cycle", "generate tiles for my game". Handles Azure auth (CLI → DefaultAzureCredential → API key), Gemini 2.5 Flash Image auth (API key) for frame-consistent animation, fal.ai auth (API key) for Flux/...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Ai Pixel Art Image Generation στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Ai Pixel Art Image Generation είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Ai Pixel Art Image Generation στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/ianlintner/ai-pixel-art-image-generation/tree/main. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Ai Pixel Art Image Generation;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Ai Pixel Art Image Generation;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Ai Pixel Art Image Generation με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Ai Pixel Art Image Generation;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό ianlintner με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο openclaw

Release Openclaw Ci

openclaw
ΟργανισμόςΔημοφιλής

Εκτελέστε, παρακολουθήστε, αποσφαλματώστε και συνοψίστε το πλήρες CI κυκλοφορίας του OpenClaw, τους ελέγχους κυκλοφορίας, τις πύλες ζωντανών παρόχων, τις επαληθεύσεις εγκατάστασης/ενημέρωσης και τους προκαταρκτικούς ελέγχους μυστικών κυκλοφορίας.

82.2K
391K
Αρχεία: 3
Προβολή
Λογότυπο openclaw

Release Openclaw Mac

openclaw
ΟργανισμόςΔημοφιλής

Εκτελέστε ή αποκαταστήστε την υπογραφή κυκλοφορίας macOS του OpenClaw, τη συμβολαιογράφηση, το appcast και την προώθηση στοιχείων.

82.2K
391K
Οδηγίες
Προβολή
Λογότυπο openclaw

Release Openclaw Maintainer

openclaw
ΟργανισμόςΔημοφιλής

Προετοιμάστε, δημοσιεύστε, αποκαταστήστε ή επαληθεύστε κυκλοφορίες beta, stable και extended-stable του OpenClaw, συμπεριλαμβανομένων των εγκεκριμένων backport.

82.2K
391K
Αρχεία: 11
Προβολή
Λογότυπο openclaw

Release Openclaw Plugin Testing

openclaw
ΟργανισμόςΔημοφιλής

Σχεδιάστε και εκτελέστε επικύρωση πρόσθετων OpenClaw πριν από την κυκλοφορία, καλύπτοντας τα ενσωματωμένα πρόσθετα, τα τεχνουργήματα πακέτων, τις εντολές κύκλου ζωής, τα doctor/fix, την αμφίδρομη μετατροπή ρυθμίσεων, την εκκίνηση του gateway, τη συμβατότητα SDK, το Docker E2E,…

82.2K
391K
Αρχεία: 1
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇