[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DNJCM0RAXPAXPQCXB6RQEF":3,"skill-same:01M6DNJCM0RAXPAXPQCXB6RQEF":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":65},"01M6DNJCM0RAXPAXPQCXB6RQEF","review-sweep",null,"Review an existing GitButler stack: fix owned branches and draft inline findings on others. Plain Git uses single-branch review.","0xgleb\u002Fdotconfig","0xgleb","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39841057?v=4","01M6DNDD83BRMM1SH4R4C6K8GY","01M6DNDDCPH33FEFB6JN6Y2GVD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Freview-sweep\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"sweep","review sweep","review","start","git","edit","write","inline","mktemp","mkdir","ls","read","command","stack","Bash","workflow","branches","fix","end","branch","2026-11-10 10:12:30",false,"---\nname: review-sweep\nuser-invocable: true\nallowed-tools: Bash(but:*), Bash(direnv:*), Bash(git:*), Bash(gh:*), Bash(command:*), Bash(cargo:*), Bash(mkdir:*), Bash(cat:*), Bash(mktemp:*), Bash(rm:*), Bash(test:*), Bash(grep:*), Bash(wc:*), Bash(date:*), Bash(basename:*), Bash(find:*), Bash(ls:*), Read, Write, Edit, Agent, Workflow, AskUserQuestion, Skill\ndescription: \"Review an existing GitButler stack: fix owned branches and draft inline findings on others. Plain Git uses single-branch review.\"\nargument-hint: \"[--start BRANCH] [--end BRANCH]\"\n---\n\nSweep an entire stack with the native review panel, **parallelized**, and\ndispatching per **authorship**.\n\n**Default scope is the WHOLE stack.** Invoked with no arguments, the sweep\ncovers every branch in the applied GitButler series, across all applied stacks.\nThat is the default and it is unambiguous: **never ask the user to confirm the\nscope or the branch count.** The invocation is the confirmation. `--start` \u002F\n`--end` narrow the range when the user wants less; absence of them means \"all of\nit\", not \"ask me\".\n\n**Authorship decides the per-branch action** (detected once, up front):\n\n- **Author mode — your own stack** (you authored the PRs): `\u002Freview-loop` per\n  branch — fix the findings, modify them into the branch, publish the verified\n  unit, then advance.\n- **Reviewer mode — someone else's stack** (you are the reviewer): `\u002Freview-pr`\n  per branch's PR — cross-review and post a draft batch of comments for the\n  author. NEVER modify their code, NEVER submit a verdict, NEVER push.\n\n**Parallelism is the point.** The slow part of a sweep is the review panel, and\nthe panels are read-only — so the sweep reviews **every branch at once** before\nit changes anything, instead of reviewing-then-fixing one branch at a time. Only\nthe _mutations_ (applying fixes and absorbing them into managed series) must\nrespect parent-before-child order; the _reviews_ do not. Upstack branches whose\ncontent shifts when a downstack fix restacks them get a cheap **delta\nre-review** rather than a fresh full panel. Net: far less wall-clock than the\nold branch-by-branch serial loop, at the cost of some re-review work the user\nhas explicitly accepted.\n\nThe review engine itself (panel, probes, prompts, the `review-panel` Workflow)\nis the shared `~\u002F.claude\u002Fskills\u002Freview-core\u002FSKILL.md` that `\u002Freview-loop` and\n`\u002Freview-pr` also use; the per-branch action around it is `\u002Freview-loop`'s\n(author) or `\u002Freview-pr`'s (reviewer). This command adds only the traversal, the\nparallelization, and the tool-specific scope\u002Fmodify operations.\n\nFollow these steps precisely.\n\n---\n\n## Architecture: adapter + engine + parallel orchestration\n\nThree layers. Only the adapter is tool-specific.\n\n- **Stack adapter** (tool-specific): detect the tool; enumerate the branches and\n  their parent links; produce each branch's review scope **without mutating the\n  tree** (SHA-range diff, no checkout); and modify a branch's fixes back into\n  it.\n- **Review engine** (tool-agnostic): the shared `review-core` panel turns one\n  branch's diff into verified findings. The per-branch _action_ is\n  `\u002Freview-loop`'s fix loop (author) or `\u002Freview-pr`'s draft-comment flow\n  (reviewer).\n- **Parallel orchestration** (this command): resolve the range; run **all**\n  per-branch panels concurrently (phase 1); then take the per-branch action\n  (phase 2) — fully parallel in reviewer mode, dependency-ordered in author mode\n  with delta re-reviews where a restack moved a branch.\n\n| Adapter operation      | GitButler managed main worktree                                                     |\n| ---------------------- | ----------------------------------------------------------------------------------- |\n| detect                 | common Git directory has GitButler state and current top-level is the main worktree |\n| ready check            | verified main worktree on a workspace branch; `but status` succeeds                 |\n| enumerate with parents | each applied stack's series, base to tip                                            |\n| scope a branch         | Git diff between verified parent\u002Fhead SHAs                                          |\n| navigate               | none; virtual branches are applied together                                         |\n| absorb fixes           | `but absorb \u003Cbranch>` after an inspected dry-run                                    |\n| return to start        | none                                                                                |\n\n---\n\n## 1. Detect the stacking tool\n\n```bash\nrepo_root=$(git rev-parse --show-toplevel)\ngit_common_dir=$(git rev-parse --path-format=absolute --git-common-dir)\nmain_root=$(git worktree list --porcelain | sed -n 's\u002F^worktree \u002F\u002Fp' | head -n1)\nif [ \"$repo_root\" != \"$main_root\" ]; then tool=none\nelif [ -d \"$git_common_dir\u002Fgitbutler\" ]; then\n  current_branch=$(git symbolic-ref --quiet --short HEAD) || {\n    echo \"Cannot establish the current branch; stop before choosing a workflow.\"\n    exit 1\n  }\n  case \"$current_branch\" in\n    gitbutler\u002F*) tool=gitbutler ;;\n    *) tool=none ;;\n  esac\nelse tool=none\nfi\necho \"stacking tool: $tool\"\n```\n\nUse GitButler in a verified managed main worktree, following the mandatory\nwhole-workspace publication rule in `GLOBAL_AGENTS.md`; repository-local\ndefaults do not override it. A linked, isolated, scratch or unmanaged worktree\nuses plain Git and must not run even a GitButler readiness probe.\n\nIf `tool=none`, stop: this repo has no stacking tool, so there is no stack to\nsweep. Tell the user to use `\u002Freview-loop` on the single branch instead.\n\nRun the remaining GitButler steps only after verifying the managed main\nworktree. They do not apply to linked or otherwise plain-Git worktrees.\n\n## 2. Parse `--start` \u002F `--end`\n\n`$ARGUMENTS` may contain `--start \u003Cbranch>` and\u002For `--end \u003Cbranch>` (order\nirrelevant; either may be absent). Reject any other token. Branch names are\nresolved against the live stack in step 4 — a name not in the stack is a hard\nerror there.\n\nSemantics across the applied GitButler stacks:\n\n- **neither (the default)** — keep every branch in every applied series.\n- **`--start S`** — keep `S` through the tip of its applied series.\n- **`--end E`** — keep the bottom branch through `E` in its applied series.\n- **both** — keep the inclusive range `S → … → E` in one applied series. Reject\n  bounds in different series or with `E` before `S`; never cross stacks.\n\nWhen a bound is supplied, exclude other series. With no bounds, do not filter\nout any applied series. Resolve names and order from current metadata.\n\n## 3. Preflight\n\nCommon: confirm the review tooling is available exactly as `\u002Freview-loop` step 1\nrequires, then resolve review-core step 1 once for the whole sweep. Use the\nnative `openai-codex\u002Fgpt-6.1-sol` lanes for every branch, including inspection,\nverification, Markdown review and synthesis. Do not probe or launch external\nmodel CLIs or substitute providers mid-sweep; preserve a concrete unavailable\nexecution blocker instead.\n\n**[GitButler]** `but` is provided by the repo's flake\u002Fdevenv. If `but` is not on\n`PATH`, invoke it as `direnv exec \"$repo_root\" but …` for every `but` call\nbelow. GitButler only operates in workspace mode:\n\n```bash\nbut status >\u002Fdev\u002Fnull 2>&1 || echo \"not in workspace mode\"\n```\n\nIf `but status` fails with \"Setup required\" (or similar), **stop and tell the\nuser to enter GitButler workspace mode first**. Never run\n`but setup`\u002F`but\nteardown` or otherwise change GitButler mode yourself.\nUncommitted, un-absorbed changes that are not part of any branch are the\nGitButler equivalent of a dirty tree; if `but status` shows them, stop and tell\nthe user.\n\n## 4. Resolve the sweep range and parent links\n\nProduce `order` — the branches to sweep — **and each branch's parent**, so phase\n2 can walk parent-before-child. Resolve SHAs for every branch now\n(`git rev-parse \u003Cbranch>`); phase 1 uses them to scope diffs without checking\nanything out.\n\n**[GitButler]** Enumerate with JSON so you never parse the human graph:\n\n```bash\nbut status -j        # applied stacks and their series\nbut branch list -j   # all branches; confirm field names with `but branch list -h`\n```\n\nEach applied stack's series is ordered base → tip. Resolve the stack's base SHA\nfrom current GitButler metadata and verify it with Git; do not guess a trunk. A\nbranch's parent is the preceding series entry, or that verified base SHA for the\nbottom branch. Missing or ambiguous base\u002Fhead identity blocks that branch. Use\nstep 2's range rules: no bounds keeps all applied series; supplied bounds select\nand trim exactly one series after validating both names and their order.\n\n## 4.5 Determine the mode (author vs reviewer)\n\nA stack has one author. Decide `mode` from the PR author of the branches in\nrange versus your own login:\n\n```bash\nme=$(gh api user --jq '.login')\nauthor=$(gh pr view \u003Ca-branch-in-range> --json author --jq '.author.login' 2>\u002Fdev\u002Fnull)\n```\n\n- No PR on any branch in range (local-only WIP) -> **author mode**.\n- `author == $me` -> **author mode** (`\u002Freview-loop` per branch).\n- `author != $me` -> **reviewer mode** (`\u002Freview-pr` per branch).\n- **Mixed authors across the range** (rare) -> this is a genuine safety fork\n  (fix your code vs comment on someone else's), not a scope question — stop and\n  ask which mode. Never mix fix-and-comment in one sweep.\n\n## 4.6 Print the plan and GO — no confirmation\n\nPrint the resolved plan, then **immediately proceed to step 5**. Do **not** ask\n\"sweep all N branches?\", \"this is a long run, continue?\", or any other\nscope\u002Fsize confirmation — the user already chose the scope by invoking the\ncommand (and by passing or omitting `--start`\u002F`--end`). A large branch count is\ninformation to print, never a gate.\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nReview sweep — \u003Ctool>  ·  \u003Cauthor|reviewer> mode  ·  \u003CN> branches (parallel)\n  bases: \u003Cverified stack bases>      range: \u003Cstart or ⊥> → \u003Cend or top>\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n  1. feat\u002Fa       (parent: \u003Cverified base SHA>)\n  2. feat\u002Fa-x      (parent: feat\u002Fa)\n  3. feat\u002Fa-y      (parent: feat\u002Fa)\n  ...\n```\n\nIf the resolved range is genuinely empty (e.g. no applied branches), there is\nnothing to do — say so and stop. That is not a confirmation; it is a no-op.\n\n## 5. Phase 1 — review every branch in parallel (read-only)\n\nReviewing is read-only, so do it for **all** branches at once, before mutating\nanything. Nothing here checks out a branch or edits a file.\n\n1. **Scope each branch by SHA (no checkout).** For every branch, write its diff\n   and manifest into its own `out_dir` (`…\u002Freviews\u002F\u003Cts>-sweep\u002F\u003Csafe_branch>\u002F`):\n   - Save the exact parent\u002Fhead SHA diff and file manifest. Reviewers read\n     committed source via `git show \u003Cbranch_sha>:\u003Cpath>` rather than attributing\n     the combined applied workspace to a single branch.\n   - Use `but branch show \u003Cbranch>` to inspect branch metadata, not as a patch\n     or source substitute. Generate `diff.patch` and the name-status manifest\n     from the resolved parent\u002Fhead Git SHAs. The combined working tree is not\n     source evidence for an individual branch.\n\n2. **Collect each branch's unaddressed PR feedback** (parallel with the panels;\n   author mode folds it into triage, reviewer mode ignores it — `\u002Freview-pr`\n   handles comments). For a branch with a PR:\n   ```bash\n   pr_number=$(gh pr view \u003Cbranch> --json number --jq '.number' 2>\u002Fdev\u002Fnull)\n   gh api graphql -f query='query($owner:String!,$repo:String!,$pr:Int!){\n     repository(owner:$owner,name:$repo){pullRequest(number:$pr){\n       reviewThreads(first:100){nodes{isResolved isOutdated path line\n         comments(first:20){nodes{author{login} body}}}}}}}' \\\n     -F owner=\u003Cowner> -F repo=\u003Crepo> -F pr=\"$pr_number\"\n   ```\n   Keep `isResolved == false` threads, plus top-level review\u002Fissue comments that\n   request concrete changes with no follow-up. Each becomes a finding candidate\n   (file\u002Fline + the ask + inferred severity). If a branch has no PR or `gh` is\n   unreachable, note \"feedback not checked\" and continue with panel findings.\n\n3. **Run all panels concurrently.** Fire the `review-core` panel for every\n   branch at the same time (each as its own Workflow run, launched together \u002F in\n   the background — reuse the lanes resolved in step 3, with each branch's own\n   `diff.patch`, `{SOURCE_ACCESS}`, docs, and PR description). The executor caps\n   real concurrency, but firing them together overlaps native review and\n   verification phases across branches instead of serializing them. Collect each\n   branch's verified `findings` + `review.md` as it completes; key them by\n   branch. A branch whose panel fails mid-run is relaunched with\n   `{scriptPath, args, resumeFromRunId}` (it does not block the others).\n\n   Pass per-branch `review-core` contract inputs as `\u002Freview-loop` step 4 does,\n   except `{SOURCE_ACCESS}` is the committed SHA form above so no checkout is\n   needed, and (reviewer mode) `{SYNTHESIS_EXTRA}` +\n   `{INCLUDE_ATTRIBUTION}=false` match `\u002Freview-pr`.\n\nAt the end of phase 1 you hold verified findings for every branch in range.\n\n## 6. Phase 2 — act on the findings\n\n### [Reviewer mode] — fully parallel, no ordering\n\nNothing mutates code, so there is no parent-before-child constraint. For each\nbranch, take its phase-1 findings and post a **draft batch of inline PR\ncomments** exactly as `\u002Freview-pr` does (pending review, never submitted; no AI\nreferences; lowercase severity prefixes). The branches are independent — post\ntheir drafts concurrently. Never modify code, never push, never submit a\nverdict. Then go to step 7's reviewer summary.\n\n### [Author mode] — ordered fix walk, fed by phase 1\n\nWalk the branches **parent before child** (the only ordering constraint, because\nabsorbing a parent fix can restack descendants in the managed main worktree).\nFor each branch:\n\n1. **Refresh if a downstack fix moved this branch.** If an already-processed\n   ancestor was modified after phase 1 (so this branch was restacked), its\n   phase-1 findings are against the pre-restack diff. Run a **delta re-review**\n   (`\u002Freview-loop` step 9 delta workflow) over just the restack delta and merge\n   any new findings with the phase-1 set. If nothing downstack changed this\n   branch, use the phase-1 findings as-is. Either way, `\u002Freview-loop`'s fix step\n   re-verifies every finding against the current source before touching it, so\n   stale line numbers from a restack are caught.\n\n2. **Triage + fix + converge** = `\u002Freview-loop` steps 5–9 on this branch:\n   - **[GitButler]** no checkout; edit in the applied workspace.\n   - Fold the phase-1 PR-feedback candidates into the triage table alongside the\n     panel findings (PR feedback gets a mild extra bias toward fixing — a human\n     asked). Re-verify feedback against the current tree first; treat stale\n     items as resolved and report them as such, don't re-fix.\n   - Run the bias-to-fix triage, the **parallel fix-now pass** (`\u002Freview-loop`\n     step 8 fix-fanout), the compile gate, and the delta-mode re-review loop\n     until the branch returns a **clean** pass, then the project's declared\n     `check_cmd` (skip if none). All of `\u002Freview-loop`'s hard rules apply,\n     including the 4-pass cap and \"convergence requires a clean pass — never end\n     on a fix.\"\n\n3. **Modify the fixes into this branch** (only if files changed):\n   - **[GitButler]** `but absorb \u003Cbranch>` (`--dry-run` first; confirm it\n     targets only this branch's commits). For a fix that must land in one\n     commit, `but\n     amend \u003Cfile> \u003Ccommit>`.\n\n4. **Publish before advancing.** Verify this unit's owned committed changes,\n   then follow `GLOBAL_AGENTS.md`'s whole-workspace workflow: `but pull`,\n   resolve all conflicts, then bare `but push` for every workspace branch and\n   stack. Keep unfinished work in truthful draft checkpoints; never substitute\n   an isolated branch or stack push. Preserve normal hooks. If publication is\n   blocked, retain the state and report the exact blocker before starting\n   another unit. Required checks on the published head still gate any\n   independently authorized ready transition.\n\n5. **Stop the sweep on a stuck branch.** If a branch hits the 4-pass cap, stop —\n   do **not** descend into its children (their scope is built on unsettled\n   code). Report it and follow `\u002Freview-loop`'s non-convergence flow.\n\nIndependent subtrees (or independent GitButler stacks) have no ordering relation\nto each other; process them in any order. They still mutate the one working\ntree, so the fix walk itself is serial — but it is fed entirely by phase-1\nreviews, so no branch waits on another branch's panel.\n\nThe Defer-to-GitHub step (`\u002Freview-loop` step 10) still applies per branch when\nthe user explicitly defers a finding.\n\n## 7. Return and summarize\n\nThe managed main workspace needs no checkout restoration: all series remained\napplied throughout the sweep.\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nReview sweep complete — \u003Ctool>  ·  \u003Cauthor|reviewer> mode  ·  \u003CN> branches\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n  feat\u002Fa       converged clean (fixed 3 + 2 PR comments, modified)\n  feat\u002Fa-x     converged clean (no changes; 1 PR comment already addressed)\n  feat\u002Fa-y     stuck (4-pass cap — see above)   [sweep stopped here]\n\nPR feedback dismissed as invalid (with reasons):\n  feat\u002Fa  #12 \"rename X\" — factually wrong: X matches docs\u002Fdomain.md\n\nReports under: \u003Cout_dir root>\n```\n\n**[Reviewer mode]** Nothing to submit — each branch already has its own draft\nbatch of comments. Summarize per PR (count of draft comments + link) so the user\ncan inspect and submit each review from the UI. Do not push, modify, or submit.\nEvery pending review must have an empty top-level body: never post a marker,\nsummary, verdict, reviewed-commit text, or any other PR-level review content.\nOnly verified inline findings belong in the draft.\n\n**[Author mode]** Report each unit's actual commit\u002Fpush and check status; phase\n2 already publishes each completed unit before advancing. Do not collect a\nsecond end-of-sweep publication batch or call an unpublished unit delivered.\n\nThis review skill grants no new PR, readiness, comment or merge authority.\nFollow any independently authorized driver workflow for those effects; never\ninfer them from the sweep itself or override branch protection. If nothing\nchanged, report that no publication was needed.\n\n---\n\n## Hard rules\n\n**No scope confirmation, ever.** No arguments means the whole stack; that is\nunambiguous. Never ask the user to confirm the branch count or the range — print\nthe plan and proceed. The only stops are genuine preconditions (dirty tree,\nGitButler not in workspace mode, mixed authorship) and a stuck branch — never\n\"are you sure you want all of them?\".\n\n**Mode dispatch first.** Author mode (your own stack) fixes + modifies +\nsubmits; reviewer mode (someone else's stack) only cross-reviews and posts draft\ncomments, and NEVER modifies, pushes, or submits on a stack you don't own. Every\nmodify\u002Fsubmit rule below is **author-mode only**.\n\n1. **Reviews are parallel; mutations are ordered.** Phase 1 reviews every branch\n   concurrently (read-only, SHA-scoped, no checkout). Only phase-2 mutations\n   (absorbing fixes and the working-tree edits needed in the managed main\n   workspace) run parent-before-child. Reviewer mode has no mutations, so it is\n   parallel end-to-end.\n2. **Parent before child for mutations, always.** A branch is fixed and modified\n   before any of its children, so every child is fixed on top of its parent's\n   fixes. Follow the verified GitButler series order.\n3. **Upstack delta re-reviews are expected.** When a downstack fix restacks a\n   branch, re-review only the restack delta (cheap), not a fresh full panel —\n   this is the accepted cost of the parallel head-start.\n4. **Modify-and-advance is allowed (author mode).** Modifying each branch's\n   fixes into its verified managed main-worktree series is expected — the same\n   relaxation `\u002Freview-loop stack` makes.\n5. **Publish before advancing (author mode).** In the verified GitButler-managed\n   main worktree, keep fixes scoped to the reviewed branch but publish through\n   the global whole-workspace synchronization workflow. Do not push an isolated\n   branch or stack. This skill adds no PR-state or comment authority;\n   independently authorized driver ready steps keep their own gates. Never\n   override branch protection or sweep unrelated source into fix commits.\n6. **Never change the VCS's mode or topology.** No setup\u002Fteardown, branch\n   creation, deletion, reparenting, reordering, or merging a branch into its\n   parent. A descendant restack caused by absorbing a verified fix is expected,\n   but it does not authorize changing which branches belong to the stack.\n7. **Stop the sweep on a stuck branch.** Never descend into the children of a\n   branch that failed to converge — their scope is built on unsettled code.\n8. **Per branch, the shared engine owns the review.** Each panel is\n   `review-core` (single `review-panel` Workflow, verify + synthesize inside it,\n   read-only authenticated `openai-codex\u002Fgpt-6.1-sol` lanes, no external model\n   CLIs). The per-branch action is `\u002Freview-loop`'s fix loop (author) or\n   `\u002Freview-pr`'s draft flow (reviewer). Do not hand-roll the fan-out or relax\n   those rules.\n9. **GitButler workspace mode is a precondition, not something you create.** If\n   `but status` fails, stop and tell the user; never switch onto\u002Foff the\n   `gitbutler\u002F*` branch yourself.\n10. **`--start` \u002F `--end` resolve against the live stack.** A name not in the\n    stack, or `--end` not a descendant of `--start`, is a hard error — never\n    silently sweep a different range than asked.\n11. **PR feedback is read-only on the PR side.** Author mode folds reviewer\n    feedback into code; never reply to, react to, or resolve threads, never\n    comment, never touch review state. Reviewer mode posts a draft batch\n    (pending, never submitted). Re-verify each feedback item against the current\n    tree before fixing — the sweep rebases as it climbs, so feedback may be\n    moot.\n\n## Failure modes\n\n- **`tool=none`** — no stack to sweep; tell the user to run `\u002Freview-loop`.\n- **Un-absorbed workspace changes** — stop; a dirty workspace pollutes every\n  per-branch diff. (Precondition, not a scope ask.)\n- **GitButler not in workspace mode** — stop and tell the user to enter it.\n- **Empty resolved range** — nothing to do; say so and stop (a no-op, not a\n  confirmation).\n- **A branch fails to converge (4-pass cap)** — stop the sweep on that branch,\n  do not descend, report it.\n- **A panel fails mid-run** — relaunch that branch's panel with\n  `{scriptPath,\n  args, resumeFromRunId}` (per `review-core`'s engine failure\n  modes); the other branches' panels keep running.\n- **`but` not on PATH** — fall back to `direnv exec \"$repo_root\" but …`; if that\n  also fails, stop and tell the user the flake dev shell isn't loaded.\n- **`gh` unreachable or branch has no PR** — skip the feedback step for that\n  branch (panel findings only) and mark it \"feedback not checked\" in the\n  summary.\n- **User says \"stop\" mid-sweep** — finish modifying the current branch if a\n  modify is already in flight (never leave a half-applied fix), then stop and\n  print the summary of branches done so far.\n","Sweep an entire stack with the native review panel, **parallelized**, and\ndispatching per **authorship**.\n\n**Default scope is the WHOLE stack.** Invoked with no arguments, the sweep\ncovers every branch in the applied GitButler series, across all applied stacks.\nThat is the default and it is unambiguous: **never ask the user to confirm the\nscope or the branch count.** The invocation is the confirmation. `--start` \u002F\n`--end` narrow the range when the user wants less; absence of them means \"all of\nit\", not \"ask me\".\n\n**Authorship decides the per-branch action** (detected once, up front):\n\n- **Author mode — your own stack** (you authored the PRs): `\u002Freview-loop` per\n  branch — fix the findings, modify them into the branch, publish the verified\n  unit, then advance.\n- **Reviewer mode — someone else's stack** (you are the reviewer): `\u002Freview-pr`\n  per branch's PR — cross-review and post a draft batch of comments for the\n  author. NEVER modify their code, NEVER submit a verdict, NEVER push.\n\n**Parallelism is the point.** The slow part of a sweep is the review panel, and\nthe panels are read-only — so the sweep reviews **every branch at once** before\nit changes anything, instead of reviewing-then-fixing one branch at a time. Only\nthe _mutations_ (applying fixes and absorbing them into managed series) must\nrespect parent-before-child order; the _reviews_ do not. Upstack branches whose\ncontent shifts when a downstack fix restacks them get a cheap **delta\nre-review** rather than a fresh full panel. Net: far less wall-clock than the\nold branch-by-branch serial loop, at the cost of some re-review work the user\nhas explicitly accepted.\n\nThe review engine itself (panel, probes, prompts, the `review-panel` Workflow)\nis the shared `~\u002F.claude\u002Fskills\u002Freview-core\u002FSKILL.md` that `\u002Freview-loop` and\n`\u002Freview-pr` also use; the per-branch action around it is `\u002Freview-loop`'s\n(author) or `\u002Freview-pr`'s (reviewer). This command adds only the traversal, the\nparallelization, and the tool-specific scope\u002Fmodify operations.\n\nFollow these steps precisely.\n\n---\n\n## Architecture: adapter + engine + parallel orchestration\n\nThree layers. Only the adapter is tool-specific.\n\n- **Stack adapter** (tool-specific): detect the tool; enumerate the branches and\n  their parent links; produce each branch's review scope **without mutating the\n  tree** (SHA-range diff, no checkout); and modify a branch's fixes back into\n  it.\n- **Review engine** (tool-agnostic): the shared `review-core` panel turns one\n  branch's diff into verified findings. The per-branch _action_ is\n  `\u002Freview-loop`'s fix loop (author) or `\u002Freview-pr`'s draft-comment flow\n  (reviewer).\n- **Parallel orchestration** (this command): resolve the range; run **all**\n  per-branch panels concurrently (phase 1); then take the per-branch action\n  (phase 2) — fully parallel in reviewer mode, dependency-ordered in author mode\n  with delta re-reviews where a restack moved a branch.\n\n| Adapter operation      | GitButler managed main worktree                                                     |\n| ---------------------- | ----------------------------------------------------------------------------------- |\n| detect                 | common Git directory has GitButler state and current top-level is the main worktree |\n| ready check            | verified main worktree on a workspace branch; `but status` succeeds                 |\n| enumerate with parents | each applied stack's series, base to tip                                            |\n| scope a branch         | Git diff between verified parent\u002Fhead SHAs                                          |\n| navigate               | none; virtual branches are applied together                                         |\n| absorb fixes           | `but absorb \u003Cbranch>` after an inspected dry-run                                    |\n| return to start        | none                                                                                |\n\n---\n\n## 1. Detect the stacking tool\n\n```bash\nrepo_root=$(git rev-parse --show-toplevel)\ngit_common_dir=$(git rev-parse --path-format=absolute --git-common-dir)\nmain_root=$(git worktree list --porcelain | sed -n 's\u002F^worktree \u002F\u002Fp' | head -n1)\nif [ \"$repo_root\" != \"$main_root\" ]; then tool=none\nelif [ -d \"$git_common_dir\u002Fgitbutler\" ]; then\n  current_branch=$(git symbolic-ref --quiet --short HEAD) || {\n    echo \"Cannot establish the current branch; stop before choosing a workflow.\"\n    exit 1\n  }\n  case \"$current_branch\" in\n    gitbutler\u002F*) tool=gitbutler ;;\n    *) tool=none ;;\n  esac\nelse tool=none\nfi\necho \"stacking tool: $tool\"\n```\n\nUse GitButler in a verified managed main worktree, following the mandatory\nwhole-workspace publication rule in `GLOBAL_AGENTS.md`; repository-local\ndefaults do not override it. A linked, isolated, scratch or unmanaged worktree\nuses plain Git and must not run even a GitButler readiness probe.\n\nIf `tool=none`, stop: this repo has no stacking tool, so there is no stack to\nsweep. Tell the user to use `\u002Freview-loop` on the single branch instead.\n\nRun the remaining GitButler steps only after verifying the managed main\nworktree. They do not apply to linked or otherwise plain-Git worktrees.\n\n## 2. Parse `--start` \u002F `--end`\n\n`$ARGUMENTS` may contain `--start \u003Cbranch>` and\u002For `--end \u003Cbranch>` (order\nirrelevant; either may be absent). Reject any other token. Branch names are\nresolved against the live stack in step 4 — a name not in the stack is a hard\nerror there.\n\nSemantics across the applied GitButler stacks:\n\n- **neither (the default)** — keep every branch in every applied series.\n- **`--start S`** — keep `S` through the tip of its applied series.\n- **`--end E`** — keep the bottom branch through `E` in its applied series.\n- **both** — keep the inclusive range `S → … → E` in one applied series. Reject\n  bounds in different series or with `E` before `S`; never cross stacks.\n\nWhen a bound is supplied, exclude other series. With no bounds, do not filter\nout any applied series. Resolve names and order from current metadata.\n\n## 3. Preflight\n\nCommon: confirm the review tooling is available exactly as `\u002Freview-loop` step 1\nrequires, then resolve review-core step 1 once for the whole sweep. Use the\nnative `openai-codex\u002Fgpt-6.1-sol` lanes for every branch, including inspection,\nverification, Markdown review and synthesis. Do not probe or launch external\nmodel CLIs or substitute providers mid-sweep; preserve a concrete unavailable\nexecution blocker instead.\n\n**[GitButler]** `but` is provided by the repo's flake\u002Fdevenv. If `but` is not on\n`PATH`, invoke it as `direnv exec \"$repo_root\" but …` for every `but` call\nbelow. GitButler only operates in workspace mode:\n\n```bash\nbut status >\u002Fdev\u002Fnull 2>&1 || echo \"not in workspace mode\"\n```\n\nIf `but status` fails with \"Setup required\" (or similar), **stop and tell the\nuser to enter GitButler workspace mode first**. Never run\n`but setup`\u002F`but\nteardown` or otherwise change GitButler mode yourself.\nUncommitted, un-absorbed changes that are not part of any branch are the\nGitButler equivalent of a dirty tree; if `but status` shows them, stop and tell\nthe user.\n\n## 4. Resolve the sweep range and parent links\n\nProduce `order` — the branches to sweep — **and each branch's parent**, so phase\n2 can walk parent-before-child. Resolve SHAs for every branch now\n(`git rev-parse \u003Cbranch>`); phase 1 uses them to scope diffs without checking\nanything out.\n\n**[GitButler]** Enumerate with JSON so you never parse the human graph:\n\n```bash\nbut status -j        # applied stacks and their series\nbut branch list -j   # all branches; confirm field names with `but branch list -h`\n```\n\nEach applied stack's series is ordered base → tip. Resolve the stack's base SHA\nfrom current GitButler metadata and verify it with Git; do not guess a trunk. A\nbranch's parent is the preceding series entry, or that verified base SHA for the\nbottom branch. Missing or ambiguous base\u002Fhead identity blocks that branch. Use\nstep 2's range rules: no bounds keeps all applied series; supplied bounds select\nand trim exactly one series after validating both names and their order.\n\n## 4.5 Determine the mode (author vs reviewer)\n\nA stack has one author. Decide `mode` from the PR author of the branches in\nrange versus your own login:\n\n```bash\nme=$(gh api user --jq '.login')\nauthor=$(gh pr view \u003Ca-branch-in-range> --json author --jq '.author.login' 2>\u002Fdev\u002Fnull)\n```\n\n- No PR on any branch in range (local-only WIP) -> **author mode**.\n- `author == $me` -> **author mode** (`\u002Freview-loop` per branch).\n- `author != $me` -> **reviewer mode** (`\u002Freview-pr` per branch).\n- **Mixed authors across the range** (rare) -> this is a genuine safety fork\n  (fix your code vs comment on someone else's), not a scope question — stop and\n  ask which mode. Never mix fix-and-comment in one sweep.\n\n## 4.6 Print the plan and GO — no confirmation\n\nPrint the resolved plan, then **immediately proceed to step 5**. Do **not** ask\n\"sweep all N branches?\", \"this is a long run, continue?\", or any other\nscope\u002Fsize confirmation — the user already chose the scope by invoking the\ncommand (and by passing or omitting `--start`\u002F`--end`). A large branch count is\ninformation to print, never a gate.\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nReview sweep — \u003Ctool>  ·  \u003Cauthor|reviewer> mode  ·  \u003CN> branches (parallel)\n  bases: \u003Cverified stack bases>      range: \u003Cstart or ⊥> → \u003Cend or top>\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n  1. feat\u002Fa       (parent: \u003Cverified base SHA>)\n  2. feat\u002Fa-x      (parent: feat\u002Fa)\n  3. feat\u002Fa-y      (parent: feat\u002Fa)\n  ...\n```\n\nIf the resolved range is genuinely empty (e.g. no applied branches), there is\nnothing to do — say so and stop. That is not a confirmation; it is a no-op.\n\n## 5. Phase 1 — review every branch in parallel (read-only)\n\nReviewing is read-only, so do it for **all** branches at once, before mutating\nanything. Nothing here checks out a branch or edits a file.\n\n1. **Scope each branch by SHA (no checkout).** For every branch, write its diff\n   and manifest into its own `out_dir` (`…\u002Freviews\u002F\u003Cts>-sweep\u002F\u003Csafe_branch>\u002F`):\n   - Save the exact parent\u002Fhead SHA diff and file manifest. Reviewers read\n     committed source via `git show \u003Cbranch_sha>:\u003Cpath>` rather than attributing\n     the combined applied workspace to a single branch.\n   - Use `but branch show \u003Cbranch>` to inspect branch metadata, not as a patch\n     or source substitute. Generate `diff.patch` and the name-status manifest\n     from the resolved parent\u002Fhead Git SHAs. The combined working tree is not\n     source evidence for an individual branch.\n\n2. **Collect each branch's unaddressed PR feedback** (parallel with the panels;\n   author mode folds it into triage, reviewer mode ignores it — `\u002Freview-pr`\n   handles comments). For a branch with a PR:\n   ```bash\n   pr_number=$(gh pr view \u003Cbranch> --json number --jq '.number' 2>\u002Fdev\u002Fnull)\n   gh api graphql -f query='query($owner:String!,$repo:String!,$pr:Int!){\n     repository(owner:$owner,name:$repo){pullRequest(number:$pr){\n       reviewThreads(first:100){nodes{isResolved isOutdated path line\n         comments(first:20){nodes{author{login} body}}}}}}}' \\\n     -F owner=\u003Cowner> -F repo=\u003Crepo> -F pr=\"$pr_number\"\n   ```\n   Keep `isResolved == false` threads, plus top-level review\u002Fissue comments that\n   request concrete changes with no follow-up. Each becomes a finding candidate\n   (file\u002Fline + the ask + inferred severity). If a branch has no PR or `gh` is\n   unreachable, note \"feedback not checked\" and continue with panel findings.\n\n3. **Run all panels concurrently.** Fire the `review-core` panel for every\n   branch at the same time (each as its own Workflow run, launched together \u002F in\n   the background — reuse the lanes resolved in step 3, with each branch's own\n   `diff.patch`, `{SOURCE_ACCESS}`, docs, and PR description). The executor caps\n   real concurrency, but firing them together overlaps native review and\n   verification phases across branches instead of serializing them. Collect each\n   branch's verified `findings` + `review.md` as it completes; key them by\n   branch. A branch whose panel fails mid-run is relaunched with\n   `{scriptPath, args, resumeFromRunId}` (it does not block the others).\n\n   Pass per-branch `review-core` contract inputs as `\u002Freview-loop` step 4 does,\n   except `{SOURCE_ACCESS}` is the committed SHA form above so no checkout is\n   needed, and (reviewer mode) `{SYNTHESIS_EXTRA}` +\n   `{INCLUDE_ATTRIBUTION}=false` match `\u002Freview-pr`.\n\nAt the end of phase 1 you hold verified findings for every branch in range.\n\n## 6. Phase 2 — act on the findings\n\n### [Reviewer mode] — fully parallel, no ordering\n\nNothing mutates code, so there is no parent-before-child constraint. For each\nbranch, take its phase-1 findings and post a **draft batch of inline PR\ncomments** exactly as `\u002Freview-pr` does (pending review, never submitted; no AI\nreferences; lowercase severity prefixes). The branches are independent — post\ntheir drafts concurrently. Never modify code, never push, never submit a\nverdict. Then go to step 7's reviewer summary.\n\n### [Author mode] — ordered fix walk, fed by phase 1\n\nWalk the branches **parent before child** (the only ordering constraint, because\nabsorbing a parent fix can restack descendants in the managed main worktree).\nFor each branch:\n\n1. **Refresh if a downstack fix moved this branch.** If an already-processed\n   ancestor was modified after phase 1 (so this branch was restacked), its\n   phase-1 findings are against the pre-restack diff. Run a **delta re-review**\n   (`\u002Freview-loop` step 9 delta workflow) over just the restack delta and merge\n   any new findings with the phase-1 set. If nothing downstack changed this\n   branch, use the phase-1 findings as-is. Either way, `\u002Freview-loop`'s fix step\n   re-verifies every finding against the current source before touching it, so\n   stale line numbers from a restack are caught.\n\n2. **Triage + fix + converge** = `\u002Freview-loop` steps 5–9 on this branch:\n   - **[GitButler]** no checkout; edit in the applied workspace.\n   - Fold the phase-1 PR-feedback candidates into the triage table alongside the\n     panel findings (PR feedback gets a mild extra bias toward fixing — a human\n     asked). Re-verify feedback against the current tree first; treat stale\n     items as resolved and report them as such, don't re-fix.\n   - Run the bias-to-fix triage, the **parallel fix-now pass** (`\u002Freview-loop`\n     step 8 fix-fanout), the compile gate, and the delta-mode re-review loop\n     until the branch returns a **clean** pass, then the project's declared\n     `check_cmd` (skip if none). All of `\u002Freview-loop`'s hard rules apply,\n     including the 4-pass cap and \"convergence requires a clean pass — never end\n     on a fix.\"\n\n3. **Modify the fixes into this branch** (only if files changed):\n   - **[GitButler]** `but absorb \u003Cbranch>` (`--dry-run` first; confirm it\n     targets only this branch's commits). For a fix that must land in one\n     commit, `but\n     amend \u003Cfile> \u003Ccommit>`.\n\n4. **Publish before advancing.** Verify this unit's owned committed changes,\n   then follow `GLOBAL_AGENTS.md`'s whole-workspace workflow: `but pull`,\n   resolve all conflicts, then bare `but push` for every workspace branch and\n   stack. Keep unfinished work in truthful draft checkpoints; never substitute\n   an isolated branch or stack push. Preserve normal hooks. If publication is\n   blocked, retain the state and report the exact blocker before starting\n   another unit. Required checks on the published head still gate any\n   independently authorized ready transition.\n\n5. **Stop the sweep on a stuck branch.** If a branch hits the 4-pass cap, stop —\n   do **not** descend into its children (their scope is built on unsettled\n   code). Report it and follow `\u002Freview-loop`'s non-convergence flow.\n\nIndependent subtrees (or independent GitButler stacks) have no ordering relation\nto each other; process them in any order. They still mutate the one working\ntree, so the fix walk itself is serial — but it is fed entirely by phase-1\nreviews, so no branch waits on another branch's panel.\n\nThe Defer-to-GitHub step (`\u002Freview-loop` step 10) still applies per branch when\nthe user explicitly defers a finding.\n\n## 7. Return and summarize\n\nThe managed main workspace needs no checkout restoration: all series remained\napplied throughout the sweep.\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nReview sweep complete — \u003Ctool>  ·  \u003Cauthor|reviewer> mode  ·  \u003CN> branches\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n  feat\u002Fa       converged clean (fixed 3 + 2 PR comments, modified)\n  feat\u002Fa-x     converged clean (no changes; 1 PR comment already addressed)\n  feat\u002Fa-y     stuck (4-pass cap — see above)   [sweep stopped here]\n\nPR feedback dismissed as invalid (with reasons):\n  feat\u002Fa  #12 \"rename X\" — factually wrong: X matches docs\u002Fdomain.md\n\nReports under: \u003Cout_dir root>\n```\n\n**[Reviewer mode]** Nothing to submit — each branch already has its own draft\nbatch of comments. Summarize per PR (count of draft comments + link) so the user\ncan inspect and submit each review from the UI. Do not push, modify, or submit.\nEvery pending review must have an empty top-level body: never post a marker,\nsummary, verdict, reviewed-commit text, or any other PR-level review content.\nOnly verified inline findings belong in the draft.\n\n**[Author mode]** Report each unit's actual commit\u002Fpush and check status; phase\n2 already publishes each completed unit before advancing. Do not collect a\nsecond end-of-sweep publication batch or call an unpublished unit delivered.\n\nThis review skill grants no new PR, readiness, comment or merge authority.\nFollow any independently authorized driver workflow for those effects; never\ninfer them from the sweep itself or override branch protection. If nothing\nchanged, report that no publication was needed.\n\n---\n\n## Hard rules\n\n**No scope confirmation, ever.** No arguments means the whole stack; that is\nunambiguous. Never ask the user to confirm the branch count or the range — print\nthe plan and proceed. The only stops are genuine preconditions (dirty tree,\nGitButler not in workspace mode, mixed authorship) and a stuck branch — never\n\"are you sure you want all of them?\".\n\n**Mode dispatch first.** Author mode (your own stack) fixes + modifies +\nsubmits; reviewer mode (someone else's stack) only cross-reviews and posts draft\ncomments, and NEVER modifies, pushes, or submits on a stack you don't own. Every\nmodify\u002Fsubmit rule below is **author-mode only**.\n\n1. **Reviews are parallel; mutations are ordered.** Phase 1 reviews every branch\n   concurrently (read-only, SHA-scoped, no checkout). Only phase-2 mutations\n   (absorbing fixes and the working-tree edits needed in the managed main\n   workspace) run parent-before-child. Reviewer mode has no mutations, so it is\n   parallel end-to-end.\n2. **Parent before child for mutations, always.** A branch is fixed and modified\n   before any of its children, so every child is fixed on top of its parent's\n   fixes. Follow the verified GitButler series order.\n3. **Upstack delta re-reviews are expected.** When a downstack fix restacks a\n   branch, re-review only the restack delta (cheap), not a fresh full panel —\n   this is the accepted cost of the parallel head-start.\n4. **Modify-and-advance is allowed (author mode).** Modifying each branch's\n   fixes into its verified managed main-worktree series is expected — the same\n   relaxation `\u002Freview-loop stack` makes.\n5. **Publish before advancing (author mode).** In the verified GitButler-managed\n   main worktree, keep fixes scoped to the reviewed branch but publish through\n   the global whole-workspace synchronization workflow. Do not push an isolated\n   branch or stack. This skill adds no PR-state or comment authority;\n   independently authorized driver ready steps keep their own gates. Never\n   override branch protection or sweep unrelated source into fix commits.\n6. **Never change the VCS's mode or topology.** No setup\u002Fteardown, branch\n   creation, deletion, reparenting, reordering, or merging a branch into its\n   parent. A descendant restack caused by absorbing a verified fix is expected,\n   but it does not authorize changing which branches belong to the stack.\n7. **Stop the sweep on a stuck branch.** Never descend into the children of a\n   branch that failed to converge — their scope is built on unsettled code.\n8. **Per branch, the shared engine owns the review.** Each panel is\n   `review-core` (single `review-panel` Workflow, verify + synthesize inside it,\n   read-only authenticated `openai-codex\u002Fgpt-6.1-sol` lanes, no external model\n   CLIs). The per-branch action is `\u002Freview-loop`'s fix loop (author) or\n   `\u002Freview-pr`'s draft flow (reviewer). Do not hand-roll the fan-out or relax\n   those rules.\n9. **GitButler workspace mode is a precondition, not something you create.** If\n   `but status` fails, stop and tell the user; never switch onto\u002Foff the\n   `gitbutler\u002F*` branch yourself.\n10. **`--start` \u002F `--end` resolve against the live stack.** A name not in the\n    stack, or `--end` not a descendant of `--start`, is a hard error — never\n    silently sweep a different range than asked.\n11. **PR feedback is read-only on the PR side.** Author mode folds reviewer\n    feedback into code; never reply to, react to, or resolve threads, never\n    comment, never touch review state. Reviewer mode posts a draft batch\n    (pending, never submitted). Re-verify each feedback item against the current\n    tree before fixing — the sweep rebases as it climbs, so feedback may be\n    moot.\n\n## Failure modes\n\n- **`tool=none`** — no stack to sweep; tell the user to run `\u002Freview-loop`.\n- **Un-absorbed workspace changes** — stop; a dirty workspace pollutes every\n  per-branch diff. (Precondition, not a scope ask.)\n- **GitButler not in workspace mode** — stop and tell the user to enter it.\n- **Empty resolved range** — nothing to do; say so and stop (a no-op, not a\n  confirmation).\n- **A branch fails to converge (4-pass cap)** — stop the sweep on that branch,\n  do not descend, report it.\n- **A panel fails mid-run** — relaunch that branch's panel with\n  `{scriptPath,\n  args, resumeFromRunId}` (per `review-core`'s engine failure\n  modes); the other branches' panels keep running.\n- **`but` not on PATH** — fall back to `direnv exec \"$repo_root\" but …`; if that\n  also fails, stop and tell the user the flake dev shell isn't loaded.\n- **`gh` unreachable or branch has no PR** — skip the feedback step for that\n  branch (panel findings only) and mark it \"feedback not checked\" in the\n  summary.\n- **User says \"stop\" mid-sweep** — finish modifying the current branch if a\n  modify is already in flight (never leave a half-applied fix), then stop and\n  print the summary of branches done so far.\n",{"name":5,"description":7,"allowed-tools":43,"argument-hint":44,"user-invocable":45},"Bash(but:*), Bash(direnv:*), Bash(git:*), Bash(gh:*), Bash(command:*), Bash(cargo:*), Bash(mkdir:*), Bash(cat:*), Bash(mktemp:*), Bash(rm:*), Bash(test:*), Bash(grep:*), Bash(wc:*), Bash(date:*), Bash(basename:*), Bash(find:*), Bash(ls:*), Read, Write, Edit, Agent, Workflow, AskUserQuestion, Skill","[--start BRANCH] [--end BRANCH]",true,"master","43de034413ae8878259e4a93be6aed03add6ddda","ai\u002Fskills\u002Freview-sweep",0,"https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig","https:\u002F\u002Fgithub.com\u002F0xgleb","2026-11-14 09:46:23",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":45},[55,58,61],{"tool":56,"command":57},"npx","npx skills add 0xgleb\u002Fdotconfig --skill review-sweep",{"tool":59,"command":60},"bunx","bunx skills add 0xgleb\u002Fdotconfig --skill review-sweep",{"tool":62,"command":63},"pnpm","pnpm dlx skills add 0xgleb\u002Fdotconfig --skill review-sweep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Freview-sweep\u002FSKILL.md",[],[67,87,112,134,154,171],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":38},"01M6DNKHP7NV7KR552KFZ6EW3R","worktree","Manage worktrees only for concurrent work by the owner or agents launched by the owner on the same repository, or for explicitly requested inventory and cleanup; never create one for isolation alone.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fworktree\u002FSKILL.md",[],[69,74,75,76,77,78,79,80,35,22,81,82,83,32,84,28,85,27,86],"create","work","never","worktrees","manage","inventory","repository","only","cleanup","cd","isolation","for","true",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":38},"01M6DNKEGPR8F3BA95ZMWQ48V9","unslop","Rewrite draft prose before owner-facing replies, docs, issues, PR text, handoffs, or Telegram reports to remove AI tells while preserving facts, links, tone, and authority; auto-trigger on externally visible prose, but never on code, commands, logs, tool output, quoted sources, or user text.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Funslop\u002FSKILL.md",[],[89,94,76,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],"draft","pr","remove","trigger","tool","issues","auto","rewrite","code","tone","telegram","sources","links","authority","logs","facts","output","replies",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":38},"01M6DNK9VFNJYKB6GMA15WJ3HZ","threat-model-first","Use at the START of a change that moves money, changes balances or custody, touches access control or signing, deserializes untrusted input, adds an external or on-chain integration, or wires an LLM tool. Design-time threat modeling that turns abuse cases into the first failing tests; it precedes the post-hoc security-review pass.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fthreat-model-first\u002FSKILL.md",[],[119,120,121,122,123,124,125,126,127,128,129,32,130,20,131,132,29,24,23,133],"model","threat model","threat","first","threat model first","chain","time","security-review","design","forge","access","cargo audit","change","audit","modeling",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":38},"01M6DNK6M72QAMH2TYVMPYJGDM","test-inspector","Auto-run for new or changed retained behavior, even without test changes, and for test, fixture, snapshot or mock changes; verify real happy-path and error-path coverage, expose false-confidence assertions and over-mocking, but do not perform general production-code correctness review.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Ftest-inspector\u002FSKILL.md",[],[141,142,143,144,100,145,32,102,20,146,29,147,148,149,150,26,151,22,152,153],"test","test inspector","fixture","do","false","run","coverage","error","number","URL","snapshot","but","path",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":38},"01M6DNK3BPN73D003FFADEWJP5","strong-typing-inspector","Lightweight review — flags primitives used where a domain type already exists (e.g. String for a USD field when Usd exists) and missed newtype opportunities.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fstrong-typing-inspector\u002FSKILL.md",[],[161,162,141,163,95,164,29,165,166,22,167,168,32,169,20,170],"strong typing inspector","type","missed","domain","flags","grep","usd","gh","primitives","newtype",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":38},"01M6DNJZHG2RK3MC4VPB9KWPYF","spec-review","Critique existing specifications and design proposals, including whether their approach or addition is justified, and refine them through adversarial Pi review and authorized author revisions. Not for code review, implementation-plan sequencing, creating a design from scratch or minor copy edits.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fspec-review\u002FSKILL.md",[],[178,179,20,180,181,182,183,184,127,185,102,85,186,187,188,189,190,191,192,193],"spec review","spec","plan","critique","code review","pi","refine","implementation","sequencing","specifications","proposals","scratch","Existing","author","From Scratch","adversarial"]