kata-events-doc

Generate canonical CloudEvents documentation for Guardia bounded contexts and modules.

Updated Sep 3, 2025
One-click install
npx skills add https://github.com/guardiatechnology/design-system --skill kata-events-doc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kata-events-doc
Source: https://github.com/guardiatechnology/design-system/tree/main/.claude/skills/kata-events-doc
Command: npx skills add https://github.com/guardiatechnology/design-system --skill kata-events-doc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of inconsistent, incomplete event documentation by generating a canonical CloudEvents events.md file that precisely matches your module’s event catalog, payload shape, and idempotency requirements.

Core Features & Use Cases

  • CloudEvents-accurate documentation: Produces event entries with required CloudEvents fields (type, source, subject, idempotencykey, data) and properly structured JSON examples.
  • Entity-aligned payloads: Documents each event’s data payload using your codex-entities field definitions (with history omitted as required).
  • Idempotency-focused event specs: Ensures every event documents idempotencykey so consumers can deduplicate reliably.
  • Use Case: When a bounded context emits multiple lifecycle events (created/updated/cancelled), this Skill documents them for downstream teams to integrate without ambiguity.

Quick Start

Ask the Skill to generate or update docs/{context}/events/events.md for your bounded context and module, using the existing entities under docs/{context}/entities and the CloudEvents and idempotency directives.

Frequently Asked Questions about kata-events-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document CloudEvents for a bounded context with consistent idempotency keys?

To document CloudEvents with consistent idempotency, generate a canonical events.md file cataloging event types, required CloudEvents fields, and entity-based data payloads. This ensures every event documents an idempotencykey so consumers can reliably deduplicate messages.

What fields are required for CloudEvents documentation in a bounded context?

Required CloudEvents documentation fields include type, source, subject, idempotencykey, and data. The documentation must define these fields for each event entry alongside properly structured JSON examples to satisfy lex-cloudevents and codex-cloudevents compliance.

How do I generate event documentation for modules emitting lifecycle transitions?

To generate event documentation for lifecycle transitions, create or update docs/{context}/events/events.md using existing entity definitions. The process catalogs domain events like created, updated, and cancelled, aligning data payloads with codex-entities field definitions while omitting history.

Are there JSON payload size limits when documenting CloudEvents entity payloads?

Yes, CloudEvents entity payloads must adhere to strict JSON constraints keeping the payload size under 12KB. The documentation enforces these size limitations alongside idempotencykey requirements to ensure compliant event specifications for downstream integration.

Can I use existing entity definitions to structure CloudEvents data payloads?

Yes, you can use existing entity definitions under docs/{context}/entities to structure CloudEvents data payloads. The documentation aligns each event's data payload with codex-entities field definitions, automatically omitting history fields as required by the specification.

When do I need to update events.md for a bounded context module?

You need to update events.md when a bounded context module emits one or more domain events with lifecycle transitions. This ensures downstream teams can integrate without ambiguity by maintaining strict type, source, subject, and idempotencykey conventions.