audit-trail

Community

Auto-trace entity changes for safe auditing.

Authorronnythedev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers often struggle to consistently track who created or modified a domain entity and when, including soft-deletes, across the data layer. This Skill provides a ready-made auditing framework that enforces UTC timestamps and user attribution.

Core Features & Use Cases

  • Implements IAuditable and AuditableEntity base to store CreatedAtUtc, CreatedBy, UpdatedAtUtc, UpdatedBy, and soft delete fields.
  • Provides EF Core SaveChanges interceptor to auto-populate audit fields and convert hard deletes to soft deletes.
  • Supports integration with a user context for automated attribution in both typical web requests and background tasks.

Quick Start

  1. Create entities by deriving from AuditableEntity and/or implementing IAuditable.
  2. Register AuditSaveChangesInterceptor in your DI container and wire the interceptor into EF Core.
  3. Apply the AuditableEntityConfiguration base configuration to your entities and enable a global query filter for soft deletes.

Dependency Matrix

Required Modules

Entity Framework Core

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: audit-trail
Download link: https://github.com/ronnythedev/dotnet-clean-architecture-skills/archive/main.zip#audit-trail

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.