openclaw-audit

openclaw-audit is a skill for Claude Code, Codex from fullymiddleaged/Clawness. It costs 121 tokens per session (2,557 once invoked), scanned A, original, MIT.

An audit tool for OpenClaw, an agent workspace that injects Markdown files such as SOUL.md and AGENTS.md into every turn, to reduce unnecessary prompt content.

In plain words
What is it for?
Use it to measure prompt size, review workspace files section by section, and move durable guidance into ranked retrieval while checking replacements before removal.
Why use it?
It helps control the amount of repeated workspace guidance sent on every turn and prevents OpenClaw from truncating files according to fixed limits.

Skill for Claude CodeCodex

Part of the clawness plugin — 13 skills, 7 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fullymiddleaged/clawness/openclaw-audit
Any agent
npx skills add fullymiddleaged/Clawness --skill openclaw-audit
Clone the repo
git clone --depth 1 https://github.com/fullymiddleaged/Clawness

Made for: Claude Code, Codex.

Or install clawness, the plugin that ships this one along with the rest of its 13 skills, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openclaw-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/fullymiddleaged/clawness/openclaw-audit.svg)](https://agentmods.dev/skills/fullymiddleaged/clawness/openclaw-audit)
Your own site
<a href="https://agentmods.dev/skills/fullymiddleaged/clawness/openclaw-audit"><img src="https://agentmods.dev/badge/skills/fullymiddleaged/clawness/openclaw-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,557 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00121 $0.02557
Opus 5 $0.00060 $0.01278
Sonnet 5 $0.00024 $0.00511
Haiku 4.5 $0.00012 $0.00256

Measured 5d ago against content hash 2e1383aab2f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openclaw-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openclaw-audit/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trim an OpenClaw workspace prompt

OpenClaw assembles its system prompt fresh for every agent turn. Alongside the fixed sections it manages (Tooling, Safety, Skills, Workspace, …), it injects the workspace's own Markdown files in full, every turn: AGENTS.md, SOUL.md, IDENTITY.md, USER.md, BOOTSTRAP.md (new workspaces only, self-deletes after first run), and MEMORY.md when present. That injected block is the one part of the per-turn cost the workspace owner controls — and the usual "landslide of noise per turn" complaint is it growing unchecked. OpenClaw caps it at 20,000 chars per file and 60,000 total and truncates past that with a terse notice, which is a worse outcome than trimming on purpose: you don't choose what gets cut.

This skill is the remedy, the OpenClaw sibling of /clawness:claude-md. It is opt-in work: you invoking it is the consent, because a good trim is destructive and takes a while.

Say this before starting. This reorganises files the user may care about a great deal (SOUL.md is the agent's personality), and it takes most of a session. Tell them: nothing is deleted until its replacement is verified, and they can stop after any single file. Then get an explicit go-ahead.

Filenames and limits below are from OpenClaw's public docs, not a live install. Before you measure, confirm the workspace path and the file set actually present — see the same caution in openclaw/README.md ("Assumptions to verify"). The default workspace is ~/.openclaw/workspace/; the user may point elsewhere.

First: is this the right tool?

This skill earns its place only when Clawness is running under OpenClaw (the openclaw/ TypeScript adapter shelling out to the Python hooks), because the whole point is to move bulk out of always-injected files and into Clawness's ranked retrieval, which the adapter provides via the before_prompt_build hook. Without that adapter installed there is nowhere cheaper for the content to go, and you should stop and say so — trimming a workspace file with no ranked destination just loses information.

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 170 lines · 121 tokens per session scan A 2e1383aab2f7

Subscribe to this mod's changes

openclaw-audit is a skill published in the GitHub repository fullymiddleaged/Clawness (3 stars, last pushed 7d ago), licensed MIT. It adds 121 tokens to every session and 2,557 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.