Skip to content
Back to skills

Gum Bundle

ASecurity

The .gumpkg bundle (format, gumcli pack, raw textures, loading). Triggers: gumpkg, GumBundleWriter, GumBundleLoader, GumProjectDependencyWalker, GumRawTexture, gumcli pack, packing a new file type.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
design

Works with

  • cli

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add vchelaru/Gum --skill gum-bundle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gum Bundle?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gum Bundle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vchelaru-gum-bundle/badge)](https://www.skillsdirectory.com/skills/vchelaru-gum-bundle)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gum-bundle
description: The .gumpkg bundle (format, gumcli pack, raw textures, loading). Triggers: gumpkg, GumBundleWriter, GumBundleLoader, GumProjectDependencyWalker, GumRawTexture, gumcli pack, packing a new file type.
---

# .gumpkg Bundles

A `.gumpkg` is one file holding a project's loose files. Code lives in `GumCommon/Bundle/`; `gumcli pack` is `Tools/Gum.Cli/Commands/PackCommand.cs`. See [gum-cli](../gum-cli/SKILL.md) for the command.

## Shape

- Header is the 4 bytes `GUMP` plus a version byte (`GumBundleFormat`). Version 2 is a zip with one Deflate entry per file; version 1 (brotli tar) is still read.
- Each entry is keyed by the file's original project-relative path, so references in the project resolve unchanged.

## Pack flow

1. `GumProjectDependencyWalker.Walk` lists every file the project references (Core, FontCache, External). It is the one place that decides what a project depends on, so a new file type must be recognized there first.
2. `PackCommand` rewrites PNG entries: it decodes them with StbImageSharp and stores raw RGBA (`GumRawTexture`, optionally premultiplied with `--premultiplied-alpha`) under the same path. A runtime tells a raw texture from a PNG by `GumRawTexture.IsRawTexture`, so the texture upload skips decoding.
3. `GumBundleLoader` picks bundle or loose mode from the project's extension (`.gumpkg` versus `.gumx`/`.gumj`). Bundle entries reach the runtime through `FileManager`'s host stream hook, which wins over loose files.

## Landmines

- A new source file type needs three changes: the walker (to list it), `PackCommand` (to convert it), and each runtime's content loader (`RenderingLibrary/Content/ContentLoader.cs`, plus the Skia and Raylib loaders that have their own). Missing any one makes the packed project fail only at runtime.
- Entries are keyed by original path, so one file used as two different things would need two entries under one key. The format has no way to do that today.
- The walker already opens `.achx`/`.achj` files (`AnimationChainListSave.FromFile`) to list their frame textures, resolved the way the runtime resolves them. A chain's frame textures are packed along with it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.