Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

generate2dspritegenerate2dsprite 搜索

Agent Skill

generate2dsprite 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

1,206

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:generate2dsprite(generate2dsprite 搜索)
来源仓库:https://github.com/0x0funky/agent-sprite-forge
仓库路径:skills/generate2dsprite
安装命令:
npx skills add https://github.com/0x0funky/agent-sprite-forge --skill generate2dsprite
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/0x0funky/agent-sprite-forge --skill generate2dsprite

简介

用于查找、检索和筛选相关信息,支持快速定位候选结果。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景使用。
  • 通过 GitHub 安装,使用 npx skills add 命令添加技能。
  • 需确认权限范围和维护状态,注意是否触发联网或命令执行。
  • generate2dsprite 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Generate2dsprite

Use this skill for self-contained 2D sprite or animation assets.

If the user wants a whole playable content pack, map, story, slideshow, or pack assembly, use generate2dgamepack.

Parameters

Infer these from the user request:

  • asset_type: player | npc | creature | character | spell | projectile | impact | prop | summon | fx
  • action: single | idle | cast | attack | hurt | combat | walk | run | hover | charge | projectile | impact | explode | death
  • view: topdown | side | 3/4
  • sheet: auto | 1x4 | 2x2 | 2x3 | 3x3 | 4x4
  • frames: auto or explicit count
  • bundle: single_asset | unit_bundle | spell_bundle | combat_bundle | line_bundle
  • 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
  • prompt: the user's theme or visual direction
  • role: only when the asset is clearly an NPC role
  • name: optional output slug

Read references/modes.md when the request is ambiguous.

Agent Rules

  • Decide the asset plan yourself. Do not force the user to spell out sheet size, frame count, or bundle structure when the request already implies them.
  • Write the art prompt yourself. Do not default to the prompt-builder script.
  • Use built-in image_gen for every raw image.
  • When the user provides or implies a visual reference, use built-in image edit/reference semantics only after the reference image is visible in the conversation context. If the reference is a local file, call view_image first; do not rely on a filesystem path in the prompt as the visual reference.
  • Do not force pixel art when the asset is a map prop for $generate2dmap or when the user/project requests a different style. Match the map or reference style first.
  • Use the script only as a deterministic processor: magenta cleanup, frame splitting, component filtering, scaling, alignment, QC metadata, transparent sheet export, and GIF export.
  • Do not use scripts to generate the creative image prompt. If a legacy prompt-builder command exists, treat it as historical compatibility only, not the normal skill workflow.
  • Treat script flags as execution primitives chosen by the agent, not user-facing hardcoded workflow.
  • If a generated sheet touches cell edges, drifts in scale, or breaks a projectile / impact loop, either reprocess with better primitive settings or regenerate the raw sheet.
  • Keep the solid #FF00FF background rule unless the user explicitly wants a different processing workflow.

Workflow

1. Infer the asset plan

Pick the smallest useful output.

Examples:

  • controllable hero with four directions -> player + player_sheet
  • healer overworld NPC -> npc + single_asset or unit_bundle
  • large boss idle loop -> creature + idle + 3x3
  • wizard throwing a magic orb -> spell_bundle

- caster cast sheet - projectile loop - impact burst

  • monster line request -> line_bundle

- plan 1-3 forms - per form, make the sheets the request actually needs

2. Write the prompt manually

Use references/prompt-rules.md.

Choose art_style before writing the prompt:

  • Use pixel_art or retro_pixel for classic sprites, 16-bit RPG actors, and requests that explicitly ask for pixel art.
  • Use clean_hd for map props or assets intended to match clean hand-painted HD maps.
  • Use pixel_inspired only when the user wants a pixel-adjacent look without retro chunkiness.
  • Use map_style or project-native when an existing map, game, or reference should define the style.

If a reference is involved:

  • Make the reference visible first. For local paths, use view_image; for freshly generated references, rely on the image already shown in context.
  • State the reference role explicitly: preserve identity/style, create an animation sheet for the same subject, create an evolution/variant, or derive a matching prop/FX.
  • Preserve the stable identity markers from the reference: silhouette, palette, face/eye features, costume marks, major accessories, and material language.
  • Let only the requested action or evolution change. Do not redesign the subject unless the user asks.
  • Still require exact sheet shape, solid magenta background, frame containment, and same scale across frames.

Keep the strict parts:

  • solid #FF00FF background
  • exact sheet shape
  • same character or asset identity across frames
  • same bounding box and pixel scale across frames
  • explicit containment: nothing may cross cell edges

3. Generate the raw image

Use built-in image_gen.

After generation:

  • find the raw PNG under $CODEX_HOME/generated_images/...
  • copy or reference it from the working output folder
  • keep the original generated image in place

4. Postprocess locally

Run scripts/generate2dsprite.py process on the raw image.

The processor is intentionally low-level. The agent chooses:

  • rows / cols
  • fit_scale
  • align
  • shared_scale
  • component_mode
  • component_padding
  • edge_touch rejection strategy

Use the processor to gather QC metadata, not to make aesthetic decisions for you.

5. QC the result

Check:

  • did any frame touch the cell edge
  • did any frame resize differently than intended
  • did detached effects become noise
  • does the sheet still read as one coherent animation

If not, rerun with different processor settings or regenerate the raw sheet.

6. Return the right bundle

For a single sheet, expect:

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

For player_sheet, expect:

  • transparent 4x4 sheet
  • 16 frame PNGs
  • direction strips
  • 4 direction GIFs

For spell_bundle or unit_bundle, create one folder per asset in the bundle.

Defaults

  • idle

- small or medium actor -> 2x2 - large creature or boss -> 3x3

  • cast -> prefer 2x3
  • projectile -> prefer 1x4
  • impact / explode -> prefer 2x2
  • walk

- topdown actor -> 4x4 for four-direction walk - side-view asset -> 2x2

  • use shared_scale by default for any multi-frame asset where frame-to-frame consistency matters
  • use largest component mode when detached sparkles or edge debris make the main body unstable

Resources

  • references/modes.md: asset, action, bundle, and sheet selection
  • references/prompt-rules.md: manual prompt patterns and containment rules
  • scripts/generate2dsprite.py: postprocess primitive for cleanup, extraction, alignment, QC, and GIF export

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.39%
按下载量换算52

Claude

31.2%
按下载量换算41

Cursor

17.45%
按下载量换算23

Gemini CLI

9.47%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills