src/skills/x-review-events/SKILL.md
Reviews event schemas, producer/consumer patterns, error handling, and DLQ readiness.
npx skillsauth add edercnj/claude-environment x-review-eventsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reviews event-driven patterns: event schema design, producer/consumer implementation, error handling, dead letter topics, and operational readiness. Covers CloudEvents envelope, schema registry integration, and saga patterns.
Include this skill when the project uses event-driven interfaces (interfaces contains type: event-consumer or type: event-producer).
/x-review-events OrderCreated -- review a specific event/x-review-events PaymentConsumer -- review a consumer class/x-review-events -- review all event-driven patterns| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| target | String | No | (all) | Event name, consumer/producer class name |
Use the canonical selector as the single source of truth for review assets:
Skill(skill: "x-internal-select-context-packs",
args: "--phase review --capabilities events,security,observability,performance")
Consumption rules:
required.recommended only when relevant to the changed scope.optional only with explicit justification in findings.Collect the review target: event name or producer/consumer class from args. Run:
git diff --name-only HEAD~1..HEAD 2>/dev/null || git diff --name-only --cached
Agent(
subagent_type: "event-engineer",
description: "Event-driven specialist review for {target}",
prompt: "Review the event-driven patterns for best practices. Target: {target}. Run `git diff HEAD~1..HEAD` to get the diff. Resolve packs via `x-internal-select-context-packs --phase review --capabilities events,security,observability,performance` and consume selector output: read all `required`, then only event-relevant `recommended` assets. Avoid hardcoded duplicate pack lists. Apply your full event checklist (event schema design, CloudEvents envelope, producer/consumer patterns, error handling, dead letter topics, idempotency, operational readiness). Produce output in this exact format:\n\nENGINEER: Events\nSTORY: {target}\nSCORE: XX/28\nSTATUS: Approved | Rejected | Partial\n---\nPASSED:\n- [EVT-XX] Description (2/2) | Evidence: {brief concrete observation}\nFAILED:\n- [EVT-XX] Description (0/2) -- file:line -- Fix: suggestion [SEVERITY]\nPARTIAL:\n- [EVT-XX] Description (1/2) -- file:line -- Improvement: suggestion [SEVERITY]"
)
OrderCreated, PaymentProcessed, InventoryReserved){domain}.{entity}.{event} (e.g., payment.transaction.created){service}.{purpose} (e.g., billing.invoice-generator)## Event-Driven Review — [Event/Change Description]
### Event Design: HIGH / MEDIUM / LOW
### Producer Quality: HIGH / MEDIUM / LOW
### Consumer Quality: HIGH / MEDIUM / LOW
### Event Design Findings
1. [Finding with file, line, issue, fix]
### Producer Findings
1. [Finding with file, line, issue, fix]
### Consumer Findings
1. [Finding with file, line, issue, fix]
### Operational Readiness
- Dead Letter Topic: [configured / missing]
- Consumer Lag Monitoring: [configured / missing]
- Schema Registry: [configured / missing]
### Checklist Results
PASSED:
- [EVT-XX] [Item description] | Evidence: {brief concrete observation}
FAILED:
- [EVT-XX] [Item description] -- file:line -- Fix: [guidance] [SEVERITY]
PARTIAL:
- [EVT-XX] [Item description] -- file:line -- Improvement: [guidance] [SEVERITY]
### Verdict: APPROVE / REQUEST CHANGES
Convenções de erro/degradação transversais a review/audit (empty input, RULE-012 template fallback, falha de specialist, build/test override, idempotência) vivem em
_shared/error-handling-review.md. As linhas abaixo são específicas desta skill.
| Scenario | Action | |----------|--------| | No event definitions found | Report INFO: no event-driven code discovered | | Missing schema registry | REQUEST CHANGES with remediation guidance | | Consumer not idempotent | REQUEST CHANGES with idempotency pattern example |
development
Documentation freshness gate: validates 6 dimensions (readme, api, adr, etc.) per PR.
testing
Conditional dep-policy gate: CVEs, licenses, versions, freshness; SARIF + report.
documentation
Incrementally updates the service or system architecture document; never regenerative.
development
Scans code and git history for leaked credentials, API keys, and tokens; SARIF output.