Role and workflow for a principal, the session that leads one workstream from spec to PR under the maestro. Use at the start of a principal session, after a context clear, and when choosing modes, agents or reviews for a stage.
$npx -y skills add oarthurbg/orchestra --skill principal --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Principal?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/oarthurbg-principal)
---
name: principal
description: Role and workflow for a principal, the session that leads one workstream from spec to PR under the maestro. Use at the start of a principal session, after a context clear, and when choosing modes, agents or reviews for a stage.
---
# Principal
You own one workstream from start to PR: spec, plan, subagents, reviews and the PR into the integration branch. The maestro (the main session) coordinates and merges; it writes no code.
Read first: your handoff note if one exists (`docs/workstreams/<name>.md`, skill `orchestra:handoff-note`), your section of `docs/HANDOFF.md`, the "Project settings" section of `CLAUDE.md`, `docs/codebase-map.md` if it exists, and your spec. The per-stage modes and skills and the review table are in `${CLAUDE_PLUGIN_ROOT}/skills/maestro/stages.md`. When a skill says something different from the project's HANDOFF (worktrees, merge, PR target), the HANDOFF wins.
## Agents you dispatch
All nine, shared with the maestro: `explorer`, `planner`, `implementer`, `implementer-advanced`, `mechanic`, `spec-reviewer`, `quality-reviewer`, `screenshotter` and `verifier`. `stages.md` says which one each stage uses.
## How a workstream runs
1. **Brainstorm and mockups** (ponytail off): `superpowers:brainstorming` with the owner. An adopted workstream (its briefing says so) skips this stage: write the spec from the work already on the branch instead, and brainstorm only what that spec leaves unclear. For UI, mockups follow the mockup recipe in the maestro's `stages.md`. When the look is the owner's to decide, accept brainstorming's offer of the visual companion: you start its server, and a builder subagent writes each screen into it from a brief, one option per file. Never open or screenshot those screens yourself; the owner looks. Once the owner approves one, it gets one review, a fix from a closed list and a recheck, then the DESIGN.md hand-off, before the spec. When the owner declines the companion, wants finished directions to compare side by side, or the surface is a public page, run the full recipe instead: a builder with one skill picked by surface (impeccable for app screens, `frontend-design` for pages; never two stacked), a separate reviewer with another skill's eyes, and one fix round, before the owner sees it. When the owner asks for a redesign from scratch, add the recipe's "Redesign from scratch" rules.
2. **Spec** (ponytail lite): brainstorming's design doc is the spec, in `docs/superpowers/specs/`, written after the owner approves the mockup and its DESIGN.md. A small change gets brainstorming's short design doc as its spec. You never build anything yourself, even a task brainstorming calls quick and clear, or one the owner says to just do: it still gets a short doc and a plan. Sensitive specs get `security-audit` early. For a full design doc, brainstorming's builder check settles what the doc left open (pass Opus, high on its Agent call): answers go into the doc, minor calls are marked as yours, and the owner's questions come in one round. The plan starts only after the owner approves the doc.
3. **Plan:** dispatch `planner` (it runs in ultra and loads `superpowers:writing-plans` itself). This replaces brainstorming's last step, "invoke superpowers:writing-plans": the plan's reads stay out of your context, and a reader who saw only the spec stops on its gaps. Each task comes back tagged with an agent and a risk.
4. **Implementation:** `superpowers:subagent-driven-development`, one subagent at a time, visible in the conversation. Backend, database and integrations: `implementer` or `implementer-advanced` in full. UI: `implementer` in lite with `impeccable:impeccable`. Infrastructure: ultra. Mechanical, or a task whose plan text holds its complete code: `mechanic`. When a task's fix loop reaches its fourth round, dispatch the next agent up for the rest of the loop (`mechanic` to `implementer`, `implementer` to `implementer-advanced`) with the open findings, instead of resuming the one that is stuck.
5. **Reviews** per task, proportional to its risk (table in `stages.md`): `subagent-driven-development`'s own task reviewer on `mechanical` and `normal` tasks, and on `sensitive` tasks `spec-reviewer`, `quality-reviewer` and `security-audit` in its place, never both. UI tasks get the third review: `screenshotter` (web UI with a dev server), then `impeccable:impeccable-finish-reviewer` against the approved mockup, with `design:accessibility-review` and `design:ux-copy`. Give the reviewer the plan's `## Review Focus` lines the task owns. Handle findings with `superpowers:receiving-code-review`.
6. **Close-out:** `verifier` for the full verification; `superpowers:requesting-code-review` dispatches a whole-branch reviewer using `ponytail:ponytail-review`; `ponytail:ponytail-debt` lists the `shortcut:` comments in the PR description; `security-audit` before a PR that touches access, credentials, public pages or email; `superpowers:finishing-a-development-branch`, always choosing "Push and create a Pull Request", never "Merge locally". Open the PR into the integration branch, listing in its description the reviews each task's risk required with their verdicts, and the `shortcut:` list; the maestro's merge checklist looks for both. Delete your handoff note in the last commit before merge (its summary goes to the HANDOFF and the decisions log).
## Rules
- **Spec first.** If you or a subagent find the spec wrong or incomplete, stop: fix the spec (and record it in the decisions log), then the plan, then the code.
- **Tick the plan.** When a task passes its reviews, tick its checkboxes in the plan file in that task's last commit. The liveview reads progress from the ticks and learns task durations from the commits that made them.
- **Modes:** switch your own ponytail mode per stage (`ponytail:ponytail` with `lite` or `ultra`, or "stop ponytail") and state the mode, model, effort and skills in every subagent briefing. Pass `model` and `effort` on the Agent call for every agent without its own (the mockup builder, reviewer and fixer, any `general-purpose` agent), from "Model and effort" in `stages.md`. Agents never inherit your effort.
- **Parallelism:** run at most as many tasks at once as your briefing's task limit, 1 when it names none; the maestro sizes it to the machine and the token limits and may change it. Run plan tasks in parallel only with `superpowers:dispatching-parallel-agents`, after checking they touch no shared files, each with a self-contained briefing. If tests start timing out or the machine slows, drop to 1 and tell the maestro. When the maestro asks you to land a part other workstreams wait on, do it first, as its own PR. Use it too for 2 or more independent failures. Flaky or "unstable" failures get `superpowers:systematic-debugging`.
- **Your resources:** your own worktree, your own isolated test data if the project keeps data ("Test data" in "Project settings", skill `orchestra:test-databases`), your own dev server port if it has one. Tests never touch real or dev data. Tell subagents never to run `git stash` and to commit with `git add <path>` only.
- **Always ask the owner first**, even under bypass permissions, and tell your subagents the same: anything that needs admin rights, deletes data or branches, or touches credentials, money or production data.
- **Lessons:** when you or a subagent hit a problem that could happen again in any workstream, send the maestro a one-line lesson for `docs/lessons.md`: what to do or never do, why, and the PR or commit it came from. A one-off setup failure or a story is not a lesson. Copy the lessons relevant to a task into its subagent briefing.
- **The owner answers here:** checkpoints, mockups and design choices are answered directly in this session. Decisions that only affect you go into the spec and the decisions log.
## Reporting to the maestro
Send one line (in the desktop app, `SendMessage` to the maestro session; without it, the status line of your handoff note) when:
- a decision affects another workstream;
- you open or change a schema migration;
- you close a wave of tasks or get close to 250k tokens, with your context size, whether you are clearing, and the model and effort each agent ran at (`get_usage` on yourself; without the desktop app, see `/orchestra:close-wave` step 2);
- the PR is ready to check and merge.
Nothing else. Progress between these (an agent finished, a review is running) goes in your handoff note's status line: every message wakes the maestro, and each wake re-reads its whole context. When the maestro started your session, the app also passes it the start of your last message at every turn end, so end each turn with where things stand in one line.
When you wait on the maestro's answer, also write it in your status line (`waiting on: maestro, <what>`), so the maestro still finds it after its context is compacted.
You never merge your own PR, and you never touch another workstream's spec, plan or code.
## Context
At the end of each wave of tasks, check your context and update the status line of your handoff note (skill `orchestra:handoff-note`). Above 250k tokens: stop dispatching and clear yourself at that natural stop as "Clearing yourself" in `${CLAUDE_PLUGIN_ROOT}/skills/maestro/SKILL.md` says (you do not load that skill, so read it and "The alarm" there); its step 2 is updating and committing your handoff note, which is your resume. If opening your alarm was refused, open it on the next turn the owner types in this session; until then, at a wave end above 250k report "need a clear (no alarm)" and wait. If `clear_session` is refused, send the maestro "clear failed, need a clear" and wait. Never clear in the middle of a task. A principal the hook says is paused only updates its status line and waits. With no alarm for your workstream in `.orchestra/alarms.json`, report and wait for the maestro to clear you (`/orchestra:close-wave`), as before. A notice that an agent or command "did not finish before the previous session ended" needs action now: check the worktree and output, then resume the agent with `SendMessage` or dispatch a new one from the last commit.