---
title: "Durable Streams - State Schema - Air Market"
description: "Before data starts moving around, it helps to write down what shape it is meant to be. This is where you define those types, pick which validation library checks them, and build the change events tha…"
canonical: "https://airmarket.ai/app/state-schema"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Durable Streams - State Schema

Skill by [Durable Streams](/@durable-streams)

# Durable Streams - State Schema

Say what your data looks like before anything starts writing it

## What this does

Before data starts moving around, it helps to write down what shape it is meant to be. This is where you define those types, pick which validation library checks them, and build the change events that describe what happened. Reach for it when you are setting up entity types or deciding how they should be validated.

### Top 3 things it does for you

- Define the types for your entities
- Choose a validator for your schema
- Create typed change events for inserts, updates, and deletes

## Information

**Durable Streams - State Schema at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [Durable Streams](/@durable-streams) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 7 KB |
| Licence | MIT |
| Repository | [durable-streams/durable-streams](https://github.com/durable-streams/durable-streams/tree/8d7852494c30a315f618253e9bce1e846b5c5937/packages/state/skills/state-schema) |
| GitHub stars | 1,666 (as of Nov 2026) |
| Installs | 2, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Durable Streams - State Schema and flagged nothing. AIR's verdict: **safe**.

**What Durable Streams - State Schema's check was run against**

|  |  |
| --- | --- |
| Commit | 8d7852494c30a315f618253e9bce1e846b5c5937 |
| Content hash | e6ef4ef09e86598c3bf81557e7c74a8af5b4d1b263039194e94d3a0e5e5f9ec0 |
| Files read | [Browse the files at this exact commit](https://github.com/durable-streams/durable-streams/blob/8d7852494c30a315f618253e9bce1e846b5c5937/packages/state/skills/state-schema/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Durable Streams - State Schema](/security/state-schema)

## About Durable Streams - State Schema

This is about defining typed state schemas. You create a schema with collection definitions, each carrying its own shape, type, and primary key, and validate it with a Standard Schema validator such as Zod, Valibot, or ArkType.

It also covers the pieces around the schema: helpers for insert, update, delete, and upsert events, the change and control event types, the State Protocol operations, and transaction IDs for confirming a write. Load it when defining entity types, choosing a schema validator, or creating typed change events.

## What's inside

- SKILL.md - instructions

## Questions

### Is Durable Streams - State Schema safe to install?

AIR scanned this exact version of Durable Streams - State Schema and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 8d7852494c30, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/state-schema.

### How do I install Durable Streams - State Schema?

Open https://airmarket.ai/app/state-schema on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/durable-streams/durable-streams/tree/8d7852494c30a315f618253e9bce1e846b5c5937/packages/state/skills/state-schema. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by Durable Streams](/@durable-streams)

---

Canonical URL: <https://airmarket.ai/app/state-schema>
