惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
Vercel News
Vercel News
美团技术团队
雷峰网
雷峰网
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
D
DataBreaches.Net
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
罗磊的独立博客
MyScale Blog
MyScale Blog
博客园_首页
IT之家
IT之家
F
Fortinet All Blogs
博客园 - Franky

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - 0x0funky/agent-sprite-forge: Agent Skill for gen...
super135799 · 2026-04-24 · via Hacker News: Show HN

Traditional Chinese README: README.zh-TW.md

Agent Sprite Forge Banner

Turn natural-language prompts into game-ready 2D sprites with Codex.

Plan with an agent. Render with built-in image generation. Export clean transparent sheets and GIFs.

Showcase

Text To Sprite

Spell Bundle / Cast, Projectile, Impact

Prompt:

Use  $generate2dsprite to create a fire mage cast animation with projectile and impact.

Game Sprite / Four-Direction Walk

Prompt:

Use Generate 2D Sprite to create a top-down 4x4 player_sheet for a wandering young samurai with a red scarf and short katana.
Make a four-direction walk sprite sheet with 4 frames per direction.
Row order: down, left, right, up.
Same character, same outfit, same proportions, same pixel scale in every frame.
Solid #FF00FF background.
Each frame must fit fully inside its cell, with clear margin on all sides.
Retro JRPG pixel-art style.

Reference To Sprite

Codex-first 2D sprite generation skill for game-ready pixel assets.

This repository currently ships one generic skill: skills/generate2dsprite.

Codex is the primary target because Codex already has built-in image generation. That lets one agent handle the full loop:

  1. Plan the asset.
  2. Generate the raw sprite sheet.
  3. Run deterministic local post-processing for chroma-key cleanup, frame extraction, alignment, QC, and transparent PNG/GIF export.

The current focus is self-contained 2D assets, not full game packs.

What It Can Generate

  • Creatures
  • Characters
  • Players and NPCs
  • Spell casts
  • Projectiles
  • Impacts and explosions
  • FX sheets
  • Small bundles such as unit_bundle, spell_bundle, and combat_bundle

Why Codex First

This repo is intentionally Codex-first because Codex can generate images directly inside the same workflow.

That gives you a much cleaner pipeline:

  • No separate image API wiring
  • No external sprite backend
  • No extra prompt-builder service
  • One agent decides the asset plan
  • One local processor handles deterministic cleanup and export

The script is not the creative brain. The agent decides:

  • Asset type
  • Action type
  • Bundle shape
  • Sheet layout
  • Frame count
  • Alignment strategy
  • Whether detached effects should be kept or filtered

The Python script only performs deterministic pixel operations.

Repository Layout

agent-sprite-forge/
  README.md
  README.zh-TW.md
  requirements.txt
  src/
  skills/
    generate2dsprite/
      SKILL.md
      agents/
        openai.yaml
      references/
        modes.md
        prompt-rules.md
      scripts/
        generate2dsprite.py

Install

Option 1: Windows PowerShell

Clone the repo, install the local processor dependencies, then copy the skill into your Codex skills directory:

git clone https://github.com/0x0funky/agent-sprite-forge.git
cd .\agent-sprite-forge
python -m pip install -r .\requirements.txt
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.codex\skills" | Out-Null
Copy-Item -Recurse -Force `
  ".\skills\generate2dsprite" `
  "$env:USERPROFILE\.codex\skills\generate2dsprite"

Option 2: macOS / Linux

git clone https://github.com/0x0funky/agent-sprite-forge.git
cd ./agent-sprite-forge
python3 -m pip install -r ./requirements.txt
mkdir -p ~/.codex/skills
cp -R ./skills/generate2dsprite ~/.codex/skills/generate2dsprite

Start a new Codex session after installation so the skill is loaded cleanly.

Python Requirements

The local post-processor depends on:

  • Pillow
  • numpy

They are listed in requirements.txt. Codex handles image generation itself, but these Python packages are still needed for:

  • Magenta background removal
  • Frame splitting
  • Bounding-box extraction
  • Alignment and rescaling
  • Transparent GIF and PNG export

Suggested Prompts

Basic

Use  $generate2dsprite to create a 3x3 idle for an ultimate earth titan.
Use  $generate2dsprite to create a side-view lightning knight attack animation.
Use  $generate2dsprite to create a late-Sengoku player_sheet for a wandering fire swordsman.

Spell / FX

Use  $generate2dsprite to create a wizard spell bundle with cast, projectile, and impact sprites.
Use  $generate2dsprite to create a fireball projectile loop and a matching explosion impact.
Use  $generate2dsprite to create a side-view summon entrance effect for a thunder wolf spirit.

Character / Monster Examples

Use  $generate2dsprite to create Omegamon attack and right-move animation assets.
Use  $generate2dsprite to create a golden divine boar 2x2 idle animation.
Use  $generate2dsprite to create a Naruto-style rasengan cast sheet in 2x3.

What You Get

For a typical sheet output:

  • raw-sheet.png
  • raw-sheet-clean.png
  • sheet-transparent.png
  • Frame PNGs
  • animation.gif
  • prompt-used.txt
  • pipeline-meta.json

For player walk sheets, you also get direction strips and per-direction GIFs.

Notes

  • Best results come from prompts that clearly specify view, action, and the desired motion style.
  • Large creatures often work better as 3x3 idle.
  • Small spells and projectiles often work better as 1x4, 2x2, or 2x3.
  • For commercial projects, prefer original characters or IP that you control.

License

MIT. See LICENSE.