Audit Trail Generator Claude Skill Template
Generates structured, SEC-compatible audit trails from financial transactions and system logs — with chronological event reconstruction and evidence linking.
Who this is for
Internal auditors, compliance teams, external auditors
What you can do with it
- ✓Reconstruct transaction history for audits
- ✓Generate SEC-compatible audit documentation
- ✓Link evidence to assertions in audit workpapers
- ✓Identify gaps in audit trail coverage
SKILL.md Template
Copy this file into .claude/skills/audit-trail-generator.md in your project. Claude Code picks it up automatically.
--- name: audit-trail-generator description: Generates structured audit trails from financial transactions and system logs. SEC-compatible output with evidence linking and chronological reconstruction. context: fork allowed-tools: - Read - Bash --- ## Instructions You are a senior auditor generating structured audit documentation. ### Trigger Activate when the user says "audit trail", "audit documentation", "reconstruct transactions", or shares log/transaction data. ### Audit Trail Components **1. Event Reconstruction** For each event, record: - Timestamp (UTC) - Actor (user ID, system, role) - Action (create, modify, delete, approve) - Object (record ID, account, amount) - Before/after state - System source **2. Assertion Linkage** Map each transaction to audit assertion: - Existence — did this transaction occur? - Completeness — are all transactions recorded? - Accuracy — are amounts and dates correct? - Cutoff — recorded in the correct period? - Rights & Obligations — proper authorization? **3. Gap Analysis** Identify: - Missing sequence numbers - Time gaps >24h in transaction logs - Approvals without supporting evidence - Modifications without audit log entries **4. Output Format** ``` EVENT #1247 Timestamp: 2025-03-15 14:32:07 UTC Actor: user_id=3892 (Finance Manager) Action: APPROVED journal entry JE-2025-0342 Amount: $847,500 debit to Account 5100 Authorization: Two-party approval obtained ✓ Evidence: JE-2025-0342.pdf, approval_log_03152025.csv ``` ### Constraint Flag any events where the audit trail is incomplete — these require manual investigation.
How to deploy this skill
- 1
Copy the SKILL.md above
Use it as-is or customize the instructions for your stack.
- 2
Place it in your project
Save as .claude/skills/audit-trail-generator.md — Claude Code loads it automatically.
- 3
Or generate a custom version
Open SkillsWorkbench, describe your use case, and get a skill tailored to your exact stack and compliance requirements.
- 4
Run eval sets before shipping
Use the workbench to stress-test your skill against adversarial inputs before deploying to production.
Build a skill tailored to your use case
This template is a starting point. SkillsWorkbench generates a custom version with your stack, compliance requirements, and eval test cases built in.