fleet-status
Installation
SKILL.md
Your objective is to display CocoFleet execution status.
Before proceeding, verify that .cocoplus/ exists.
If not: output "CocoPlus not initialized in this directory. Run $pod init to begin." Then stop.
Parse argument: $fleet status [fleet-id]
If no fleet-id: list all fleet directories in .cocoplus/fleet/ that contain state.json and show their fleet names, modes, and statuses. Then stop.
Read .cocoplus/fleet/[fleet-id]/state.json. For legacy fleet state files matching .cocoplus/fleet/[fleet-id]-state.json, read them only as fallback and report that the fleet should be migrated to the directory layout.
For each running instance (status == "running"), check if PID is still alive using a cross-platform Node.js one-liner via the Bash tool:
node -e "try{process.kill([pid],0);console.log('alive')}catch(e){console.log('dead')}"
Output: