openclaw-ledger-pro
Full audit trail suite: hash-chained logging of workspace changes with freeze, forensic analysis, chain restoration, and automated protection. Everything in openclaw-ledger (free) plus automated countermeasures.
Best use case
openclaw-ledger-pro is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Full audit trail suite: hash-chained logging of workspace changes with freeze, forensic analysis, chain restoration, and automated protection. Everything in openclaw-ledger (free) plus automated countermeasures.
Teams using openclaw-ledger-pro should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/openclaw-ledger-pro/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How openclaw-ledger-pro Compares
| Feature / Agent | openclaw-ledger-pro | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Full audit trail suite: hash-chained logging of workspace changes with freeze, forensic analysis, chain restoration, and automated protection. Everything in openclaw-ledger (free) plus automated countermeasures.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# OpenClaw Ledger Pro
Full audit trail suite for agent workspaces. Every workspace change is recorded in a hash-chained log — if anyone alters an entry, the chain breaks and you know. Pro adds automated countermeasures: freeze, forensic analysis, chain restoration, export, and full protection sweeps.
## The Problem
Agents modify files, execute commands, install skills — and leave no verifiable record. If something goes wrong, you can't trace what happened. If logs exist, nothing proves they haven't been altered after the fact.
**openclaw-ledger** (free) gives you alert-level protection: log and verify.
**openclaw-ledger-pro** gives you the full suite: subvert, quarantine, and defend.
## Commands
### Initialize
Create the ledger and snapshot current workspace state.
```bash
python3 {baseDir}/scripts/ledger.py init --workspace /path/to/workspace
```
### Record Changes
Snapshot current state and log all changes since last record.
```bash
python3 {baseDir}/scripts/ledger.py record --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py record -m "Installed new skill" --workspace /path/to/workspace
```
### Verify Chain
Verify the hash chain is intact — no entries tampered with.
```bash
python3 {baseDir}/scripts/ledger.py verify --workspace /path/to/workspace
```
### View Log
Show recent ledger entries.
```bash
python3 {baseDir}/scripts/ledger.py log --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py log -n 20 --workspace /path/to/workspace
```
### Quick Status
```bash
python3 {baseDir}/scripts/ledger.py status --workspace /path/to/workspace
```
## Pro Countermeasures
### Freeze
Create a read-only backup of the chain file. Copies the current chain to `.ledger/frozen/chain-{timestamp}.jsonl`. Records a "freeze" event before copying. Use this regularly to maintain recovery points.
```bash
python3 {baseDir}/scripts/ledger.py freeze --workspace /path/to/workspace
```
### Forensics
Detailed forensic analysis of the chain. Shows a full timeline of all changes with file-level diffs, session boundaries, and anomaly detection (time gaps, bulk changes, timestamp regressions, duplicate timestamps).
```bash
python3 {baseDir}/scripts/ledger.py forensics --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py forensics --from 2025-01-01 --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py forensics --from 2025-01-01 --to 2025-01-31 --workspace /path/to/workspace
```
### Restore
Restore the chain from a frozen backup. Validates the frozen chain integrity before restoring. Backs up the current chain before overwriting. If no `--from-frozen` is specified, uses the most recent backup.
```bash
python3 {baseDir}/scripts/ledger.py restore --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py restore --from-frozen 20250115T120000Z --workspace /path/to/workspace
```
### Export
Export the full chain as structured JSON or a readable text report for external analysis.
```bash
python3 {baseDir}/scripts/ledger.py export --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py export --format text --workspace /path/to/workspace
python3 {baseDir}/scripts/ledger.py export --format json --workspace /path/to/workspace
```
### Protect
Full automated protection sweep. Recommended for session startup. Steps:
1. Verify chain integrity
2. If tampering detected: auto-freeze evidence, attempt restore from clean backup
3. Record current workspace state
4. Report results
```bash
python3 {baseDir}/scripts/ledger.py protect --workspace /path/to/workspace
```
## How It Works
Each entry contains:
- Timestamp
- SHA-256 hash of the previous entry
- Event type and data (file changes, snapshots)
If any entry is modified, inserted, or deleted, the hash chain breaks and `verify` detects it. The `protect` command automates the full response: detect tampering, preserve evidence, restore from clean backup, and record current state.
## Exit Codes
- `0` — Clean / chain intact
- `1` — Warnings (changes detected, minor anomalies)
- `2` — Critical (chain tampered, corrupt entries, restore failure)
## No External Dependencies
Python standard library only. No pip install. No network calls. Everything runs locally.
## Cross-Platform
Works with OpenClaw, Claude Code, Cursor, and any tool using the Agent Skills specification.Related Skills
OpenClaw-Finnhub
OpenClaw skill for real-time stock quote, and financials via Finnhub API.
openclaw-nextcloud
Manage Notes, Tasks, Calendar, Files, and Contacts in your Nextcloud instance via CalDAV, WebDAV, and Notes API. Use for creating notes, managing todos and calendar events, uploading/downloading files, and managing contacts.
openclaw-safety-coach
Safety coach for OpenClaw users. Refuses harmful, illegal, or unsafe requests and provides practical guidance to reduce ecosystem risk (malicious skills, tool abuse, secret exfiltration, prompt injection).
openclaw
openclaw
openclaw-spacesuit
**A framework scaffold for OpenClaw workspaces.**
nutrient-openclaw
Document processing for OpenClaw — convert, extract, OCR, redact, sign, and watermark PDFs and Office documents using the Nutrient DWS API. Use when asked to convert documents (DOCX/XLSX/PPTX to PDF, PDF to images or Office formats), extract text or tables from PDFs, apply OCR to scanned documents, redact sensitive information or PII, add watermarks, or digitally sign documents. Triggers on "convert to PDF", "extract text", "OCR this", "redact PII", "watermark", "sign document", or any document processing request.
openclaw-setup
Set up a complete OpenClaw personal AI assistant from scratch using Claude Code. Walks through AWS provisioning, OpenClaw installation, Telegram bot creation, API configuration, Google Workspace integration, security hardening, and all power features. Give this to Claude Code and it handles the rest.
OpenClaw Optimizer Skill
## Overview
openclaw-backup
Enhanced backup and restore for openclaw configuration, skills, commands, and settings. Sync across devices, version control with git, automate backups, and migrate to new machines with advanced compression.
phoenixclaw-ledger
Passive financial tracking plugin for PhoenixClaw. Automatically detects expenses and income from conversations and payment screenshots. Use when: - User mentions money/spending (any language) - User shares payment screenshots (WeChat Pay, Alipay, etc.) - User asks about finances ("How much did I spend?", "My budget") - User wants expense reports ("Monthly summary", "Spending analysis")
openclaw-trakt
Track and recommend TV shows and movies using Trakt.tv. Use when the user asks for show/movie recommendations, wants to track what they're watching, check their watchlist, or get personalized suggestions based on their viewing history. Requires Trakt.tv account with Pro subscription for full functionality.
OpenClaw Claude Code Skill
## Description