[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ER8R9R9T63TCRDV53ASHXJ":3,"skill-same:01M7ER8R9R9T63TCRDV53ASHXJ":108},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7ER8R9R9T63TCRDV53ASHXJ","pr-review",null,"Have a finished pull request reviewed in a fresh thread - one review thread per pull request reads its diff itself, judges what it found, and proves the one safety fact by running code (pstack's review, with no reviewer subagents and no fixes), and records the findings in the brief, where jbus reads them and tells the thread that did the work when it owes a line. Use when the user invokes \u002Fpr-review or $pr-review in a home or in a crewmate's thread, or asks to review the pull requests that have finished.","JoshuaHayesWasHere\u002Fjstack","JoshuaHayesWasHere","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78288453?v=4","01M7EQPZP0GDYN3SYY9SZZHFJE","Joshua Hayes","01M7EQPZPQKJDZR99NG512A8X2",1,"MIT","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pr-review\ndescription: Have a finished pull request reviewed in a fresh thread - one review thread per pull request reads its diff itself, judges what it found, and proves the one safety fact by running code (pstack's review, with no reviewer subagents and no fixes), and records the findings in the brief, where jbus reads them and tells the thread that did the work when it owes a line. Use when the user invokes \u002Fpr-review or $pr-review in a home or in a crewmate's thread, or asks to review the pull requests that have finished.\ntip: has a finished pull request reviewed in a fresh thread | review the pull request | review the pull requests | review the pr | review this pr | review my pr\nuser-invocable: true\ndisable-model-invocation: true\ncard: \"Run the pipeline | 4 | Starts one review thread per pull request. It reads the diff itself, judges what it found, and one command proves the fact the change is safe because of. It fixes nothing, and jbus archives it when the pull request merges or closes. | Reach for it when a pull request opens. The crewmate does this by itself. | model: a crewmate; op: the operator | look: rev\"\n---\n\n# pr-review\n\nThis is the reviewer's text: a thread started with `\u002Fpr-review run \u003Cslug>`, which only a launcher sends, reviews that brief's pull request, as \"The reviewer\" says.\nAny other message makes this thread a launcher.\n\n```sh\nR=$(basename \"$(dirname \"$(git rev-parse --path-format=absolute --git-common-dir)\")\")\nH=~\u002F.local\u002Fstate\u002Fhome\u002F$R\nT=$(realpath ~\u002F.claude\u002Fskills\u002Fpr-review\u002F..\u002F..\u002Ftemplates)\n```\n\n`$T` is the `templates\u002F` directory of the repo this skill lives in. Each template there is the one copy of its text: read it when a step names it, not before.\n\n## Launching\n\nWhen this thread launches a reviewer, for `\u002Fpr-review` in a home or a crewmate's thread, `\u002Fpr-review \u003Cslug>`, or the crew skill's launch: read `$T\u002F..\u002Fskills\u002Fpr-review\u002Flaunching.md` now.\n\n## The reviewer\n\nThis thread is a **reviewer**. It reads the diff, judges what it found, proves one fact, reports, and ends. It starts no subagent and no other thread: the review is this one thread. It never edits a file, commits, pushes, or changes the pull request, and it never reads the crewmate's thread.\n\nA reviewer runs no test step and no suite, whatever the brief says.\nThe tests are the crewmate's desk proof, its `Checked:` and `Proved:` lines, which bind the head before jbus launches a reviewer (`jbus.prereview`), and CI's `check`, which runs on the pull request the crewmate opens after the review.\nThe one thing a reviewer runs is a targeted proof of the fact the change is safe because of (\"The review\", step 5).\nNew prose is one sentence per line, and an old line the pull request did not touch is no finding for how many sentences it holds.\n\n### Start\n\n1. Read `$H\u002Ftasks\u002F\u003Cslug>.md`.\n   Nothing else from `$H`, but for what the blocks under \"After the review\" read by themselves.\n   Then work out who this reviewer is, and then whether this message may start a review.\n\n   Who this reviewer is goes on the section's `By:` line, under its heading: the provider, the model and the effort this thread runs on, and its number, `#\u003Cn>`.\n   Ask the thread itself: the `t3-code` server's `t3_thread_configure` with no arguments (if your harness defers it, load it first).\n   Run this with the block at the top, with what it printed, whole, and the message this thread was started with in place of the words in angle brackets.\n   Keep what it prints, the `By:` line:\n\n   ```sh\n   asked='\u003Cthe message this thread was started with, whole>'\n   config='\u003Cwhat t3_thread_configure printed, or nothing where this session has no such tool>'\n   case $config in \"\u003C\"*) config= ;; esac\n   n=$(printf '%s\\n' \"$asked\" | awk 'NR == 1 {print ($(4) ~ \u002F^[0-9]+$\u002F ? $(4) : 1)}')\n   by=$(printf '%s' \"$config\" | jq -r '.modelSelection | [(.provider \u002F\u002F .instanceId), .model, (.options[]? | select(.id | test(\"effort$\"; \"i\")) | .value)] | join(\" \")' 2> \u002Fdev\u002Fnull)\n   if [ -z \"$by\" ]; then\n       by=$(uv run --project \"$T\u002F..\u002Fsource\" jroles review 2> \u002Fdev\u002Fnull | sed -n \"${n}p\" |\n           jq -r '[.provider, .model, (.options[]? | select(.id | test(\"effort$\"; \"i\")) | .value)] | join(\" \")' 2> \u002Fdev\u002Fnull)\n   fi\n   echo \"By: ${by:-inherit} #$n\"\n   ```\n\n   The number is the message's, the line of the role map's review list this reviewer was launched for, and 1 for a message with none: a scoped pass and a second pass are the first line's.\n   So the two reviewers of one pull request have two `By:` lines, also on one model: `By: claudeAgent claude-sonnet-5-5 high #1` and `By: claudeAgent claude-sonnet-5-5 high #2`, and `jmerge` counts them by the number.\n   Then decide whether this message may start a review, with this, with the same message and that `By:` line in place of the words in angle brackets:\n\n   ```sh\n   B=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\n   asked='\u003Cthe message this thread was started with, whole>'\n   by='\u003Cthe By: line the block above printed>'\n   case $asked in\n   \"\u002Fpr-review run \u003Cslug> scoped \"*) echo \"go: a scoped pass, as \\\"A scoped pass\\\" says\" ;;\n   *\" again\") echo \"go: a second pass, or the review the brief is still owed, the message ends in again\" ;;\n   \"\u002Fpr-review run \u003Cslug> \"[0-9]*)\n       if awk -v by=\"$by\" '\u002F^## \u002F {review = ($(0) == \"## Review\")} review && $(0) == by {found = 1} END {exit !found}' \"$B\"; then\n           echo \"stop: the brief has a ## Review with $by, and a reviewer writes one section for its line\"\n           echo \"the line I accept: \u002Fpr-review run \u003Cslug> again\"\n           sed 's|{slug}|\u003Cslug>|g' \"$T\u002Frerun.md\"\n       else\n           echo \"go: the brief has no ## Review with $by, so this is that line's review\"\n       fi ;;\n   *)\n       if ! command grep -qx '## Review' \"$B\"; then\n           echo \"go: the brief has no ## Review, so this is the review it is owed\"\n       else\n           echo \"stop: the brief has a ## Review and the message does not end in again\"\n           echo \"the line I accept: \u002Fpr-review run \u003Cslug> again\"\n           sed 's|{slug}|\u003Cslug>|g' \"$T\u002Frerun.md\"\n       fi ;;\n   esac\n   ```\n\n   On `stop`, say what it printed, the line it would accept included, and end: no review, no section.\n   On `go`, go on.\n2. Find the change under review: the branch this worktree is on, at the head origin has, over its base.\n   The review comes before the pull request, so there may be none yet: the change is read from git, never from GitHub.\n   Run this with the block at the top:\n\n   ```sh\n   B=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\n   branch=$(git branch --show-current)\n   on=$(uv run --project \"$T\u002F..\u002Fsource\" jbriefs line base \"$B\")\n   [ \"$on\" != none ] || on=\n   [ -n \"$on\" ] || on=$(git symbolic-ref -q --short refs\u002Fremotes\u002Forigin\u002FHEAD | sed 's|^origin\u002F||')\n   on=${on:-main}\n   if [ -z \"$branch\" ] || ! git fetch -q origin \"$branch\" \"$on\"; then\n       echo \"stop: could not fetch origin's $branch and $on, this worktree is at $(git rev-parse HEAD)\"\n   elif [ -n \"$(git status --porcelain)\" ] || [ \"$(git rev-parse HEAD)\" != \"$(git rev-parse \"origin\u002F$branch\")\" ]; then\n       echo \"stop: this worktree is not at origin's $branch, $(git rev-parse \"origin\u002F$branch\"), with nothing uncommitted\"\n   else\n       echo \"head $(git rev-parse HEAD) base $(git merge-base \"origin\u002F$on\" HEAD) on $on\"\n   fi\n   ```\n\n   On `stop`, say what it printed, write the section \"A stop\" says, and end: no review.\n   Otherwise keep the head and the base it printed: the head is the head under review, and wherever this skill reads the diff it is `git diff --no-color \u003Cthe base> \u003Cthe head>`.\n   The diff is read in step 3 of \"The review\".\n   Open a file only to judge a finding, or to find and prove the safety fact.\n3. Read the brief's last Result: its `Checked:` and `Proved:` lines name the head under review, or a head whose patch it carries, since jbus launched this review on them.\n4. Say in two lines what is about to be reviewed, then start.\n\n### A stop\n\nA reviewer that Start's step 1 let begin and that stops all the same, on step 2 of Start or on step 1 of \"A scoped pass\", writes a `## Review` that says so.\nIts launch put a reviewer line under the Result, so jbus and the crew read the brief as reviewing (`jbriefs line reviewing`) until a section with a `Head:` line follows it, and the crew rebases nothing while it reads so: a stop with no section holds the pull request until somebody notices.\nRun this with the block at the top, with the head the review was to be of, the `stop` line the step printed and the `By:` line Start printed in place of the words in angle brackets.\nThe head is, on step 2 of Start, the commit its `stop` line names, and on step 1 of \"A scoped pass\", the end of the message's new range.\nFor a scoped pass, `scope` is `Scope: range-diff \u003Cold range> \u003Cnew range>`, with the message's two ranges, and for any other pass it is left empty:\n\n```sh\nB=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\nhead='\u003Cthe head the review was to be of>'\nsaid='\u003Cthe stop line the step printed>'\nby='\u003Cthe By: line Start printed>'\nscope=''\ncase $by in \"\u003C\"*) by= ;; esac\ncase $scope in \"\u003C\"*) scope= ;; esac\nuv run --project \"$T\u002F..\u002Fsource\" jbriefs not-run \"$B\" \"$head\" \"the reviewer stopped before its review: $said\" \"$by\" \"$scope\"\n```\n\nA `stop` of step 2 that could not fetch names this worktree's commit, since it could ask origin for none, and writes its section at that commit all the same.\nThe section is the one \"No room\" writes, read the same way: `jmerge` merges nothing on it, its `Head:` line lets the crew rebase, and jbus's stall clock asks this reviewer again.\nSent a second time for the same head, it writes no second section.\nThen say what the step and the block printed, and end without settling.\n\n### The review\n\nWhen \"Start\" is done, and whenever a step names \"The review\" or one of its steps: read `$T\u002F..\u002Fskills\u002Fpr-review\u002Fthe-review.md` now.\n\n### No room\n\nA reviewer that gives up says so in the brief, so that the pull request never waits for a review nobody is going to run.\nIt gives up only on exit 69 of the block of step 1, which is its sixth send that did not go on.\nIt sends nobody anything.\n\n1. Write the section.\n   Run this with the block at the top, with the head kept at the start, the last line the block of step 1 printed and the `By:` line Start printed in place of the words in angle brackets.\n   For a scoped pass, `scope` is the `Scope:` line step 1 of \"A scoped pass\" printed, and for any other pass it is left empty:\n\n   ```sh\n   B=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\n   kept='\u003Cthe head kept at the start>'\n   why='\u003Cthe last line the block of step 1 printed>'\n   by='\u003Cthe By: line Start printed>'\n   scope=''\n   case $by in \"\u003C\"*) by= ;; esac\n   case $scope in \"\u003C\"*) scope= ;; esac\n   uv run --project \"$T\u002F..\u002Fsource\" jbriefs not-run \"$B\" \"$kept\" \"the run block was sent six times and never went on, and its last answer was \\\"$why\\\"\" \"$by\" \"$scope\"\n   ```\n\n   The section is not a review: `jmerge` reads it as a review with no verdict and merges nothing on it.\n   Its `By:` line says whose it is, so that this reviewer's section at the same head, once it runs again, takes its place, and another reviewer's does not.\n   Its `Scope:` line, on a scoped pass, keeps it a scoped pass: a scoped section takes the place of no section but a scoped one, so the first review of the same head keeps its findings.\n   Its `Head:` line is what lets the crewmate's thread rebase again (the crew skill, \"A conflict\").\n   jbus's stall clock (`jbus.clock`) reads a review with no verdict as a wait on the review: it asks this reviewer again, with `\u002Fpr-review run \u003Cslug> again`, and then tells the home.\n   Sent a second time for the same head, the block writes no second section.\n2. Say the same in this thread in two lines, and stop without settling: a thread that settled would look like a review that was done.\n\n### After the review\n\nWhen the review has its verdict, and whenever a step names \"After the review\" or one of its steps, as \"No room\", \"Outside the diff\" and \"A scoped pass\" do: read `$T\u002F..\u002Fskills\u002Fpr-review\u002Fafter-the-review.md` now.\n\n### Outside the diff\n\nWhen step 2 of \"After the review\" drops what is outside the diff, and whenever a step names \"Outside the diff\": read `$T\u002F..\u002Fskills\u002Fpr-review\u002Foutside-the-diff.md` now.\n\n### Wider than the brief\n\n```sh\nuv run --project \"$T\u002F..\u002Fsource\" jmerge --scope \u003Cslug>\n```\n\nIt compares the diff with the brief's `Where:`: it asks `jmerge` which changed files that line does not cover, with the one parser of that line (`jbriefs.parse.where`), and prints nothing when all are inside.\nWhat it prints goes on the section's `Outside Where:` line, each `outside: \u003Cpath>` as its path, joined with `, `, or `none` when it printed nothing.\nThat line is no finding: it carries no severity, asks the crewmate for no line, and holds no merge, since the command, not the reader, is the check, and anyone can run it again.\nSo no finding restates it, and a finding of the reading that says only that a file is outside `Where` is dismissed (the lead judgment of \"The review\").\nDo not judge the width by reading the diff: the command's answer is the answer.\nA command that exits with something other than 0 (the brief's `Where:` names no path, or neither the branch nor the pull request can be read) printed why on stderr: the line is then `Outside Where: not checked, \u003Cwhy>`, not `none`.\n\nA finding can be wider than the brief in a second way: it is about a changed line, and what it asks for is not in the brief's `Where`.\nThat happens with the fifth question's things to look for (a restructuring, a file to split, a branch to move into a module of its own, a wrapper to remove, logic to move to its canonical layer), when the remedy would change a file outside `Where`.\nThe `SCOPE` text asks the reading to say so in the finding.\nSuch a finding is kept, sent and recorded like any other, with these words at the end of its line: `outside Where, not this pull request`.\nIt asks the crewmate for no fix: the crewmate queues it as a row of its own, as `templates\u002Fa-fault-outside.md` says, or leaves it.\nA finding whose remedy stays inside `Where` is an ordinary finding.\n\n### In flight\n\n```sh\nBRIEF=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\nFILES=$(git diff --name-only '\u003Cthe base>' '\u003Cthe head>') || exit 1\nPR=$(printf '%s\\n' \"$FILES\" | jq -R 'select(. != \"\")' | jq -s --arg branch \"$(git branch --show-current)\" '{branch: $branch, files: map({path: .})}') || exit 1\nOPEN=$(gh pr list --state open --json number,title,files,headRefName) || exit 1\nprintf '%s\\n' \"$OPEN\" | jq -r --argjson pr \"$PR\" '\n  ($pr.files | map(.path)) as $mine\n  | .[] | select(.headRefName != $pr.branch)\n  | (.files | map(.path) | map(select(IN($mine[])))) as $both\n  | select($both | length > 0)\n  | \"pull request \\(.number) (\\(.title)): \\($both | join(\", \"))\"'\nlines=$(uv run --project \"$T\u002F..\u002Fsource\" jbriefs line pr,path \"$H\"\u002Ftasks\u002F*.md 2> \u002Fdev\u002Fnull)\nfor other in \"$H\"\u002Ftasks\u002F*.md; do\n  [ \"$other\" = \"$BRIEF\" ] && continue\n  if command grep -q '^## Result' \"$other\"; then\n    printf '%s\\n' \"$lines\" | command grep -qxF \"$(printf 'after the review\\t%s' \"$other\")\" || continue\n  fi\n  where=$(sed -n 's\u002F^Where: \u002F\u002Fp' \"$other\" | command grep -o '`[^`]*`' | tr -d '`' | tr '\\n' ' ')\n  both=$(printf '%s\\n' \"$PR\" | jq -r '.files[].path' | awk -v where=\"$where\" '\n    BEGIN { n = split(where, w, \" \"); for (i = 1; i \u003C= n; i++) sub(\u002F\\\u002F$\u002F, \"\", w[i]) }\n    { for (i = 1; i \u003C= n; i++) if ($(0) == w[i] || index($(0), w[i] \"\u002F\") == 1) { print; next } }' |\n    paste -sd, - | sed 's\u002F,\u002F, \u002Fg')\n  if [ -n \"$both\" ]; then echo \"brief $(basename \"$other\" .md): $both\"; fi\ndone\n```\n\nIt prints one line for each open pull request that changes a file this one changes, and one for each brief with no pull request yet whose `Where:` covers a file this one changes: a brief with no Result, or one whose last Result says its pull request opens after its review.\nThose lines go into the section's `In flight:` line, as they are.\nThey say that two pieces of work touch the same file, so that whoever merges second knows: they are not a fault in this pull request and carry no severity.\nDo not open the other pull requests or briefs to look further.\nA failed `git diff` or `gh` ends the block with exit code 1, and then the section's `In flight:` line says \"not checked\", not \"none\".\n\n### A scoped pass\n\nWhen this thread was started with `\u002Fpr-review run \u003Cslug> scoped \u003Cold range> \u003Cnew range>`, and whenever a step names \"A scoped pass\": read `$T\u002F..\u002Fskills\u002Fpr-review\u002Fa-scoped-pass.md` now.\n","# pr-review\n\nThis is the reviewer's text: a thread started with `\u002Fpr-review run \u003Cslug>`, which only a launcher sends, reviews that brief's pull request, as \"The reviewer\" says.\nAny other message makes this thread a launcher.\n\n```sh\nR=$(basename \"$(dirname \"$(git rev-parse --path-format=absolute --git-common-dir)\")\")\nH=~\u002F.local\u002Fstate\u002Fhome\u002F$R\nT=$(realpath ~\u002F.claude\u002Fskills\u002Fpr-review\u002F..\u002F..\u002Ftemplates)\n```\n\n`$T` is the `templates\u002F` directory of the repo this skill lives in. Each template there is the one copy of its text: read it when a step names it, not before.\n\n## Launching\n\nWhen this thread launches a reviewer, for `\u002Fpr-review` in a home or a crewmate's thread, `\u002Fpr-review \u003Cslug>`, or the crew skill's launch: read `$T\u002F..\u002Fskills\u002Fpr-review\u002Flaunching.md` now.\n\n## The reviewer\n\nThis thread is a **reviewer**. It reads the diff, judges what it found, proves one fact, reports, and ends. It starts no subagent and no other thread: the review is this one thread. It never edits a file, commits, pushes, or changes the pull request, and it never reads the crewmate's thread.\n\nA reviewer runs no test step and no suite, whatever the brief says.\nThe tests are the crewmate's desk proof, its `Checked:` and `Proved:` lines, which bind the head before jbus launches a reviewer (`jbus.prereview`), and CI's `check`, which runs on the pull request the crewmate opens after the review.\nThe one thing a reviewer runs is a targeted proof of the fact the change is safe because of (\"The review\", step 5).\nNew prose is one sentence per line, and an old line the pull request did not touch is no finding for how many sentences it holds.\n\n### Start\n\n1. Read `$H\u002Ftasks\u002F\u003Cslug>.md`.\n   Nothing else from `$H`, but for what the blocks under \"After the review\" read by themselves.\n   Then work out who this reviewer is, and then whether this message may start a review.\n\n   Who this reviewer is goes on the section's `By:` line, under its heading: the provider, the model and the effort this thread runs on, and its number, `#\u003Cn>`.\n   Ask the thread itself: the `t3-code` server's `t3_thread_configure` with no arguments (if your harness defers it, load it first).\n   Run this with the block at the top, with what it printed, whole, and the message this thread was started with in place of the words in angle brackets.\n   Keep what it prints, the `By:` line:\n\n   ```sh\n   asked='\u003Cthe message this thread was started with, whole>'\n   config='\u003Cwhat t3_thread_configure printed, or nothing where this session has no such tool>'\n   case $config in \"\u003C\"*) config= ;; esac\n   n=$(printf '%s\\n' \"$asked\" | awk 'NR == 1 {print ($(4) ~ \u002F^[0-9]+$\u002F ? $(4) : 1)}')\n   by=$(printf '%s' \"$config\" | jq -r '.modelSelection | [(.provider \u002F\u002F .instanceId), .model, (.options[]? | select(.id | test(\"effort$\"; \"i\")) | .value)] | join(\" \")' 2> \u002Fdev\u002Fnull)\n   if [ -z \"$by\" ]; then\n       by=$(uv run --project \"$T\u002F..\u002Fsource\" jroles review 2> \u002Fdev\u002Fnull | sed -n \"${n}p\" |\n           jq -r '[.provider, .model, (.options[]? | select(.id | test(\"effort$\"; \"i\")) | .value)] | join(\" \")' 2> \u002Fdev\u002Fnull)\n   fi\n   echo \"By: ${by:-inherit} #$n\"\n   ```\n\n   The number is the message's, the line of the role map's review list this reviewer was launched for, and 1 for a message with none: a scoped pass and a second pass are the first line's.\n   So the two reviewers of one pull request have two `By:` lines, also on one model: `By: claudeAgent claude-sonnet-5-5 high #1` and `By: claudeAgent claude-sonnet-5-5 high #2`, and `jmerge` counts them by the number.\n   Then decide whether this message may start a review, with this, with the same message and that `By:` line in place of the words in angle brackets:\n\n   ```sh\n   B=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\n   asked='\u003Cthe message this thread was started with, whole>'\n   by='\u003Cthe By: line the block above printed>'\n   case $asked in\n   \"\u002Fpr-review run \u003Cslug> scoped \"*) echo \"go: a scoped pass, as \\\"A scoped pass\\\" says\" ;;\n   *\" again\") echo \"go: a second pass, or the review the brief is still owed, the message ends in again\" ;;\n   \"\u002Fpr-review run \u003Cslug> \"[0-9]*)\n       if awk -v by=\"$by\" '\u002F^## \u002F {review = ($(0) == \"## Review\")} review && $(0) == by {found = 1} END {exit !found}' \"$B\"; then\n           echo \"stop: the brief has a ## Review with $by, and a reviewer writes one section for its line\"\n           echo \"the line I accept: \u002Fpr-review run \u003Cslug> again\"\n           sed 's|{slug}|\u003Cslug>|g' \"$T\u002Frerun.md\"\n       else\n           echo \"go: the brief has no ## Review with $by, so this is that line's review\"\n       fi ;;\n   *)\n       if ! command grep -qx '## Review' \"$B\"; then\n           echo \"go: the brief has no ## Review, so this is the review it is owed\"\n       else\n           echo \"stop: the brief has a ## Review and the message does not end in again\"\n           echo \"the line I accept: \u002Fpr-review run \u003Cslug> again\"\n           sed 's|{slug}|\u003Cslug>|g' \"$T\u002Frerun.md\"\n       fi ;;\n   esac\n   ```\n\n   On `stop`, say what it printed, the line it would accept included, and end: no review, no section.\n   On `go`, go on.\n2. Find the change under review: the branch this worktree is on, at the head origin has, over its base.\n   The review comes before the pull request, so there may be none yet: the change is read from git, never from GitHub.\n   Run this with the block at the top:\n\n   ```sh\n   B=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\n   branch=$(git branch --show-current)\n   on=$(uv run --project \"$T\u002F..\u002Fsource\" jbriefs line base \"$B\")\n   [ \"$on\" != none ] || on=\n   [ -n \"$on\" ] || on=$(git symbolic-ref -q --short refs\u002Fremotes\u002Forigin\u002FHEAD | sed 's|^origin\u002F||')\n   on=${on:-main}\n   if [ -z \"$branch\" ] || ! git fetch -q origin \"$branch\" \"$on\"; then\n       echo \"stop: could not fetch origin's $branch and $on, this worktree is at $(git rev-parse HEAD)\"\n   elif [ -n \"$(git status --porcelain)\" ] || [ \"$(git rev-parse HEAD)\" != \"$(git rev-parse \"origin\u002F$branch\")\" ]; then\n       echo \"stop: this worktree is not at origin's $branch, $(git rev-parse \"origin\u002F$branch\"), with nothing uncommitted\"\n   else\n       echo \"head $(git rev-parse HEAD) base $(git merge-base \"origin\u002F$on\" HEAD) on $on\"\n   fi\n   ```\n\n   On `stop`, say what it printed, write the section \"A stop\" says, and end: no review.\n   Otherwise keep the head and the base it printed: the head is the head under review, and wherever this skill reads the diff it is `git diff --no-color \u003Cthe base> \u003Cthe head>`.\n   The diff is read in step 3 of \"The review\".\n   Open a file only to judge a finding, or to find and prove the safety fact.\n3. Read the brief's last Result: its `Checked:` and `Proved:` lines name the head under review, or a head whose patch it carries, since jbus launched this review on them.\n4. Say in two lines what is about to be reviewed, then start.\n\n### A stop\n\nA reviewer that Start's step 1 let begin and that stops all the same, on step 2 of Start or on step 1 of \"A scoped pass\", writes a `## Review` that says so.\nIts launch put a reviewer line under the Result, so jbus and the crew read the brief as reviewing (`jbriefs line reviewing`) until a section with a `Head:` line follows it, and the crew rebases nothing while it reads so: a stop with no section holds the pull request until somebody notices.\nRun this with the block at the top, with the head the review was to be of, the `stop` line the step printed and the `By:` line Start printed in place of the words in angle brackets.\nThe head is, on step 2 of Start, the commit its `stop` line names, and on step 1 of \"A scoped pass\", the end of the message's new range.\nFor a scoped pass, `scope` is `Scope: range-diff \u003Cold range> \u003Cnew range>`, with the message's two ranges, and for any other pass it is left empty:\n\n```sh\nB=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\nhead='\u003Cthe head the review was to be of>'\nsaid='\u003Cthe stop line the step printed>'\nby='\u003Cthe By: line Start printed>'\nscope=''\ncase $by in \"\u003C\"*) by= ;; esac\ncase $scope in \"\u003C\"*) scope= ;; esac\nuv run --project \"$T\u002F..\u002Fsource\" jbriefs not-run \"$B\" \"$head\" \"the reviewer stopped before its review: $said\" \"$by\" \"$scope\"\n```\n\nA `stop` of step 2 that could not fetch names this worktree's commit, since it could ask origin for none, and writes its section at that commit all the same.\nThe section is the one \"No room\" writes, read the same way: `jmerge` merges nothing on it, its `Head:` line lets the crew rebase, and jbus's stall clock asks this reviewer again.\nSent a second time for the same head, it writes no second section.\nThen say what the step and the block printed, and end without settling.\n\n### The review\n\nWhen \"Start\" is done, and whenever a step names \"The review\" or one of its steps: read `$T\u002F..\u002Fskills\u002Fpr-review\u002Fthe-review.md` now.\n\n### No room\n\nA reviewer that gives up says so in the brief, so that the pull request never waits for a review nobody is going to run.\nIt gives up only on exit 69 of the block of step 1, which is its sixth send that did not go on.\nIt sends nobody anything.\n\n1. Write the section.\n   Run this with the block at the top, with the head kept at the start, the last line the block of step 1 printed and the `By:` line Start printed in place of the words in angle brackets.\n   For a scoped pass, `scope` is the `Scope:` line step 1 of \"A scoped pass\" printed, and for any other pass it is left empty:\n\n   ```sh\n   B=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\n   kept='\u003Cthe head kept at the start>'\n   why='\u003Cthe last line the block of step 1 printed>'\n   by='\u003Cthe By: line Start printed>'\n   scope=''\n   case $by in \"\u003C\"*) by= ;; esac\n   case $scope in \"\u003C\"*) scope= ;; esac\n   uv run --project \"$T\u002F..\u002Fsource\" jbriefs not-run \"$B\" \"$kept\" \"the run block was sent six times and never went on, and its last answer was \\\"$why\\\"\" \"$by\" \"$scope\"\n   ```\n\n   The section is not a review: `jmerge` reads it as a review with no verdict and merges nothing on it.\n   Its `By:` line says whose it is, so that this reviewer's section at the same head, once it runs again, takes its place, and another reviewer's does not.\n   Its `Scope:` line, on a scoped pass, keeps it a scoped pass: a scoped section takes the place of no section but a scoped one, so the first review of the same head keeps its findings.\n   Its `Head:` line is what lets the crewmate's thread rebase again (the crew skill, \"A conflict\").\n   jbus's stall clock (`jbus.clock`) reads a review with no verdict as a wait on the review: it asks this reviewer again, with `\u002Fpr-review run \u003Cslug> again`, and then tells the home.\n   Sent a second time for the same head, the block writes no second section.\n2. Say the same in this thread in two lines, and stop without settling: a thread that settled would look like a review that was done.\n\n### After the review\n\nWhen the review has its verdict, and whenever a step names \"After the review\" or one of its steps, as \"No room\", \"Outside the diff\" and \"A scoped pass\" do: read `$T\u002F..\u002Fskills\u002Fpr-review\u002Fafter-the-review.md` now.\n\n### Outside the diff\n\nWhen step 2 of \"After the review\" drops what is outside the diff, and whenever a step names \"Outside the diff\": read `$T\u002F..\u002Fskills\u002Fpr-review\u002Foutside-the-diff.md` now.\n\n### Wider than the brief\n\n```sh\nuv run --project \"$T\u002F..\u002Fsource\" jmerge --scope \u003Cslug>\n```\n\nIt compares the diff with the brief's `Where:`: it asks `jmerge` which changed files that line does not cover, with the one parser of that line (`jbriefs.parse.where`), and prints nothing when all are inside.\nWhat it prints goes on the section's `Outside Where:` line, each `outside: \u003Cpath>` as its path, joined with `, `, or `none` when it printed nothing.\nThat line is no finding: it carries no severity, asks the crewmate for no line, and holds no merge, since the command, not the reader, is the check, and anyone can run it again.\nSo no finding restates it, and a finding of the reading that says only that a file is outside `Where` is dismissed (the lead judgment of \"The review\").\nDo not judge the width by reading the diff: the command's answer is the answer.\nA command that exits with something other than 0 (the brief's `Where:` names no path, or neither the branch nor the pull request can be read) printed why on stderr: the line is then `Outside Where: not checked, \u003Cwhy>`, not `none`.\n\nA finding can be wider than the brief in a second way: it is about a changed line, and what it asks for is not in the brief's `Where`.\nThat happens with the fifth question's things to look for (a restructuring, a file to split, a branch to move into a module of its own, a wrapper to remove, logic to move to its canonical layer), when the remedy would change a file outside `Where`.\nThe `SCOPE` text asks the reading to say so in the finding.\nSuch a finding is kept, sent and recorded like any other, with these words at the end of its line: `outside Where, not this pull request`.\nIt asks the crewmate for no fix: the crewmate queues it as a row of its own, as `templates\u002Fa-fault-outside.md` says, or leaves it.\nA finding whose remedy stays inside `Where` is an ordinary finding.\n\n### In flight\n\n```sh\nBRIEF=\"$H\u002Ftasks\u002F\u003Cslug>.md\"\nFILES=$(git diff --name-only '\u003Cthe base>' '\u003Cthe head>') || exit 1\nPR=$(printf '%s\\n' \"$FILES\" | jq -R 'select(. != \"\")' | jq -s --arg branch \"$(git branch --show-current)\" '{branch: $branch, files: map({path: .})}') || exit 1\nOPEN=$(gh pr list --state open --json number,title,files,headRefName) || exit 1\nprintf '%s\\n' \"$OPEN\" | jq -r --argjson pr \"$PR\" '\n  ($pr.files | map(.path)) as $mine\n  | .[] | select(.headRefName != $pr.branch)\n  | (.files | map(.path) | map(select(IN($mine[])))) as $both\n  | select($both | length > 0)\n  | \"pull request \\(.number) (\\(.title)): \\($both | join(\", \"))\"'\nlines=$(uv run --project \"$T\u002F..\u002Fsource\" jbriefs line pr,path \"$H\"\u002Ftasks\u002F*.md 2> \u002Fdev\u002Fnull)\nfor other in \"$H\"\u002Ftasks\u002F*.md; do\n  [ \"$other\" = \"$BRIEF\" ] && continue\n  if command grep -q '^## Result' \"$other\"; then\n    printf '%s\\n' \"$lines\" | command grep -qxF \"$(printf 'after the review\\t%s' \"$other\")\" || continue\n  fi\n  where=$(sed -n 's\u002F^Where: \u002F\u002Fp' \"$other\" | command grep -o '`[^`]*`' | tr -d '`' | tr '\\n' ' ')\n  both=$(printf '%s\\n' \"$PR\" | jq -r '.files[].path' | awk -v where=\"$where\" '\n    BEGIN { n = split(where, w, \" \"); for (i = 1; i \u003C= n; i++) sub(\u002F\\\u002F$\u002F, \"\", w[i]) }\n    { for (i = 1; i \u003C= n; i++) if ($(0) == w[i] || index($(0), w[i] \"\u002F\") == 1) { print; next } }' |\n    paste -sd, - | sed 's\u002F,\u002F, \u002Fg')\n  if [ -n \"$both\" ]; then echo \"brief $(basename \"$other\" .md): $both\"; fi\ndone\n```\n\nIt prints one line for each open pull request that changes a file this one changes, and one for each brief with no pull request yet whose `Where:` covers a file this one changes: a brief with no Result, or one whose last Result says its pull request opens after its review.\nThose lines go into the section's `In flight:` line, as they are.\nThey say that two pieces of work touch the same file, so that whoever merges second knows: they are not a fault in this pull request and carry no severity.\nDo not open the other pull requests or briefs to look further.\nA failed `git diff` or `gh` ends the block with exit code 1, and then the section's `In flight:` line says \"not checked\", not \"none\".\n\n### A scoped pass\n\nWhen this thread was started with `\u002Fpr-review run \u003Cslug> scoped \u003Cold range> \u003Cnew range>`, and whenever a step names \"A scoped pass\": read `$T\u002F..\u002Fskills\u002Fpr-review\u002Fa-scoped-pass.md` now.\n",{"tip":24,"card":25,"name":5,"description":7,"user-invocable":26,"disable-model-invocation":26},"has a finished pull request reviewed in a fresh thread | review the pull request | review the pull requests | review the pr | review this pr | review my pr","Run the pipeline | 4 | Starts one review thread per pull request. It reads the diff itself, judges what it found, and one command proves the fact the change is safe because of. It fixes nothing, and jbus archives it when the pull request merges or closes. | Reach for it when a pull request opens. The crewmate does this by itself. | model: a crewmate; op: the operator | look: rev",true,"main","daff051d2674b46e2eb8a333bbd3f3e40f8d1cea","features\u002Fpr-review",0,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere","Software Engineer @ Markel\r\n","2026-11-15 11:25:06",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add JoshuaHayesWasHere\u002Fjstack --skill pr-review",{"tool":41,"command":42},"bunx","bunx skills add JoshuaHayesWasHere\u002Fjstack --skill pr-review",{"tool":44,"command":45},"pnpm","pnpm dlx skills add JoshuaHayesWasHere\u002Fjstack --skill pr-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002FSKILL.md",[48,54,58,62,66,70,74,78,84,88,92,96,100,104],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"a-scoped-pass.md","REFERENCE","参考文档",9410,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Fa-scoped-pass.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"after-the-review.md",4566,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Fafter-the-review.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"feature.json",187,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ffeature.json",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"launching.md",15106,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Flaunching.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"outside-the-diff.md",2806,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Foutside-the-diff.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"templates\u002Fpr-body.md",675,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftemplates\u002Fpr-body.md",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"templates\u002Freview.md",1949,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftemplates\u002Freview.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"tests\u002Ftest_meets_line.py","SCRIPT","脚本",2930,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftests\u002Ftest_meets_line.py",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"tests\u002Ftest_pr_review_skill.py",62470,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftests\u002Ftest_pr_review_skill.py",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"tests\u002Ftest_review_references.py",1378,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftests\u002Ftest_review_references.py",{"path":93,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":94,"sourceHtmlUrl":95},"tests\u002Ftest_reviewer_stop.py",1655,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftests\u002Ftest_reviewer_stop.py",{"path":97,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":98,"sourceHtmlUrl":99},"tests\u002Ftest_scoped_review.py",7797,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Ftests\u002Ftest_scoped_review.py",{"path":101,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":102,"sourceHtmlUrl":103},"the-review.md",27552,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Fthe-review.md",{"path":105,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":106,"sourceHtmlUrl":107},"verify.md",797,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fpr-review\u002Fverify.md",[109,116,123,130,137,144],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7ERF9GXMY62V7QTVAR6G8DG","no-key","A skill its skills.json lists as hidden that a model may still call by itself, kept broken so the lint is seen to catch it.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ftesting\u002Ftests\u002Ffixtures\u002Fskills\u002Fno-key\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M7ERF83ZG3XKJ2SB8MJHCZ8H","fake-skill","A FAKE skill in a FAKE tree, named for its folder until the test renames the folder.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ftesting\u002Ftests\u002Ffixtures\u002Fskills\u002Fnamed-tree\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M7ERF698RV4VF8QCDF8H8DA4","extra-key","A skill its skills.json does not list as hidden that a model still cannot call, kept broken so the lint is seen to catch it.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ftesting\u002Ftests\u002Ffixtures\u002Fskills\u002Fextra-key\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M7ERF2V8N73X9T0Y9PJ4SFV6","unslop","Cut AI tells from writing. Use when the user says text reads like AI, asks to unslop it, or before prose ships to people.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fwriting\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M7EREWM67WX934XKABM4XCSZ","technical-writing","Write or review docs, READMEs, RFCs, PR descriptions and commit messages to a layered standard: Diataxis structure, Google developer style, STE rules and Global English.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fwriting\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M7EREMHJS9JY10AM5EKVX3GP","why","Find why code is the way it is, from its history and every evidence source this session can query, with citations. Use for 'why does X work this way', 'why did we pick Y', regressions and postmortems. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fwhy\u002FSKILL.md",[],[]]