npx skills add ...
npx skills add gjkim42/kanon-repo --skill pr-finish
Finish an open PR by batching review feedback, applying valid fixes, running verification, pushing once per batch, and monitoring CI with bounded waits. Use when the user asks to update code until PR review comments are handled, review-all has no valid blocking findings, and required checks pass.
npx skills add gjkim42/kanon-repo --skill pr-finish
Use this skill to finish a PR without turning review and CI into an unbounded
loop. Keep review-all review-only; this skill owns the triage, fix, verify,
push, and bounded CI workflow.
valid, already fixed, obsolete, or not actionable.review-all once after the batch. If valid P0-P2 findings remain, do at
most one more fix batch unless the user explicitly asks to continue.review-all after each individual fix.Find the PR for the current branch:
If the branch has no PR, ask for the PR number.
Fetch summary reviews, issue comments, and checks:
Fetch inline review comments:
Use gh for GitHub operations. If an API call fails because of sandboxed
network access, rerun the same command with the required approval.
Create a concise triage table before making changes:
| Source | File:Line | Priority | Finding | Status | Action |
|---|
Classification:
valid: Still applies to current HEAD and should be fixed.already fixed: The code/docs/tests already address it.obsolete: The comment points at an old commit or moved code and no longer
applies.not actionable: The finding is wrong, speculative, or asks for behavior
outside the requested scope.Only edit after the table is complete.
Apply all valid P0-P2 fixes together. Keep edits narrow and aligned with the repo's conventions. For P3, fix only when it is convention-backed or clearly worth the small cost.
Run focused checks for touched code first. Examples:
Then run the repo's standard verification targets:
Run broader targets such as make test-integration only when the touched code
or review findings justify it.
Check the diff and status:
Commit with a scoped message and push once for the batch.
After the push, run review-all once against the committed branch diff.
If review-all reports valid P0-P2 findings, do one more batched fix cycle:
triage all findings, fix them together, verify, commit, push. Do not continue
past that second cycle without explicit user confirmation.
If only P3 findings remain, report them as optional unless they violate a stated repo rule.
Check status:
If a check fails, inspect that job and fix the failure. If checks are passing or only long e2e jobs remain pending, use this policy:
Keep the final response short:
go test ./internal/cli
go test ./internal/controllermake test
make verifygit status --short
git diff --stat
git diff --checkgh pr checks <pr>