ab-test-analysis
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and…
Implement event sourcing and CQRS patterns using event stores, aggregates, and projections. Use when building audit trails, temporal queries, or systems requiring full history.
Claude Code
$ npx -y skills add aj-geddes/useful-ai-prompts --skill event-sourcing --agent claude-code
Codex
$ npx skills add aj-geddes/useful-ai-prompts --skill event-sourcing -a codex -y
Cursor
$ npx skills add aj-geddes/useful-ai-prompts --skill event-sourcing -a cursor -y
Gemini CLI
$ npx skills add aj-geddes/useful-ai-prompts --skill event-sourcing -a gemini-cli -y
GitHub Copilot
$ npx skills add aj-geddes/useful-ai-prompts --skill event-sourcing -a github-copilot -y
OpenCode
$ npx skills add aj-geddes/useful-ai-prompts --skill event-sourcing -a opencode -y
Windsurf
$ npx skills add aj-geddes/useful-ai-prompts --skill event-sourcing -a windsurf -y
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.
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and…
Implement Role-Based Access Control (RBAC), permissions management, and authorization policies. Use when building secure access…
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard navigation, and a11y testing. Use when…
Test web applications for WCAG compliance and ensure usability for users with disabilities. Use for accessibility test, a11y,…
Plan and execute effective sprints using Agile methodologies. Define sprint goals, estimate user stories, manage sprint backlog,…
Implement comprehensive alert management with PagerDuty, escalation policies, and incident coordination. Use when setting up…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…