Initialize and configure OpenClaw agent workspace MD files (AGENTS.md, SOUL.md, IDENTITY.md, USER.md, TOOLS.md, BOOTSTRAP.md, HEARTBEAT.md). Use when: setting up a new agent, customizing agent personality/behavior, configuring agent workspace, or checking/fixing agent environment (Python/uv). Provides interactive interview workflow before generating files. Supports both container and external (host) OpenClaw instances.
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-init
Initialize OpenClaw agent workspace with tailored MD files through an interactive interview.
Before generating ANY files, gather context through conversation. Ask in batches of 2-3 questions:
Batch 1 — Identity & Purpose:
Batch 2 — User Profile:
Batch 3 — Environment:
Batch 4 — Boundaries:
Only proceed to Phase 2 after user confirms the interview is complete.
Run scripts/check-env.sh to detect Python/uv status:
bash <skill-path>/scripts/check-env.sh
If uv is missing and user wants Python support:
bash <skill-path>/scripts/check-env.sh --install
For container instances, run inside the container:
docker exec <containerId> bash -c "which uv && uv --version || echo 'uv: NOT FOUND'"
Generate files in this order, showing each to user for confirmation before writing:
Read the current AGENTS.md first. The default template contains critical infrastructure:
Add new sections; never remove existing ones. Safe insertion points:
## Python
- Package manager: `uv` (NEVER use pip directly)
- Create venv: `uv venv .venv`
- Install: `uv pip install <package>`
- Run: `uv run python script.py`
- If uv missing: `curl -LsSf https://astral.sh/uv/install.sh | sh`
Determine write method based on instance type:
External instance (workspace on host filesystem):
# Workspace files live at {workspacePath}/workspace/ (or workspace-{profile}/)
cat > {workspacePath}/workspace/SOUL.md << 'ENDOFFILE'
[content]
ENDOFFILE
Container instance (OpenClaw running in Docker):
docker exec -i <containerId> sh -c 'cat > /home/node/.openclaw/workspace/SOUL.md' << 'ENDOFFILE'
[content]
ENDOFFILE
For non-main agents (agentId ≠ "main"):
config.getworkspace-{agentId}/ or configured separatelyAfter writing, confirm files are in place:
# External
ls -la {workspacePath}/workspace/*.md
# Container
docker exec <containerId> ls -la /home/node/.openclaw/workspace/*.md
references/templates.md — Official templates, loading order, per-file strategy, section structurereferences/openclaw-workspace.md — Instance types, workspace paths, Python env, agent creation rulesRead these when you need detailed guidance on template structure or workspace configuration.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
Coding Agent Session Search - unified CLI/TUI to index and search local coding agent history from Claude Code, Codex, Gemini, Cursor, Aider, ChatGPT, Pi-Agent, Factory, and more. Purpose-built for AI agent consumption with robot mode.
Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.
Makepad UI development skills for Rust apps: setup, patterns, shaders, packaging, and troubleshooting.
Secure environment variable management ensuring secrets are never exposed in Claude sessions, terminals, logs, or git commits
Prompt for generating an AGENTS.md file for a repository
Take majiayu000/agent-init from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip, uv.
Without those the skill loads but fails at the first command.