ac-binary-formats
БесплатноБез исполняемых скриптовНе проверенDesigning and reading binary data formats: endianness and byte order as a declared choice, integer encoding from fixed-width to varints, tagged and…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Binary formats
Overview
A binary format is a set of decisions about how values become bytes: which end is first, how wide an integer is, where a field ends, and how a reader three years later knows any of this. Every format makes these decisions explicitly or by accident, and the accidental ones are the ones that cannot be extended later because they were never written down.
This skill covers those decisions as design work: byte order as a declared property of the format rather than of the machine, integer encodings from fixed-width to variable-length, the tagged-versus-positional choice and what it costs in size and evolvability, padding and alignment, integrity checks and magic numbers, and how to version a layout after it ships. Text encoding is a separate skill; generated clients are a separate skill.
Primary sources: https://protobuf.dev/programming-guides/encoding/ and https://sqlite.org/fileformat2.html.
When to use
- When designing a file format or wire layout from scratch.
- When reading an unfamiliar binary format without documentation.
- When a format must evolve without breaking old readers.
- When choosing between a hand-rolled layout and a schema language.
When NOT to use
- For JSON and HTTP resource contracts (use ac-api-design).
- For generating typed code from an existing schema (use ac-code-generation-and-apis).
- For Unicode, normalization, and text handling (use ac-text-encoding).
Subskill Index
| Leaf | Domain segment | Scope (one line) |
|---|---|---|
subskills/endianness-and-byte-order.md |
software-engineering/endianness-and-byte-order |
Big-endian, little-endian, declared once, and swapping bytes across machines. |
subskills/integer-encodings.md |
software-engineering/integer-encodings |
Fixed-width, signed, and variable-length encodings and their trade-offs. |
subskills/tagged-versus-positional.md |
software-engineering/tagged-versus-positional |
Field tags, positional layouts, and what each allows later. |
subskills/padding-and-alignment.md |
software-engineering/padding-and-alignment |
Padding bytes, natural alignment, and formats that forbid them. |
subskills/checksums-and-magic.md |
software-engineering/checksums-and-magic |
Magic numbers, version heads, and checksums that detect the right failure. |
subskills/format-versioning.md |
software-engineering/format-versioning |
Evolving a shipped layout without breaking existing readers. |
subskills/format-record.md |
software-engineering/format-record |
The written format record: layout, decisions, and invariants. |
Status and honest limits
A format's correctness is only as good as its specification: an undocumented layout is a private dialect that dies with its author, and reverse-engineering one is slow and error-prone in ways this skill can outline but not eliminate. The encodings described here are stable; the tooling is not, and nothing here recommends a specific library. A poorly chosen checksum gives false confidence — the design decision is which corruptions it claims to detect, stated honestly in the record.
Установить ac-binary-formats в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ac-binary-formats?
Designing and reading binary data formats: endianness and byte order as a declared choice, integer encoding from fixed-width to varints, tagged and schema-evolvable layouts, alignment padding and struct packing, checksums and magic numbers, versioning a binary layout, and the written format record. It explains how bytes on disk or wire are laid out and read back; it never recommends a serialization library and never promises compactness. Use when asking "endianness", "byte order", "varint", "binary file format", "struct packing", "wire format", "schema evolution", "file format design", "checksum at the end", "magic number", "fixed versus variable length", "alignment padding". Not for API contract design in general (ac-api-design), not for generated code from schemas (ac-code-generation-and-apis), not for text encoding and Unicode (ac-text-encoding).
Как установить скилл ac-binary-formats?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ac-binary-formats запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic