Token导航 LogoToken导航

Agent Skill · 研究检索

openclaw-audit-trail(OpenClaw 审核 trail)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

openclaw-audit-trail 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,674 个 Skill 里排第 15,472。

总安装 7,832周安装 333GitHub Stars 公开资料未说明下载 2,744核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-audit-trail(OpenClaw 审核 trail)
来源仓库:https://github.com/zhenstaff/openclaw-audit-trail
安装命令:
openclaw skills install openclaw-audit-trail
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-audit-trail

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

记录 AI 代理决策过程的不可变日志,支持事后审计。加密存储操作序列、输入输出与时间戳,防篡改可追溯。生成哈希链确保完整性,便于合规检查与责任认定。涉及敏感操作时应脱敏处理,避免泄露用户隐私。openclaw-audit-trail 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

建议与监控系统联动,异常行为自动触发告警通知。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install openclaw-audit-trail;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

openclaw-audit-trail 怎么安装?

在终端执行 openclaw skills install openclaw-audit-trail。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openclaw-audit-trail 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openclaw-audit-trail 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

openclaw-audit-trail 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

openclaw-audit-trail 用的人多吗?

公开数据是累计安装 7,832 次,近一周安装 333 次,下载 2,744 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openclaw-audit-trail 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
openclaw-audit-trail

OpenClaw 审核 trail · 本页

7,832—需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
openclaw-audit-trail
display_name
Agent Audit Trail
version
1.0.0
author
ZhenStaff
category
ai-tools
license
MIT-0
description
The Immutable Black Box for AI Decisions - Track, audit, and verify AI agent decisions with cryptographic guarantees
tags
[ai-audit, agent-tracking, decision-trail, immutable-log, ai-transparency, audit-trail, cryptographic-verification, ai-governance]
repository
https://github.com/ZhenRobotics/openclaw-audit-trail
homepage
https://github.com/ZhenRobotics/openclaw-audit-trail
documentation
https://github.com/ZhenRobotics/openclaw-audit-trail#readme

Agent Audit Trail

AI决策的不可篡改黑匣子 The Immutable Black Box for AI Decisions

追踪、审计和验证AI Agent决策,提供密码学保证。 Track, audit, and verify AI agent decisions with cryptographic guarantees.


🎯 概述 / Overview

Agent Audit Trail 是一个为AI决策提供密码学保证的审计追踪工具,可以记录、验证和审计AI Agent的每一个决策过程。

Agent Audit Trail is an audit trail system that provides cryptographic guarantees for AI decisions, enabling recording, verification, and auditing of every AI Agent decision process.

核心特性 / Core Features

  • 🔗 密码学链条 - SHA-256哈希链确保不可篡改 / Cryptographic chain with SHA-256 hashing ensures immutability
  • 📝 完整记录 - 捕获输入、推理、输出全过程 / Complete recording of input, reasoning, and output
  • ✅ 完整性验证 - 自动检测任何篡改行为 / Integrity verification detects any tampering
  • 📊 多格式导出 - JSON、CSV、HTML、Markdown / Multiple export formats
  • ⚡ CLI和API - 命令行和编程接口双重支持 / Both CLI and programmatic interfaces
  • 🔐 本地存储 - 所有数据存储在本地,无外部依赖 / All data stored locally, no external dependencies

📦 安装 / Installation

NPM (推荐 / Recommended)

# 全局安装 / Install globally
npm install -g openclaw-audit-trail

# 或项目依赖 / Or as project dependency
npm install openclaw-audit-trail

ClawHub

clawhub install openclaw-audit-trail

从源码 / From Source

git clone https://github.com/ZhenRobotics/openclaw-audit-trail.git
cd openclaw-audit-trail
npm install
npm link

🚀 快速开始 / Quick Start

初始化 / Initialize

# 初始化审计追踪 / Initialize audit trail
audit-trail init --agent-id my-ai-agent --version 1.0.0

# 或使用别名 / Or use alias
aat init --agent-id my-agent

记录决策 / Record Decisions

# 简单记录 / Simple recording
audit-trail record \
  --prompt "Should I approve this loan?" \
  --decision "Approved" \
  --reasoning "Credit score 750, income verified, debt ratio acceptable"

# 带更多细节 / With more details
audit-trail record \
  --prompt "Classify this image" \
  --decision "cat" \
  --reasoning "Detected feline features with 95% confidence" \
  --agent-id vision-classifier

验证完整性 / Verify Integrity

# 验证审计链 / Verify audit chain
audit-trail verify

# 预期输出 / Expected output:
# ✓ Chain integrity intact
#   Total entries: 42
#   Verified: 42/42

列出决策 / List Decisions

# 列出最近的决策 / List recent decisions
audit-trail list --limit 10

# 按时间过滤 / Filter by time
audit-trail list --start 1700000000 --end 1700100000

导出审计追踪 / Export Audit Trail

# 导出为JSON / Export as JSON
audit-trail export --output audit-report.json --format json

# 导出为HTML报告 / Export as HTML report
audit-trail export --output audit-report.html --format html --include-reasoning

# 导出为CSV / Export as CSV
audit-trail export --output audit-data.csv --format csv

💻 编程使用 / Programmatic Usage

TypeScript/JavaScript API

import { AgentAuditTrail } from 'openclaw-audit-trail';

// 初始化 / Initialize
const trail = new AgentAuditTrail({
  agentId: 'my-ai-agent',
  agentVersion: '1.0.0',
  storagePath: './audit-data'
});

await trail.initialize();

// 记录决策 / Record a decision
const entry = await trail.recordDecision(
  // 输入 / Input
  {
    prompt: 'Should I send this email?',
    context: { urgency: 'high', recipient: 'user@example.com' }
  },
  // 推理 / Reasoning
  {
    steps: [
      {
        step: 1,
        action: 'analyze',
        thought: 'Checking email content for sensitive information',
        timestamp: Date.now()
      },
      {
        step: 2,
        action: 'decide',
        thought: 'No sensitive data detected, urgency is high',
        timestamp: Date.now()
      }
    ],
    model: 'gpt-4',
    temperature: 0.7
  },
  // 输出 / Output
  {
    decision: 'send',
    confidence: 0.95,
    alternatives: [
      { decision: 'delay', confidence: 0.05, reasoning: 'Wait for manual review' }
    ]
  },
  // 执行时间 / Execution time
  1250
);

console.log(`Decision recorded: ${entry.id}`);

// 验证完整性 / Verify integrity
const verification = trail.verify();
if (!verification.valid) {
  console.error('Chain compromised!', verification.errors);
}

// 导出 / Export
const htmlReport = await trail.export({
  format: 'html',
  includeMetadata: true,
  includeReasoning: true
});

await trail.close();

简化版本 / Simplified Version

// 用于简单用例 / For simple use cases
const entry = await trail.recordSimple(
  'What is 2+2?',
  '4',
  'Basic arithmetic calculation',
  50 // execution time in ms
);

🎯 使用场景 / Use Cases

1. AI安全与合规 / AI Safety & Compliance

场景 / Scenario: 金融机构使用AI进行贷款审批 / Financial institution using AI for loan approvals

await trail.recordDecision(
  {
    prompt: 'Approve loan application #12345',
    context: { creditScore: 720, income: 80000, debtRatio: 0.3 }
  },
  {
    steps: [
      { step: 1, action: 'evaluate', thought: 'Checking credit score threshold' },
      { step: 2, action: 'analyze', thought: 'Debt-to-income ratio acceptable' },
      { step: 3, action: 'decide', thought: 'All criteria met for approval' }
    ]
  },
  {
    decision: 'approved',
    confidence: 0.92,
    metadata: { loanAmount: 50000, interestRate: 0.045 }
  },
  2300
);

好处 / Benefits: 完整的监管合规审计追踪,能够向客户解释决策 / Full audit trail for regulatory compliance, ability to explain decisions to customers

2. 自主系统 / Autonomous Systems

场景 / Scenario: 自动驾驶汽车决策日志 / Self-driving car decision logging

await trail.recordDecision(
  {
    prompt: 'Pedestrian detected crossing street',
    context: { speed: 35, distance: 50, weather: 'clear' }
  },
  {
    steps: [
      { step: 1, action: 'detect', thought: 'Pedestrian at 50m ahead' },
      { step: 2, action: 'calculate', thought: 'Stopping distance: 35m' },
      { step: 3, action: 'decide', thought: 'Initiate emergency brake' }
    ]
  },
  { decision: 'emergency_brake', confidence: 1.0 },
  120
);

好处 / Benefits: 事故调查黑匣子记录,安全分析 / Black box recording for accident investigation, safety analysis

3. 内容审核 / Content Moderation

场景 / Scenario: AI审核用户生成内容 / AI moderating user-generated content

await trail.recordDecision(
  {
    prompt: 'Moderate comment: "..."',
    context: { userId: 'user123', platform: 'forum' }
  },
  {
    steps: [
      { step: 1, action: 'scan', thought: 'Checking for hate speech patterns' },
      { step: 2, action: 'analyze', thought: 'Detected potential violation' }
    ]
  },
  {
    decision: 'flag_for_review',
    confidence: 0.75,
    metadata: { violationType: 'potential_hate_speech' }
  },
  850
);

好处 / Benefits: 用户透明度,政策执行的证据 / Transparency for users, evidence for policy enforcement

4. 研究与开发 / Research & Development

场景 / Scenario: 调试AI Agent行为 / Debugging AI agent behavior

# 查找所有失败的决策 / Find all failed decisions
audit-trail list --limit 100 | grep "failed"

# 导出上周的决策用于分析 / Export last week's decisions for analysis
audit-trail export --output weekly-decisions.json \
  --start $(date -d '7 days ago' +%s) \
  --format json --include-reasoning

# 验证未发生篡改 / Verify no tampering occurred
audit-trail verify

好处 / Benefits: 可重现的实验,决策模式分析 / Reproducible experiments, decision pattern analysis


🏗️ 架构 / Architecture

┌─────────────────────────────────────────┐
│           CLI / API Layer               │
│   (User Interface & Integration)        │
└──────────────┬──────────────────────────┘
               │
┌──────────────▼──────────────────────────┐
│      AgentAuditTrail (Main API)         │
│  - Record decisions                     │
│  - Query & export                       │
│  - Verification                         │
└──────────────┬──────────────────────────┘
               │
    ┌──────────┴──────────┐
    │                     │
┌───▼──────────┐  ┌──────▼─────────┐
│ AuditChain   │  │ Storage Layer  │
│              │  │                │
│ - Hash chain │  │ - JSON files   │
│ - Integrity  │  │ - SQLite       │
│ - Verify     │  │ - PostgreSQL   │
└──────────────┘  └────────────────┘

🔐 安全性 / Security

密码学保证 / Cryptographic Guarantees

  • SHA-256哈希 - 工业标准加密哈希 / Industry-standard cryptographic hash
  • 链式关联 - 每个条目引用前一个哈希 / Each entry references previous hash
  • 篡改检测 - 任何修改立即可检测 / Any modification is immediately detectable
  • 创世哈希 - 唯一链标识符 / Unique chain identifier

数据隐私 / Data Privacy

  • ✅ 本地存储 - 所有数据存储在本地文件系统 / All data stored locally
  • ✅ 无外部传输 - 不连接任何外部服务器 / No external server connections
  • ✅ 用户控制 - 完全由用户控制数据 / User has full control of data
  • ✅ 可删除 - 用户可随时删除审计数据 / Users can delete audit data anytime

📊 技术规格 / Technical Specifications

  • 语言 / Language: TypeScript
  • Node.js版本 / Version: >= 18.0.0
  • 加密算法 / Crypto: SHA-256
  • 存储格式 / Storage: JSON (SQLite, PostgreSQL planned)
  • 导出格式 / Export: JSON, CSV, HTML, Markdown
  • 测试覆盖 / Test Coverage: 100% (25/25 tests passing)

📝 CLI 命令参考 / CLI Command Reference

init - 初始化 / Initialize

audit-trail init --agent-id <id> [--version <ver>] [--storage-path <path>]

record - 记录决策 / Record Decision

audit-trail record \
  --prompt <text> \
  --decision <text> \
  --reasoning <text> \
  [--agent-id <id>]

verify - 验证完整性 / Verify Integrity

audit-trail verify [--agent-id <id>]

list - 列出决策 / List Decisions

audit-trail list [--limit <n>] [--start <timestamp>] [--end <timestamp>]

export - 导出数据 / Export Data

audit-trail export \
  --output <file> \
  --format <json|csv|html|markdown> \
  [--include-reasoning]

info - 显示信息 / Show Information

audit-trail info [--agent-id <id>]

🗺️ 路线图 / Roadmap

v1.1 (即将推出 / Coming Soon)

  • [ ] SQLite 存储后端 / SQLite storage backend
  • [ ] PostgreSQL 存储后端 / PostgreSQL storage backend
  • [ ] 数字签名支持 / Digital signature support
  • [ ] 压缩支持 / Compression support
  • [ ] Web 仪表板 / Web dashboard

v1.2 (未来 / Future)

  • [ ] 区块链集成 / Blockchain integration
  • [ ] 实时流API / Real-time streaming API
  • [ ] 高级分析 / Advanced analytics
  • [ ] 多Agent支持 / Multi-agent support

🐛 常见问题 / FAQ

Q: 如何确保审计数据不被篡改? / How to ensure audit data cannot be tampered with?

A: 使用密码学哈希链。每个条目包含前一条目的SHA-256哈希,任何修改都会破坏链条。定期运行 audit-trail verify 检测篡改。

A: Use cryptographic hash chain. Each entry contains the SHA-256 hash of the previous entry. Any modification breaks the chain. Run audit-trail verify regularly to detect tampering.

Q: 审计数据存储在哪里? / Where is audit data stored?

A: 默认存储在 ./audit-data 目录。可通过 --storage-path 参数或环境变量 STORAGE_PATH 自定义。

A: Stored in ./audit-data directory by default. Customizable via --storage-path parameter or STORAGE_PATH environment variable.

Q: 支持分布式审计吗? / Does it support distributed auditing?

A: 当前版本(v1.0.0)支持本地文件存储。未来版本将支持SQLite、PostgreSQL和区块链集成。

A: Current version (v1.0.0) supports local file storage. Future versions will support SQLite, PostgreSQL, and blockchain integration.


📞 支持 / Support

  • GitHub Issues: https://github.com/ZhenRobotics/openclaw-audit-trail/issues
  • 文档 / Documentation: https://github.com/ZhenRobotics/openclaw-audit-trail#readme
  • Email: support@zhenrobotics.com

📄 许可证 / License

MIT License - 查看 LICENSE 文件了解详情。

MIT License - see LICENSE file for details.


以透明为理念构建。让AI决策可审计、可信任。 Built with transparency in mind. Make AI decisions auditable and trustworthy.

🔗 GitHub: https://github.com/ZhenRobotics/openclaw-audit-trail 📦 NPM: https://www.npmjs.com/package/openclaw-audit-trail 🦅 ClawHub: https://clawhub.ai/ZhenStaff/openclaw-audit-trail


版本 / Version: 1.0.0 最后更新 / Last Updated: 2026-03-13 状态 / Status: ✅ Production Ready

平台分布

OpenClaw

76.63%
按下载量换算2,103

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills