subagents-management
Installation
SKILL.md
Contains Hooks
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
Subagents & Skills Management
Manage subagents, skills, and instruction files for coding agents.
- Claude Code: Subagents in
~/.claude/agents/and.claude/agents/ - Codex CLI: AGENTS.md instructions + custom subagents (TOML) in
~/.codex/agents/+ skills in~/.codex/skills/and.agents/skills/ - OpenCode:
agentblocks inopencode.jsonAND markdown agents in~/.config/opencode/agents//.opencode/agents/; AGENTS.md for instructions
IMPORTANT: After creating, modifying, or deleting subagents/skills, inform the user that they need to restart the agent for changes to take effect.
CRITICAL: Before performing any deletion operation, you MUST use the AskUserQuestion tool to confirm with the user. Never delete a subagent without explicit user confirmation, even if using --force flag or direct rm commands.
Operations
List Subagents
python3 {SKILL_PATH}/scripts/list_subagents.py [--scope user|project|all] [--json]