skills/amcos-agent-replacement/SKILL.md
Use when replacing a failed agent with a new instance. Trigger with agent replacement or failover events. Loaded by ai-maestro-chief-of-staff-main-agent
npx skillsauth add emasoft/ai-maestro-chief-of-staff amcos-agent-replacementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Replace a failed agent when recovery has failed or failure is terminal. Covers failure confirmation, artifact preservation, manager approval, agent creation, orchestrator notification, and work handoff.
$CLAUDE_PROJECT_DIR/thoughts/shared/handoffs/thoughts/shared/handoffs/AGENT_NAME/urgent replacement request to AMAMA; wait for approvalai-maestro-agents-management skillTerminal failure -> AMCOS notifies AMAMA -> AMAMA approves
-> Create new agent -> Notify AMOA (handoff + kanban)
-> Send handoff to new agent -> Agent acknowledges
CRITICAL: The replacement agent has NO MEMORY of the old agent. Therefore:
ROLE BOUNDARY: AMCOS creates agents and sends context. AMOA owns task assignment.
Copy this checklist and track your progress:
- [ ] Required fields present (from/to/type/UUID/task/failed_agent/failure_reason)
- [ ] UUID is unique
- [ ] Target agent exists and is alive
- [ ] All referenced files exist
- [ ] No [TBD] placeholders
- [ ] Acceptance criteria defined
| Phase | Output | |-------|--------| | Artifact preservation | Files saved to handoff directory | | Manager approval | Approval message from AMAMA | | Agent creation | New agent online and registered | | Work handoff | Docs sent and acknowledged |
| Issue | Resolution | |-------|------------| | Manager does not respond | Wait 15 min, reminder, escalate to user | | New agent fails to register | Verify AI Maestro health and hooks | | Handoff rejected | Queue and retry in 5 minutes | | No artifacts recoverable | Document loss, notify AMOA to recreate |
# Request replacement approval from manager
amp-send.sh amama-assistant-manager "Replace failed agent" urgent \
'{"type":"replacement-request","failed_agent":"ampa-svgbbox-impl","reason":"terminal crash"}'
Expected: AMAMA approves; proceed to create replacement agent and send handoff.
Copy this checklist and track your progress:
data-ai
Use when managing context or patterns. Trigger with context update or compaction needs. Loaded by ai-maestro-chief-of-staff-main-agent
data-ai
Use when consulting detailed context management references. Trigger with context management lookups. Loaded by ai-maestro-chief-of-staff-main-agent
data-ai
Use when capturing config snapshots, detecting config changes, or resolving config version conflicts. Trigger with config management or snapshot needs. Loaded by ai-maestro-chief-of-staff-main-agent
data-ai
Use when consulting detailed config snapshot references. Trigger with config snapshot lookups. Loaded by ai-maestro-chief-of-staff-main-agent