sprite-pipeline

oleh openai

Hasilkan dan normalisasi animasi sprite 2D. Gunakan saat pengguna meminta pembuatan strip penuh dari bingkai sumber yang disetujui, jangkar dan skala yang konsisten…

npx skills add https://github.com/openai/plugins --skill sprite-pipeline

Sprite Pipeline

Overview

Use this skill for 2D sprite generation and normalization. This workflow is intentionally anchored around one approved frame and a whole-strip generation pass because frame-by-frame generation drifts too easily.

This skill is 2D-specific. If the request is for 3D characters, meshes, or materials, route back through ../game-studio/SKILL.md.

Core Workflow

  1. Start from an approved in-game seed frame.
    • The seed frame should already reflect the right silhouette, palette, costume, and proportions.
  2. Build a larger transparent reference canvas around that frame.
    • Use ../../scripts/build_sprite_edit_canvas.py.
  3. Ask for the full animation strip in one edit request.
    • Do not generate each frame independently unless the user explicitly accepts lower consistency.
  4. Normalize the result into fixed-size game frames.
    • Use ../../scripts/normalize_sprite_strip.py.
    • Use one shared scale across the whole strip.
    • Align frames with one shared anchor, typically bottom-center.
  5. Optionally lock frame 01 back to the shipped seed frame.
    • Do this when the animation should begin from the exact idle or base pose already in game.
  6. Render a preview sheet and inspect the animation in-engine before approving it.
    • Use ../../scripts/render_sprite_preview_sheet.py.

Prompting Rules

Always preserve these invariants in the prompt:

  • same character
  • same facing direction
  • same palette family
  • same silhouette family
  • same readable face or key features
  • same outfit proportions
  • transparent background
  • exact frame count and slot layout

Always ask for:

  • one strip at once
  • a transparent canvas
  • no scenery, labels, or poster composition
  • crisp pixel-art clusters for pixel work
  • production asset tone, not concept art

Using Image Generation

For live asset generation or edits, use the installed imagegen skill in this workspace. This skill defines the game-specific process; imagegen handles the API-backed generation or edit execution.

Script Recipes

Create a reference canvas:

python3 scripts/build_sprite_edit_canvas.py \
  --seed output/sprites/idle-01.png \
  --out output/sprites/hurt-edit-canvas.png \
  --frames 4 \
  --slot-size 256 \
  --canvas-size 1024

Normalize a raw strip:

python3 scripts/normalize_sprite_strip.py \
  --input output/sprites/hurt-raw.png \
  --out-dir output/sprites/hurt \
  --frames 4 \
  --frame-size 64 \
  --anchor output/sprites/idle-01.png \
  --lock-frame1

Render a preview sheet:

python3 scripts/render_sprite_preview_sheet.py \
  --frames-dir output/sprites/hurt \
  --out output/sprites/hurt-preview.png \
  --columns 4

Quality Gates

  • proportions stay stable across frames
  • frame-to-frame size does not drift
  • action reads clearly at game scale
  • transparency is preserved
  • frame 01 matches the shipped sprite when lockback is enabled
  • preview looks correct before any in-engine asset index update

References

  • Detailed workflow: ../../references/sprite-pipeline.md
  • Shared frontend context: ../game-ui-frontend/SKILL.md

Lebih banyak skill dari openai

user-context
openai
Memuat atau mengelola preferensi perutean sumber daya tahan lama, logika orientasi, kemajuan pengaturan, dan registri lapisan semantik dari plugin Data Analytics.
official
notion-research-documentation
openai
Teliti konten Notion dan sintesis menjadi ringkasan terstruktur, laporan, atau perbandingan dengan kutipan. Cari dan ambil halaman Notion menggunakan kueri yang ditargetkan, lalu atur temuan berdasarkan tema dengan kutipan sumber sebaris dan bagian referensi. Pilih dari empat format keluaran (ringkasan cepat, ringkasan riset, perbandingan, laporan komprehensif) berdasarkan cakupan dan tujuan pengguna. Buat dan perbarui halaman Notion menggunakan templat bawaan; tautkan sumber secara langsung dan lacak perubahan saat informasi baru tiba...
official
rcsb-pdb-skill
openai
Kirim permintaan RCSB PDB yang ringkas untuk metadata inti, kueri API Pencarian, dan unduhan FASTA. Gunakan saat pengguna menginginkan ringkasan RCSB yang singkat; simpan JSON mentah atau…
official
pdf
openai
Pembacaan, pembuatan, dan validasi PDF dengan rendering visual dan pembuatan secara terprogram. Render halaman PDF ke PNG untuk inspeksi visual tata letak, spasi, dan tipografi sebelum pengiriman menggunakan Poppler (pdftoppm). Buat PDF secara terprogram dengan reportlab untuk pemformatan yang andal; ekstrak teks dan metadata dengan pdfplumber atau pypdf. Terapkan standar kualitas: tidak ada teks terpotong, elemen tumpang tindih, tabel rusak, atau artefak rendering; hanya tanda hubung ASCII, kutipan yang dapat dibaca manusia. Gunakan...
official
test-coverage-improver
openai
Improve test coverage in the OpenAI Agents JS monorepo: run `pnpm test:coverage`, inspect coverage artifacts, identify low-coverage files and branches, propose…
official
playwright
openai
Otomasi peramban berbasis terminal dengan snapshot elemen dan alur kerja UI interaktif. Beroperasi melalui skrip wrapper playwright-cli (memerlukan npx); mendukung mode headless dan headed untuk debugging visual. Alur kerja inti: buka halaman, ambil snapshot untuk referensi elemen stabil, berinteraksi menggunakan ref, ambil snapshot ulang setelah navigasi atau perubahan DOM. Termasuk pengisian formulir, klik, pengetikan, manajemen multi-tab, tangkapan layar/PDF, dan perekaman jejak untuk debugging alur. Referensi elemen (misalnya e3, e15)...
official
ukb-topmed-phewas-skill
openai
Ambil ringkasan PheWAS UKB-TOPMed yang ringkas untuk varian tunggal dengan menerima masukan rsID, GRCh37, atau GRCh38 dan menyelesaikannya ke kueri GRCh38 yang diperlukan. Gunakan ketika...
official
code-review-context
openai
Konteks yang terlihat oleh model
official