本文へ移動
cccskills
無料GitHub で公開

pull-request

Guides pull request creation and review, including posting findings, controlling scope, readying work for review, and splitting work into a stacked-PR chain.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Pull requests

The principle

A PR is a unit of review attention, not a unit of work. The reviewer's attention is the scarcest resource on this project. Scope blowup while working is healthy — it's how exploration happens; the discipline belongs at the review boundary, where the blown-up working set gets refactored into digestible layers. Write big, ship small.

commit-cadence is the enabler: atomic, cohesive commits are pre-cut fault lines, so chopping a PR is mostly distributing existing commits across stacked branches.

Lifecycle protocol

  • At PR creation and before marking ready for review, apply the fission tests:
    • The and-test: if one plain title cannot cover every commit without "and", it is at least two PRs.
    • The piggyback test: any change that entered as "while we're at it" is a candidate layer.
  • When scope grows inside an open PR (a piggyback lands), record it immediately in a "Piggybacks" ledger in the PR body, one line per item stating the verdict: "rides — must be understood with the feature: <reason>" or "separable — chop offered". The fission decision at ready-time then reads off the ledger instead of anyone's memory.
  • When a test fires, offer the chop into a stack (mechanics below); the user decides. Layers split by "must be understood together", never by file type: a rule or doc whose evidence is the feature's code rides with the feature.
  • Every PR body carries an "Architecture delta" section (root architecture-delta rule).
  • Once a PR is ready for review, watch its review threads and checks while other work continues; stop watching when it becomes draft, merges or closes.
  • When a goldfish reviews a PR touching .agents/ or any AGENTS.md, the critic reads .agents/skills/AGENTS.md and the vendor guidelines it links before the diff.

Review findings

  • Keep review findings in chat by default. Post them to a pull request only if the user explicitly asks; first show the proposed comment text and anchors and get approval.
  • Post each approved finding as a separate inline review thread on the narrowest relevant changed line, so it can be replied to and resolved independently. If no exact line exists, use the closest relevant changed line. Post a top-level summary only if the user asks.
  • Attribute each posted thread with the agent, model version and reasoning effort. If the runtime does not expose a field, say so instead of guessing.

Stacks

GitHub-native stacked PRs (public preview since 2026-07): an ordered chain of branches where each PR targets the branch below it and shows reviewers only its own layer's diff.

Facts

  • The bottom branch targets the trunk (main); every other branch targets the one below.
  • Merging the top PR merges the whole stack in one click. Merging a mid-stack PR merges it and everything below; PRs above stay open and auto-retarget the trunk, with remaining branches auto-rebased by GitHub.
  • Squash, rebase, and merge-commit methods all work; stacks are merge-queue aware, and branch protections still apply.
  • Limitations: all branches must live in the same repository (no cross-fork); not supported in GitHub Desktop.
  • gh stack metadata lives in .git/gh-stack (local JSON, never committed); interrupted rebase state in .git/gh-stack-rebase-state.

Command map (gh stack, official extension github/gh-stack)

Prerequisite: gh extension install github/gh-stack — official, but not bundled with gh. submit, push, sync, and link may create or update pull requests without confirmation. merge changes the trunk and requires an explicit request.

  • init [branches...] [--base <trunk>] — start a stack, or adopt existing branches listed bottom→top.
  • add <branch> / add -Am "<msg>" — new layer on top; -Am stages, commits, and creates the branch in one step.
  • submit — push all branches and create/update PRs with correct bases (opens an editor; --auto skips it but creates new PRs as drafts; --open marks them ready).
  • sync — fetch, cascade-rebase, push, and prune merged layers; offers resolutions when local and remote stacks diverge.
  • rebase — cascade-rebase after editing a lower layer; pauses on conflicts (--continue / --abort).
  • modify — interactive restructure: reorder, fold, drop, insert, rename (needs a clean tree and linear history).
  • link — declare a stack from existing PR numbers without local tracking.
  • merge — all-or-nothing merge of the stack from the CLI.
  • view, up/down/top/bottom/trunk, checkout — inspect and navigate.

Recipes

  • Chop an oversized PR into a stack: create layer branches off the trunk, distribute the existing commits bottom→top (entangled commits need re-slicing), gh stack init <b1> <b2> … to adopt them, then gh stack submit — it retargets the existing PR's base onto its new lower layer.
  • New layer on an existing stack: gh stack add <branch>, commit, gh stack submit. Never gh pr create or a hand git rebase --onto inside a stack: the PR gets the right base but joins no stack, and the tracking desyncs — repair with gh stack link <bottom> … <top>.
  • Fix a lower layer: gh stack checkout <layer>, commit, gh stack rebase, gh stack push.
  • Insert or reorder layers: GitHub only grows a stack at the top, so submit and link cannot retarget a stacked PR onto a new layer below it, and init refuses on a branch that is already stacked. Rewrite ancestry with git rebase --onto and push the rebased branches; gh stack unstack <stack-number> (PRs and branches untouched; the bare form refuses when the stack holds a merged layer); gh pr edit <n> --base <lower> for each PR whose base moves; gh stack link <b1> … <bn> to create the stack on GitHub; gh stack init <b1> … <bn> --base <trunk> for local tracking.
  • After a partial merge: gh stack sync --prune.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Records hypotheses, evidence and decisions when proposing, running or evaluating forecast experiments, including backtests and feature or model comparisons. Excludes routine tests and unchanged forecast operation.

日本語の概要は準備中です。原文の説明を表示しています。

zoltanmaric/coppersushi692026年10月10日 更新

gh

無料

Diagnose GitHub CLI hiccups caused by Codex sandbox constraints; not a general GitHub workflow.

日本語の概要は準備中です。原文の説明を表示しています。

zoltanmaric/coppersushi692026年10月10日 更新

goldfish

無料

Review a design artifact (spec, plan, PR packet) with fresh, memoryless subagents. Invoke when the user asks — "goldfish this", "fresh eyes", "tear this apart" — or after suggesting it for a spec that has grown load-bearing and the user agrees.

日本語の概要は準備中です。原文の説明を表示しています。

zoltanmaric/coppersushi692026年10月10日 更新

grill

無料

Interrogate the user before implementing a non-trivial or ambiguous ask, converging on shared intent. Use when the user says "grill me", when an ask admits multiple interpretations, or before any sizable piece of work whose intent isn't fully clear.

日本語の概要は準備中です。原文の説明を表示しています。

zoltanmaric/coppersushi692026年10月10日 更新

Launches and supervises long-running commands — solves, workflows, downloads, builds — detached with a log, PID and exit sentinel, then tells stuck from slow and kills verifiably. Use before running anything that may exceed a minute, for nohup or background launches, and when a run hangs, shows no output, or timed out.

日本語の概要は準備中です。原文の説明を表示しています。

zoltanmaric/coppersushi692026年10月10日 更新

llm-wiki

無料

Build and maintain a persistent, LLM-maintained markdown wiki following Andrej Karpathy's LLM Wiki pattern — the agent incrementally compiles raw sources into an interlinked knowledge base instead of re-deriving answers from scratch. Use this whenever the user wants to ingest a source (an article, paper, transcript, chapter, meeting notes), file knowledge or conversation findings into the wiki, query the accumulated knowledge base, lint or health-check the wiki, or mentions "the wiki", "knowledge base", "ingest this", "file this", "what do we know about X", or accumulating notes on a topic over time — even if they don't say "LLM Wiki" explicitly.

日本語の概要は準備中です。原文の説明を表示しています。

zoltanmaric/coppersushi692026年10月10日 更新

zoltanmaric のスキルをすべて見る

このスキルの問題を報告する