Agent System Maintenance Playbook
Use this skill whenever you need to add or modify OpenClaw agents, update skill packages, or verify MCP integrations inside this repo (/Users/raphael/Documents/Devs/juliaz_agents/openclaw).
Repository Layout Cheat Sheet
| Path | Purpose |
|---|---|
agents/ | YAML manifests (e.g., agents/juliamcp.yml) describing transports, skills, behaviors |
skills/<name>/ | Each skill folder contains SKILL.md, optional references, and any tool definitions (*.yml) |
skills/julia-bridge/*.yml | MCP tool wrappers for the Julia bridge (send, receive, health) |
bridge/ | Local MCP server source (Node) for Julia↔︎OpenClaw relay |
memory/ | Session notes/logs required by AGENTS.md workflow |
Workflow: Adding or Updating an Agent
- •Create/Update manifest: Add
agents/<agent>.ymlwithname,transport,skills, and behaviors. Useagents/juliamcp.ymlas a template. - •Validate structure: Ensure YAML lists
skills.requiredentries that exist underskills/. Keep correlation/behavior settings explicit (requireCorrelationId, retries, etc.). - •Link MCP transport: For MCP-based agents, set:
Adjust host/port if deploying elsewhere.yaml
transport: type: mcp endpoint: http://127.0.0.1:3001
- •Smoke-test: (a) restart any affected MCP servers, (b) run
mcporter call <server>.list_tools(if exposed) or the relevant tool to confirm connectivity. - •Document changes: Update or create
skills/<related-skill>/SKILL.mdso future runs know how/when to use the agent.
Workflow: Creating or Updating a Skill Package
- •Directory scaffolding:
mkdir -p skills/<skill>/then add:- •
SKILL.md(instructions) - •Optional helper docs (
README.md, references) - •Tool definitions (
*.yml) when the skill wraps a CLI/API (seeskills/julia-bridge/send.yml).
- •
- •Frontmatter discipline: Keep
name+descriptionshort but descriptive so OpenClaw’s skill loader can match user intents. - •Procedural clarity: In
SKILL.md, include:- •When to trigger the skill
- •Required tools/dependencies
- •Step-by-step procedures with exact commands
- •Troubleshooting tips
- •Testing: Execute each defined tool at least once (e.g.,
mcporter call ...) and confirm expected JSON. Capture quirks in the Troubleshooting section.
Workflow: MCP Server Maintenance (Bridge or Others)
- •Follow
skills/julia-bridge/SKILL.mdfor the existing bridge. - •New server? Add a folder under
bridge/(or another path) withpackage.json,server.js, etc. - •Register it with
mcporter:bashmcporter config add <name> http://127.0.0.1:<port> --transport http
- •Reference the new tools in an agent manifest, then add matching
skills/<name>/*.ymldefinitions.
Workflow: Verifying End-to-End Wiring
- •Health checks:
- •
openclaw health - •
openclaw channels status - •
mcporter call <server>.bridge_health
- •
- •Skill invocation: Use
skills/<skill>/<tool>.ymldefinitions via OpenClaw to ensure they trigger the MCP server correctly. - •Logs:
- •Bridge server logs to stdout with
[bridge]prefix. - •For OpenClaw issues, check
~/.openclaw/logs/and followskills/openclaw-self-manage.
- •Bridge server logs to stdout with
- •Queues: Inspect
bridgequeues (/queues/openclaw,/queues/julia) if messages stall.
Workflow: Memory + Documentation Hygiene
- •Update
memory/YYYY-MM-DD.mdafter significant maintenance work. - •When a new repeatable lesson emerges, add it to
HEURISTICS.mdper AGENTS.md instructions. - •Ensure
SOUL.md/USER.mdreflect any long-term preference changes uncovered during maintenance.
Troubleshooting Tips
| Issue | Checklist |
|---|---|
| Agent fails to load skills | Confirm skills/<skill>/SKILL.md exists and skills/<skill>/*.yml names match the references in agents/<agent>.yml. |
mcporter cannot reach server | Is the server running on the expected port? Run lsof -i :3001. Update config/mcporter.json if the base URL changed. |
| Output validation errors | Ensure MCP tools return both human-readable content and structured JSON (structuredContent) when an outputSchema is declared. |
| Persistent pairing issues | Run skills/openclaw-self-manage workflow (openclaw health, repair script, etc.) before editing configs. |
Related Skills + Files
- •
skills/julia-bridge/SKILL.md– bridge-specific ops - •
skills/openclaw-self-manage/SKILL.md– gateway/CLI troubleshooting - •
AGENTS.md– daily operating doctrine - •
HEURISTICS.md– accumulated rules from incidents