unbanished: Skill for Claude Code

.agents/skills/banished-format/SKILL.md

banished-format is a skill for Claude Code, Codex from tanepiper/unbanished. It costs 77 tokens per session (968 once invoked), scanned A, original, Apache-2.0.

A guide for reading Banished's compiled resource files, save-game data, and package entries, then implementing their formats in Rust. It explains how to build parsers, which are programs that turn stored bytes into usable data.

In plain words
What is it for?
Use it to add support for resources such as menus, toolbar items, maps, particles, sounds, and other files that the reimplementation cannot yet read.
Why use it?
It removes the need to repeatedly work out how the game's containers and fields are laid out. Whole-corpus tests help reveal when a parser handles only one example instead of the format generally.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is tanepiper/unbanished's own configuration. It tells Claude Code and Codex how to work on unbanished itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unbanished configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tanepiper/unbanished. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tanepiper/unbanished/main/.agents/skills/banished-format/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tanepiper/unbanished

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for banished-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/tanepiper/unbanished/banished-format/github.svg)](https://agentmods.dev/skills/tanepiper/unbanished/banished-format)
Your own site
<a href="https://agentmods.dev/skills/tanepiper/unbanished/banished-format"><img src="https://agentmods.dev/badge/skills/tanepiper/unbanished/banished-format/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for banished-format

Your own site · 80×15
<a href="https://agentmods.dev/skills/tanepiper/unbanished/banished-format"><img src="https://agentmods.dev/badge/skills/tanepiper/unbanished/banished-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 968 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.00968
Opus 5.5 $0.00031 $0.00387
Sonnet 5.5 $0.00015 $0.00194
Haiku 4.5 $0.00008 $0.00097

Measured 3d ago against content hash 9aa459a5ef6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

banished-format scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/banished-format/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Decode a resource format into crates/formats

Container facts (already solved — don't re-derive)

  • .pkg = LZF-compressed entries; pkg::Archive merges data1, patch1, patch0, data0 (that order).
  • .crs container: blocks 0xaaaaaaaa | size | version | payload | 0xbbbbbbbb. Outer payload: magic 0x5412a91f, typeId = CRC32(UTF-16LE class name), file version, dependency list, then one nested block per class level of Serialize(Stream&) (base class first).
  • String: u32 n|0x80000000 → n 8-bit bytes incl. NUL; else n UTF-16 units incl. NUL.
  • External pointer (ext): bool present + String reference.
  • Non-null InternalBasePtr in saves: flag byte + 12 bytes.
  • References: Path/File.rsc:object (:resource, :toolbar, :music…); entry names in the archive use backslashes and .crs — normalise with replace('\\', "/").

Full details: docs/FINDINGS.md §2–3, tools/crs/crs.py.

Steps

  1. Find the serializer. Get the type id from the file header (or tools/schema/types.json), then the class's Serialize in Runtime/Application decomp (banished-trace). Note each read in order with its type and the version gates (if (version > 1)).
  2. Prototype in Python (fast iteration over the whole corpus): add a @decoder('ClassName') in tools/crs/types/<area>.py using the reader helpers (r.u32() r.i32() r.f32() r.bool() r.string() ext(r) ext_list(r), with r.block(): per class level), then
    python3 -m tools.crs.validate game-data/extracted ClassName
    
    Every file must decode and consume every byte of each block. Leftover bytes = missed field.
  3. Port to Rust in crates/formats/src/<area>.rs (game.rs for gameplay resources, ui.rs for UI): a plain pub struct with documented fields (offset in the runtime object + meaning) and pub fn name(data: &[u8]) -> Result<T>. No external deps. Cite the serializer address in the doc comment.
  4. Corpus test in crates/formats/tests/<name>.rs modelled on toolbar.rs: open the four packages from ../../game-data/original/WinData, return early with a message if missing, select entries by normalised name, parse every one, assert a sane count (names.len() > N) and spot-check a known value.
    cargo test --release -p unbanished-formats --test <name>
    
  5. Optional inspector crates/formats/examples/<name>_info.rs printing {:#?} for a reference (pattern: dialog_info.rs): cargo run -p unbanished-formats --example dialog_info -- game-data/original/WinData "Dialog/Toolbar.rsc:resource".
  6. Document the layout (field table, versions, which type ids) in a docs/ topic file.

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 59 lines · 77 tokens per session scan A 9aa459a5ef6e

Subscribe to this mod's changes

banished-format is a skill published in the GitHub repository tanepiper/unbanished (23 stars, last pushed 22d ago), licensed Apache-2.0. It adds 77 tokens to every session and 968 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

banished-format compared with skills from other repositories

banished-format next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
banished-formattanepiper/unbanishedSkill2322d agoApache-2.0A77Claude Code, Codex
soundclawiamlukethedev/Claw3DSkill2.5k14d agoMITA18Claude Code, Codex
task-manageriamlukethedev/Claw3DSkill2.5k14d agoMITA56Claude Code, Codex
todoiamlukethedev/Claw3DSkill2.5k14d agoMITA12Claude Code, Codex
gamedev-shippingericrisco/rsc-harnessSkill636todayMITA99Claude Code, Codex
self-evolvetettethu/VibeGameSkill38810d agoApache-2.0A50Claude Code, Codex
artist-self-evolvetettethu/VibeGameSkill38810d agoApache-2.0A62Claude Code, Codex