with one click
handle-mind-idle
// Handle "idle" events for periodic housekeeping and proactive work. You **MUST** use this skill (and *carefully follow the process in this doc*) whenever you receive a message from the "mind/idle" source!
// Handle "idle" events for periodic housekeeping and proactive work. You **MUST** use this skill (and *carefully follow the process in this doc*) whenever you receive a message from the "mind/idle" source!
Submit a bug report to libraries within the `mngr` project (eg, `mngr`, its plugins, `minds`, etc). Use to report bugs you encounter while running that seem to be issues with the `mngr` code itself, rather than with your own code or configuration.
Run commands to explore the current state of mngr and any relevant running agents. Use this skill when you need to debug issues with mngr tasks, or understand what tasks are currently running and their states.
Handle events from the mngr/agent_states source about sub-agent state transitions (finished, waiting, done, etc). You **MUST** use this skill (and *carefully follow the process in this doc*) whenever you receive a message from the "mngr/agent_states" source!
Clean up old agents, their output directories, and other historical data. Use during nightly cleanup or when the system has accumulated stale data.
Handle unexpected situations where the Minds system does not appear to be working as expected. Use when you encounter behavior that seems to contradict what your docs and prompts and skills say should happen, or when something seems broken and you are unsure how to proceed.
Create a sub-agent to perform a task. Use when you need to delegate work to another agent, for example, a working agent (for actually accomplishing some task) or a verifying agent (for deciding what to do about the output of a working agent).
| name | handle-mind-idle |
| description | Handle "idle" events for periodic housekeeping and proactive work. You **MUST** use this skill (and *carefully follow the process in this doc*) whenever you receive a message from the "mind/idle" source! |
mind/idle sourceThese events are sent periodically when no real events have arrived for a configurable amount of time (set in minds.toml under [watchers].idle_event_delay_minutes_schedule).
Each event includes:
minutes_since_last_event -- how long it has been since the last real eventidle_event_number -- which idle event this is (1st, 2nd, etc. -- resets when a real event arrives)current_time_utc -- current UTC timecurrent_time_local -- current time in the user's configured timezoneFirst, check if you have agents currently running. If tasks are already in flight, be conservative -- you'll be notified when they finish, so there's no need to start a lot of new work.
Then run through these checks in order:
Crashed or stuck agents: Run mngr list --exclude "has(labels.archived_at)" --exclude "id == \"$AGENT_ID\"" --format jsonl and look for agents in unexpected states (crashed, stopped, waiting for too long).
If you find any that you created, handle them using your handle-mngr-agent_states skill.
Unprocessed agents: Check if any agents finished but you haven't yet verified their results or acted on their output. If so, handle them now.
Unhandled events: Check if there are any event batch files you haven't fully processed. If so, read and handle them.
Pending tickets: Run tk ready to check if there are tickets waiting to be picked up.
If you have capacity (fewer than max_concurrent_workers active agents), launch the highest-priority ready ticket using your list-tickets skill.
Proactive work: If nothing above needs attention and you have no agents in flight, consider whether there's something useful you could do proactively:
Cleanup: Archive agents that are done and have been fully processed. This frees up capacity for new work. Do this only if you've been idle for quite a while.
idle_event_number) should do quick checks.
Later ones (the system has been quiet for a long time) can do more thorough work like proactive triage or cleanup.