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.
npx skills add EmpiricaAI/empirica --skill message-cleanupgit clone --depth 1 https://github.com/EmpiricaAI/empiricaWrote 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.
[](https://agentmods.dev/skills/empiricaai/empirica/message-cleanup)<a href="https://agentmods.dev/skills/empiricaai/empirica/message-cleanup"><img src="https://agentmods.dev/badge/skills/empiricaai/empirica/message-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/empiricaai/empirica/message-cleanup"><img src="https://agentmods.dev/badge/skills/empiricaai/empirica/message-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00089 | $0.00651 |
| Opus 5 | $0.00044 | $0.00326 |
| Sonnet 5 | $0.00018 | $0.00130 |
| Haiku 4.5 | $0.00009 | $0.00065 |
Grade A, and why
message-cleanup 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Message Cleanup — daily housekeeping body
This is a scheduled-loop body skill, not a user-facing workflow.
The message-cleanup canonical loop fires once a day (cron 17 3 * * *)
and wakes a session to run this skill. The runtime is short: one CLI
verb + a receipt log.
When this fires
The TUI cockpit registers this loop alongside cortex-mailbox-poll
when the user toggles L on an instance for the first time, or by
explicit empirica loop register --name message-cleanup. On fire,
the AI sees a <task-notification> and loads this skill.
What to do
One command, then close out:
empirica message-cleanup --output json
The verb walks refs/notes/empirica/messages/ for any message whose
expiry_at is in the past and removes them. JSON output shape:
{
"ok": true,
"dry_run": false,
"removed_count": 12,
"removed": [
{"message_id": "...", "channel": "...", "subject": "..."},
...
]
}
If removed_count > 0, log a brief finding so the cleanup is visible
in the project's audit trail:
empirica finding-log \
--finding "message-cleanup: pruned <N> expired mesh messages" \
--impact 0.2 --epistemic-source intuition
If removed_count == 0, no artifact needed — silent success is fine.
Then signal heartbeat and you're done:
empirica loop heartbeat message-cleanup --status ok --result \
$([ "$removed_count" -gt 0 ] && echo found || echo empty)
What NOT to do
- Don't open an empirica transaction for this — it's a pure CLI cleanup, no praxic decisions to gate.
- Don't run with
--dry-rununless you're debugging. The loop's scheduled fire IS the action. - Don't escalate to user attention unless the verb errors. A scheduled cleanup is supposed to be invisible.
Source
- Verb:
empirica message-cleanup— handler atempirica/cli/command_handlers/message_commands.py::handle_message_cleanup_command - Underlying logic:
empirica/core/canonical/empirica_git/message_store.py::cleanup_expired - Catalog entry:
empirica/core/cockpit/canonical_loops.py(this loop)
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.
- 11d ago First seen · 82 lines · 89 tokens per session scan A b1eebe928241
message-cleanup is a skill published in the GitHub repository EmpiricaAI/empirica (246 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 651 once invoked, about $0.0004 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-30.
Other skills, from other repositories
workflow-builder
Design, build, and maintain autonomous OpenClaw workflows (stewards). Use when creating new workflow agents, improving existing ones, evaluating automation opportunities, or debugging workflow reliability. Triggers on "build a workflow", "create a steward", "automate this process", "workflow audit", "what should I…
smart-delegation
Intelligent task delegation — route to think with deep reasoning for hard problems, or Grok for unfiltered takes. Teaches when to escalate, how to pack context into sub-agent spawns, and how to communicate delays transparently. Default: handle directly on chat (thinking off). Escalate only when the quality gain…
review
A pause before an artifact goes into the world. Reviews external comms, money, calendar, public posts, or send-as-operator actions through a small panel of independent lenses (empathy first) and returns a verdict of pass / edit / hold / block.
claude-code
Route real repo work to Claude Code instead of editing by hand. Triggers on "claude code" or "cc", and on any request to edit, fix, refactor, or open a PR in a repo outside /.openclaw/workspace. Claude Code picks up the repo's CLAUDE.md / AGENTS.md, applies its standards, and knows the /ai-coding-config:multi-review…
cortex
Personal knowledge compiler and memory system. Ingests raw sources (documents, notes, transcripts, captures) into a structured, interlinked knowledge base. Maintains living entity pages, learning analysis, and the MEMORY.md routing table. Replaces the librarian skill.
drive-to-done
Drive a task all the way to a verified done state — write DoD first, verify each item with evidence, stop only at named stop conditions.