generate2dsprite

generate2dsprite is a skill for Claude Code 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 Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Codex.

Good fit Use it to make pixel-art sprites, non-player characters, spells, projectiles, props, and reusable animation assets for browser games.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ourobx/agent-ebpf/generate2dsprite
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.

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.

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/github.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/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 generate2dsprite

Your own site · 80×15
<a href="https://agentmods.dev/skills/ourobx/agent-ebpf/generate2dsprite"><img src="https://agentmods.dev/badge/skills/ourobx/agent-ebpf/generate2dsprite.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00047 $0.02080
Sonnet 5.5 $0.00024 $0.01040
Haiku 4.5 $0.00012 $0.00520

Measured 2mo ago against content hash d620ac32acdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo ago.

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. 2mo ago 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 21d ago), licensed MIT. It adds 118 tokens to every session and 5,199 once invoked, about $0.0005 per session on Opus 5.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

generate2dsprite compared with skills from other repositories

generate2dsprite next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate2dspriteourobx/agent-ebpfSkill121d agoMITA118Claude Code
playtest-reportDonchitos/Claude-Code-Game-StudiosSkill36k19d agoMITA20Claude Code
godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skillsSkill6.9k10d agoApache-2.0A95Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill3.2kyesterdayMITA121Claude Code
motionOpenDCAI/GameFactory-3ASkill1.0k8d agoApache-2.0A0Claude Code, Codex
unity-addressablesBesty0728/Unity-SkillsSkill1.9kyesterdayMITA25Claude Code, Codex
unity-manual-componentBesty0728/Unity-SkillsSkill1.9kyesterdayMITA36Claude Code, Codex