Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Audit Trail

БесплатноБез исполняемых скриптовНе проверен

Design audit log specifications for regulated business processes. Use when a workflow requires a defensible audit trail for FINRA examinations, state…

TheLobbiот TheLobbi★ 22 звезды на GitHub

Об этом скилле

Audit Trail Design

Produce a complete audit logging specification for a regulated business process, covering event catalog, data schema, immutability mechanisms, retention schedule, access controls, and examination query patterns.

Step 1: Event Catalog

Enumerate every action that must be logged. For each workflow, identify:

Standard event categories:

  • Create — Record, account, policy, loan, or document created
  • Read (sensitive only) — PII accessed, credit report pulled, account viewed by non-owner
  • Update — Field value changed (capture before/after)
  • Delete (or archive) — Record removed or soft-deleted
  • Status change — Workflow state transition (e.g., submitted → approved → issued)
  • Authorization — Access granted, permission changed, role assigned
  • Export/Download — Data exported to file, report generated, document downloaded
  • Communication — Email sent, disclosure delivered, adverse action notice issued
  • Integration — Data sent to or received from external system (AMS, LOS, AUS, carrier portal)
  • System — Login, logout, session timeout, failed authentication, configuration change

For each event, assign:

  • Event code (e.g., POL.BIND.001) — namespace by domain and action
  • Description — Plain English description of what occurred
  • Trigger — What user action or system event causes this log entry
  • Frequency — Expected volume (per day / per transaction)
  • Regulatory driver — Which regulation requires this event to be logged (or "business requirement" if not regulatory)

Step 2: Required Fields per Event

Every audit log record must capture these fields as a minimum:

Field Type Description Regulatory Basis
event_id UUID Unique identifier for this log entry Tamper-evidence
event_code string Structured event code from catalog Searchability
event_timestamp ISO 8601 UTC When the event occurred (server time, not client) All regs
actor_id string Authenticated user ID who caused the event FINRA 4511, SOX 404
actor_role string Role/permission level of the actor at time of event Segregation of duties
actor_ip string Client IP address Security
session_id UUID Session identifier linking related events Forensics
correlation_id UUID Business transaction ID spanning multiple events Traceability
object_type string Entity type affected (Policy, Loan, Client, User) Context
object_id string ID of the affected record Searchability
before_value JSON Field values before the change (for Update events) SOX, FINRA
after_value JSON Field values after the change (for Update events) SOX, FINRA
result enum success | failure | partial Completeness
failure_reason string If result = failure, why it failed Debugging
source_system string Which system generated the event Multi-system audit
data_classification enum public | internal | confidential | restricted Privacy

For events involving PII or PHI, also capture:

  • data_subject_id — ID of the individual whose data was accessed
  • access_purpose — Business purpose for accessing the data (required for GLBA/CCPA)

Step 3: Immutability Mechanisms

The audit log must be tamper-evident and append-only. Choose one or more mechanisms based on client infrastructure:

Database-level:

  • Append-only table with no UPDATE or DELETE permissions for any application role
  • Database trigger that blocks UPDATE/DELETE and alerts on attempt
  • Row-level hash: SHA-256(event_id + event_timestamp + actor_id + object_id + content_hash_of_all_fields) stored in each row
  • Periodic Merkle root calculation (batch of N records → root hash stored separately)

Storage-level:

  • Write-Once Read-Many (WORM) storage for log exports (AWS S3 Object Lock, Azure Blob immutability policy)
  • Automated daily export to immutable cold storage with hash verification

Cryptographic chaining:

  • Each record contains previous_record_hash — SHA-256 of the previous record's full content
  • Chain integrity verification: daily automated job validates the hash chain; alerts on break

Third-party:

  • Immutable audit log service (e.g., AWS CloudTrail, Azure Monitor, Splunk SIEM) as secondary sink
  • Records written to primary DB and secondary immutable service simultaneously

Step 4: Retention Schedule

Event Category Minimum Retention Maximum Retention Regulatory Citation
Insurance policy transactions 5 years post-policy expiration 7 years State DOI (varies; use most restrictive)
Insurance claims records 5 years post-close 10 years State DOI claims regulations
Mortgage origination records 3 years 5 years RESPA § 1024.9
HMDA LAR data 3 years Permanen
Полный SKILL.md на GitHub

Установить Audit Trail в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Bash

FAQ

Что делает скилл Audit Trail?

Design audit log specifications for regulated business processes. Use when a workflow requires a defensible audit trail for FINRA examinations, state insurance audits, SOX controls testing, or internal compliance reviews.

Как установить скилл Audit Trail?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Audit Trail запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Audit Trail с