ClawSpa for Openclaw

ClawSpa is a comprehensive wellness and maintenance suite designed to optimize AI agent performance through memory cleanup, security audits, and alignment diagnostics.

whooshinglander
v1.4.1
Apr 7, 2026
1
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install clawspa

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install clawspa using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ClawSpa?

ClawSpa is a vital maintenance tool within the Openclaw Skills ecosystem, serving as a dedicated wellness suite for AI coding agents. It provides a structured approach to agent hygiene by performing deep cleanses of memory files, auditing installed skills for security risks, and identifying contradictions in instruction alignment. By focusing on local-first processing, it ensures that your agent remains fast, secure, and accurately aligned with your specific developer intent.

This skill addresses the common issue of 'agent bloat' where long-term memory and redundant skill installations degrade performance. Through its suite of local treatments, ClawSpa helps developers maintain a lean context window, minimize token wastage, and protect against prompt injection residue, making it an essential utility for anyone managing sophisticated Openclaw Skills workflows.

ClawSpa Use Cases

  • Periodic memory optimization to remove stale entries and duplicate logs from MEMORY.md.
  • Security auditing of newly installed skills to identify potentially malicious patterns or high-risk behaviors.
  • Troubleshooting agent behavior when instructions or memories appear to contradict current goals.
  • Reducing token consumption by pruning dormant skills and optimizing context usage.
  • Detecting prompt injection residue or 'detox' requirements after interacting with untrusted inputs.

How ClawSpa Works

  1. The user triggers a maintenance session using commands like /spa or /spa-health.
  2. ClawSpa accesses the local agent directory to scan MEMORY.md, daily logs, and the skills inventory.
  3. The system runs heuristic diagnostic procedures (Deep Cleanse, Security Scan, Detox, etc.) based on the requested treatment.
  4. Findings are compiled into a standardized health report card without modifying any files automatically.
  5. The agent presents specific optimization recommendations (e.g., pruning recs or alignment adjustments) for user approval.
  6. Upon explicit user confirmation, the agent performs authorized cleanups and saves a record to the spa-reports history.

ClawSpa Setup

To get started with ClawSpa for your Openclaw Skills environment, initialize the required directories and configuration:

mkdir -p ~/.openclaw/clawspa/history/
touch ~/.openclaw/clawspa/config.md

You can also automate your maintenance by adding a schedule to your HEARTBEAT.md file:

## ClawSpa Weekly (Sunday 3AM)
- Run /spa local
- Save report
- Alert on red flags

ClawSpa Data Schema & Taxonomy

ClawSpa organizes its diagnostic data and history within a structured directory to ensure long-term tracking of agent health:

Path Description
~/.openclaw/clawspa/config.md Primary configuration and user preferences for scans.
memory/spa-reports/spa-report-YYYY-MM-DD.md Standardized health report cards containing token savings and risk levels.
~/.openclaw/clawspa/history/ Archive of past maintenance results and scan logs.
references/ Documentation for specific procedures like security-scan.md and detox.md.

ClawSpa Advanced Features

  • Alignment Adjustment: Detects complex logical contradictions between user-defined instructions and actual agent behavior.
  • Token Diet Add-on: Integrates with external spend-tracking skills to audit and trim context 'calories'.
  • Custom Security Patterns: Extensible scan procedures to look for specific malicious code signatures in local skills.
  • Scheduled Heartbeat Integration: Supports automated weekly maintenance cycles for hands-off agent optimization.
  • Local-First Privacy: Designed to keep sensitive memory and skill audits entirely on your local machine.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*