animaworks: Skill for Claude Code

.claude/skills/pixel-asset-gen/SKILL.md

pixel-asset-gen is a skill for Claude Code, Codex from xuiltul/animaworks. It costs 136 tokens per session (3,317 once invoked), scanned A, original, Apache-2.0.

A procedure for using image generation to create consistent pixel-art character sprite sheets for a workspace. A sprite sheet is one image containing many animation frames for a character.

In plain words
What is it for?
Use it to create or replace pixel characters, define animation rows such as idle, walking, sleeping, success, and error, inspect previews, and prepare transparent PNG assets for runtime use.
Why use it?
It prevents characters from changing appearance or size between animation rows and keeps a group of characters visually consistent.

Skill for Claude CodeCodex

Written for Claude Code and Codex: installed under .claude/, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions Codex.

This is xuiltul/animaworks's own configuration. It tells Claude Code and Codex how to work on animaworks itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything animaworks configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xuiltul/animaworks. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xuiltul/animaworks/main/.claude/skills/pixel-asset-gen/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xuiltul/animaworks

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 pixel-asset-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuiltul/animaworks/pixel-asset-gen/github.svg)](https://agentmods.dev/skills/xuiltul/animaworks/pixel-asset-gen)
Your own site
<a href="https://agentmods.dev/skills/xuiltul/animaworks/pixel-asset-gen"><img src="https://agentmods.dev/badge/skills/xuiltul/animaworks/pixel-asset-gen/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 pixel-asset-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuiltul/animaworks/pixel-asset-gen"><img src="https://agentmods.dev/badge/skills/xuiltul/animaworks/pixel-asset-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,317 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00136 $0.03317
Opus 5 $0.00068 $0.01658
Sonnet 5 $0.00027 $0.00663
Haiku 4.5 $0.00014 $0.00332

Measured 9d ago against content hash f50f06862453, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pixel-asset-gen 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 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/compare_to_reference.py, scripts/make_previews.sh, scripts/measure_frames.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/pixel-asset-gen/SKILL.md · 166 lines

How it starts

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

Pixel アセット生成 — codexへの指示の出し方

ドット絵ワークスペース(/app/workspace/pixel/)のキャラクタースプライトを作る手順。 2026-07-29〜30にフリート全体で確立した方式を記録したもの。実プロンプト全文と後処理の詳細は同ディレクトリの PIPELINE_reference.md にある。

前提

  • 画像生成は codexの組み込み image_gen で行う(grokには無い)。指示に「組み込みの image_gen ツールを使う。SVG/HTML/CSSでの代替は不可」と明記しないと、勝手にSVGで代替される
  • スプライトは 384×960(96×96フレーム × 4列 × 10行)、透過PNG、アルファ2値。 行順は idle / working / thinking / talking / walk_down / walk_up / walk_side / sleeping / success / error(正本は server/static/workspace/pixel/CONTRACT.md
  • 実名アセットはリポジトリに置かない。配置先は <data_dir>/animas/<name>/assets/pixel_sheet.png (人間役は <data_dir>/workspace_pixel/assets/chars/human.png

方式は2つあり、使い分ける

状況 方式
基準キャラを新しく作る(1体目・画風を決める) ゼロから生成。1枚の種で画風の承認を取ってから10行に展開
2体目以降・フリートへ展開する 承認済みシートを土台にした「キャラ差し替え」

2体目以降を独立生成してはいけない。 キャラごとに顔の大きさがバラバラになり、 オフィスに並べた瞬間に不揃いだと分かる(フリート全体で実際に失敗して作り直した)。

キャラ差し替え方式の手順(これが本題)

0. 正本とidentityを固定する

  • 形状・ポーズ・ドット密度の正本は、現在承認済みのmio ~/.animaworks/animas/mio/assets/pixel_sheet.png とする。開始時にSHA-256を記録する。
  • 対象Animaの assets/prompt.txtavatar_chibi.pngavatar_bustup.png を読み、 髪型、髪色、瞳、髪飾り、服装を1つのidentity仕様へ確定する。
  • 参照同士が矛盾する場合は多数一致と明示記述を優先し、解消できなければ生成前に人間へ確認する。
  • identity仕様は10行40フレーム共通の不変条件である。状態によって髪丈、髪飾り、瞳、服装を変えない。

1. 土台を作る — ここが成否を分ける

承認済みシートを行ごとに切り出し、全10行を例外なくPOINTで400%拡大し、透明部分をマゼンタで埋めた 1536×384の画像**を編集対象にする。

magick <基準シートの行ストリップ>.png \
  -filter point -resize 400% \
  -background '#FF00FF' -alpha background -alpha remove -alpha off \
  <作業dir>/base_row0_idle_x4_magenta.png

384×96のまま渡すとモデルが顔・髪・体型を再解釈する。idleだけでなく全10行で必ず400%版を渡す。 過去のMei生成では後半行が低解像度入力へ戻り、行ごとに長髪とボブが混在したため、低解像度入力は不合格とする。

2. image_genへの指示

1行につき1回呼ぶ。入力画像はこの順で3枚:

  1. 上で作った400%+マゼンタの土台(=編集対象)
  2. そのキャラの avatar_chibi.png(全身・服装の同定)
  3. そのキャラの avatar_bustup.png(顔・色の同定)

プロンプトは precise-object-edit 構成で書く。全文は PIPELINE_reference.md にあるが、要点は:

  • Primary request: Image 1 を編集する。キャラの同一性だけを差し替え、レイアウト・ スケール・シルエット・アニメーション・ピクセルグリッドは Image 1 のまま
  • Composition: 4コマそれぞれのポーズ・向き・体の大きさ・肩幅・頭頂の高さ・ 露出した顔の大きさ・顔の中心・目鼻口の位置と間隔を維持。顔や頭を大きくするな
  • Constraints: 目・眉・鼻・口・頬は小さく分離した読み取れるドットの塊のまま。 顔(目・鼻・口・頬)に新しい暗色の点・影・輪郭・髪の毛・孤立ピクセルを重ねるな。 暗い髪は顔の境界からはっきり分離させる
  • Scene: 背景は完全に均一な #FF00FF のみ(影・グラデーション・床・照明変化を入れない)
  • Avoid: black blobs, stray dark pixels, facial dirt, 机・椅子・モニタ・吹き出し・文字・影
  • Identity lock: 確定した髪丈、前髪、髪飾りの側、両目の色、服色を文章で毎行繰り返す。 「Images 2 and 3のどちらかを自由に選ぶ」とは書かない

Read the full file on GitHub · 166 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 166 lines · 136 tokens per session scan A f50f06862453

Subscribe to this mod's changes

pixel-asset-gen is a skill published in the GitHub repository xuiltul/animaworks (254 stars, last pushed today), licensed Apache-2.0. It adds 136 tokens to every session and 3,317 once invoked, about $0.0007 per session on Opus 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-08-30.

Related

Other skills, from other repositories

hive.image-generation

Required before calling imagegenerate. Create and edit images from a prompt — generate an image, make a picture / logo / illustration / icon / banner / poster / thumbnail / hero image / mockup / product shot / social graphic, or edit / restyle / combine existing images from reference images. Uses OpenAI gpt-image-2…

aden-hive/hive · 149 tokens

prompt-craft

Translate natural language image descriptions into detailed, structured DALL-E prompts with subject, style, composition, lighting, and mood specifications.

vladkesler/initrunner · 30 tokens

presentation-template-designer

Plan reusable presentation templates from a creative brief, optional brand assets, or an existing deck. Use when Codex needs to define a slide inventory, choose an editable presentation toolchain, author or validate a template manifest, adapt a visual system for PowerPoint or Google Slides, or prepare a reviewed…

Prompthon-IO/agent-systems-handbook · 70 tokens

openai-image-cli

Generate, edit, and manage images via OpenAI's GPT Image and DALL-E models.

mupengi-bot/mupengism · 24 tokens

cardnews

A workflow for creating five-image Instagram carousel posts, also called card news. It covers planning the slides, generating images, converting them to JPG, writing a caption, and preparing an upload.

mupengi-bot/mupengism · 77 tokens

youtube

A YouTube integration for searching videos, reading video details, summarising subtitles, viewing subscriptions and liked videos, downloading videos, and monitoring channels for new uploads.

Rayan55050/progressive-agent · 20 tokens