`/mission-agent-add`
Use this skill when the user invokes /mission-agent-add <agent-name> [--role mission-agent|squad-lead] [--responsibility "<text>"].
This command edits only the active Mission's agents.md. Does not touch kanban. Do not modify mission.md, kanban.md, roundtable.md, or squad-lead.md.
- Validate that
<agent-name>is present. - Parse optional
--role; default tomission-agent. Accept onlymission-agentorsquad-lead. - Parse optional
--responsibility; if omitted, ask Squad Lead for the responsibility before editing. - Run
mexus mission active --jsonand parse<active>. If no active Mission exists, fail clearly. - Read
agent-team/missions/<active>/agents.md. - If the file already contains
## Agent: <agent-name>, stop and report that the Agent already exists. - Append a row to
## Agent Namesusing the existing table style. - Add a new
## Agent: <agent-name>section following the existing Agent section format. The section must include:
- Role set from
--role. - Responsibility derived from
--responsibility. - Activation prompt that tells the Agent to read the mission workflow, mission files, kanban, roundtable, and this
agents.md. - Initial prompt that tells the Agent to inspect kanban for tasks addressed to
<agent-name>, claim one by moving it to In Progress, and follow the Inbox Protocol. - The same Inbox Protocol markers and collaboration conventions used by the existing Agent sections.
- Preserve the existing Inbox Protocol section and all other Agent sections.
- Show the proposed
agents.mdedit to Squad Lead for review before saving. Save only after Squad Lead accepts.