home / skills / openclaw / skills / mud
This skill operates and maintains the persistent MUD agent to run engine commands, smoke-test state, and validate save/restore deterministically.
npx playbooks add skill openclaw/skills --skill mudReview the files below or copy the command above to add this skill to your agents.
---
name: mud
description: Operate and maintain the persistent MUD agent for OpenClaw. Use when running MUD engine commands, smoke-testing mud state behavior, validating save/restore, diagnosing MUD data issues, or handling MUD deployment operations.
---
# MUD
**Authors:** agigui and lia
Use this skill to run the local MUD engine safely and deterministically.
## Workflow
1. Locate the engine directory.
- Prefer `C:\Users\openclaw\.openclaw\workspace-mud-dm\mud-agent`
- Fallback: `C:\Users\openclaw\.openclaw\workspace\mud-agent`
2. Run a smoke test with `scripts/mud_cmd.py`.
3. Run requested MUD operations.
4. Use `references/ops.md` and `references/commands.md` for runbook details.
## Command runner
```powershell
python skills/mud/scripts/mud_cmd.py "<command>"
```
Examples (current CLI engine):
```powershell
python skills/mud/scripts/mud_cmd.py "list-races"
python skills/mud/scripts/mud_cmd.py "register-player --campaign demo --player u1 --name Hero"
python skills/mud/scripts/mud_cmd.py "new-character --campaign demo --player u1 --name Rook --race human --char-class rogue"
python skills/mud/scripts/mud_cmd.py "save --campaign demo"
python skills/mud/scripts/mud_cmd.py "check-image-cooldown --campaign demo"
python skills/mud/scripts/mud_cmd.py "generate-image --campaign demo --prompt \"A rain-soaked neon tavern\""
```
Legacy slash-command engine is auto-detected and still supported by the same wrapper.
## Notes
- Keep mechanics deterministic in engine code; use LLM for narration.
- Avoid hardcoded secrets/tokens in skill files.
- Image generation is available through engine commands (`check-image-cooldown`, `record-image`, `generate-image`) when the runtime image pipeline is configured.
- Keep this skill focused on operations and execution.
This skill operates and maintains the persistent MUD agent used by OpenClaw. It provides safe, deterministic execution of engine commands, smoke-testing of runtime state, and utilities for validating save/restore and diagnosing data issues. Use it when performing deployment or operational tasks on the MUD engine.
The skill locates the local engine directory and runs a command-wrapper script to invoke engine operations deterministically. It uses a single entrypoint script (skills/mud/scripts/mud_cmd.py) to run commands such as listing races, registering players, creating characters, saving state, and controlling image generation. Legacy engine interfaces are auto-detected so the same wrapper works across versions.
How do I run a MUD command locally?
Run the wrapper script: python skills/mud/scripts/mud_cmd.py "<command>" from the repository root or the engine directory.
What if the engine is in a different path?
The skill prefers the workspace-mud-dm path and falls back to the legacy workspace. Update your environment or run the script from the engine directory if neither path applies.