Agent Audit Trail Skill
БесплатноЗапускает вложенные скриптыНе проверенTamper-evident, hash-chained audit logging for AI agents. EU AI Act compliant.
от modbender★ 21 звезда на GitHubОб этом скилле
Agent Audit Trail Skill
Tamper-evident, hash-chained audit logging for AI agents. EU AI Act compliant.
Why
AI agents act on your behalf. From 2 August 2026, the EU AI Act requires automatic logging, tamper-evident records, and human oversight capability for AI systems. This skill provides all three with zero dependencies.
Quick Start
1. Add to your agent's workspace
cp scripts/auditlog.py /path/to/your/workspace/scripts/
chmod +x /path/to/your/workspace/scripts/auditlog.py
2. Log an action
./scripts/auditlog.py append \
--kind "file-write" \
--summary "Created config.yaml" \
--target "config.yaml" \
--domain "personal"
3. Verify integrity
./scripts/auditlog.py verify
# Output: OK (N entries verified)
Compliance Mapping
| EU AI Act Article | Requirement | How This Skill Helps |
|---|---|---|
| Art. 12 Record-Keeping | Automatic event logging | Every action logged with timestamp, actor, domain, target |
| Art. 12 Integrity | Tamper-evident records | SHA-256 hash chaining — modification breaks the chain |
| Art. 14 Human Oversight | Human approval linkage | --gate flag links actions to human approval references |
| Art. 50 Transparency | Auditable records | Human-readable NDJSON, one-command verification |
| Art. 12 Traceability | Chronological ordering | Monotonic ord tokens |
Event Kinds
Use these standardised event types for consistent audit trails:
| Kind | When to Use |
|---|---|
file-write |
Agent creates or modifies files |
exec |
Agent runs a command |
api-call |
External API interaction |
decision |
AI makes or recommends a decision |
credential-access |
Secrets or credentials accessed |
external-write |
Agent writes to external systems |
human-override |
Human overrides an AI decision |
disclosure |
AI identity disclosed to user |
Full Documentation
See README.md for complete usage, integration examples, security model, and EU AI Act compliance guide.
Log Format
{
"ts": "2026-02-24T07:15:00+00:00",
"kind": "exec",
"actor": "atlas",
"domain": "ops",
"plane": "action",
"target": "pg_dump production",
"summary": "Ran database backup",
"gate": "approval-123",
"ord": 42,
"chain": {"prev": "abc...", "hash": "def...", "algo": "sha256(prev\\nline_c14n)"}
}
OpenClaw Integration
Add to HEARTBEAT.md:
## Audit integrity check
- Run: `./scripts/auditlog.py verify`
- If fails: alert with line number + hash mismatch
- If OK: silent
Requirements
- Python 3.9+ (zero external dependencies)
- MIT License
Установить Agent Audit Trail Skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Agent Audit Trail Skill?
Tamper-evident, hash-chained audit logging for AI agents. EU AI Act compliant.
Как установить скилл Agent Audit Trail Skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Agent Audit Trail Skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic