[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMD0H9ARWK7KF0XQ61CTP5":3,"skill-same:01M7EMD0H9ARWK7KF0XQ61CTP5":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7EMD0H9ARWK7KF0XQ61CTP5","council-review",null,"Multi-agent code review council - one seat per provider (Claude, Codex, Antigravity\u002Fagy), reviewed simultaneously; the host fills its own provider's seat with its native subagent and the foreign seats via ask-agent","tedks\u002Fagent-skills","tedks","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1703535?v=4","01M7EMCJYBNAVD6EN62JAPCK0X","Ted Smith","01M7EMCJYZVVBFQTGZX8W2BXVT",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fcouncil-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: council-review\ndescription: Multi-agent code review council - one seat per provider (Claude, Codex, Antigravity\u002Fagy), reviewed simultaneously; the host fills its own provider's seat with its native subagent and the foreign seats via ask-agent\nargument-hint: '[target] — e.g. PR #42, staged, branch, or a file path'\n---\n\n# council-review\n\nLaunch a code review \"council\" — get one review per AI provider (Claude, Codex, agy) simultaneously, then synthesize the results.\n\n## Usage\n\n```\n\u002Fcouncil-review [target]\n```\n\n## Arguments\n\n- `[target]`: What to review (optional, defaults to uncommitted changes)\n  - `staged` — review staged changes (`git diff --cached`)\n  - `branch` — review all commits on this branch vs main\u002Fmaster\n  - `PR #\u003Cnumber>` or `#\u003Cnumber>` — review a pull request\n  - `\u003Cfile-path>` — review a specific file\n  - *(no argument)* — review all uncommitted changes (`git diff HEAD`)\n\n## Provider-aware seating\n\nThis one SKILL.md is loaded by every host (Claude Code reads it from\n`~\u002F.claude\u002Fskills`, Codex from `~\u002F.codex\u002Fskills`, which symlinks to the same\ndirectory). The council has **one seat per model provider**, and which seat is\n*yours* depends on which host you are running as — identify yourself from your\nown harness\u002Fsystem prompt, not from anything in the repo.\n\nSeats are named by the `\u002Fask-agent` CLI name, but identity is the **provider**\nbehind it: `claude` = Anthropic, `codex` = OpenAI, `agy` = Google. A host is\n\"the same provider\" as a seat when its model comes from that provider,\nwhatever the CLI is called — a Gemini CLI host owns the `agy` seat.\n\n| Host you are running as | Your own seat — **native subagent** | Foreign seats — **`\u002Fask-agent`** |\n|-------------------------|-------------------------------------|----------------------------------|\n| Claude Code (Anthropic) | Claude, via the `Agent` tool with `model: opus` | `\u002Fask-agent codex -m gpt-6-sol` + `\u002Fask-agent agy` |\n| Codex CLI (OpenAI)      | Codex, via `multi_agent` with `model: gpt-6-sol` | `\u002Fask-agent claude -m opus` + `\u002Fask-agent agy` |\n| Antigravity \u002F Gemini CLI (Google) | agy, via its own Lead-tier in-process delegation if it has one — otherwise the inline fallback below | `\u002Fask-agent claude -m opus` + `\u002Fask-agent codex -m gpt-6-sol` |\n| a host from a fourth provider | your own provider's Lead-tier native subagent — a **fourth** seat | `\u002Fask-agent claude -m opus` + `\u002Fask-agent codex -m gpt-6-sol` + `\u002Fask-agent agy` |\n\nThe same thing as an algorithm, for a host the table does not name:\n\n```\nme    = the PROVIDER my model comes from          # Anthropic | OpenAI | Google | \u003Cother>\nseats = {Anthropic: claude, OpenAI: codex, Google: agy}   # provider → \u002Fask-agent CLI name\nif me not in seats: seats[me] = \u003Cno CLI>          # a fourth provider adds a seat, never loses one\nfor (provider, cli) in seats:\n    if provider == me:  fill it with my native\u002Finternal subagent\n                        (cannot run → review inline yourself, record \"(inline)\";\n                         NEVER \u002Fask-agent \u003Ccli> — that is my own provider)\n    else:               fill it with \u002Fask-agent \u003Ccli>\n                        (unavailable → leave the seat EMPTY and say so; never backfill)\n```\n\nCompare **providers**, never CLI names against a provider: an unlisted\nAnthropic host is `me = Anthropic`, which owns the `claude` seat — it does not\nask-agent `claude` and then add itself as a fourth seat.\n\nRules — these are not style preferences, they are what makes the council a council:\n\n1. **Your own provider's seat is always your native subagent.** Never\n   `\u002Fask-agent` your own provider: Claude must not ask-agent `claude`, Codex\n   must not ask-agent `codex`, agy must not ask-agent `agy`. Doing so spawns a\n   second instance of your own provider through a CLI — the same model family\n   with correlated blind spots (even if a different model or config is picked),\n   and none of your project context — and fills a seat that was supposed to\n   bring a different provider to the table.\n   **If your native subagent cannot run** (facility unavailable, own-provider\n   usage limit, a host with no delegation at all), review inline yourself and\n   record the seat as `(inline)`. That is still your provider's seat, filled by\n   your provider. It is never filled through `\u002Fask-agent`.\n2. **Every foreign seat goes through `\u002Fask-agent`.** That is what gives the\n   council provider diversity. Do not make the council internal-only, and do\n   not \"save time\" by having your native subagent play a foreign seat.\n3. **An unavailable foreign reviewer leaves an empty seat, noted in the\n   summary.** Not installed, usage limit, timeout, the agy permission flake —\n   whatever the cause, report which seat is missing and continue with the\n   rest. Do **not** substitute a second native subagent, or any other reviewer\n   from your own provider, for the missing one: two reviews from one provider\n   are one opinion twice, and a summary that hides the gap overstates the\n   consensus.\n\n4. **Seats run at the Lead tier, never Frontier unless the CEO asks.** Councils\n   burn Frontier quota when a seat inherits the host's model. Pin the model on\n   every seat: the Claude native seat is spawned with `model: opus`; the Codex\n   native seat with `model: gpt-6-sol`; the foreign Codex seat with `\u002Fask-agent\n   codex -m gpt-6-sol`; the foreign Claude seat with `\u002Fask-agent claude -m\n   opus`; agy uses its default Lead tier. A Frontier model (Fable, Astra) sits\n   a seat only when the CEO asks for it on that review, and the record says so\n   (CEO ruling, 2026-10-13).\n\n## Instructions\n\nWhen this skill is invoked, follow these steps:\n\n### Step 1: Determine what to review\n\nBased on the `[target]` argument (or lack thereof), gather the review material:\n\n| Target | How to gather context |\n|--------|----------------------|\n| *(none)* — `worktree` in Step 3 | `git diff HEAD` (all uncommitted changes — staged and unstaged) |\n| `staged` | `git diff --cached` |\n| `branch` | Detect default branch (see below), then `git log --oneline \u003Cdefault>..HEAD` + `git diff \u003Cdefault>...HEAD` |\n| `PR #N` \u002F `#N` | `gh pr view N` (title + description — the *why*, which reviewers need for design\u002Fscope calls), then `gh pr diff N` |\n| `\u003Cfile>` | Read the file contents |\n\n**Detecting the default branch:** Run `git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's|.*\u002F||'`. If that fails, check whether `main` or `master` exists as a local branch.\n\nRun the diff command now and look at it: if the diff is empty, tell the user\nthere's nothing to review and stop. Do **not** stash it in a variable or a\nfile for later — nothing survives from one tool call to the next (see the\ncomment in Step 3), so Step 3 runs the same command again inside the one call\nthat builds the prompt.\n\n### Step 2: Build the review prompt\n\nConstruct the review prompt text. The diff\u002Fcontext is **not** pasted here —\nStep 3 appends it, inside the one call that builds the prompt file:\n\n```\nReview the following code changes. For each issue found, cite the specific file and line.\n\nOrganize your review into these sections:\n- **Critical** (bugs, security issues — must fix)\n- **Important** (design problems, missing edge cases — should fix)\n- **Nits** (style, naming, minor improvements — nice to fix)\n\nIf the code looks good, say so briefly and note any minor suggestions.\n```\n\nThe prompt should cover: correctness, security, design, edge cases, and concrete suggestions.\n\n### Step 3: Launch every seat in parallel\n\nSeat the council per the matrix above: one native subagent for your own\nprovider, one `\u002Fask-agent` per foreign provider. Start every seat\n**concurrently** — as separate tool calls, or in whatever parallel batch your\nhost supports; the native subagent and the `\u002Fask-agent` shell calls are\ndifferent mechanisms, and \"launch together\" never means \"put your own provider\nin the `\u002Fask-agent` batch\". Every seat gets the **same review prompt with the\ndiff inline**, staged in two files inside one per-invocation directory — the\nbare prompt for your own seat, and the same prompt behind a \"do not run\ncommands\" opener for the foreign seats:\n\n```bash\n# ONE tool call, start to finish. Every shell tool call is a fresh process:\n# a variable set in an earlier call is empty here, a file a trap deleted on\n# that call's exit is gone, and `cat \"\"` fails quietly into a prompt that has\n# no diff in it. So: no `trap ... EXIT`, the context command runs HERE (not\n# \"saved from Step 1\"), the result is size-checked, and the literal paths this\n# prints are what every launch uses. This machine runs many concurrent\n# council-review invocations at once, so everything is staged inside one\n# mktemp -d directory, never as flat files directly under \u002Ftmp — that is what\n# lets cleanup rm -rf just this invocation's directory instead of glob-deleting\n# across \u002Ftmp and catching another session's in-flight files. rm -rf the\n# printed $WORK dir after Step 4.\nTARGET='pr'        # what Step 1 decided: pr | staged | branch | file | worktree\nPR='N'             # pr:     the PR number\nDEFAULT='master'   # branch: the default branch Step 1 detected\nFILE='path'        # file:   the path — keep the quotes, paths can contain spaces\nWORK=$(mktemp -d \u002Ftmp\u002Fcouncil.XXXXXX) || { echo \"council: mktemp -d failed — not launching\" >&2; exit 1; }\nPROMPT_FILE=\"$WORK\u002Fprompt.txt\"\nFOREIGN_FILE=\"$WORK\u002Fforeign.txt\"\nfail() { rm -rf -- \"$WORK\"; echo \"council: $1 — not launching\" >&2; exit 1; }\ncat \u003C\u003C 'REVIEW_EOF' > \"$PROMPT_FILE\"\n\u003Cthe review prompt from step 2>\nREVIEW_EOF\n# `before` is taken AFTER any preamble (PR title, branch log) and BEFORE the\n# diff, so the guard measures the diff alone and a preamble cannot mask an\n# empty one. Only the `pr` arm touches gh: a bare `gh pr view` on a branch\n# that happens to have a PR would succeed and splice that PR's title into a\n# staged\u002Fbranch\u002Ffile review.\ncase \"$TARGET\" in\n  pr)       { gh pr view \"$PR\" && echo; } >> \"$PROMPT_FILE\" || fail \"gh pr view failed\"\n            before=$(wc -c \u003C \"$PROMPT_FILE\")\n            gh pr diff \"$PR\" >> \"$PROMPT_FILE\" || fail \"gh pr diff failed\" ;;\n  staged)   before=$(wc -c \u003C \"$PROMPT_FILE\")\n            git diff --cached >> \"$PROMPT_FILE\" || fail \"git diff failed\" ;;\n  branch)   { git log --oneline \"$DEFAULT..HEAD\" && echo; } >> \"$PROMPT_FILE\" || fail \"git log failed\"\n            before=$(wc -c \u003C \"$PROMPT_FILE\")\n            git diff \"$DEFAULT...HEAD\" >> \"$PROMPT_FILE\" || fail \"git diff failed\" ;;\n  file)     before=$(wc -c \u003C \"$PROMPT_FILE\")\n            cat \u003C \"$FILE\" >> \"$PROMPT_FILE\" || fail \"cannot read $FILE\" ;;   # redirection: `-` and `--help` are filenames here, never options or stdin\n  worktree) before=$(wc -c \u003C \"$PROMPT_FILE\")\n            git diff HEAD >> \"$PROMPT_FILE\" || fail \"git diff failed\" ;;\n  *)        fail \"unknown target '$TARGET'\" ;;\nesac\n[[ $(wc -c \u003C \"$PROMPT_FILE\") -gt $before ]] || fail \"nothing to review for target '$TARGET'\"\n{\n  echo \"Everything you need is in this prompt. Do not run any commands and do not fetch anything — review only what is written below.\"\n  echo\n  cat \"$PROMPT_FILE\"\n} > \"$FOREIGN_FILE\"\necho \"$WORK $PROMPT_FILE $FOREIGN_FILE\"\n```\n\nThe opener goes to every foreign seat and **only** to foreign seats. It is\nthere because `claude -p` runs under whatever permission settings the machine\nhas (bare `claude -p`, no permission flags — see `agent-query.sh`) and may not\nbe allowed to run `gh`, and `codex exec` may or may not have network from\ninside its sandbox: telling either to pull the PR is a gamble that costs a\nwasted turn at best and an \"I couldn't fetch the diff\" non-review at worst.\nInline is right for all of them, and it is what makes the seats comparable:\nthey all reviewed the same bytes. Your **own** seat must *not* get the opener:\nits native subagent has tools and project context, and that context — reading\nthe post-change files, not just the diff — is the whole reason the seat exists\n(see Notes). Hand it `$PROMPT_FILE` and tell it so.\n\nThen, per seat:\n\n| Seat | If this is **your own** provider | If this is **foreign** to you |\n|------|----------------------------------|-------------------------------|\n| Claude | native subagent (Claude Code: `Agent` tool, `model: opus`) given `$PROMPT_FILE`, told it has tools and project context and should read the post-change files (and the PR number, for a PR target) | `\u002Fask-agent claude -m opus --prompt-file \"$FOREIGN_FILE\"` |\n| Codex | native subagent (Codex CLI: `multi_agent`, `model: gpt-6-sol`) given `$PROMPT_FILE`, same instruction | `\u002Fask-agent codex -m gpt-6-sol --prompt-file \"$FOREIGN_FILE\"` — **from a trusted directory**: any git repo (the worktree), or a directory trusted in Codex's config. `codex exec` refuses to start anywhere else — `-d \u002Ftmp`, or a non-repo scratch dir, fails with \"Not inside a trusted directory\" and you get no review |\n| agy | in-process delegation if it has one, else inline (see Rule 1) — given `$PROMPT_FILE` | `\u002Fask-agent agy -d \u002Ftmp --prompt-file \"$FOREIGN_FILE\"` — `-d \u002Ftmp` is **required** here and only here, see below |\n\n`-d` is a plain working-directory option in `agent-query.sh`, valid for every\nagent; it is the two CLIs' behaviour that differs. agy needs a neutral cwd so\nnothing invites exploration; codex needs a trusted one. claude is indifferent,\nso leave it off.\n\n> **agy cannot fetch anything.** Headless agy has no usable tool access: the\n> `command` permission cannot be prompted for in headless mode and is\n> auto-denied, so `gh pr diff`, `git`, `cat` — anything but reading the one\n> staged prompt file — will fail. See ditz `agy-headless-command-permission`;\n> granting it is an operator decision and is deliberately not part of the\n> tooling.\n>\n> The denial shows up in one of two ways, and **neither is review content**:\n> the *hard* shape produces no output at all, while the *soft* shape puts the\n> denial text on stdout, where it looks superficially like a reply. ask-agent\n> retries once and normally absorbs both — so if that text ever does reach you,\n> read it as the flake, not as agy's opinion of the diff.\n>\n> So for **every** agy review: put the complete diff *in the prompt*, tell it\n> explicitly not to run commands or fetch anything, and run it from a neutral\n> directory so nothing in the cwd invites exploration:\n>\n> ```bash\n> \u002Fask-agent agy -d \u002Ftmp --prompt-file \"$FOREIGN_FILE\"\n> ```\n>\n> and open the prompt with a line like: *\"Everything you need is in this\n> prompt. Do not run any commands and do not fetch anything — review only what\n> is written below.\"*\n\n#### Worked example: a Claude Code host\n\nConcurrently: (1) own seat — `Agent` tool with `$PROMPT_FILE` and the\n\"you have project context, read the files\" instruction; (2) foreign —\n`\u002Fask-agent codex -m gpt-6-sol --prompt-file \"$FOREIGN_FILE\"` from the worktree; (3)\nforeign — `\u002Fask-agent agy -d \u002Ftmp --prompt-file \"$FOREIGN_FILE\"`. A Codex host\nswaps (1) for its built-in subagent and (2) for `\u002Fask-agent claude -m opus\n--prompt-file \"$FOREIGN_FILE\"`; any other host applies the matrix.\n\nReading the staged prompt file is the *one* tool agy is permitted (that is\nwhat `--add-dir` grants); anything else is auto-denied and costs you the whole\nreview.\n\n### Step 4: Present the council's findings\n\nOnce every seat has answered (or been recorded as missing), present a unified summary:\n\n```markdown\n## Council Review Summary\n\nSeats: \u003Cown provider> (native subagent | inline), \u003Cforeign> (ask-agent), \u003Cforeign> (ask-agent — MISSING: \u003Creason>)\n\n### Consensus (issues flagged by 2+ reviewers)\n- ...\n\n### \u003Cseat>'s Review\n\u003Csummary of unique points>\n\n### Recommendations\n\u003Csynthesized action items, prioritized>\n```\n\nFill the `Seats:` line in from *your* host — it is a template, not a Claude\nCode example — and write one `\u003Cseat>'s Review` section per seat that answered,\nin `Seats:` order. The `Seats:` line records which seats were native (or inline) and which\nforeign, and names any seat that went unfilled. Highlight **consensus issues**\n(flagged by multiple reviewers) as highest priority — these are almost\ncertainly real. Different agents may describe the same issue differently, so\nmatch semantically, not by wording. Note any disagreements between reviewers\nas discussion points.\n\nOmit the review section for a seat that failed to respond, but keep it in the\n`Seats:` line — a missing seat is a fact about the round, not something to\ntidy away. Consensus is counted over the seats that actually answered, and it\nis a **prioritisation signal, not a filter**: with two seats it means both\nagreed, with one seat there is no consensus section at all — and every\nCritical\u002FImportant still gets triaged regardless.\n\nThen remove the staged directory (`rm -rf` the `$WORK` path Step 3 printed)\n— there is no trap doing it for you. Removing that one directory is safe even\nwith dozens of concurrent council-review invocations on the same machine,\nbecause `mktemp -d` gave it a unique name — unlike a glob-delete over `\u002Ftmp`,\nwhich would also catch other sessions' in-flight files. If the literal\n`$WORK` path is lost (e.g. to context compaction) before cleanup, **never**\nfall back to a pattern or prefix delete over `\u002Ftmp` (including\n`\u002Ftmp\u002Fcouncil.*`) to find it — that reproduces the same class of bug one\nlevel up, deleting other sessions' directories instead of just their files.\nLeave the orphaned directory; it is one `mktemp -d`'d directory, not a leak\nworth another session's files.\n\n## Notes\n\n- All seats run in parallel for speed\n- Your native subagent's review has full project context; foreign reviewers only see the diff (or PR)\n- If a foreign reviewer fails (not installed, usage limit, timeout, etc.), note it and continue with whatever reviews succeed — **do not** fill its seat with another reviewer from your own provider. If your *own* subagent fails, review inline and record it — **do not** fill your seat through `\u002Fask-agent`\n- For the PR merge gate (fixpoint, triage, proportionality, PR record), see \"Council review to fixpoint\" in the global agent instructions (`~\u002F.claude\u002FCLAUDE.md`, which Codex reads as `~\u002F.codex\u002FAGENTS.md`); this skill is one round of that loop\n","# council-review\n\nLaunch a code review \"council\" — get one review per AI provider (Claude, Codex, agy) simultaneously, then synthesize the results.\n\n## Usage\n\n```\n\u002Fcouncil-review [target]\n```\n\n## Arguments\n\n- `[target]`: What to review (optional, defaults to uncommitted changes)\n  - `staged` — review staged changes (`git diff --cached`)\n  - `branch` — review all commits on this branch vs main\u002Fmaster\n  - `PR #\u003Cnumber>` or `#\u003Cnumber>` — review a pull request\n  - `\u003Cfile-path>` — review a specific file\n  - *(no argument)* — review all uncommitted changes (`git diff HEAD`)\n\n## Provider-aware seating\n\nThis one SKILL.md is loaded by every host (Claude Code reads it from\n`~\u002F.claude\u002Fskills`, Codex from `~\u002F.codex\u002Fskills`, which symlinks to the same\ndirectory). The council has **one seat per model provider**, and which seat is\n*yours* depends on which host you are running as — identify yourself from your\nown harness\u002Fsystem prompt, not from anything in the repo.\n\nSeats are named by the `\u002Fask-agent` CLI name, but identity is the **provider**\nbehind it: `claude` = Anthropic, `codex` = OpenAI, `agy` = Google. A host is\n\"the same provider\" as a seat when its model comes from that provider,\nwhatever the CLI is called — a Gemini CLI host owns the `agy` seat.\n\n| Host you are running as | Your own seat — **native subagent** | Foreign seats — **`\u002Fask-agent`** |\n|-------------------------|-------------------------------------|----------------------------------|\n| Claude Code (Anthropic) | Claude, via the `Agent` tool with `model: opus` | `\u002Fask-agent codex -m gpt-6-sol` + `\u002Fask-agent agy` |\n| Codex CLI (OpenAI)      | Codex, via `multi_agent` with `model: gpt-6-sol` | `\u002Fask-agent claude -m opus` + `\u002Fask-agent agy` |\n| Antigravity \u002F Gemini CLI (Google) | agy, via its own Lead-tier in-process delegation if it has one — otherwise the inline fallback below | `\u002Fask-agent claude -m opus` + `\u002Fask-agent codex -m gpt-6-sol` |\n| a host from a fourth provider | your own provider's Lead-tier native subagent — a **fourth** seat | `\u002Fask-agent claude -m opus` + `\u002Fask-agent codex -m gpt-6-sol` + `\u002Fask-agent agy` |\n\nThe same thing as an algorithm, for a host the table does not name:\n\n```\nme    = the PROVIDER my model comes from          # Anthropic | OpenAI | Google | \u003Cother>\nseats = {Anthropic: claude, OpenAI: codex, Google: agy}   # provider → \u002Fask-agent CLI name\nif me not in seats: seats[me] = \u003Cno CLI>          # a fourth provider adds a seat, never loses one\nfor (provider, cli) in seats:\n    if provider == me:  fill it with my native\u002Finternal subagent\n                        (cannot run → review inline yourself, record \"(inline)\";\n                         NEVER \u002Fask-agent \u003Ccli> — that is my own provider)\n    else:               fill it with \u002Fask-agent \u003Ccli>\n                        (unavailable → leave the seat EMPTY and say so; never backfill)\n```\n\nCompare **providers**, never CLI names against a provider: an unlisted\nAnthropic host is `me = Anthropic`, which owns the `claude` seat — it does not\nask-agent `claude` and then add itself as a fourth seat.\n\nRules — these are not style preferences, they are what makes the council a council:\n\n1. **Your own provider's seat is always your native subagent.** Never\n   `\u002Fask-agent` your own provider: Claude must not ask-agent `claude`, Codex\n   must not ask-agent `codex`, agy must not ask-agent `agy`. Doing so spawns a\n   second instance of your own provider through a CLI — the same model family\n   with correlated blind spots (even if a different model or config is picked),\n   and none of your project context — and fills a seat that was supposed to\n   bring a different provider to the table.\n   **If your native subagent cannot run** (facility unavailable, own-provider\n   usage limit, a host with no delegation at all), review inline yourself and\n   record the seat as `(inline)`. That is still your provider's seat, filled by\n   your provider. It is never filled through `\u002Fask-agent`.\n2. **Every foreign seat goes through `\u002Fask-agent`.** That is what gives the\n   council provider diversity. Do not make the council internal-only, and do\n   not \"save time\" by having your native subagent play a foreign seat.\n3. **An unavailable foreign reviewer leaves an empty seat, noted in the\n   summary.** Not installed, usage limit, timeout, the agy permission flake —\n   whatever the cause, report which seat is missing and continue with the\n   rest. Do **not** substitute a second native subagent, or any other reviewer\n   from your own provider, for the missing one: two reviews from one provider\n   are one opinion twice, and a summary that hides the gap overstates the\n   consensus.\n\n4. **Seats run at the Lead tier, never Frontier unless the CEO asks.** Councils\n   burn Frontier quota when a seat inherits the host's model. Pin the model on\n   every seat: the Claude native seat is spawned with `model: opus`; the Codex\n   native seat with `model: gpt-6-sol`; the foreign Codex seat with `\u002Fask-agent\n   codex -m gpt-6-sol`; the foreign Claude seat with `\u002Fask-agent claude -m\n   opus`; agy uses its default Lead tier. A Frontier model (Fable, Astra) sits\n   a seat only when the CEO asks for it on that review, and the record says so\n   (CEO ruling, 2026-10-13).\n\n## Instructions\n\nWhen this skill is invoked, follow these steps:\n\n### Step 1: Determine what to review\n\nBased on the `[target]` argument (or lack thereof), gather the review material:\n\n| Target | How to gather context |\n|--------|----------------------|\n| *(none)* — `worktree` in Step 3 | `git diff HEAD` (all uncommitted changes — staged and unstaged) |\n| `staged` | `git diff --cached` |\n| `branch` | Detect default branch (see below), then `git log --oneline \u003Cdefault>..HEAD` + `git diff \u003Cdefault>...HEAD` |\n| `PR #N` \u002F `#N` | `gh pr view N` (title + description — the *why*, which reviewers need for design\u002Fscope calls), then `gh pr diff N` |\n| `\u003Cfile>` | Read the file contents |\n\n**Detecting the default branch:** Run `git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's|.*\u002F||'`. If that fails, check whether `main` or `master` exists as a local branch.\n\nRun the diff command now and look at it: if the diff is empty, tell the user\nthere's nothing to review and stop. Do **not** stash it in a variable or a\nfile for later — nothing survives from one tool call to the next (see the\ncomment in Step 3), so Step 3 runs the same command again inside the one call\nthat builds the prompt.\n\n### Step 2: Build the review prompt\n\nConstruct the review prompt text. The diff\u002Fcontext is **not** pasted here —\nStep 3 appends it, inside the one call that builds the prompt file:\n\n```\nReview the following code changes. For each issue found, cite the specific file and line.\n\nOrganize your review into these sections:\n- **Critical** (bugs, security issues — must fix)\n- **Important** (design problems, missing edge cases — should fix)\n- **Nits** (style, naming, minor improvements — nice to fix)\n\nIf the code looks good, say so briefly and note any minor suggestions.\n```\n\nThe prompt should cover: correctness, security, design, edge cases, and concrete suggestions.\n\n### Step 3: Launch every seat in parallel\n\nSeat the council per the matrix above: one native subagent for your own\nprovider, one `\u002Fask-agent` per foreign provider. Start every seat\n**concurrently** — as separate tool calls, or in whatever parallel batch your\nhost supports; the native subagent and the `\u002Fask-agent` shell calls are\ndifferent mechanisms, and \"launch together\" never means \"put your own provider\nin the `\u002Fask-agent` batch\". Every seat gets the **same review prompt with the\ndiff inline**, staged in two files inside one per-invocation directory — the\nbare prompt for your own seat, and the same prompt behind a \"do not run\ncommands\" opener for the foreign seats:\n\n```bash\n# ONE tool call, start to finish. Every shell tool call is a fresh process:\n# a variable set in an earlier call is empty here, a file a trap deleted on\n# that call's exit is gone, and `cat \"\"` fails quietly into a prompt that has\n# no diff in it. So: no `trap ... EXIT`, the context command runs HERE (not\n# \"saved from Step 1\"), the result is size-checked, and the literal paths this\n# prints are what every launch uses. This machine runs many concurrent\n# council-review invocations at once, so everything is staged inside one\n# mktemp -d directory, never as flat files directly under \u002Ftmp — that is what\n# lets cleanup rm -rf just this invocation's directory instead of glob-deleting\n# across \u002Ftmp and catching another session's in-flight files. rm -rf the\n# printed $WORK dir after Step 4.\nTARGET='pr'        # what Step 1 decided: pr | staged | branch | file | worktree\nPR='N'             # pr:     the PR number\nDEFAULT='master'   # branch: the default branch Step 1 detected\nFILE='path'        # file:   the path — keep the quotes, paths can contain spaces\nWORK=$(mktemp -d \u002Ftmp\u002Fcouncil.XXXXXX) || { echo \"council: mktemp -d failed — not launching\" >&2; exit 1; }\nPROMPT_FILE=\"$WORK\u002Fprompt.txt\"\nFOREIGN_FILE=\"$WORK\u002Fforeign.txt\"\nfail() { rm -rf -- \"$WORK\"; echo \"council: $1 — not launching\" >&2; exit 1; }\ncat \u003C\u003C 'REVIEW_EOF' > \"$PROMPT_FILE\"\n\u003Cthe review prompt from step 2>\nREVIEW_EOF\n# `before` is taken AFTER any preamble (PR title, branch log) and BEFORE the\n# diff, so the guard measures the diff alone and a preamble cannot mask an\n# empty one. Only the `pr` arm touches gh: a bare `gh pr view` on a branch\n# that happens to have a PR would succeed and splice that PR's title into a\n# staged\u002Fbranch\u002Ffile review.\ncase \"$TARGET\" in\n  pr)       { gh pr view \"$PR\" && echo; } >> \"$PROMPT_FILE\" || fail \"gh pr view failed\"\n            before=$(wc -c \u003C \"$PROMPT_FILE\")\n            gh pr diff \"$PR\" >> \"$PROMPT_FILE\" || fail \"gh pr diff failed\" ;;\n  staged)   before=$(wc -c \u003C \"$PROMPT_FILE\")\n            git diff --cached >> \"$PROMPT_FILE\" || fail \"git diff failed\" ;;\n  branch)   { git log --oneline \"$DEFAULT..HEAD\" && echo; } >> \"$PROMPT_FILE\" || fail \"git log failed\"\n            before=$(wc -c \u003C \"$PROMPT_FILE\")\n            git diff \"$DEFAULT...HEAD\" >> \"$PROMPT_FILE\" || fail \"git diff failed\" ;;\n  file)     before=$(wc -c \u003C \"$PROMPT_FILE\")\n            cat \u003C \"$FILE\" >> \"$PROMPT_FILE\" || fail \"cannot read $FILE\" ;;   # redirection: `-` and `--help` are filenames here, never options or stdin\n  worktree) before=$(wc -c \u003C \"$PROMPT_FILE\")\n            git diff HEAD >> \"$PROMPT_FILE\" || fail \"git diff failed\" ;;\n  *)        fail \"unknown target '$TARGET'\" ;;\nesac\n[[ $(wc -c \u003C \"$PROMPT_FILE\") -gt $before ]] || fail \"nothing to review for target '$TARGET'\"\n{\n  echo \"Everything you need is in this prompt. Do not run any commands and do not fetch anything — review only what is written below.\"\n  echo\n  cat \"$PROMPT_FILE\"\n} > \"$FOREIGN_FILE\"\necho \"$WORK $PROMPT_FILE $FOREIGN_FILE\"\n```\n\nThe opener goes to every foreign seat and **only** to foreign seats. It is\nthere because `claude -p` runs under whatever permission settings the machine\nhas (bare `claude -p`, no permission flags — see `agent-query.sh`) and may not\nbe allowed to run `gh`, and `codex exec` may or may not have network from\ninside its sandbox: telling either to pull the PR is a gamble that costs a\nwasted turn at best and an \"I couldn't fetch the diff\" non-review at worst.\nInline is right for all of them, and it is what makes the seats comparable:\nthey all reviewed the same bytes. Your **own** seat must *not* get the opener:\nits native subagent has tools and project context, and that context — reading\nthe post-change files, not just the diff — is the whole reason the seat exists\n(see Notes). Hand it `$PROMPT_FILE` and tell it so.\n\nThen, per seat:\n\n| Seat | If this is **your own** provider | If this is **foreign** to you |\n|------|----------------------------------|-------------------------------|\n| Claude | native subagent (Claude Code: `Agent` tool, `model: opus`) given `$PROMPT_FILE`, told it has tools and project context and should read the post-change files (and the PR number, for a PR target) | `\u002Fask-agent claude -m opus --prompt-file \"$FOREIGN_FILE\"` |\n| Codex | native subagent (Codex CLI: `multi_agent`, `model: gpt-6-sol`) given `$PROMPT_FILE`, same instruction | `\u002Fask-agent codex -m gpt-6-sol --prompt-file \"$FOREIGN_FILE\"` — **from a trusted directory**: any git repo (the worktree), or a directory trusted in Codex's config. `codex exec` refuses to start anywhere else — `-d \u002Ftmp`, or a non-repo scratch dir, fails with \"Not inside a trusted directory\" and you get no review |\n| agy | in-process delegation if it has one, else inline (see Rule 1) — given `$PROMPT_FILE` | `\u002Fask-agent agy -d \u002Ftmp --prompt-file \"$FOREIGN_FILE\"` — `-d \u002Ftmp` is **required** here and only here, see below |\n\n`-d` is a plain working-directory option in `agent-query.sh`, valid for every\nagent; it is the two CLIs' behaviour that differs. agy needs a neutral cwd so\nnothing invites exploration; codex needs a trusted one. claude is indifferent,\nso leave it off.\n\n> **agy cannot fetch anything.** Headless agy has no usable tool access: the\n> `command` permission cannot be prompted for in headless mode and is\n> auto-denied, so `gh pr diff`, `git`, `cat` — anything but reading the one\n> staged prompt file — will fail. See ditz `agy-headless-command-permission`;\n> granting it is an operator decision and is deliberately not part of the\n> tooling.\n>\n> The denial shows up in one of two ways, and **neither is review content**:\n> the *hard* shape produces no output at all, while the *soft* shape puts the\n> denial text on stdout, where it looks superficially like a reply. ask-agent\n> retries once and normally absorbs both — so if that text ever does reach you,\n> read it as the flake, not as agy's opinion of the diff.\n>\n> So for **every** agy review: put the complete diff *in the prompt*, tell it\n> explicitly not to run commands or fetch anything, and run it from a neutral\n> directory so nothing in the cwd invites exploration:\n>\n> ```bash\n> \u002Fask-agent agy -d \u002Ftmp --prompt-file \"$FOREIGN_FILE\"\n> ```\n>\n> and open the prompt with a line like: *\"Everything you need is in this\n> prompt. Do not run any commands and do not fetch anything — review only what\n> is written below.\"*\n\n#### Worked example: a Claude Code host\n\nConcurrently: (1) own seat — `Agent` tool with `$PROMPT_FILE` and the\n\"you have project context, read the files\" instruction; (2) foreign —\n`\u002Fask-agent codex -m gpt-6-sol --prompt-file \"$FOREIGN_FILE\"` from the worktree; (3)\nforeign — `\u002Fask-agent agy -d \u002Ftmp --prompt-file \"$FOREIGN_FILE\"`. A Codex host\nswaps (1) for its built-in subagent and (2) for `\u002Fask-agent claude -m opus\n--prompt-file \"$FOREIGN_FILE\"`; any other host applies the matrix.\n\nReading the staged prompt file is the *one* tool agy is permitted (that is\nwhat `--add-dir` grants); anything else is auto-denied and costs you the whole\nreview.\n\n### Step 4: Present the council's findings\n\nOnce every seat has answered (or been recorded as missing), present a unified summary:\n\n```markdown\n## Council Review Summary\n\nSeats: \u003Cown provider> (native subagent | inline), \u003Cforeign> (ask-agent), \u003Cforeign> (ask-agent — MISSING: \u003Creason>)\n\n### Consensus (issues flagged by 2+ reviewers)\n- ...\n\n### \u003Cseat>'s Review\n\u003Csummary of unique points>\n\n### Recommendations\n\u003Csynthesized action items, prioritized>\n```\n\nFill the `Seats:` line in from *your* host — it is a template, not a Claude\nCode example — and write one `\u003Cseat>'s Review` section per seat that answered,\nin `Seats:` order. The `Seats:` line records which seats were native (or inline) and which\nforeign, and names any seat that went unfilled. Highlight **consensus issues**\n(flagged by multiple reviewers) as highest priority — these are almost\ncertainly real. Different agents may describe the same issue differently, so\nmatch semantically, not by wording. Note any disagreements between reviewers\nas discussion points.\n\nOmit the review section for a seat that failed to respond, but keep it in the\n`Seats:` line — a missing seat is a fact about the round, not something to\ntidy away. Consensus is counted over the seats that actually answered, and it\nis a **prioritisation signal, not a filter**: with two seats it means both\nagreed, with one seat there is no consensus section at all — and every\nCritical\u002FImportant still gets triaged regardless.\n\nThen remove the staged directory (`rm -rf` the `$WORK` path Step 3 printed)\n— there is no trap doing it for you. Removing that one directory is safe even\nwith dozens of concurrent council-review invocations on the same machine,\nbecause `mktemp -d` gave it a unique name — unlike a glob-delete over `\u002Ftmp`,\nwhich would also catch other sessions' in-flight files. If the literal\n`$WORK` path is lost (e.g. to context compaction) before cleanup, **never**\nfall back to a pattern or prefix delete over `\u002Ftmp` (including\n`\u002Ftmp\u002Fcouncil.*`) to find it — that reproduces the same class of bug one\nlevel up, deleting other sessions' directories instead of just their files.\nLeave the orphaned directory; it is one `mktemp -d`'d directory, not a leak\nworth another session's files.\n\n## Notes\n\n- All seats run in parallel for speed\n- Your native subagent's review has full project context; foreign reviewers only see the diff (or PR)\n- If a foreign reviewer fails (not installed, usage limit, timeout, etc.), note it and continue with whatever reviews succeed — **do not** fill its seat with another reviewer from your own provider. If your *own* subagent fails, review inline and record it — **do not** fill your seat through `\u002Fask-agent`\n- For the PR merge gate (fixpoint, triage, proportionality, PR record), see \"Council review to fixpoint\" in the global agent instructions (`~\u002F.claude\u002FCLAUDE.md`, which Codex reads as `~\u002F.codex\u002FAGENTS.md`); this skill is one round of that loop\n",{"name":5,"description":7,"argument-hint":24},"[target] — e.g. PR #42, staged, branch, or a file path","master","f233dc9c278370625755a94f72c1ee3815214b89","skills\u002Fcouncil-review","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Ftedks","https:\u002F\u002Ftedks.com","2026-11-03 02:32:59",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tedks\u002Fagent-skills --skill council-review",{"tool":38,"command":39},"bunx","bunx skills add tedks\u002Fagent-skills --skill council-review",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tedks\u002Fagent-skills --skill council-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fcouncil-review\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7EME6XZ35HJRKWWKGM3TCF4","where","Use before any find, rg, grep or Glob over a repo or a directory you do not already have an exact path for. Prints a small map of the current project (root, worktrees, depth-2 tree with sizes, the repo's own \"Project structure\" notes) so you search the worktree you own with a path instead of enumerating ~, ~\u002FProjects, \u002F, \u002Fnix or \u002Ftmp.","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fwhere\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7EME20D4MY2J5NMD9XMH4HP","usage","Use when a CTO or lead asks how much its lanes are spending, which session is burning quota, whether a lane tripped the token tripwire, or where the provider quota meters stand. Reads the installed token-usage counts (turns\u002Fh, cached tokens\u002Fh, average context per turn for each session; per-project\u002Fmodel totals; quota meters) and the tripwire's open incidents. Counts only; never message content. Does not install anything or change thresholds.","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fusage\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7EMDZKTR8RD7QM6TB5SYWRZ","stacked-prs","Detailed workflow for managing stacked PRs. Use when rebasing a PR stack, resolving merge conflicts in a stack, merging stacked PRs, or when user mentions \"stack\" and \"PR\" together.","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fstacked-prs\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7EMDVP1P5RNE1S6VYGWPNFW","spawn-agent","Spawn AI agents in steerable tmux windows for parallel or long-running work, including transcript-preserving Codex session forks with step-scoped compaction and structured final-recap handoffs. Use to spawn interactive agents, steer running tmux agents, or fork a Codex session for a separate step.","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fspawn-agent\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7EMDR15E49C5D52XRJ52PK7","retire-agent","Preserve a private, resumable agent handoff and verify a polite exit, or transfer the handoff to a freshly spawned successor.","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fretire-agent\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7EMDJYJR0EF8QG0XN0GCV7T","lean-automation","Diagnose and prevent CI\u002Fdeploy latency caused by automation inheriting a human's environment. Use when CI or a deploy feels slow, when auditing a repo's pipeline, when adding a dependency to a shared dev environment (flake devShell, base image, requirements file), or when writing a guard that is supposed to keep an environment lean.","https:\u002F\u002Fgithub.com\u002Ftedks\u002Fagent-skills\u002Fblob\u002Fmaster\u002Fskills\u002Flean-automation\u002FSKILL.md",[],[]]