Event Store Design skill for Claude

Design and implement event stores for event-sourced systems.

When Claude uses it

Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

Event Store Design SKILL.md

The full skill file from wshobson/agents (MIT).

Event Store Design

Comprehensive guide to designing event stores for event-sourced applications.

When to Use This Skill

  • Designing event sourcing infrastructure
  • Choosing between event store technologies
  • Implementing custom event stores
  • Optimizing event storage and retrieval
  • Setting up event store schemas
  • Planning for event store scaling

Core Concepts

1. Event Store Architecture

┌─────────────────────────────────────────────────────┐
│                    Event Store                       │
├─────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐ │
│  │   Stream 1   │  │   Stream 2   │  │   Stream 3   │ │
│  │ (Aggregate)  │  │ (Aggregate)  │  │ (Aggregate)  │ │
│  ├─────────────┤  ├─────────────┤  ├─────────────┤ │
│  │ Event 1     │  │ Event 1     │  │ Event 1     │ │
│  │ Event 2     │  │ Event 2     │  │ Event 2     │ │
│  │ Event 3     │  │ ...         │  │ Event 3     │ │
│  │ ...         │  │             │  │ Event 4     │ │
│  └─────────────┘  └─────────────┘  └─────────────┘ │
├─────────────────────────────────────────────────────┤
│  Global Position: 1 → 2 → 3 → 4 → 5 → 6 → ...     │
└─────────────────────────────────────────────────────┘

2. Event Store Requirements

RequirementDescription
Append-onlyEvents are immutable, only appends
OrderedPer-stream and global ordering
VersionedOptimistic concurrency control
SubscriptionsReal-time event notifications
IdempotentHandle duplicate writes safely

Technology Comparison

TechnologyBest ForLimitations
EventStoreDBPure event sourcingSingle-purpose
PostgreSQLExisting Postgres stackManual implementation
KafkaHigh-throughput streamingNot ideal for per-stream queries
DynamoDBServerless, AWS-nativeQuery limitations
Marten.NET ecosystems.NET specific

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

Best Practices

Do's

  • Use stream IDs that include aggregate type - Order-{uuid}
  • Include correlation/causation IDs - For tracing
  • Version events from day one - Plan for schema evolution
  • Implement idempotency - Use event IDs for deduplication
  • Index appropriately - For your query patterns

Don'ts

  • Don't update or delete events - They're immutable facts
  • Don't store large payloads - Keep events small
  • Don't skip optimistic concurrency - Prevents data corruption
  • Don't ignore backpressure - Handle slow consumers

How to install Event Store Design

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/backend-development/skills/event-store-design#main ~/.claude/skills/event-store-design

Codex

npx degit wshobson/agents/plugins/backend-development/skills/event-store-design#main ~/.codex/skills/event-store-design

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Event Store Design skill do?

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

+How do I install Event Store Design in Claude Code?

Copy the skill folder into ~/.claude/skills/event-store-design, for example with "npx degit wshobson/agents/plugins/backend-development/skills/event-store-design#main ~/.claude/skills/event-store-design". Claude Code loads it automatically and uses it when a task matches.

+Does Event Store Design work with ChatGPT or Codex?

Yes. Event Store Design uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/event-store-design. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Event Store Design free?

Event Store Design is published on GitHub by wshobson under the MIT license, which allows free use.

Related design & frontend skills

  1. Design

    Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, MuAPI, or UberLLM…

    nextlevelbuilder/ui-ux-pro-max-skill★ 151k
  2. Frontend Design

    Official

    Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one.

    anthropics/skills★ 197k
  3. Ui Ux Pro Max

    UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing…

    nextlevelbuilder/ui-ux-pro-max-skill★ 151k
  4. Interaction Design

    Design and implement microinteractions, motion design, transitions, and user feedback patterns.

    wshobson/agents★ 43k
  5. Mobile Android Design

    Master Material Design 3 and Jetpack Compose patterns for building native Android apps.

    wshobson/agents★ 43k
  6. Parallel Feature Development

    Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns for multi-agent…

    wshobson/agents★ 43k
  7. Postgresql Table Design

    Use this skill when designing or reviewing a PostgreSQL-specific schema.

    wshobson/agents★ 43k
  8. React Modernization

    Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features.

    wshobson/agents★ 43k
  9. React Native Architecture

    Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns.

    wshobson/agents★ 43k

See all design & frontend skills →

More skills from wshobson

  1. Fastapi Templates

    Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling.

    wshobson/agents★ 43k
  2. File Conversion

    Use when the user needs a local file converted between common image, audio, video, document, or data formats.

    wshobson/agents★ 43k
  3. Finetuning Method Selection

    Decide whether to fine-tune at all, and route to the right method (SFT, DPO/ORPO/KTO, GRPO/RLVR, continued pretraining) and base model.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.