Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Agent Management

ASecurity

Manage fleets of local AI agents: lifecycle, monitoring, task assignment, and resource control. Use when running multiple CLI agents via an orchestrator like AI Maestro.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgodebugging

Works with

terminalcli

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill agent-management --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Management?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Agent Management
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-agent-management/badge)](https://www.skillsdirectory.com/skills/aicodedecode-agent-management)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: agent-management
description: Manage fleets of local AI agents: lifecycle, monitoring, task assignment, and resource control. Use when running multiple CLI agents via an orchestrator like AI Maestro.
category: ai-maestro
---

# Agent Management

## Overview

Running one AI agent is a conversation. Running many is operations: lifecycle (start/stop/restart), health monitoring, task assignment, and resource limits.

The AI Maestro pattern: local CLI agents run in managed sessions (e.g., tmux), supervised by an orchestrator that assigns work and watches health.

Good management means: agents are visible, tasks are tracked, failures are noticed, and resources stay bounded.

## When to use

- Running multiple AI agents simultaneously
- Agents dying silently or hanging unnoticed
- Assigning and tracking work across agents
- Long-running agent fleets needing supervision
- Setting up local agent infrastructure

## Core concepts

- **Lifecycle management.**
  Start, stop, restart, hibernate, wake. Agents are processes with states — manage them explicitly, not by hoping.
- **Session isolation.**
  Each agent in its own session (tmux/screen): independent I/O, survivable disconnects, per-agent logs. Never share a session between agents.
- **Health monitoring.**
  Heartbeat or output-activity checks: is the agent alive, working, or stuck? Stuck detection (no output for X minutes) triggers alerts or restarts.
- **Task assignment.**
  Work queue model: tasks with clear specs assigned to agents; status tracked (queued/running/done/failed). No ambiguous 'go help with stuff.'
- **Resource bounds.**
  CPU/memory limits, max concurrent agents, timeout per task. Unbounded agents consume the machine and your budget.
- **Logging per agent.**
  Separate logs per agent/session, timestamped. Debugging a fleet without per-agent logs is archaeology.
- **Naming and roles.**
  Descriptive agent names tied to roles (researcher-1, builder-docs). You manage what you can identify.
- **Graceful shutdown.**
  Stop signals that let agents finish current work and save state. Kill -9 is for emergencies, not routine stops.

## Practical workflow

1. **Define agent roles.**
   What types do you need? Researcher, builder, reviewer, monitor? One role per agent type; name accordingly.
2. **Set up sessions.**
   One managed session per agent with logging. Standardize the launch: same environment, same working directory conventions.
3. **Configure monitoring.**
   Health checks (activity/heartbeat), stuck detection thresholds, alert channel. Test alerts by simulating a stuck agent.
4. **Create the work queue.**
   Task format: goal, context, success criteria, timeout. Assignment: pull model (agents take next task) beats push for reliability.
5. **Set resource limits.**
   Max agents, per-agent timeouts, system resource caps. Document what happens at the limits.
6. **Run and observe.**
   Start small (2-3 agents), watch closely for a day. Tune timeouts, prompts, and queue discipline from real behavior.
7. **Handle failures.**
   Failed task -> logged, requeued or escalated per policy. Dead agent -> alert + restart. Document the runbooks.
8. **Review and scale.**
   Weekly: throughput, failure rate, stuck incidents. Scale agent count only when the management layer proves reliable.

## Common pitfalls

- **Fire-and-forget agents.**
  Launching agents with no monitoring. Silent death is the default outcome of unmanaged agents.
- **Shared sessions.**
  Two agents in one terminal session: interleaved I/O, unkillable individually, undebuggable. One agent, one session.
- **No task specs.**
  'Work on the docs' as a task. Vague tasks produce vague results — spec the goal, context, and done criteria.
- **Unbounded runs.**
  No timeouts: one stuck agent burns budget for 12 hours. Every task gets a timeout; every agent gets supervision.
- **No per-agent logs.**
  One shared log for five agents. When something breaks, you can't tell who did what.
- **Manual everything.**
  Starting/stopping/assigning all by hand. The orchestrator should handle lifecycle; humans handle exceptions.
- **Scaling too fast.**
  20 agents before managing 3 reliably. Management discipline first, fleet size second.
- **Ignoring costs.**
  Agents burn tokens and compute. Track spend per agent/task; set budgets and alerts.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →