audit-trail

Captures structured audit logs for API endpoints and database operations.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/Benmore-Studio/Benmore-Meridian --skill audit-trail-benmore-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-trail
Source: https://github.com/Benmore-Studio/Benmore-Meridian/tree/main/skills/audit-trail
Command: npx skills add https://github.com/Benmore-Studio/Benmore-Meridian --skill audit-trail-benmore-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit trails provide verifiable records of who did what to which resource and when.

Core Features & Use Cases

  • Structured audit log model and event emission for resources and actions
  • Request context capture (IP, user-agent, request_id)
  • Post-commit emission to ensure consistent trails

Quick Start

Configure your FastAPI or SQLAlchemy service to emit structured audit events after successful operations.

Frequently Asked Questions about audit-trail

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

FAQPage Schema
How do I capture audit trails for API endpoints and database operations?

You capture audit trails by configuring your FastAPI or SQLAlchemy service to emit structured audit events. This records who did what to which resource and when, providing verifiable post-commit activity logs.

What is post-commit emission for audit logging?

Post-commit emission ensures audit events are only recorded after successful database transactions. This guarantees consistent, verifiable trails without logging actions from rolled-back or failed database operations.

Does this audit logging approach work with multi-tenant FastAPI services?

Yes, audit trail capturing applies to multi-tenant services and security events. It extracts request context like IP, user-agent, and correlation IDs directly from FastAPI routers for compliance scenarios.

Can I trace specific resources and actions using SQLAlchemy audit logs?

Yes, the structured audit log model supports tracing specific resources and actions. It integrates with SQLAlchemy to capture detailed database operations, providing clear traceability for compliance verification.

What's the best way to add compliance traceability to a FastAPI application?

The best way is integrating a typed audit log model with an event emitter and router context extraction. This captures IP, user-agent, and request_id to satisfy strict compliance and security traceability requirements.