sudo
Perform an operation as a specific agent persona (role or subagent) for a bounded task.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- sudo
- description
- Perform an operation as a specific agent persona (role or subagent) for a bounded task.
03 SKILL.md 正文
/sudo
Outcome
Switch the agent's active persona to a named team role or subagent, perform a single bounded operation from that persona's perspective, then return to the lead agent persona. This is role-switching, not spawning a new agent.
Usage
/sudo <persona> <operation>
<persona> is the name of a persistent team role or bounded subagent:
Persistent team roles
product-ownerarchitecttech-leaddomain-expertknowledge-curator
Project-specific personas created by /specialise (e.g. compliance-officer,
end-user-novice, on-call-sre) also live in .agents/team/ and are valid
/sudo targets.
Bounded subagents
researcherrepository-explorerred-team-reviewerevidence-checkertest-reviewersecurity-reviewerperformance-reviewer
Procedure
- Read the persona definition from
.agents/team/<persona>.mdor.agents/subagents/<persona>.md. - Adopt the persona's responsibilities, questions owned, inputs and outputs for the duration of the operation.
- Perform the requested operation from that persona's perspective.
- Produce output in the persona's expected format (see the persona file for expected output structure).
- Return to the lead agent persona after the operation is complete.
- Record the persona switch in
HANDOFF.toonif the operation produced material decisions, findings or evidence.
Do not
- Use
/sudoto bypass review gates — the persona's non-responsibilities still apply. - Chain multiple
/sudocalls to simulate independent review. Sequential role passes by the same agent are not equivalent to independent review. - Use
/sudofor trivial mechanical edits that do not benefit from a persona shift. - Skip recording material findings in
HANDOFF.toonor knowledge entries.
Example
/sudo architect review the persistence boundary between the API and database layers
This reads .agents/team/architect.md, adopts the architect persona,
reviews the persistence boundary, produces architecture findings with
evidence and confidence, then returns to the lead agent persona.
Relationship to subagents
/sudo switches the current agent's persona in-place. It is cheaper than
spawning a subagent but provides no independent context isolation. For
independent review, spawn a subagent instead.
04 同仓库更多 Skills
agentic-template
Start or continue work in this repository using the canonical AGENTS.md contract and repository skill catalog.
wiki-tidy
Reconcile the wiki against the knowledge graph, specs and code; prune stale, keep links resolving.
update-handoff
Update HANDOFF.toon with current semantic work state.
test-first
Drive meaningful behaviour changes with the smallest useful failing test.
test-change
Select and run tests that prove a change at suitable fidelity.
specify
Create proportional OpenSpec-shaped structured change proposals for meaningful changes.