Skip to content

htdt/godogen / skills/asset-gen

asset-gen

Verified

Generate 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.

FileKindSize
SKILL.mdskill md7.4 KB
api.mdmarkdown15.9 KB
motion.mdmarkdown8.4 KB
scripts/asset_gen.pyscript30.7 KB
scripts/find_loop_frame.pyscript4.3 KB
scripts/grid_slice.pyscript1.9 KB
scripts/loop_audio.pyscript4.0 KB
scripts/requirements.txtmanifest67 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()
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall