--- name: team-audit description: Audit agent roles, team skills, model-routing.md and team docs when the user says "team-audit". Find mistake classes with workflow-from-chats, fix each with /correct, and report the delivery and Orca stage metrics. --- # Team audit Orca runs the script and the metrics weekly and reports one line; that run fixes nothing. The full audit runs only on the user's word, by architect-pm. Edits only on a branch in your own worktree; the coordinator publishes and merges it. ## 1. Find Start one supervised Orca worker through `~/dotfiles/script/heavy-gate.sh` that runs `workflow-from-chats` over the last 7 days of transcripts, plus the observation log `~/agent-state/team-observations.tsv` (written by `team-audit.sh --log`). A mistake class counts after two hits or one strong confidence hit. Never copy transcripts or the log into a repository or `~/.claude/notes`, which is public. ## 2. Fix Hand each class to `/correct`. It picks the level and proves the check fails on a real past mistake. A change to the rule table in `~/dotfiles/templates/agent-team/docs/agents/team.md` goes to the coordinator as a draft on a branch with no `Owner-approved:` trailer. Once the report is published, set each used log row's fix ticket and status. ## 3. Metrics Run `ROLE_RECEIPT_BASE="
" ~/dotfiles/script/team-audit.sh --report` (default projects come from the untracked `script/team-audit.local.conf`, one root per line; pass project roots to override). Never run `skills update`. Its `FINDING` lines are existing checks that failed; each also goes to `/correct` like a class, and a `WARN` line is a gap, not a clean record. `--report` runs `bun script/team-audit-metrics.ts --repo