#For agents
This is the agent front door of https://format.wildshard.io. Every page on the site is plain Markdown at a stable URL; fetch these instead of the HTML.
- This page:
https://format.wildshard.io/agents/index.md - Index of everything:
https://format.wildshard.io/llms.txt - Everything in one file:
https://format.wildshard.io/llms-full.txt - Skill:
https://format.wildshard.io/agents/skill.md
#Ground truth
The source is the spec. The schemas and the validator in
src/format/ of https://github.com/project-wildshard/shard-format define what a shard file may be; these
docs explain them and can lag. When a doc and the code disagree, the
code wins. Read the code when a field's exact bounds matter.
- Format version: 0.1.0.6 (
SHARDFILE_VERSION,src/format/version.ts). - npm package:
@wildshard/shard-format0.80.0, which ships the schemas, the validator and theshard-formatCLI (shardfileis the same bin). Node 24.18 or newer. - Each reference
.mdstarts with a comment naming its source file and the commit it was built from.
#Which page for which job
| Job | Read |
|---|---|
| Check a built shard | Agent skill |
| Explain a refusal | Validation codes |
Write or fix shard.json | Shard file fields |
| Pick a section, kind or host | Runtime contract |
| Write a Wasm script | Script ABI |
| A named JSON file | Named file families |
cook.json, validation.json | Preparation |
| Music and sound | Audio targets |
| Species rows | Species layers |
| Network protocol | The wire |
| Orientation | What a shard file is, tour, glossary |
#Rules that bite
- Strict JSON. Every object is strict: an unknown key fails. Only plain, bounded JSON: no functions, URLs to code, or callbacks.
- No custom sections. A section,
client/plankind, server host or named file must be on the registered list in the runtime contract. You can't invent one in a shard. - Code is Wasm only. Scripts ship as compiled Wasm blobs, never as
source. A module may import only
ws_readandws_list. - Hashes are names. A blob's file name is the SHA-256 of its bytes,
and
shard.jsonlists its size and costs. Edit a blob and you must rebuild; a hand edit failsfile-mismatch. - Costs are measured, not declared. The validator measures every
cost again; understating one fails
blob-invalid. - Match codes, not messages. Refusal messages may be reworded; codes are stable.
- Rebuild, don't patch. A shard file is a build output. Fix the
shard's source and run
wildshard buildagain (in the shard's repo, with the Wildshard SDK), then validate.
#Install the skill
Save the skill as
.agents/skills/shard-format/SKILL.md (or .claude/skills/…) in the
repo you work in, or fetch it when you need it.