← 返回
安全合规 中文

Workspace Audit

Audit your OpenClaw workspace for drift — stale paths, duplicate content, oversized files, secret leaks, and 1Password vault mismatches. Zero deps. By The Ag...
审计 OpenClaw 工作区偏差 — 检查陈旧路径、重复内容、超大文件、密钥泄露和 1Password 保险库不匹配。零依赖。
theagentwire
安全合规 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 569
下载
💾 8
安装
1
版本
#latest

概述

Workspace Audit

Your workspace files drift. Credentials go stale. Paths break. Secrets leak into memory files. This skill catches it all.

Zero dependencies. Bash + Python stdlib. Works on macOS and Linux.

What It Checks

AuditWhat it catches
------
Structure & SizeMissing required files, oversized files, skills without frontmatter, secrets in memory files, git hygiene
1Password VaultTOOLS.md references that don't match your vault, vault items not documented
DuplicationDuplicate section headers across files, credentials outside TOOLS.md, personality content in wrong files
Path ReferencesBroken ~/, skills/, scripts/, docs/ paths referenced in workspace files

Quick Start

Run all audits:

bash skills/workspace-audit/scripts/audit-all.sh

Verbose mode (shows passing checks too):

bash skills/workspace-audit/scripts/audit-all.sh --verbose

Individual Audits

# Structure, sizes, skills validation, secret scanning, git status
bash skills/workspace-audit/scripts/audit-structure.sh

# 1Password vault alignment (requires OP_SERVICE_ACCOUNT_TOKEN)
bash skills/workspace-audit/scripts/audit-1password.sh

# Duplicate headers, role overlap, credential leaks outside TOOLS.md
bash skills/workspace-audit/scripts/audit-duplication.sh

# Verify all file paths referenced in workspace files actually exist
bash skills/workspace-audit/scripts/audit-paths.sh

Configuration

All scripts respect environment variables — no hardcoded paths or values.

VariableDefaultDescription
---------
WS~/.openclaw/workspaceWorkspace root directory
TOOLS_MD$WS/TOOLS.mdPath to your TOOLS.md
OP_VAULT(all vaults)1Password vault name to audit against
AUDIT_CONFIG$WS/skills/workspace-audit/audit.confOptional config file for custom limits

Custom File Size Limits

Create audit.conf in the skill directory to override defaults:

# audit.conf — custom line limits per file
AGENTS_LIMIT=1000
SOUL_LIMIT=200
USER_LIMIT=200
IDENTITY_LIMIT=50
TOOLS_LIMIT=500
HEARTBEAT_LIMIT=100
MEMORY_LIMIT=150

When to Run

  • After editing TOOLS.md, AGENTS.md, or MEMORY.md
  • After adding/removing 1Password items
  • After moving or renaming skills/scripts/docs
  • During weekly review or nightly consolidation cron
  • After installing new skills

File Role Reference

See references/file-roles.md for the single-responsibility matrix — which content belongs in which file.

Exit Codes

CodeMeaning
------
0All checks passed
1Issues found (see output)

FAQ

What is workspace-audit?

A zero-dependency audit suite for OpenClaw workspaces. It checks your workspace files (AGENTS.md, TOOLS.md, MEMORY.md, etc.) for drift — broken paths, duplicate content, oversized files, leaked secrets, and 1Password vault mismatches. Runs entirely in bash + Python stdlib.

What problem does it solve?

OpenClaw workspaces drift over time. You rename a script but forget to update TOOLS.md. You add a 1Password item but never document it. A secret leaks into a memory file. A skill folder is missing its SKILL.md frontmatter. This skill catches all of it in one command.

What are the requirements?

Bash and Python 3 (stdlib only). No pip installs needed. 1Password CLI (op) is optional — the vault audit gracefully skips if op isn't installed or authenticated.

Does it work without 1Password?

Yes. The 1Password audit is one of four checks. If op isn't installed or OP_SERVICE_ACCOUNT_TOKEN isn't set, it skips that audit and runs the other three (structure, duplication, paths).

Can I customize the file size limits?

Yes. Create an audit.conf file in the skill directory with variables like MEMORY_LIMIT=200 or AGENTS_LIMIT=500. See audit.conf.example for all options.

How do I run it on a schedule?

Add a cron job that calls bash skills/workspace-audit/scripts/audit-all.sh. It returns exit code 1 if issues are found, so your agent can alert you only when something drifts.


Built by The Agent Wire — You read it. Your Agent runs it.

More skills: clawhub.ai/u/TheAgentWire

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-31 16:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,598
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,709
ai-intelligence

Agent Rate Limiter

theagentwire
防止 429,自动分层限流+指数退避,零依赖。— The Agent Wire (theagentwire.ai)
★ 3 📥 1,854