Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Make scenario building/Data-stores
Reference · Make scenario building

Data-stores

Part of Make scenario building. Install the skill and your agent reads this page when it needs the depth.

Data stores and data structures

A scenario forgets everything between runs. A data store is the memory: a small keyed table the built-in Data store modules read and write. A data structure is a named field schema: it shapes a store's records, or types a webhook's payload so later modules can map named fields.

Default to none. Need one only when a run must know what an earlier run did (seen this email already? running total?) or several scenarios share a lookup table. A one-off transform needs neither.

Order of operations

Dependencies run structure → store → scenario, so create in that order.

A new scenario gets its own new store. A store another scenario writes to is that scenario's state: sharing it mixes records, breaks both dedup keys, and a later cleanup deletes data the other scenario needs. Reuse an existing store only when the user names it or explicitly asks to share one (a shared lookup, below). A store that merely looks similar by name or fields is not a match — the data_store_list check the tool descriptions suggest is for finding the store the user named and avoiding a duplicate name, not for picking one yourself.

  1. data_structure_create, preferably from a real sample payload rather than a hand-written spec. Skip entirely for a store whose records need no fixed shape. Reuse a structure only when it belongs to the store the user asked to share.
  2. data_store_create with the structure's id, a name that ties it to this scenario, and a modest maxSizeMB.
  3. app_find for the operation ("add a record to a data store", "check if a record exists") → take the Data store module names from the result, never guess them → module_spec(schemas: true).
  4. Put the store's id in the module's datastore parameter, in the same scenario_create/scenario_patch call as the rest of the design.

State the store and structure names you picked or created before the scenario write that uses them.

Patterns

Changing or removing

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.