skills/amcos-agent-termination/SKILL.md
Use when terminating agents or performing clean shutdown. Trigger with agent termination or stop requests. Loaded by ai-maestro-chief-of-staff-main-agent
npx skillsauth add emasoft/ai-maestro-chief-of-staff amcos-agent-terminationInstall 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.
Handles clean shutdown of agent instances including work verification, state preservation, termination execution, and registry cleanup. Use when an agent's work is complete, when reclaiming resources, or during cleanup.
ai-maestro-agents-management and agent-messaging skills availableamcos-permission-management skill. BLOCK until approved. Do NOT proceed without approval.agent-messaging with hibernation-warning typeai-maestro-agents-management skill (requires confirmation)uv run python scripts/amcos_team_registry.py remove-agent| Type | When | Procedure | |------|------|-----------| | Graceful | Agent responsive, work done | Full 8-step procedure | | Forced | Unresponsive 5+ min | Skip steps 2-4, force-terminate tmux |
Always attempt graceful first.
| Step | Expected Output | |------|----------------| | Termination | tmux session destroyed, process stopped | | Registry | Agent removed, status "terminated" | | Cleanup | Resources freed, log entry written |
| Issue | Resolution |
|-------|-----------|
| Uncommitted work | Request commit/push first. Do NOT proceed until confirmed |
| tmux persists | tmux kill-session -t <name> |
| Registry update fails | Retry 3x, then remove via ai-maestro-agents-management skill |
# 1. Send status request via agent-messaging
# 2. After confirmation, terminate via ai-maestro-agents-management skill
# 3. Update registry
uv run python scripts/amcos_team_registry.py remove-agent --name ampa-svgbbox-impl
# 4. Verify
tmux has-session -t ampa-svgbbox-impl 2>/dev/null && echo "RUNNING" || echo "TERMINATED"
# After 5 min no response:
tmux kill-session -t ampa-stuck-agent
uv run python scripts/amcos_team_registry.py remove-agent --name ampa-stuck-agent
Copy this checklist and track your progress:
testing
Use when analyzing staffing needs, assessing role requirements, planning agent capacity, or creating staffing templates for multi-agent orchestration. Trigger with team sizing or staffing requests. Loaded by ai-maestro-chief-of-staff-main-agent
data-ai
Use when consulting detailed staff planning references. Trigger with staff planning lookups. Loaded by ai-maestro-chief-of-staff-main-agent
data-ai
Use when validating skill directory structure, reindexing skills for Perfect Skill Suggester, or managing skill activation and discovery. Trigger with skill validation, indexing, or update requests. Loaded by ai-maestro-chief-of-staff-main-agent
data-ai
Use when consulting detailed skill management references. Trigger with skill management lookups. Loaded by ai-maestro-chief-of-staff-main-agent