/schema:schemafrom schema
Helps write and edit .schema files and generate serialization code for game data (packets, messages, save games, config) across many languages.
Ships in schema. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Schema is the data language for games. .schema files declare constants,
enums, flags, types, unions and tables; schema generate writes the
serialization code for each language from them.
Before writing or changing a .schema file, read the guide for AI assistants:
https://github.com/mas-bandwidth/schema/blob/main/docs/AI.md
It has the whole language on one page, the commands, how each generated language is called, the rules that trip newcomers, and how to change a schema without breaking stored data. The normative answers are in docs/SPEC.md and docs/SPEC-TABLES.md.
.schema files are the source of truth. Never edit generated files;
change the schema and generate again..schema files sharing one package name.type is the packet wire: any edit moves the protocol id, so both ends ship
together. Data that another build must read goes in a table.fixed table is append-only. Retire a field with | deprecated.| was = "old_name".flags variants at the end only.Run after every change, replacing <dir> with the unit's directory:
schema fmt <dir>
schema check <dir>
schema generate --lang <lang> --out <out> <dir>
schema fmt writes the canonical style. It is the only command that writes
a .schema file.schema check prints nothing on success. On failure it prints one
diagnostic per line, each saying what the input wants: do what it says and
run it again.schema generate once for each language the project uses. --lang takes
c, cpp, cs, dart, elixir, go, goose, java, js, lobster,
lua, luau, python, ruby, rust, squirrel or unity; moo needs
a compiler built with -tags schema_leg_moo.Before changing a type, run schema id <dir>; if the id moves, every peer
must be redeployed together. Before changing a table that stored data depends
on, read the "Changing a schema without breaking old data" section of the
guide.
schema help ai prints a short version of these rules to paste into a
project's AGENTS.md or CLAUDE.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mas-bandwidth/schema --plugin schemaOther plugins' skills for the same job