ab-test-analysis
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes…
Implement event sourcing and CQRS patterns using event stores, aggregates, and projections. Use when building audit trails, temporal queries, or systems requiring full history.
$ npx -y skills add aj-geddes/useful-ai-prompts --skill event-sourcing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/event-sourcingContext preview
The summary Claude sees to decide when to auto-load this skill.
Implement event sourcing and CQRS patterns using event stores, aggregates, and projections. Use when building audit trails, temporal queries, or systems requiring full history.
name: event-sourcing description: > Implement event sourcing and CQRS patterns using event stores, aggregates, and projections. Use when building audit trails, temporal queries, or systems requiring full history.
Store state changes as a sequence of events rather than the current state, enabling temporal queries, audit trails, and event replay.
Minimal working example:
interface DomainEvent {
id: string;
aggregateId: string;
aggregateType: string;
eventType: string;
data: any;
metadata: {
userId?: string;
timestamp: number;
version: number;
};
}
interface Aggregate {
id: string;
version: number;
}
class EventStore {
private events: DomainEvent[] = [];
async appendEvents(
aggregateId: string,
expectedVersion: number,
events: Omit<DomainEvent, "id" | "metadata">[],
// ... (see reference guides for full implementation)Detailed implementations in the `references/` directory:
| Guide | Contents | |---|---| | [Event Store (TypeScript)](references/event-store-typescript.md) | Event Store (TypeScript) | | [Projections (Read Models)](references/projections-read-models.md) | Projections (Read Models) | | [Event Store with PostgreSQL](references/event-store-with-postgresql.md) | Event Store with PostgreSQL | | [Snapshots for Performance](references/snapshots-for-performance.md) | Snapshots for Performance |
488 production-ready AI prompts, all following a standardized template with validated quality gates. Transform ChatGPT, Claude, and other AI assistants into expert consultants.
Repo: aj-geddes/useful-ai-prompts
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes…
Implement Role-Based Access Control (RBAC), permissions management, and authorization…
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard…
Test web applications for WCAG compliance and ensure usability for users with disabilities.…
Plan and execute effective sprints using Agile methodologies. Define sprint goals, estimate…
Implement comprehensive alert management with PagerDuty, escalation policies, and incident…