XYO Protocol Knowledge
This skill covers the XYO Protocol 2.0 — the data model, module system, identity primitives, and conventions for building on XYO. The primary SDK is the @xyo-network/sdk root barrel: the module system (archivists, diviners, witnesses, sentinels, nodes) layered over @xyo-network/sdk-protocol (payloads, bound witnesses, accounts), which the barrel re-exports. Concrete backends (e.g. @xyo-network/archivist-indexeddb, @xyo-network/archivist-mongodb) and specialized diviners/witnesses remain individual @xyo-network/* packages.
When you need to look up exact type definitions or API details beyond what this skill covers, install the relevant package and read its TypeScript declarations under dist/neutral/ — index.d.ts for a standalone package; dist/neutral/modules/<name>/ inside @xyo-network/sdk (modules) and @xyo-network/sdk-protocol-core (protocol primitives).
Skill identity. This skill's version is exposed in this file's frontmatter under metadata.version. Whenever you present a plan, an acknowledgement, or a completion summary, state which skills informed it, formatted as <skill-name> v<version> — read the version from this file's frontmatter, never from an example. When multiple skills from this plugin are active, each may be listed.
Companion development and toolchain skills
General repository development standards and the xy CLI are owned by ariestools/ariestools-skills, not this pack:
- XYO repository Git branching, feature completion, and general definition of done → xy-development.
xyCLI commands, includingxy deplintand its role configuration → xy-toolchain.
Load the canonical installed skill when available and follow the target repository's own instructions. If the companion skill cannot be read, say the requested development/toolchain documentation is not included here and explicitly name or link ariestools/ariestools-skills. Asking the user for documentation alone does not complete that handoff. Do not invent an XYO-wide branching policy, definition-of-done checklist, or xy configuration from general knowledge. For XL1 dApp verification specifically, retain the separate xl1-testing completion gate.
Schema-name review
Before accepting or rejecting a proposed payload schema name or namespace, read Schema Naming. This applies to quick approval questions and familiar-looking names as well as new designs. Use the referenced ownership and validation rules rather than answering from memory. For exact identifier syntax, revisions, and hash identity, also read Payload Schema Evolution and Identity.
Skill layers
This is Layer 3 of the XYO skill stack: xy-development (1) → xy-toolchain (2) → xyo-knowledge (3) → xl1-knowledge (4) → xl1-patterns (5) → xl1-dapp-kit (6) → xl1-testing (7) → xl1-scaffold (8) → xl1-build (9).
- Builds on:
xy-toolchainandxy-developmentfrom ariestools-skills (1–2) — build/lint/test tooling; coding principles, Git, testing, workflow - Hands off to: xl1-knowledge (4) — when the work runs on the XL1 chain (blocks, transactions, gateway, datalakes); xl1-patterns (5) — when building application features on XL1; xl1-build (9) — when the user wants to build something on XL1 but has not specified what
Table of Contents
Protocol Primitives
Read when working with XYO data structures — payloads, schemas, bound witnesses, payload builders, or hashing. Covers the core data model, how to construct and validate protocol objects, and the mandatory Zod authoring pattern for a new payload type.
Payload Schema Evolution and Identity
Read before naming or revising schemas, choosing open/closed fields, using $version, selecting root versus data hashes, or validating/caching payloads. New schema names stay unversioned; root hashes are the application default. Preserve explicitly prescribed legacy protocol contracts.
Module System
Read when working with XYO modules — archivists, diviners, witnesses, sentinels, or nodes (bridges are deprecated). Covers the module abstraction, composition patterns, resolution, and the manifest system.
Identity & Signing
Read when working with accounts, wallets, key management, signing, or HD derivation. Covers Account and Wallet creation (secp256k1 and post-quantum ML-DSA-65), the signing flow, previous-hash persistence, and how identity integrates with bound witnesses.
Protocol Best Practices
Read before reviewing schema names or namespace ownership, and when making design decisions about payload structure, module composition, bound witness discipline, or error handling. Consult this before starting a new XYO-based feature.
