subagent-managerlisted
Install: claude install-skill afkbot-io/afkbotio
# subagent-manager
Purpose: manage profile-local subagent descriptors stored as markdown files under `profiles/<profile_id>/subagents/<name>.md`.
## Workflow
1. Always inspect existing profile subagents first with `subagent.profile.list`.
2. Before create/edit/delete, return a short summary of existing subagents from list payload:
- `name`
- `summary`
3. If user asks to inspect one subagent, call `subagent.profile.get`.
4. If user asks to create or edit a subagent, call `subagent.profile.upsert` with:
- `name`: normalized slug that matches `^[a-z0-9][a-z0-9-]*$`.
- `markdown`: complete subagent definition.
5. If user asks to remove a subagent, call `subagent.profile.delete`.
6. If user asks to execute a subagent, call `subagent.run` and then `subagent.wait` / `subagent.result`.
## Rules
- Intent routing:
- If user says "сделай через субагента", treat it as explicit request to use this workflow.
- In this case, do not skip the initial `subagent.profile.list` + short summary step.
- Use this skill before any direct file operation for custom subagents.
- Keep subagent markdown language aligned with user input language.
- If user wrote in Russian, write markdown in Russian.
- If user wrote in English, write markdown in English.
- If user provides markdown text, preserve that language/style unless asked to rewrite.
- Never attempt nested subagent spawning from a running subagent.
- Name normalization is mandatory when user gives non-latin or mixed name: