htdt/godogen / skills/asset-gen
asset-gen
VerifiedGenerate assets for a game, a video or any other project: images, transparent sprites and animated GIF sprites (GPT-Image-2.6, batched at half price), textured GLB models, rigged humanoids with generated moves and lip-synced speech, sound effects and voice lines (local and free with godogen_assets), 3D built in Blender, plus Grok sprite video, Tripo 3D, Gemini TTS voice acting and Lyria music. Use whenever a project needs generated art, 3D or audio.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.4 KB |
| api.md | markdown | 15.9 KB |
| motion.md | markdown | 8.4 KB |
| scripts/asset_gen.py | script | 30.7 KB |
| scripts/find_loop_frame.py | script | 4.3 KB |
| scripts/grid_slice.py | script | 1.9 KB |
| scripts/loop_audio.py | script | 4.0 KB |
| scripts/requirements.txt | manifest | 67 B |
scripts/grid_slice.py
View on GitHub#!/usr/bin/env python3
"""Slice a grid image into individual PNGs.
Usage:
python3 grid_slice.py <input> -o <output_dir> [--grid 2x2] [--names "sword,shield,potion,helm"]
Output: individual PNGs saved to output_dir, named 01.png..N.png or by --names.
"""
import argparse
import json
from pathlib import Path
from PIL import Image
def slice_grid(src: Path, output_dir: Path, cols: int, rows: int, names: list[str] | None):
img = Image.open(src).convert("RGBA")
w, h = img.size
cell_w, cell_h = w // cols, h // rows
output_dir.mkdir(parents=True, exist_ok=True)
total = cols * rows
if names and len(names) != total:
print(json.dumps({"ok": False, "error": f"--names has {len(names)} entries, grid is {total} cells"}))
return
paths = []
for i in range(total):
row, col = divmod(i, cols)
x0, y0 = col * cell_w, row * cell_h
cell = img.crop((x0, y0, x0 + cell_w, y0 + cell_h))
name = names[i] if names else f"{i + 1:02d}"
path = output_dir / f"{name}.png"
cell.save(path)
paths.append(str(path))
print(json.dumps({"ok": True, "cells": total, "cell_size": f"{cell_w}x{cell_h}", "paths": paths}))
def main():
p = argparse.ArgumentParser(description="Slice grid image into individual PNGs")
p.add_argument("input", help="Input grid image")
p.add_argument("-o", "--output", required=True, help="Output directory")
p.add_argument("--grid", default="2x2", help="Grid layout, e.g. 2x2, 3x3, 2x4 (ColsxRows). Default: 2x2")
p.add_argument("--names", default=None, help="Comma-separated names (without .png). Default: 01, 02, ...")
args = p.parse_args()
cols, rows = (int(x) for x in args.grid.lower().split("x"))
names = [n.strip() for n in args.names.split(",")] if args.names else None
slice_grid(Path(args.input), Path(args.output), cols, rows, names)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |