본문으로 건너뛰기
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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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월 14일 업데이트

gh

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

zoltanmaric/coppersushi692026년 10월 14일 업데이트

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월 14일 업데이트

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월 14일 업데이트

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월 14일 업데이트

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월 14일 업데이트

zoltanmaric의 스킬 모두 보기

이 스킬의 문제 신고