A robust logging mechanism that records every tool interaction for security and performance analysis.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install audit-log-hook
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install audit-log-hook using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Audit Log Hook is a specialized utility designed to capture granular data from tool executions within an agentic environment. By leveraging lifecycle hooks that trigger before and after tool calls, this Openclaw Skills extension provides deep visibility into agent behavior, ensuring every action is documented for security compliance and technical troubleshooting.
This skill allows developers to maintain a verifiable trail of activity, making it easier to manage complex AI workflows. It specifically focuses on capturing input parameters, session context, and execution results while maintaining a lightweight footprint on the system.
To integrate this monitoring capability into your Openclaw Skills setup, ensure your state directory is configured and the hook plugin is registered.
# Create the state directory if it does not exist
mkdir -p ~/.openclaw
# The skill automatically writes logs to the audit.log file
touch ~/.openclaw/audit.log
The Audit Log Hook generates structured JSON entries. Below is the schema for the log data:
| Field | Description | Type |
|---|---|---|
| ts | ISO 8601 Timestamp of the event | String |
| event | Hook type (before_tool_call or after_tool_call) | String |
| tool | Name of the tool being executed | String |
| params | JSON string of tool parameters (truncated) | String |
| result | Output or return value of the tool | String |
| error | Error message if the tool call failed | String |
| duration | Total execution time in milliseconds | Number |
| session | Unique identifier for the agent session | String |
Loading
A comprehensive framework and pattern set for implementing resilient failure handling and state recovery in AI agent workflows.

A comprehensive developer guide for implementing and utilizing lifecycle hooks to intercept, audit, and modify AI agent behavior within the OpenClaw ecosystem.

A comprehensive suite of over 55 professional-grade tools designed to extend the capabilities of AI agents within the Openclaw Skills ecosystem.

An expert cloud assistant providing real-time access to AWS documentation, architecture patterns, and standard operating procedures.

A structured memory compression system that optimizes context windows by summarizing conversation history into a machine-readable format.

An automated pre-filtering mechanism that intelligently matches AI agent skills to specific user tasks based on keyword relevance and pattern scoring.








































