agentleFS
nick-vasnick-vas/hyperdot/.agents/skills/asset-pipeline/SKILL.md

asset-pipeline

Skill1 starsChanged 3 days agoApache-2.0View on GitHub

Use when bringing art into a Godot game (textures, pixel art, Blender models, fonts, compression, LODs, palettes), when using others' assets and owing them credits or licence notices, or when art looks blurry, smeared or costs too much memory.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use game-automation, game-recon and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rehan-remadeSkill

    game-automation

    Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

    Also in 4 projects that use this

  • rehan-remadeSkill

    game-recon

    Figure out how a specific installed game can be modded, before writing any mod code. Covers where it's installed, the engine and version, managed vs native code, anti-cheat, loaders already present, save and config folders, and the community's modding route. Also whether this machine can run it (a Windows game on macOS or Linux, x64 on ARM). Use when the user asks "can I mod <game>?", "what engine is <game>", "how do people mod <game>", or at the start of any modding task. Produces MODDING_PLAN.md.

    Also in 4 projects that use this

  • SamuelFerfortSkill

    showcase-video

    Make polished motion-design product videos (launch, promo, showcase, teaser, demo reel) entirely in code. Scenes are frame-exact HTML rendered with headless Chromium and ffmpeg, with an original synthesized soundtrack and SFX synced to one timeline. It researches reference launch videos and the real product's UI and brand, then proposes distinct concepts rooted in that product. The user approves one plan (storyboard and assets). After that it produces autonomously in a build → review → fix loop, with an independent reviewer and automated QA, until the video passes. Use it whenever someone asks for a promo, launch, showcase, explainer or motion-design video, an animated demo of their app or SaaS, "un vídeo promocional / de lanzamiento", or to fix or iterate on one of these videos, even if they never say "motion design".

    Also in 4 projects that use this

  • QiuChenlySkill

    reverse-engineering

    专业二进制逆向工程分析技能。使用IDA Pro MCP工具分析二进制文件、反编译代码、识别漏洞、理解程序逻辑。当用户要求分析可执行文件、反汇编、逆向工程、漏洞挖掘、恶意软件分析时使用此技能。

    Also in 4 projects that use this

  • +5 more from rehan-remade

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Commit every .import file (it holds the import settings and the asset's UID).

    line 9
  2. Very specific:

    Keep .aseprite sources out of res://, export PNGs or sheets into the project, and look at each pass with view_sprite.

    line 30
  3. Very specific:

    A reusable preset: Import dock > Preset > Save, or Project Settings > Import Defaults: settings saved there land in project.godot under …

    line 48
  4. Very specific:

    Write it into docs/STYLE.md (the look skill's palette table) with one line on why it fits the game's mood and contrast needs …

    line 102
  5. Very specific:

    Every file that did not start in the project gets an entry in assets.json, with its source and licence, as soon as it is added (format in …

    line 136

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

The asset pipeline in Godot 4

From source file to what the player sees, and where each asset came from. Sources and tests: ${CLAUDE_PLUGIN_ROOT}/docs/art.md. Commit every .import file (it holds the import settings and the asset's UID); never commit .godot/.

1. Textures

compress/modeMemoryDiskUse
0 Losslessfull (4 MB for 1024² RGB)medium2D, UI, pixel art: the 2D default
1 Lossy (WebP)full, same as Losslesssmallbig 2D images where only download size matters
2 VRAM Compressedabout 6 times lesslarge3D textures; never pixel art or UI
4 Basis Universalabout 3 times lesssmallest3D textures shipped to several platforms
  • Mipmaps (mipmaps/generate) cost a third more memory; 3D textures need them, 2D rarely does.
  • "Detect 3D" (detect_3d/compress_to) switches a texture to VRAM compression with mipmaps the first time it is used in 3D, and writes that into its .import for good. In a 2D game, set it to Disabled in the import defaults.
  • VRAM formats: S3TC/BPTC on desktop, ETC2/ASTC on mobile and web; tick rendering/textures/vram_compression/import_etc2_astc before exporting to phones or the web from a desktop.
  • Measure, do not guess: bench reports textureMemoryMB and videoMemoryMB; compare the same scene with each setting.

Pixel art

Drawing it with an agent: init -McpAseprite "C:\Program Files\Aseprite" registers aseprite-mcp (${CLAUDE_PLUGIN_ROOT}/docs/mcp.md). Keep .aseprite sources out of res://, export PNGs or sheets into the project, and look at each pass with view_sprite.

Texture filtering is not an import setting in Godot 4: it is the project's default plus each node's TextureFilter.

[display]
window/size/viewport_width=320
window/size/viewport_height=180
window/stretch/mode="viewport"
window/stretch/scale_mode="integer"
[rendering]
textures/canvas_textures/default_texture_filter=0
2d/snap/snap_2d_transforms_to_pixel=true

default_texture_filter=0 is Nearest. With it, textures stay Lossless with no mipmaps; doctor warns about any that are not, and about stretch settings that make pixels uneven. Snap transforms or vertices to pixels, not both.

A reusable preset. Import dock > Preset > Save, or Project Settings > Import Defaults: settings saved there land in project.godot under [importer_defaults] and apply to files imported afterwards (reimport older ones):

[importer_defaults]
texture={
"compress/mode": 0,
"detect_3d/compress_to": 0,
"mipmaps/generate": false
}

Atlases and draw calls

2D batching joins consecutive items that share a texture: 100 sprites from one texture or one atlas drew in 1 call; 10 textures in draw order took 10 calls, and the same 10 interleaved took 100. So pack related sprites into one sheet (Sprite2D.RegionRect, Hframes/Vframes, or AtlasTexture regions) and keep same-texture sprites together in the tree. Godot's "Texture Atlas" import type misbehaved headless in 4.7.2 (no atlas written, one run hung): pack the sheet in the art tool or the editor and commit it. Check the result with bench: drawCalls before and after.

2. Blender to glTF to Godot

  • glTF 2.0 is the format to use. .glb is one binary file; .gltf with .bin and textures keeps the scene readable as text. Godot can import .blend directly, but only with Blender installed on every machine and CI runner that imports; committing .glb avoids that.
  • Export headless, for a CI step or a script:

    blender -b art/crate.blend --python-expr "import bpy; bpy.ops.export_scene.gltf(filepath='models/prop_crate_large.glb', export_format='GLB', export_apply=True)"

    export_apply applies modifiers but drops shape keys.

  • Names: char_player, char_enemy_grunt, env_tree_oak, prop_crate_large, fx_explosion_small. Prefix by kind, then general to specific, lower case with underscores, so files sort and filter by kind.
  • Name suffixes on objects do work at import (case-insensitive, -, _ or $): -col (mesh plus trimesh collision), -convcol (convex), -colonly (collision only), -navmesh, -occ, -rigid, -noimp; -loop on animation names.
  • Materials: materials/extract=1 with materials/extract_path="res://materials" in the .glb.import writes them as .tres you can edit without the edit being lost on reimport.
  • Reimport keeps references because the UID lives in the .import file: move or rename a model together with its .import, always (or in the editor, which does both).

3. LODs

  • Godot generates LODs for imported meshes by default (meshes/generate_lods=true): a 66,048-triangle sphere imported with 9 levels down to 128 triangles, and drew 2,064 triangles near and 258 far, against 66,048 everywhere with LOD off.
  • Tune per object with GeometryInstance3D.LodBias (0 forces the lowest level) and globally with Viewport.MeshLodThreshold (pixels of error allowed; 0 turns LOD off).
  • Hand-made LOD0, LOD1, LOD2 (or a whole far-away group): sibling meshes with VisibilityRangeBegin and VisibilityRangeEnd set end to end, and VisibilityRangeFadeMode to cross-fade.
  • Measure: bench reports primitives; run it with the camera near and far (-GameArgs '--camera=far').

4. Palettes and fonts

  • Pick one palette before drawing, and keep it small: Lospec (lospec.com) lists thousands, each downloadable as .hex, .gpl or a PNG swatch (https://lospec.com/palette-list/<name>.hex). No licence is stated for palettes; credit the author anyway.
  • Write it into docs/STYLE.md (the look skill's palette table) with one line on why it fits the game's mood and contrast needs (ui-accessibility: text and its background at 4.5:1).
  • Palette bloat: every new colour needs a reason. Ramps of three to five shades per hue cover most sprites.
  • shot checks each screenshot against that table (CIEDE2000; anti-aliased edges and blends of two palette colours pass): shots[].palette.offPalettePercent and colours[] name what is off, and <name>.palette.png shows it in magenta. Gate it in CI with -MaxOffPalettePercent 1; lit 3D shading is off-palette by nature, so gate flat-shaded and UI screens.

Fonts

  • Choose a family drawn for text (several weights, real italics if you use them, the characters your languages need), not a display face, for body, dialogue and menus; a display face is for the logo and title. Two families at most, each with a role (typography).
  • Check before you import: the licence lets you embed it in a game (OFL-1.1 does), it has every mark the text uses (’ “ ” – — … × −, accents; Font.has_char()), and its digits are equal-width, or it offers tabular figures for the HUD. Record it in assets.json like any other asset (below), with its licence file.
  • Compare by eye at the target size: the same pixel size is not the same apparent size in two fonts. shot a specimen scene (body paragraph, HUD numbers, a label in capitals, the longest translation) in each candidate.
  • Import settings (antialiasing, hinting, subpixel positioning, MSDF for scaled or world-space text, fixed size for bitmap fonts) and the measured line-spacing and tracking numbers: typography and its godot.md. Pixel fonts at whole multiples.

5. Free libraries, and where each asset came from

LibraryLicenceIn assets.json
Kenney (kenney.nl): UI, prototype kits, input prompt glyphsCC0, no credit neededCC0-1.0
GodotShaders (godotshaders.com)per shader: CC0, MIT or GPL v3 (at the bottom of the post)CC0-1.0, MIT, GPL-3.0-only
OpenGameArtper asset: CC0, CC-BY, CC-BY-SA, OGA-BY, GPLas listed (OGA-BY: OGA-BY-3.0)
Freesoundper sound: CC0, CC-BY, CC-BY-NCas listed; never BY-NC in a game you sell
jsfxr (sfxr.me)Unlicense; the sounds you make are yoursown
Sonniss GDC bundlesthe bundle's own royalty-free licence (read its License.pdf)LicenseRef-Sonniss-GDC
Quaternius (quaternius.com)its own Quaternius Asset License v1.0 since 2026-08-28: free in commercial games, no credit, no reselling the assets as assets; older downloads may be CC0, check the fileLicenseRef-Quaternius-QAL-1.0 (CC0-1.0 only for a CC0 download)
Poly Haven (polyhaven.com): HDRIs, textures, modelsCC0CC0-1.0
game-icons.netCC BY 3.0: credit the author in the gameCC-BY-3.0

Every file that did not start in the project gets an entry in assets.json, with its source and licence, as soon as it is added (format in docs/reference.md). doctor warns about files without one, non-commercial and GPL licences, and counts the credits owed; build the credits screen from the same file (section 6). Work made for the game by a contractor or a co-founder is "source": "commissioned" with agreement, rights (assigned or licensed) and, if licensed, uses (legal). A stand-in is an entry with "placeholder": true and a "due" date (yyyy-MM-dd): doctor and status count them, and doctor fails once one is past due. Platform button glyphs are CC0 as drawings but remain the platform holders' trademarks.

6. Credits and licence notices

Credits are generated from assets.json, never typed by hand, so they stay complete as assets change. Licence rules here come from the licence texts themselves; not legal advice. Sources: ${CLAUDE_PLUGIN_ROOT}/docs/store-and-legal.md.

pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 credits -Json -Quiet   # CREDITS.md, credits.json, THIRD-PARTY-NOTICES.txt in the project
{ "assets": [
  { "path": "art/knight.png", "title": "Knight Sprite", "author": "Jane Doe",
    "source": "https://opengameart.org/content/knight", "licence": "CC-BY-4.0", "modified": "recoloured" },
  { "path": "addons/tween_kit/**", "title": "Tween Kit", "author": "Sam Roe", "copyright": "2021 Sam Roe",
    "source": "https://github.com/example/tween-kit", "licence": "MIT" },
  { "path": "fonts/sample_sans.ttf", "title": "Sample Sans", "author": "The Sample Sans Project Authors",
    "source": "https://example.org/sample-sans", "licence": "OFL-1.1", "licenceFile": "fonts/OFL.txt" },
  { "path": "art/player/**", "source": "own", "licence": "own" } ] }
LicenceShown to playersShipped with the game
CC0, Unlicense, 0BSDnothing (a thank-you is kind)nothing
CC BY, CC BY-SA, OGA-BYtitle, author, source and licence (TASL), and "modified" if changed; CC BY 3.0 and OGA-BY need the titlenothing more
MIT, ISC, BSDnothing requiredthe copyright line and the licence text
Apache-2.0nothing requiredthe licence text, and the upstream NOTICE file's attributions
OFL-1.1 (fonts)nothing requiredthe copyright line and the licence text
MPL-2.0 (gdext, Rust bindings)nothing requiredthe licence text and where the source of those files is; your changes to them are MPL-2.0 too
CC BY-NC, GPL familyrefused by credits
  • A credit is not a notice: an MIT library needs its licence text shipped, even if it is also thanked on screen; a CC BY image needs a visible credit, not just a line in a file nobody opens.
  • credits fails (credits-invalid, the files are still written) for a credit without an author or a URL source, an MIT/BSD/ISC/OFL/Apache entry without its copyright line or licenceFile, an MPL-2.0 entry whose source is not the URL of its source code, and non-commercial or copyleft licences; it warns for a CC BY 3.0 credit without a title, an Apache entry without its noticeFile and a modified MPL-2.0 entry.
  • It writes CREDITS.md (required credits, then thanks, then the engine); credits.json, sections with translation-key headings (CREDITS_THIRD_PARTY, CREDITS_THANKS, CREDITS_ENGINE) and one line per work, for the credits screen; and THIRD-PARTY-NOTICES.txt: every notice, plus Godot's MIT text and its third-party components with their licence texts (read from the engine: Engine.GetLicenseText, GetCopyrightInfo, GetLicenseInfo; FreeType's licence asks binary releases to say they are based in part on the FreeType Team's work), and for C# games the .NET runtime's notices, which a C# export does not ship by itself. export copies it next to the executable.
  • The Godot logo in the default boot splash is itself CC-BY-4.0; the engine notices cover it.

The credits screen:

  • Reachable from the main menu at any time, never locked behind finishing the game (IGDA Game Crediting Guide 10.1); scrolling credits can be paused (WCAG 2.2.2, ui-accessibility).
  • The team first (by discipline, leads before teams, names as people want them), then third-party assets from credits.json, then "Made with Godot Engine", then a Licences screen showing THIRD-PARTY-NOTICES.txt.
  • Headings translated, names never (localization).
  • Load the file at run time with FileAccess (res://credits.json is a JSON file and ships as is).

7. Prove it

  • doctor reports no asset without an entry and no pixel art import that blurs; credits passes
  • bench before and after an atlas (drawCalls), a compression change (textureMemoryMB) and LODs (primitives)
  • shot at the game's resolutions, with pixel art crisp at integer scale (look)
  • a new character or prop is in the game's lineup scene and the golden set still matches it (look section 2)
  • a moved or renamed model still opens in every scene that uses it
  • the credits screen opens from the main menu and shows every required credit
  • THIRD-PARTY-NOTICES.txt is next to the executable in every export (and on the store's legal page if it has one)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.