SkillsReviewed · wshobson

Event Store Design

Event Store Design is an AI assistant skill for developers building event-sourced backends, but its implementation templates need correctness fixes before production use. It combines design guidance with PostgreSQL schemas and Python examples for PostgreSQL, EventStoreDB and DynamoDB.

Researched 16 Nov 2026

In short.

Event Store Design is an AI assistant skill for backend developers planning event storage, but its templates leave important concurrency and delivery guarantees incomplete. The main file explains event streams, ordering, version checks and backend choices; its reference file supplies SQL and Python examples. These provide useful starting material for learning and architecture discussions. The DynamoDB example claims conditional concurrency without implementing conditional writes, while the PostgreSQL subscription design risks skipping events that commit late. Dependency versions, operating costs and runtime compatibility are unknown, and no code was executed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is plugins/backend-development/skills/event-store-design at revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d, containing SKILL.md and references/details.md. The repository-root LICENSE is included as a related notice outside that folder. The supplied manifest identifies complete selected-scope coverage and content checksum c75d613d4ad3c9ab3e3174907b8427836adafcb6d640d7a1a43f515fdc825d02. Other repository skills, plugin integration files and external database or SDK documentation are outside this evidence. No installation or code execution occurred; runtime behavior, compatibility, performance and production readiness remain UNVERIFIED.

The overview

Identity

event-store-design is a SKILL.md-based instruction resource under the backend-development plugin directory in wshobson/agents. Its companion references/details.md contains the implementation templates. The resource guides event-store design; it does not itself provide a running database service.

Event sourcing stores a history of changes as events so application state can be reconstructed from that history. This skill focuses on persisting and retrieving those events. Original source folder: [https://github.com/wshobson/agents/tree/main/plugins/backend-development/skills/event-store-design].

Assessment

Useful for developing an initial event-store design and understanding how streams, event versions and consumers fit together. The concrete schemas make the design easier to inspect, and the backend comparison gives readers a short list of technologies to investigate.

The examples need substantial engineering review before operational use. Several properties listed as requirements, including safe duplicate handling and reliable global ordering, are not fully implemented. The resource is best approached as instructional scaffolding with visible correctness gaps.

Users

The strongest fit is backend developers and architects choosing an event-storage approach, especially teams already using PostgreSQL, Python or AWS. Developers building assistant-guided workflows can use the skill to introduce event-store concepts and implementation patterns.

Beginners can use the overview to learn the vocabulary, but adapting the examples requires knowledge of SQL, transactions, Python and asynchronous programming. Experienced developers should expect to supply concurrency controls, recovery behavior and operational configuration.

Capabilities

Explains append-only storage, per-stream and global ordering, optimistic concurrency, subscriptions and idempotency. It recommends aggregate-prefixed stream identifiers, correlation and causation metadata, event schema versioning and indexes suited to query patterns.

Provides PostgreSQL events, snapshots and subscription-checkpoint schemas; Python append and read methods; a polling subscriber; EventStoreDB append, read, subscription and category examples; and a DynamoDB write/read sketch. Snapshot persistence has a table definition but no save, load or replay implementation.

Using it

Requirements

For assistant use, a host must be able to consume the Markdown instructions and their referenced file. Supported hosts, activation procedures and host versions are not specified.

The PostgreSQL implementation requires Python, asyncpg, a configured connection pool and a PostgreSQL database supporting the shown JSONB, UUID and sequence features. The other examples require esdbclient with EventStoreDB, or boto3 with a DynamoDB table using the illustrated keys. Database and package versions, credentials configuration and deployment requirements are unspecified.

Mechanism

Events are grouped into streams representing application entities such as orders. The PostgreSQL implementation checks an optional expected version, calculates the next stream version and inserts events within a transaction. A unique constraint on stream_id and version rejects conflicting inserts.

The preliminary version read does not serialize competing writers. Two writers can pass that check, leaving the unique constraint to reject a collision; the code does not translate that database error into its custom ConcurrencyError.

The subscriber polls global positions, calls a handler for each event and saves a checkpoint after the batch. Handler side effects and checkpoint persistence are separate operations, so interrupted processing can cause repeated delivery.

Setup

Keep SKILL.md with references/details.md so the detailed templates remain available when the main instructions refer to them. The supplied files do not include host-specific installation commands.

To adapt the PostgreSQL example, create the supplied tables, configure an asyncpg pool and provide application startup and handler code. The subscriber references asyncio.sleep without importing asyncio, which needs correction. The EventStoreDB example connects to localhost with TLS disabled; production connection and authentication configuration are not supplied.

Example

An illustrative order application could use a stream named Order-{uuid} and append an OrderCreated event with correlation metadata. In the PostgreSQL template, an initial append can pass expected_version=0; later appends pass the last known version to detect a conflicting update. A consumer could use those events to maintain an order-status view.

Version conventions differ across the examples. The PostgreSQL code treats an empty stream as version 0 and starts stored versions at 1. The EventStoreDB wrapper maps expected_revision=-1 to NO_STREAM, while an omitted revision uses ANY. These conventions need explicit handling when adapting the examples. No executed order application or resulting output is supplied.

Assessment & evidence

Limitations

The DynamoDB append method describes conditional concurrency but uses batch.put_item without a condition or transaction. It calculates version keys from the caller's expected_version without checking stored state. The shown code therefore does not enforce the promised concurrency or append-only guarantees and can target an existing event key. Its read method also contains no pagination loop.

The PostgreSQL global cursor has a potential late-commit gap. BIGSERIAL allocation does not establish transaction commit order: a lower position can remain uncommitted while a higher one becomes visible. A subscriber that checkpoints the higher position can subsequently skip the lower event because read_all only requests greater positions. This is a correctness risk inferred from the code.

Event IDs have a PostgreSQL primary-key constraint, but successful duplicate-retry handling is not implemented. The schema also does not itself prohibit updates or deletes. The EventStoreDB example's SDK compatibility, recovery behavior and performance remain unverified.

Reasoning

The resource makes abstract event-store requirements concrete through tables, constraints and short methods. That helps readers connect concepts such as optimistic concurrency and checkpoints to implementation decisions.

Its suitability depends on the intended outcome. It supports learning, backend comparison and an initial design discussion. Reliable event persistence requires additional work because some stated guarantees exceed the safeguards present in the examples, especially for concurrent writes and subscription progress.

Alternatives

The guide positions EventStoreDB for dedicated event sourcing, PostgreSQL for an existing Postgres stack, Kafka for high-throughput streaming, DynamoDB for AWS-oriented deployments and Marten for .NET. It describes trade-offs including manual PostgreSQL implementation, Kafka's fit for per-stream queries and DynamoDB query limitations.

These are brief source descriptions, with no measured comparison or current pricing. Templates cover PostgreSQL, EventStoreDB and DynamoDB; Kafka and Marten have no implementation examples in the selected files. The evidence does not establish which option is best for a particular workload.

Evidence

The evidence consists of the skill instructions, their referenced template collection and the repository MIT notice. The instruction file establishes intended uses and design recommendations: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/backend-development/skills/event-store-design/SKILL.md].

The detailed reference supplies the SQL and Python underlying the implementation findings: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/backend-development/skills/event-store-design/references/details.md]. The licence notice is available at [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/LICENSE].

No code was executed. The supplied files contain no runtime results, benchmarks or production deployment evidence. Correctness concerns described here are based on the source text.

Access & freshness

Costs

The files provide no purchase price, subscription fee, provider rate or operating-cost estimate. The DynamoDB notes mention on-demand and provisioned capacity without prices or workload assumptions.

Database hosting, storage, DynamoDB usage and any assistant-service charges depend on the chosen deployment and are unknown from this evidence. MIT reuse permission does not establish the total cost of operating an implementation.

Rights

The captured repository LICENSE is MIT, with copyright attributed to Seth Hobson in 2024. It permits use, copying, modification, distribution, sublicensing and sale of the software and associated documentation, subject to retaining the copyright and permission notices in copies or substantial portions.

The material is supplied without warranty. This notice does not establish the separate licensing or service terms of PostgreSQL, EventStoreDB, DynamoDB or their dependencies.

Freshness

The supplied snapshot was captured on 16 November 2026 at 12:34:31 UTC from source revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d. These findings apply to that revision.

The evidence does not establish when the skill was last substantively updated, whether later revisions fix the identified gaps or which current database and SDK versions match the examples. The original main-branch folder address can change independently of this pinned snapshot.

Actions

Read both skill files, choose a backend against the application's stream-query and delivery requirements, and confirm the chosen database and SDK documentation. Establish dependency versions and operating costs before committing to an implementation.

For PostgreSQL, correct the missing asyncio import, define conflict and duplicate-retry behavior, and redesign or validate checkpointing against late commits. For DynamoDB, implement conditional or transactional protection and paginated reads.

Before operational use, verify competing appends, duplicate requests, consumer interruption and restart, complete stream reads and event ordering. Installation, runtime compatibility, recovery and production suitability remain UNVERIFIED.

Evidence for this report

LICENSEnotice · checked 2026-11-16