Generating Dot Assets logo

Generating Dot Assets

Community
abagames
generating-dot-assets

Generates transparent pixel-art object assets from a subject and target pixel size using a host-provided image-generation tool, chroma-key removal, pixelization, exact canvas fitting, and PNG validation. Use for game objects, sprites, props, item icons, and diorama layers. Requires Codex's built-in `image_gen` (or an equivalent image-generation entry point) and ImageMagick `convert` on PATH.

Overview

Publisherabagames
Repositoryagentic-gamedev-skills
Skill namegenerating-dot-assets
Stars
39
Forks
6
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by abagames on GitHub. Read the source before you install it.

Installation

Install the Generating Dot Assets AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/generating-dot-assets
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/abagames/agentic-gamedev-skills.git /tmp/agentic-gamedev-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-gamedev-skills/.agents/skills/generating-dot-assets .claude/skills/generating-dot-assets
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Generating Dot Assets in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Generating Dot Assets on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Generating Dot Assets is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Dot Asset Generator

Create transparent pixel-art object assets from a natural-language subject and an exact target size such as 32x32, 64x64, or 96x48.

Use this skill when the user asks for a game object, sprite-like prop, item icon, diorama object, or transparent pixel-art asset generated from image generation.

Environment requirements

  • An image-generation tool callable from the agent. The bundled workflow assumes Codex's built-in image_gen and reads its output from $CODEX_HOME/generated_images/.... On other hosts (Claude Code, plain CLI), substitute an equivalent generator and copy the chosen image into <PROJECT_DIR>/assets/source/<stem>.raw.png.
  • In Codex CLI, built-in image_gen output may not appear under $CODEX_HOME/generated_images even when generation succeeds. If no current output file is visible, recover the PNG from the Codex session JSONL before retrying generation; see references/imagegen-cli-recovery.md.
  • ImageMagick convert on PATH. The bundled scripts/*.mjs shell out to it; if it is missing, stop and report the dependency rather than fabricating output.

Inputs

Require:

  • subject, e.g. old wooden school desk
  • final size, e.g. 64x64
  • output path or output directory

Optional:

  • style notes
  • palette JSON with a colors array
  • raw output directory
  • color count
  • chroma-key color
  • fit mode: contain or stretch

Default project layout:

  • Use <PROJECT_DIR>/assets/source/ for prompt records, copied raw images, cutouts, pixelized intermediates, and optional palette JSON files.
  • Use <PROJECT_DIR>/assets/sprites/ for final validated transparent PNGs.
  • Use <stem>.prompt.md, <stem>.raw.png, <stem>.cutout.png, <stem>.pixel.png, and <stem>.palette.json for generated working files.
  • If the final filename already exists and overwrite was not explicitly requested, use <stem>_v2.png, then _v3, etc. Apply the same suffix to prompt, raw, cutout, pixel, and palette files for that run.
  • For role-based game assets, read <PROJECT_DIR>/VISUAL_DESIGN.md or the README visual direction first. Explicit user or scenario constraints may be used when those files are unavailable; report the missing design docs and record the constraints in the prompt file. If neither design docs nor explicit constraints define role colors, define a minimal Player / Danger / Reward palette (or run a visual-direction pass first) before generating.
  • Use --colors <N> for exploratory or one-off assets when exact project colors are not required. Create and pass a palette JSON when assets must share a project palette, match role colors, or stay consistent across a set.

Workflow

  1. Read references/prompt-patterns.md, then prompt built-in image_gen for an oversized source image of exactly one object on the selected chroma-key background.
  2. Copy the selected generated image from $CODEX_HOME/generated_images/... into the project raw directory.
  3. Run scripts/cutout.mjs to remove the chroma-key background.
  4. Run scripts/pixelize.mjs to reduce detail and apply a palette or color limit.
  5. Run scripts/fit-canvas.mjs to enforce the exact requested WxH transparent canvas.
  6. Run scripts/validate-pixel-asset.mjs, then apply the automated and visual acceptance checks in references/validation.md.
  7. Save a prompt record in the source directory using <stem>.prompt.md unless the project has a stronger convention.

Prefer project-local equivalent tools if they already exist and satisfy the same contract. Otherwise use this skill's bundled scripts.

Commands

Set SKILL_DIR to the absolute directory containing this loaded SKILL.md; plugin installations need not share the source repository layout.

bash
: "${SKILL_DIR:?Set SKILL_DIR to this skill directory}"
node "$SKILL_DIR/scripts/cutout.mjs" raw.png tmp/cutout.png --trim --fuzz 8%
node "$SKILL_DIR/scripts/pixelize.mjs" tmp/cutout.png tmp/pixel.png --width 96 --colors 24 --dither off
node "$SKILL_DIR/scripts/fit-canvas.mjs" tmp/pixel.png final.png --size 64x64 --fit contain --gravity center
node "$SKILL_DIR/scripts/validate-pixel-asset.mjs" final.png --size 64x64 --max-colors 24 --transparent-corners

With a palette:

bash
: "${SKILL_DIR:?Set SKILL_DIR to this skill directory}"
node "$SKILL_DIR/scripts/pixelize.mjs" tmp/cutout.png tmp/pixel.png --width 96 --palette palette.json --dither off

Palette files must contain a colors array of hex colors:

json
{
  "colors": ["#1b1f3a", "#f04438", "#f97316", "#facc15", "#38bdf8", "#f8fafc"]
}

Rules

  • Do not rely on image generation to produce exact pixel dimensions.
  • Do not leave final sizing to pixelize; always enforce the requested dimensions with fit-canvas.
  • Use contain for most object assets so the subject is not cropped.
  • Generate one object per image. Batches should use one built-in image_gen call per object.
  • Keep raw generated images and final transparent PNGs separate.
  • Do not overwrite existing assets unless explicitly asked; create a versioned filename instead.
  • Do not require an explicit palette for every asset. Use one when the project already defines colors, when role colors matter, or when multiple assets must look like they belong to the same set.
  • Default pixelize resize: use an intermediate long edge about 2x the final long edge. For square or landscape assets, set --width to final_width * 2; for portrait assets, set --height to final_height * 2. Use both --width and --height only when intentional pre-fit stretching is acceptable.

Failure Handling

  • If chroma-key removal leaves a colored fringe, retry cutout with a higher --fuzz or regenerate with more padding and stricter flat-background wording.
  • If built-in image_gen appears to succeed but no output file is available under $CODEX_HOME/generated_images, do not assume generation failed. Recover the PNG from the Codex session JSONL using references/imagegen-cli-recovery.md, then continue from the raw-image copy step.
  • If the subject is cropped, regenerate with stronger padding instructions or use a larger intermediate size.
  • If the object becomes unreadable at final size, regenerate with simpler shapes or pixelize from a less detailed source.
  • If ImageMagick convert is unavailable, report that the bundled scripts require ImageMagick and stop.

References

  • references/prompt-patterns.md — canonical image-generation prompts and key-color selection.
  • references/validation.md — canonical automated and visual acceptance checks.
  • references/imagegen-cli-recovery.md — recover successful Codex CLI image output when no generated file is visible.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Generating Dot Assets AI skill do?

Generates transparent pixel-art object assets from a subject and target pixel size using a host-provided image-generation tool, chroma-key removal, pixelization, exact canvas fitting, and PNG validation. Use for game objects, sprites, props, item icons, and diorama layers. Requires Codex's built-in `image_gen` (or an equivalent image-generation entry point) and ImageMagick `convert` on PATH.

Why use Generating Dot Assets on TypingMind?

Because you install it once and use it with any model. Generating Dot Assets is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Generating Dot Assets in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/generating-dot-assets. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Generating Dot Assets?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Generating Dot Assets?

As many as you like. As long as a model supports skills, you can use Generating Dot Assets with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Generating Dot Assets AI skill free?

Yes. It is published on GitHub by abagames under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇