AgentSkillsCN

brainwash

管理 OpenClaw 人物角色上下文文件——查看、审计、编辑并验证您智能体的身份。适用于检查人物角色文件、审核约定规范,或生成头像提示词时使用。

SKILL.md
--- frontmatter
name: brainwash
description: Manage OpenClaw persona context files - view, audit, edit, and validate your agent's identity. Use when checking persona files, auditing conventions, or generating avatar prompts.
invocation: user
arguments: "[list|show|audit|edit|avatar|status|init] [file]"

brainwash

Manage OpenClaw persona context files with ease.

Quick Reference

TaskCommand
List all context filesbrainwash list
Show a specific filebrainwash show soul
Audit conventionsbrainwash audit
Edit a filebrainwash edit soul
Generate avatar promptbrainwash avatar
Create missing filesbrainwash init
Quick statusbrainwash status

Commands

list

Show all context files with status (exists, lines, size).

show <file>

Display contents of a context file.

  • soul → SOUL.md
  • identity → IDENTITY.md
  • user → USER.md
  • agents → AGENTS.md
  • tools → TOOLS.md
  • heartbeat → HEARTBEAT.md
  • memory → MEMORY.md

audit

Validate all files against OpenClaw conventions:

  • PURPOSE comments
  • Required fields in IDENTITY.md
  • File size warnings (approaching 20K truncation)
  • Naming consistency

edit <file>

Open a context file in your $EDITOR.

avatar

Generate an avatar prompt from IDENTITY.md and SOUL.md for use with image generation tools.

init

Create missing context files from templates.

status

Quick summary of workspace health.

Workspace Selection

brainwash auto-discovers workspaces in this order:

  1. BRAINWASH_WORKSPACE env var
  2. Config file (~/.config/brainwash/settings.json)
  3. OpenClaw config (~/.openclaw/openclaw.json agents)
  4. OPENCLAW_PROFILE env (~/.openclaw/workspace-$PROFILE)
  5. Default: ~/.openclaw/workspace

Override with: brainwash --workspace /path/to/workspace