Openclaw-master-skills agent-lifecycle-manager
Manage full OpenClaw agent lifecycle operations on a node: create/register agents, configure channel bindings, inherit credentials, approve pairing, archive and delete agents, refresh status dashboards, and write lifecycle change logs. Use when a user asks to onboard a new agent, reconfigure an existing agent, retire/archive/delete agents, or maintain agent status boards and lifecycle audit records.
install
source · Clone the upstream repo
git clone https://github.com/LeoYeAI/openclaw-master-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/miniade-agent-lifecycle-manager" ~/.claude/skills/leoyeai-openclaw-master-skills-agent-lifecycle-manager && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/miniade-agent-lifecycle-manager" ~/.openclaw/skills/leoyeai-openclaw-master-skills-agent-lifecycle-manager && rm -rf "$T"
manifest:
skills/miniade-agent-lifecycle-manager/SKILL.mdsource content
Agent Lifecycle Manager
Use this skill to execute repeatable, low-error lifecycle operations for OpenClaw agents.
Workflow
- Collect required inputs
- Run lifecycle action (create/configure/archive/delete/status)
- Verify runtime status (
,openclaw status
)openclaw agents list - Refresh dashboard files
- Append lifecycle log entry
If deleting an agent, always archive first and require explicit confirmation.
Required inputs by action
- Create + Telegram bind:
AGENT_IDTELEGRAM_TOKEN- optional
(default:WORKSPACE
)~/.openclaw/workspace-<AGENT_ID>
- Pairing approval (separate step):
AGENT_ID
(obtained only after user sendsPAIRING_CODE
to the bot)/start
- Reconfigure:
AGENT_ID- changed fields (model/routes/channel token/etc.)
- Archive/Delete:
AGENT_ID- archive destination (default under
)state/archive/<AGENT_ID>/
Command playbook
Read
references/openclaw-agent-lifecycle-playbook.md before running uncommon operations.
For deterministic execution, use scripts in this skill:
scripts/create-telegram-agent.shscripts/approve-telegram-pairing.shscripts/archive-agent.shscripts/delete-agent-safe.shscripts/refresh-dashboard.shscripts/lifecycle-log.sh
Execution rules
- Prefer
CLI over ad-hoc file edits.openclaw - Configure bindings via
(append entry; do not overwrite blindly).openclaw config get/set - Do not restart gateway by default after binding/config changes.
- Use pairing command with explicit channel flag:
.openclaw pairing approve <PAIRING_CODE> --channel telegram - Never hard-delete before successful archive.
- For deletion, prefer
(archive verification + explicit confirmation + cleanup + logging).scripts/delete-agent-safe.sh - After every lifecycle change, run dashboard refresh + lifecycle logging.
Minimal post-change verification
Run:
openclaw agents list --json openclaw status --json openclaw gateway status --json
Confirm:
- target agent exists (or is absent after deletion)
- expected bindings/routes are present
- gateway runtime is healthy and RPC probe is ok