generate2dsprite

generate2dsprite is a skill for Claude Code, Codex from ourobx/agent-ebpf. It costs 118 tokens per session (5,199 once invoked), scanned A, original, MIT.

A tool for creating 2D game artwork such as characters, creatures, effects, objects, and animation sheets as transparent image files.

In plain words
What is it for?
Use it to make pixel-art sprites, non-player characters, spells, projectiles, props, and reusable animation assets for browser games.
Why use it?
It avoids replacing needed game art with temporary shapes drawn by code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ourobx/agent-ebpf/generate2dsprite
Any agent
npx skills add ourobx/agent-ebpf --skill generate2dsprite
Clone the repo
git clone --depth 1 https://github.com/ourobx/agent-ebpf

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 generate2dsprite

README.md
[![agentmods](https://agentmods.dev/badge/skills/ourobx/agent-ebpf/generate2dsprite.svg)](https://agentmods.dev/skills/ourobx/agent-ebpf/generate2dsprite)
Your own site
<a href="https://agentmods.dev/skills/ourobx/agent-ebpf/generate2dsprite"><img src="https://agentmods.dev/badge/skills/ourobx/agent-ebpf/generate2dsprite.svg" alt="Measured on agentmods" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,199 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00118 $0.05199
Opus 5 $0.00059 $0.02599
Sonnet 5 $0.00024 $0.01040
Haiku 4.5 $0.00012 $0.00520

Measured yesterday against content hash d620ac32acdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

generate2dsprite 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/generate2dsprite.py, scripts/make_layout_guide.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.

v2/.grok/skills/generate2dsprite/SKILL.md · 314 lines

How it starts

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

Generate2dsprite

Use this skill for self-contained 2D sprite or animation assets in the app-builder sandbox (TanStack Start + browser games).

When a larger game or playable prototype needs sprites, use this skill for the visible sprite assets and keep runtime/game assembly separate (wire into Phaser / Canvas / DOM after export). Do not replace requested sprite assets with code-drawn placeholders.

App-builder / Grok environment

Item Value
Skill dir .grok/skills/generate2dsprite/
Scripts python3 .grok/skills/generate2dsprite/scripts/<script>.py …
Image tools imagine_text_to_image / imagine_image_to_image (path-based; see imagine skill for prompt craft)
Inspect images read_file on the PNG path (not Codex view_image)
Generated image path imagine_text_to_image returns a sandbox file_path; copy that path into your run dir before processing
Python deps Pillow + numpy (preinstalled in the image)
Output home Prefer assets/sprites/<name>/ under /workspace so the app can import them
Engine target Browser: Canvas 2D, Phaser, or DOM/<img> — not Godot/Unity unless the user asks

Related skills: imagine (image tool usage), game-asset-core (+ game-animation-frames / game-character-consistency for QC and engine-ready defaults), generate2dmap (maps/props), video2dsprite (denser motion via imagine_image_to_video), building-games (game loop / integration).

Parameters

Infer these from the user request:

  • asset_type: player | npc | creature | character | spell | projectile | impact | prop | summon | fx
  • action: single | idle | cast | attack | shoot | jump | hurt | combat | walk | run | hover | charge | projectile | impact | explode | death
  • view: topdown | side | 3/4
  • sheet: auto | 2x2 | 2x3 | 2x4 | 3x3 | 3x4 | 4x4 | 5x5 | custom_grid | strip_1x3 | strip_1x4
  • frames: auto or explicit count
  • bundle: single_asset | unit_bundle | spell_bundle | combat_bundle | line_bundle | hero_action_bundle | engine_atlas
  • effect_policy: all | largest
  • anchor: center | bottom | feet
  • margin: tight | normal | safe
  • art_style: pixel_art | clean_hd | pixel_inspired | retro_pixel | map_style | project-native
  • reference: none | attached_image | generated_image | local_file
  • layout_guide: none | optional | recommended
  • prompt: the user's theme or visual direction
  • role: only when the asset is clearly an NPC role
  • name: optional output slug

Read the full file on GitHub · 314 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. yesterday First seen · 314 lines · 118 tokens per session scan A d620ac32acdb

Subscribe to this mod's changes

generate2dsprite is a skill published in the GitHub repository ourobx/agent-ebpf (1 stars, last pushed today), licensed MIT. It adds 118 tokens to every session and 5,199 once invoked, about $0.0006 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-09-04.

Related

Other skills, from other repositories

gameobject-component-destroy

Destroy one or more Components from a target GameObject. Missing (null) components are skipped — they cannot be destroyed. Use 'gameobject-find' and 'gameobject-component-get' to identify the components first.

IvanMurzak/Unity-MCP · 49 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

unity-addressables

Manage Addressables groups, entries, profiles and content builds (com.unity.addressables, reflection-based).

Besty0728/Unity-Skills · 25 tokens

playtest-report

Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

Donchitos/Claude-Code-Game-Studios · 35 tokens

unity-manual-component

Manually add, configure, reorder, and copy components on GameObjects using Unity Editor UI. For one-off Inspector workflows that do not need REST automation.

Besty0728/Unity-Skills · 36 tokens

godot-signals-groups

Build event-driven, decoupled Godot 4.7 gameplay with signals and node groups: declare and emit custom signals, connect with Callables (incl. bind/one-shot), and broadcast to many nodes via groups and callgroup. Use when wiring node communication in a Godot project, replacing tight references with signals…

gamedev-skills/awesome-gamedev-agent-skills · 95 tokens