← ClaudeAtlas

councilprlisted

Pull a GitHub PR via gh CLI and run the council on the diff with a PR-specific neutrality preamble — read-only by default; comment posting is opt-in.
event4u-app/agent-config · ★ 7 · AI & Automation · score 84
Install: claude install-skill event4u-app/agent-config
# /council pr ## Instructions Specialised council mode for **GitHub PRs**. Wraps `/council default diff:<base>..<head>` with a PR-aware neutrality preamble (the `pr` mode) and an opt-in "post a comment summary on the PR" step at the end. ### 1. Resolve the PR target The user invoked `/council pr <number>` or `/council pr <url>`. If neither was supplied, ask (one question per turn, per `ask-when-uncertain`): > Which PR should the council review? > > 1. PR number on the current repo (e.g. `#123`) > 2. Full GitHub URL > 3. Cancel ### 2. Pull PR metadata via gh CLI Run: ```bash gh pr view <number> --json number,title,body,headRefName,baseRefName,author,url ``` Capture: title, body, head ref, base ref. The **PR title + body** is the user's `original_ask` for the handoff preamble — verbatim, after `_strip_host_identity()` cleansing in `prompts.py`. Do **not** add the agent's framing. ### 3. Fetch the diff range locally ```bash git fetch origin <base>:<base> git fetch origin <head>:<head> ``` Compute the diff range as `origin/<base>..origin/<head>` (or the local refs if already fetched). ### 4. Run /council default with the pr mode preamble Invoke `/council default diff:<base>..<head>` with: - `original_ask` = PR title + body (capped per `bundler.size_guard`; warn if truncated). - Pass `--prompt-mode pr` so the neutrality preamble uses the `pr` mode addendum from `scripts/ai_council/prompts.py` — focuses members on PR-specific risks (shipping risk, reviewer fati