storage-contract-designer
Skill8 starsChanged 14 days agoMITView on GitHub
Design memory, database, file, object-store, or cache contracts inside Contract.
In this repository22 other files it gives its agents.
- development/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- backbone-designerSkill
- contract-designerSkill
- control-flow-designerSkill
- deployment-designerSkill
- gui-designerSkill
- module-designerSkill
- stack-designerSkill
- use-case-designerSkill
- tandemSkill
- backbone-designerSkill
- contract-designerSkill
- control-flow-designerSkill
- deployment-designerSkill
- gui-designerSkill
- module-designerSkill
- stack-designerSkill
- storage-contract-designerSkill
- use-case-designerSkill
- brainstorm-whiteboardSkill
- tandemSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this method when consequential state is retained in memory, a database, a file, an object store, or a cache.
- Distinctive: line 43
Use familiar domain names and plain-language field descriptions.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Storage Contract Designer
Use this method when consequential state is retained in memory, a database, a file, an object
store, or a cache. Omit it for genuinely stateless work. This method contributes
contract.storageContracts; it never creates a Data tab or an aspects entry.
For each independently owned store emit exactly:
storageContract
├─ id
├─ name
├─ medium: memory | database | file | object-store | cache
├─ ownerParticipantId
├─ purpose
├─ records[]
│ ├─ id
│ ├─ name
│ ├─ description
│ ├─ fields[]: { id, name, type, required, description }
│ ├─ keys[]: { id, kind, fieldIds, purpose }
│ └─ constraints[]: { id, statement }
├─ relations[]: { id, fromRecordId, toRecordId, kind, statement }
├─ guarantees[]: { id, statement }
└─ lifecycleRules[]: { id, statement }kind for keys is primary, unique, or index; relation kind is one-to-one,
one-to-many, or many-to-many. Use stable lowercase kebab-case IDs. Reference an existing
Contract participant as the owner. Include only fields, keys, constraints, and relationships that
define the storage agreement or expose a consequential design assumption.
The contract must state what acknowledged storage operations guarantee and when records are created, changed, expired, or deleted. Do not describe storage as a generic architecture summary: make its persisted shape and semantics reviewable.
Use familiar domain names and plain-language field descriptions. Explain keys, relationships, retention, and durability in terms of what information the product remembers and what the user can expect, rather than assuming database knowledge.
Return Attention about storage guarantees or persisted semantics to contract-designer for
embedding on the relevant Contract entity. Return persistence-engine Attention such as JSON
versus SQLite to stack-designer for embedding on the relevant System layer. Do not emit the same
question in both places.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

