Agent skill · Security

Audit Trails for Agents

Comprehensive guide to implementing audit trails and logging for AI agents including tracing, observability, compliance, and debugging

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill audit-trails-for-agents --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/agent/audit-trails-for-agents/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Audit Trails for Agents ## What are Audit Trails? **Audit Trail:** Complete record of all agent actions, decisions, and interactions for accountability, debugging, and compliance. ### Why Audit Trails Matter ``` Debugging: "Why did agent do X?" Compliance: "What data did agent access?" Security: "Did agent misuse tools?" Improvement: "Where does agent fail?" Trust: "Can we explain agent behavior?" ``` --- ## What to Log ### Agent Inputs ```json { "timestamp": "2024-01-16T12:00:00Z", "session_id": "sess_abc123", "user_id": "user_456", "input": { "type": "user_message", "content": "Book a flight to Paris", "metadata": { "source": "web_chat", "ip_address": "192.168.1.1" } } } ``` ### Agent Reasoning ```json { "timestamp": "2024-01-16T12:00:01Z", "session_id": "sess_abc123", "reasoning": { "thought": "User wants to book a flight. I need to search for flights first.", "plan": [ "Search for flights to Paris", "Present options to user", "Book selected flight" ], "confidence": 0.95 } } ``` ### Tool Calls ```json { "timestamp": "2024-01-16T12:00:02Z", "session_id": "sess_abc123", "tool_call": { "tool_name": "search_flights", "parameters": { "destination": "Paris", "departure_date": "2024-

What's inside
Steps it walks through
  1. What are Audit Trails?
  2. Why Audit Trails Matter
  3. What to Log
  4. Agent Inputs
  5. Agent Reasoning
  6. Tool Calls
  7. Agent Outputs
  8. Errors and Exceptions
  9. Logging Levels
  10. Trace (Most Detailed)
  11. Debug
  12. Info
  13. Warning
  14. Error
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the Audit Trails for Agents skill do?

Comprehensive guide to implementing audit trails and logging for AI agents including tracing, observability, compliance, and debugging

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill audit-trails-for-agents --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going