evidencias-e-eventos

Automate immutable evidence and domain event recording in Laravel applications.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/VictorSmaniotto/degestao --skill evidencias-e-eventos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evidencias-e-eventos
Source: https://github.com/VictorSmaniotto/degestao/tree/main/.agent/skills/evidencias-eventos
Command: npx skills add https://github.com/VictorSmaniotto/degestao --skill evidencias-e-eventos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Este Skill facilita o registro de evidências imutáveis e de eventos de domínio em aplicações Laravel, promovendo rastreabilidade, auditoria e reconstrução de estado a partir de eventos.

Core Features & Use Cases

  • Modelagem de Evidência vs. não-evidência com imutabilidade garantida por código e constraints de boot.
  • Criação de Actions para registrar evidências, com injecção de dependências via Service Container.
  • Disparo de eventos de domínio (EvidenceRecorded, CycleClosed) para auditoria, fluxo de domínio e recuperação de estado.
  • Testes para assegurar que evidências não podem ser alteradas e que os eventos são emitidos corretamente.

Quick Start

Defina uma evidência imutável para um registro de domínio e configure o disparo do evento EvidenceRecorded.

Frequently Asked Questions about evidencias-e-eventos

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

FAQPage Schema
How do I record immutable evidence in Laravel using domain events?

To record immutable evidence in Laravel, you model the evidence, create Actions to register it, and trigger events like EvidenceRecorded to guarantee auditability and enable state reconstruction.

What is the best way to ensure evidence immutability in a domain-driven design application?

Ensuring evidence immutability in a domain-driven design application involves applying code constraints and boot validation to prevent alterations, paired with tests that verify records cannot be modified after creation.

When do I need event sourcing for auditability in Laravel?

You need event sourcing for auditability in Laravel when your application requires explicit domain events like CycleClosed to track state changes, allowing full reconstruction and tracing of past actions.

Does this approach to recording domain events work with Laravel's Service Container?

Yes, this approach works with Laravel's Service Container by injecting dependencies directly into the Actions used to record the immutable evidence and dispatch the corresponding domain events.

How do I test that domain events are emitted correctly when recording evidence?

You test correct domain event emission by validating that specific events like EvidenceRecorded are dispatched during the evidence recording process, and asserting the immutability constraints prevent data modification.

What are the limitations of using immutable evidence for state reconstruction?

A limitation of using immutable evidence for state reconstruction is that it requires strict adherence to domain event flows like CycleClosed, meaning any failure to emit events correctly breaks the audit trail.