Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add latestaiagents/agent-skills --skill ai-audit-logginggit clone --depth 1 https://github.com/latestaiagents/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/latestaiagents/agent-skills/ai-audit-logging)<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/ai-audit-logging"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/ai-audit-logging/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/ai-audit-logging"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/ai-audit-logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.02804 |
| Opus 5 | $0.00030 | $0.01402 |
| Sonnet 5 | $0.00012 | $0.00561 |
| Haiku 4.5 | $0.00006 | $0.00280 |
Grade A, and why
ai-audit-logging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 446 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Audit Logging
Implement compliance-ready audit trails for AI system decisions and outputs.
When to Use
- Meeting regulatory requirements (EU AI Act, SOC2, HIPAA)
- Tracking AI decisions for accountability
- Debugging AI system behavior
- Investigating incidents involving AI
- Demonstrating AI governance
Regulatory Context (2026)
EU AI Act Requirements
-
High-risk AI systems must maintain logs that enable:
- Traceability of AI decisions
- Recording of reference data
- Logging of events throughout lifecycle
- Logs must be kept for appropriate period
-
Effective August 2026 with fines up to 7% of global revenue
SOC2 AI Considerations
- Processing Integrity: AI outputs must be accurate and complete
- Confidentiality: AI must not expose confidential data
- Availability: AI systems must maintain audit logs
Audit Log Schema
interface AIAuditLog {
// Identification
id: string;
timestamp: Date;
correlationId: string;
sessionId: string;
// Actor
actor: {
type: 'user' | 'system' | 'automated';
id: string;
name?: string;
ip?: string;
userAgent?: string;
};
// AI Operation
operation: {
type: 'inference' | 'generation' | 'classification' | 'analysis';
model: string;
modelVersion: string;
provider: string;
};
// Input/Output
io: {
inputHash: string; // Hash of input for privacy
inputTokens: number;
outputHash: string; // Hash of output
outputTokens: number;
inputSummary?: string; // Optional human-readable summary
outputSummary?: string;
};
// Decisions
decision?: {
action: string;
confidence: number;
alternatives?: { action: string; confidence: number }[];
reasoning?: string;
};
// Safety
safety: {
contentFiltered: boolean;
filterReasons?: string[];
humanReviewRequired: boolean;
humanReviewCompleted?: boolean;
reviewerId?: string;
};
// Performance
performance: {
latencyMs: number;
queueTimeMs?: number;
tokensPerSecond?: number;
};
// Cost
cost: {
inputCost: number;
outputCost: number;
totalCost: number;
currency: string;
};
// Context
context: {
application: string;
environment: 'production' | 'staging' | 'development';
feature?: string;
tags: string[];
};
// Metadata
metadata: Record<string, unknown>;
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 446 lines · 59 tokens per session scan A 5aab9344a25e
ai-audit-logging is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 59 tokens to every session and 2,804 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
ai-ad-copy-compliance-review
A risk-review assistant for advertising and sales copy. It examines provided material for possible concerns and suggests actions.
ai-contract-clause-risk-review-cn
A Chinese-language assistant for reviewing risks in contract clauses. It is intended for human resources, management, operations, and software-related work.
ai-financial-marketing-compliance-review
A financial marketing compliance review assistant for examining pricing or marketing material for financial concerns.
ai-insurance-policy-faq-explainer
A risk-review helper for explaining questions about insurance policies and their possible risks. It produces summaries, diagnoses, recommended actions, and reusable deliverables from supplied material.
ai-live-commerce-script-compliance-review
A risk review assistant for checking provided live-commerce scripts and producing findings, recommendations, and reusable review materials.
ai-medical-content-compliance-review
A risk review assistant for checking provided medical content and producing findings, recommendations, and reusable review materials.