openclaw-skill
A skill that guides installing, configuring, operating, and troubleshooting OpenClaw, a self-hosted AI agent gateway that connects to multiple chat channels.
A Claude Code skill for maintaining and optimizing OpenClaw workspace files, the markdown files that form an AI agent's soul, memory, and operating procedures.
Claude Code
$ npx -y skills add win4r/openclaw-workspace --agent claude-code
Codex
$ npx skills add win4r/openclaw-workspace -a codex
Cursor
$ npx skills add win4r/openclaw-workspace -a cursor
Gemini CLI
$ npx skills add win4r/openclaw-workspace -a gemini-cli
GitHub Copilot
$ npx skills add win4r/openclaw-workspace -a github-copilot
OpenCode
$ npx skills add win4r/openclaw-workspace -a opencode
Windsurf
$ npx skills add win4r/openclaw-workspace -a windsurf
A Claude Code skill for maintaining and optimizing OpenClaw workspace files — the markdown files that form an AI agent's soul, memory, and operating procedures.
OpenClaw is a self-hosted, multi-channel AI agent gateway (WhatsApp, Telegram, Discord, Slack, and more). Every OpenClaw agent has a workspace — a directory of markdown files that are injected into the system prompt on each turn, giving the agent its identity, behavioral rules, environmental knowledge, and long-term memory.
These workspace files are powerful but require careful management:
This skill gives Claude Code the knowledge to audit, optimize, and build OpenClaw workspace files correctly.
| File | Purpose | Loaded When | Visible to Sub-agents? |
|---|---|---|---|
AGENTS.md | Boot sequence, checklists, behavioral rules | Every turn (all agents) | Yes |
SOUL.md | Persona, tone, values, continuity philosophy | Every turn (all agents) | Yes |
TOOLS.md | Env-specific notes (SSH, TTS, cameras, devices) | Every turn (main + sub-agents) | Yes |
USER.md | Human profile, preferences, relationship context | Every turn (main sessions only) | No |
IDENTITY.md | Name, emoji, avatar, self-description | Every turn | Yes |
HEARTBEAT.md | Periodic check tasks and health routines | Every heartbeat turn | Depends |
BOOT.md | Startup actions (hooks.internal.enabled required) | On gateway startup | No |
BOOTSTRAP.md | First-time onboarding script — delete after use | New workspaces only | No |
MEMORY.md | Long-term curated facts and iron-law rules | Main sessions only | Never |
memory/YYYY-MM-DD.md | Daily session logs | Per AGENTS.md boot sequence | No |
checklists/*.md | Step-by-step ops guides | On demand (referenced from AGENTS.md) | No |
| Constraint | Limit |
|---|---|
| Per file hard cap | 20,000 chars (truncated if exceeded) |
| Total across all bootstrap files | ~150,000 chars |
| Recommended target per file | 10,000–15,000 chars |
MEMORY.mdmust NEVER be loaded in group chats or sub-agent sessions. It contains private user context that must not leak. The boot sequence inAGENTS.mdmust gate its loading explicitly:"Main session only: Read MEMORY.md".
~/.openclaw/workspace/
├── AGENTS.md # Operating manual — boot sequence, rules, checklists table
├── SOUL.md # Persona, tone, values
├── TOOLS.md # Env-specific: SSH hosts, TTS voices, camera IDs
├── USER.md # Human profile (main sessions only)
├── IDENTITY.md # Name, emoji, avatar
├── HEARTBEAT.md # Periodic task instructions
├── BOOT.md # Startup hook actions
├── BOOTSTRAP.md # First-run onboarding (delete after use)
├── MEMORY.md # Iron-law rules (main sessions only)
├── memory/
│ ├── 2026-03-10.md # Daily session logs
│ └── archive/ # Old logs (> 30 days)
├── checklists/
│ ├── deploy-agent.md
│ ├── gateway-restart.md
│ └── config-patch.md
└── docs/ # On-demand docs (NOT auto-loaded every turn)
├── agent-rules-detail.md
└── ssh-reference.md
When invoked, this skill guides Claude Code through five main workflows:
Reads all workspace files, checks character counts, identifies bloat, spots redundancy between files, finds stale content, and proposes targeted edits.
# Quick size audit
wc -c ~/.openclaw/workspace/*.md
Files over 10,000 chars are prime candidates for trimming or moving content to docs/ (loaded on demand).
Creates workspace files in the correct order (SOUL → AGENTS → IDENTITY → USER → TOOLS → MEMORY → optional files). Ensures the boot sequence, security gates, and checklist table are all properly wired up.
Minimal viable workspace: AGENTS.md + SOUL.md + TOOLS.md. Everything else is optional.
Processes memory/YYYY-MM-DD.md daily logs into MEMORY.md. Promotes recurring mistakes and hard-won rules to iron-law format, archives old logs, and checks for rules that have matured enough to move to a skill's SKILL.md instead.
Creates checklists/<operation>.md files for high-risk operations (deploys, config changes, gateway restarts) and registers them in the AGENTS.md checklists routing table.
Adds new environment-specific entries (SSH hosts, TTS voices, camera/device IDs) and cleans out stale entries.
This is a Claude Code skill. Place it in your skills directory:
# Clone into your Claude Code skills directory
git clone https://github.com/win4r/openclaw-workspace ~/.claude/skills/openclaw-workspace
Claude Code will automatically detect and register the skill. It will appear in the skill list as:
openclaw-workspace — Use when maintaining or optimizing OpenClaw workspace files...
Copy the skill directory anywhere Claude Code looks for skills:
~/.claude/skills/openclaw-workspace/ (recommended).claude/skills/openclaw-workspace/Once installed, Claude Code will automatically invoke this skill when you:
You can also explicitly ask: "Use the openclaw-workspace skill to..."
Move content to docs/ (loaded on demand, not every turn). Keep only what needs to be in context on every single turn.
Add explicit gating in AGENTS.md boot sequence: "2. Main session only: Read MEMORY.md". Without this gate, the agent may load it in any context.
The agent follows AGENTS.md boot sequence instructions — it won't auto-discover files. Make sure each file is explicitly named in the boot sequence.
Workspace files are read at session start. Start a new session or restart the gateway for changes to apply.
Run memory distillation monthly. Promote mature rules to skill SKILL.md files (more appropriate home for stable, tool-specific rules). Delete rules about completed tasks.
| File | Description |
|---|---|
SKILL.md | Main skill — all workflows, common issues, workspace paths |
references/workspace-files.md | Deep-dive on every workspace file: purpose, design principles, anti-patterns, section structure |
references/optimization-guide.md | Token efficiency strategies, audit commands, memory distillation process, redundancy audit table |
MIT
A skill that guides installing, configuring, operating, and troubleshooting OpenClaw, a self-hosted AI agent gateway that connects to multiple chat channels.
A Clawdbot skill to run Claude Code (Anthropic) on the host via the claude CLI (Agent SDK).
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
A Claude Code skill for maintaining and optimizing OpenClaw workspace files, the markdown files that form an AI agent's soul, memory, and operating procedures. Install it with the command on its page. It includes openclaw-workspace. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it