From openclaw
Create, optimize, and maintain OpenClaw agent workspace files — SOUL.md, IDENTITY.md, AGENTS.md, MEMORY.md, and GOALS.md. Use this skill whenever the user mentions OpenClaw agent setup, agent personality, agent identity, agent workspace files, SOUL.md, IDENTITY.md, AGENTS.md, MEMORY.md, GOALS.md, agent persona, "set up my agent", "configure my agent", "make my agent", or wants to scan/optimize/audit an existing OpenClaw workspace. Also trigger when the user wants to create a new agent from scratch, refine an agent's personality, add goals or memory structure, or review workspace files for consistency. This skill conducts targeted interviews, generates production-ready markdown files, and can scan existing workspaces to optimize them.
How this skill is triggered — by the user, by Claude, or both
Slash command
/openclaw:openclaw-agent-architectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build, configure, and optimize OpenClaw agent workspace files through guided interviews and workspace analysis.
references/agent-templates/code-reviewer.mdreferences/agent-templates/devops-automator.mdreferences/agent-templates/feedback-synthesizer.mdreferences/agent-templates/index.mdreferences/agent-templates/security-engineer.mdreferences/agent-templates/software-architect.mdreferences/agent-templates/sprint-prioritizer.mdreferences/agent-templates/technical-writer.mdreferences/agent-templates/ux-researcher.mdreferences/templates.mdBuild, configure, and optimize OpenClaw agent workspace files through guided interviews and workspace analysis.
OpenClaw agents are defined by markdown files in a workspace directory (default: ~/.openclaw/workspace). Each file serves a distinct purpose:
| File | Purpose | Loaded When |
|---|---|---|
| SOUL.md | Behavioral philosophy, personality, values, communication style, boundaries | Every session (system prompt) |
| IDENTITY.md | External presentation — name, emoji, status line | Every session (display layer) |
| AGENTS.md | Operating instructions — memory rules, safety, group chat behavior, workflows | Every session + subagent sessions |
| MEMORY.md | Long-term persistent memory — learned facts, preferences, project context | Normal sessions only (optional) |
| GOALS.md | Active goals, milestones, priorities, progress tracking | Normal sessions (custom addition) |
SOUL.md defines who the agent is. IDENTITY.md defines how it presents. AGENTS.md defines how it operates. MEMORY.md defines what it knows. GOALS.md defines what it's working toward.
This skill operates in two modes:
When the user wants to create new agent files, conduct a targeted interview before generating anything. Do not dump a generic template — ask questions, listen, then craft files that reflect the user's actual needs.
Run the interview in phases. Each phase covers one file. Ask 3-5 focused questions per phase, wait for answers, then generate that file before moving to the next phase. The user can skip phases for files they don't need.
Phase 1: SOUL.md — Who is your agent?
Core questions to ask (adapt based on context):
Also ask about:
Phase 2: IDENTITY.md — How does it present itself?
Phase 3: AGENTS.md — How does it operate?
Phase 4: MEMORY.md — What does it already know?
Phase 5: GOALS.md — What is it working toward?
After each interview phase, generate the file following these principles:
SOUL.md generation:
# Identity section (one-line role statement)## Core Values (3-5 values as decision-making frameworks, not platitudes)## Communication Style (explicit tone, length, anti-pattern instructions)## Boundaries (what the agent must NOT do)## Context (persistent domain knowledge the agent needs every session)## Vibe for personality flavorIDENTITY.md generation:
name: AgentName
emoji: 🦞
status: Your tagline here
AGENTS.md generation:
## sections: Memory Management, Safety Rules, Group Chat Behavior, Workflows, Tool RulesMEMORY.md generation:
## User Profile, ## Projects, ## Preferences, ## People, ## Lessons LearnedGOALS.md generation:
## Active Goals, ## Milestones, ## Completed (archive section)## Review Schedule section defining when the agent should check in on goals### [P1] Goal Title
- **Target**: YYYY-MM-DD
- **Status**: In Progress | Blocked | Complete
- **Next action**: Specific next step
- **Progress**: Brief notes
When the user has existing workspace files, read them all first, then:
When optimizing, always:
Whether building from scratch or optimizing, the agent's persona should feel cohesive. After generating all files, do a final coherence check:
If anything is misaligned, flag it and propose fixes.
For quick reference, see references/templates.md — contains starter templates for all five files. Use these as scaffolding, never as final output. Every file should be customized through the interview process.
chmod 444 on SOUL.md and IDENTITY.md after finalizing..md files from the workspace. Mention this to the user so they understand it's a custom addition that leverages OpenClaw's workspace loading behavior.npx claudepluginhub theophiluschinomona/claude-openclaw-plugin --plugin openclawGenerates markdown agent files with YAML frontmatter for Claude Code, configuring system prompts, tools, and isolation for autonomous task delegation in plugins.
Asks 10 discovery questions to understand user needs, configures AI agent workspace files for target system, tests integrations, and implements security guardrails. Use for new agent setups.
Creates Claude Code agents from scratch or by adapting templates. Guides requirements gathering, template selection, and file generation following Anthropic best practices (v2.1.63+).