AI Skills
and-audit-publish-nestjs
Guidance for publishing audit log events in AND NestJS services. Use when adding, reviewing, or refactoring compliance audit logging, especially for human actions, FAIL audit events, payload design, and AuditPublisher usage.
Installation
Code
Purpose
Audit log records important human actions for compliance, traceability, and audit-review UI.
Publish audit for actions like:
- create
- approve or reject or status change
- detail view of sensitive business record
- application or request investigation
- manual override or reopen or retry
- manual assignment or reassignment
- export or download
- comment or remark or rationale change
- other material user-driven business decisions
Platform standard
- use
@and/nest-commonAuditPublisherfor request-driven business audit publishing - use
@and/nest-commonAuditPayloadto build compact payloads - use
@and/nest-commonAuditStatusfor standard statuses - keep
@and/nest-commonAuditLoggeras lower-level transport API - use one domain audit facade or service per microservice
- centralize action names, statuses, feature names, payload builders, and FAIL helpers
Last modified on