精灵图sprite-gen

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

Generate animated sprite sheets from text descriptions using Agent LLM + ImageGen + sharp/gifenc. No third-party API required.

一句话选型结论

按资料字段整理

精灵图sprite-gen是前端设计类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类前端设计 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_8bb4b4f5/sprite-gen
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_8bb4b4f5仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791693776
正文体量8.8 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
出页面与组件

按描述生成页面结构和组件草稿。

调整样式与布局

改间距、配色与响应式布局。

生成设计说明

把设计稿整理成开发能接的说明。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在前端设计场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
精灵图sprite-gen当前 未标注权限 未标注 未标注 未标注 有
前端设计 只读 GitHub 仓库 882.3 万 Codex、Claude、Cursor 有
Vercel 组合模式 联网访问 GitHub 仓库 385.9 万 Codex、Claude、Cursor 有
Vercel React native skills 前端 只读 GitHub 仓库 246.9 万 Codex、Claude、Cursor 有
adapt 搜索 浏览器控制 GitHub 仓库 202.7 万 Codex、Claude、Cursor 有
使用我的浏览器 浏览器控制 GitHub 仓库 184.8 万 Codex、Claude、Cursor 有

SKILL.md 全文

8.8 KB
模型实际读到的说明书原文,来自技能仓库

Sprite Sheet Generation Skill

Generate animated sprite sheets from text descriptions. Uses only Agent-native capabilities — no third-party API keys needed.

Architecture

User Input → Agent LLM (prompt rewrite) → ImageGen (transparent sprite) → sharp (cut frames) → gifenc (animated GIF) → HTML preview

Workflow

Step 1: Receive User Input

Collect from user (use AskUserQuestion if not provided):
- character: Character description (e.g. "baby dragon, chibi kawaii, isometric action RPG")
- gridSize: Grid dimension, 2-6, default 4 (produces 4x4=16 frames)
- actionType: Optional — "walk", "attack", "idle", "cast", "dance" (enriches the LLM prompt)

Step 2: Agent LLM Prompt Rewrite

Do NOT call any external API. Use your own LLM capability to perform the rewrite.

Use this system prompt (adapted from buildRewriteSystemPrompt):

You are an animation director and character designer for a sprite sheet pipeline.
Given a character concept, you MUST return exactly two sections, nothing else:

CHARACTER: A vivid description of the character's appearance — body type, armor, weapons, colors, silhouette, art style. Be extremely specific and visual.

CHOREOGRAPHY: A {gridWord}-beat continuous animation loop that showcases this specific character's personality and abilities. Each beat is one row of the sheet. The last beat must transition seamlessly back into the first.
For each beat, describe the body position, weight distribution, limb placement, and motion arc in one sentence.
The choreography must feel natural and unique to THIS character.

RULES:
- Never use numbers or digits anywhere.
- Never mention grids, pixels, frames, cells, or image generation.
- Write as if directing a real actor through a motion capture session.
- The {gridWord} beats must form one fluid, looping performance.
- For locomotion: strictly alternate left and right legs in each beat.

User message: Design the character and choreograph a {gridWord}-beat animation loop for: {character}

Parse the LLM response into the rewritten prompt text.

Step 3: Build Technical Sprite Prompt

Concatenate the rewritten prompt with this technical spec (adapted from buildSpritePrompt):

STRICT TECHNICAL REQUIREMENTS FOR THIS IMAGE:

FORMAT: A single image containing a {gridWord}-by-{gridWord} grid of equally sized cells.
Every cell must be the exact same dimensions, perfectly aligned, with no gaps or overlap.

FORBIDDEN: Absolutely no text, no numbers, no letters, no digits, no labels,
no watermarks, no signatures, no UI elements anywhere in the image.

CONSISTENCY: The exact same single character must appear in every cell.
Same proportions, same art style, same level of detail, same camera angle throughout.
Isometric three-quarter view. Full body visible head to toe in every cell.
Strong clean silhouette against a plain solid flat-color background.

ANIMATION FLOW: The cells read left-to-right, top-to-bottom, like reading a page.
This is one continuous motion sequence. Each cell shows the next moment in the movement.
The transition between rows must be just as smooth as transitions within a row.
Each row contains {gridWord} phases of the motion. The last cell loops back to the first.

MOTION QUALITY: Show real weight and physics. Bodies shift weight between feet.
Arms counterbalance legs. Torsos rotate into actions. Follow-through on every movement.
For locomotion: strictly alternate left and right legs.

CHARACTER AND ANIMATION DIRECTION:
{rewrittenPrompt}

Grid word mapping: 2→"two", 3→"three", 4→"four", 5→"five", 6→"six"

Step 4: ImageGen Call

Call the ImageGen tool (via DeferExecuteTool) with:
- prompt: The full technical sprite prompt from Step 3
- size: "1024x1024" — square format for grid
- format: "png" — PNG preserves transparency

IMPORTANT: ImageGen does NOT currently honor background: "transparent". Generated images will have colorful backgrounds (often with gradients, grid lines, and "AI生成 WORKBUDDY"-style watermarks). The skill ships two background-removal modes:

  • Hybrid (default, process-sprite.mjs) — auto-detects the bg and uses the right algorithm per image:
  • Dark / vibrant / multicolor backgrounds (e.g. a character on a teal→green gradient): per-pixel nearest-background-color. Samples bg color from the perimeter, removes any pixel within bg-tolerance of the nearest sample. Survives sharp internal color transitions.
  • Light backgrounds (e.g. white-on-white): floodfill from the border with dark-outline walls, contained by the character's outline.

  • Green-screen / chroma key (process-sprite-chroma.mjs) — for outputs where the prompt asked for a green background and ImageGen mostly delivered (e.g. rgb(57, 185, 58) instead of pure #00FF00). Uses:
    1. Auto-detect key color from the four corners (don't hard-code pure green — ImageGen never emits it).
    2. Two-stage key: pixel must be green-DOMINANT (g > max(r,b)+20) AND within key-tolerance of the detected key. The hue check prevents accidentally eating character parts that happen to share a color channel.
    3. Auto-detect gridlines by scanning for long runs of dark pixels — ImageGen places dividers at y=268, 497, 745 / x=275, 512, 758 on a 1024 sheet, NOT at exact w/4, w/2, 3w/4. Mask each detected line across the full row/column, not a tiny window.
    4. Watermark removal in the bottom-right corner: remove any green-hued pixel (the "AI生成 WORKBUDDY" stamp is light-lime-green text — brightness 177, distance to key > 100, so the chroma key and a darkness filter both miss it; only a greenness filter in that specific corner catches it).

Use chroma when the prompt asked for "solid flat pure green #00FF00" and ImageGen returned a single-hue green background. Use hybrid for everything else (teal, gradient, multi-color, dark, or unpredictable backgrounds).

Fallback Strategy A (preferred): Single ImageGen call produces the full grid.
Fallback Strategy B: If grid alignment is poor, generate individual frames (N² calls) and composite with sharp.
Fallback Strategy C: First frame text-to-image, subsequent frames image-to-image for consistency.

Step 5: Process Sprite Sheet

Run the processing script to cut frames, remove background, and create GIF:

{node_path} {skill_dir}/scripts/process-sprite.mjs \
  --input <path-to-generated-png> \
  --grid <gridSize> \
  --frame-size 200 \
  --remove-bg \
  --bg-tolerance 60 \
  --outdir <output-dir>

The script:
1. Reads the sprite sheet PNG
2. Auto-removes background via hybrid smart removal (see Step 4 notes). Runs on the full-resolution sheet so character outlines stay intact, then sharp cuts the N×N grid into individual frames.
3. Uses sharp to cut the N×N grid into individual frames (also with transparent bg)
4. Cleans transparent edges (2px erosion to remove fringe)
5. Uses gifenc to encode an animated GIF with transparency (magenta sentinel for transparent pixels)
6. Generates an HTML preview page with checker pattern background, showing the GIF + individual frames

Key flags:
- --remove-bg: Auto-detect and remove solid background color (highly recommended for ImageGen output)
- --bg-tolerance N: Color distance threshold (5-150, default 60). Increase if background isn't fully removed; decrease if character edges are being eaten.
- --frame-size N: Output frame size in pixels (64-512, default 200)
- --skip-frames: Skip individual frame extraction (faster if you only need the GIF)

Step 6: Present Results

Use present_files to show:
1. The HTML preview page (primary)
2. The animated GIF file
3. The sprite sheet PNG (original)

Parameters Reference

Parameter Default Range Description
character (required) any string Character description
gridSize 4 2-6 Grid dimension (4 = 16 frames)
frameSize 200 64-512 Output GIF frame size in px
actionType none walk/attack/idle/cast/dance Animation type hint
bgTolerance 60 5-150 Color distance threshold for bg removal

Dependencies

  • sharp — image processing (must be in node_modules or workspace)
  • gifenc — GIF encoding (must be in node_modules or workspace)
  • Node.js 18+ (ESM support)

Output Files

  • sprite-{timestamp}.png — Original sprite sheet from ImageGen
  • sprite-{timestamp}.gif — Animated GIF with transparency
  • sprite-{timestamp}-preview.html — Interactive preview page
  • frames/frame-{N}.png — Individual frame files (optional)

常见问题

5 问
答案由本站依据条目字段整理
精灵图sprite-gen怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_8bb4b4f5/sprite-gen。安装方式为未标注。装完刷新技能列表或重开客户端。

精灵图sprite-gen支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

精灵图sprite-gen权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

精灵图sprite-gen收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

精灵图sprite-gen用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。