Skip to content
Back to skills

Kookr Post Push

ASecurity

Repo delivery-cycle follow-through after push or PR creation — verify mergeability, checklist state, CI, and early feedback by composing pr-lifecycle and pr-review-triage.

  • 5 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 2, 2026
developmentgobashgitapi

Works with

  • api

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add kookr-ai/kookr --skill kookr-post-push --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kookr Post Push?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kookr Post Push
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kookr-ai-kookr-post-push/badge)](https://www.skillsdirectory.com/skills/kookr-ai-kookr-post-push)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kookr-post-push
description: Repo delivery-cycle follow-through after push or PR creation — verify mergeability, checklist state, CI, and early feedback by composing pr-lifecycle and pr-review-triage.
keywords: post-push, after push, after PR, PR follow-up, CI, merge conflict, review comments, delivery cycle
related: kookr-pre-push, kookr-pr-lifecycle, pr-review-triage, pre-pr-review
---

# Post-Push

Use this immediately after pushing a branch that has a PR, and again after any follow-up push. This skill does not create a parallel workflow. It is the repo-local reminder to keep driving the existing PR workflow until the branch is actually in a good state.

## What This Skill Composes

- `[[kookr-pr-lifecycle]]` for PR creation, checklist updates, and CI monitoring
- `[[pr-review-triage]]` for comment triage, fixes, and thread resolution

This skill fills the gap between "push succeeded" and "the PR is actually ready."

## Default path in this repository: `pnpm deliver`

In this repository, `pnpm deliver` (started from `[[kookr-pre-push]]` step 3) already opens or updates the PR, waits for the independent-review verdict bound to the PR head, and runs `kookr merge`. Use this skill alongside it, not instead of it:

- While it runs or after it stops, do the checks below (mergeability, PR body, CI, feedback); they are not part of `pnpm deliver`.
- When it stopped at a step, do that step by hand with the commands below, then resume with `pnpm deliver --from <step>` (add `--specialists independent-review` when resuming from `review-marker`). The stop table is in `[[kookr-pre-push]]` step 3.
- After a fix commit, start the reviewer on the new head and rerun `pnpm deliver --from review-marker --specialists independent-review`: it pushes, updates the PR body and title, waits for the new verdict and merges.

The commands in steps 1 and 6 below are what its `pr`, `wait-verdict` and `merge` steps run, kept as the fallback.

## Workflow

### 1. Find the current PR

If the branch already has a PR:

```bash
gh pr view --json number,url,mergeable,mergeStateStatus,reviewDecision
```

If the PR does not exist yet, `pnpm deliver` creates it in its `pr` step. Only when that step stopped, create or update it by hand via [[kookr-pr-lifecycle]], then resume with `pnpm deliver --from wait-verdict`.

**Listing PRs for the post-merge rebase scan:** use `gh prs` (alias: `pr list --limit 200`) or pass `--limit 200` explicitly — the bare `gh pr list` default of 30 silently truncates and misses PRs in busy repos. Set the alias once with `gh alias set prs 'pr list --limit 200'` (older gh versions without `--clobber`: `gh alias delete prs 2>/dev/null; gh alias set prs 'pr list --limit 200'`).

### 2. Check mergeability first

Read `mergeable` / `mergeStateStatus` right away.

- If GitHub reports merge conflicts or the branch is behind the base branch in a way that needs action, fix that branch state before calling the task done.
- After resolving conflicts locally, push again and restart this skill.

### 3. Verify the PR checklist

Read the PR body and clear any checklist items that are already complete.

Typical Kookr checklist items:
- Fast pre-push gate passed (the hook's static checks plus the related tests; say how many test files it ran)
- Targeted tests you ran yourself: the command and the counts
- Manual verification: describe what was actually checked

Do not add a "full suite passes" or `pnpm verify` item: nobody runs those per pull request here. The integration train runs `pnpm verify` on `staging` after the merge.

Keep the PR body current: edit the `pnpm deliver` body file (`.tmp/kookr-deliver-<branch>.md`) and rerun `pnpm deliver --from pr-body --to pr`, or use the `[[kookr-pr-lifecycle]]` REST-update flow. Do not leave stale unchecked items behind.

Also re-read the PR title and summary against the **current** branch diff after every follow-up push:

- If the diff scope changed, update the title/body immediately
- If verification changed (new tests, different commands, CI-specific reruns), update the test plan immediately
- Do not leave a stale description that reflects an earlier version of the branch

### 4. Check CI and early feedback

Run:

```bash
gh pr checks
gh pr view --json comments,reviews
```

Also inspect inline review comments when needed:

```bash
gh api repos/{owner}/{repo}/pulls/{number}/comments
```

If checks are still pending, poll for a short window rather than walking away. A practical default is up to about 5 minutes after PR creation or after a review-fix push.

GitHub Actions is disabled on this repo, so `gh pr checks` normally reports no checks; that is expected, not an outage. If the push changed tests, test helpers, mocks, or build/test harness code, re-run the affected test files yourself; do not run the full suite. The integration train runs it on `staging`.

### 5. Hand off to the right existing flow

- If CI fails, fix the problem, push again, and repeat this skill
- If bots or reviewers left actionable comments, switch to [[pr-review-triage]]
- If checklist items or PR metadata are stale, switch to [[kookr-pr-lifecycle]]

### 6. Wait-then-merge (substitute for `gh pr merge --auto`)

GitHub auto-merge is unavailable on this repo (private + Free plan, no branch
protection — see issue #29). `gh pr merge <PR> --auto --squash --delete-branch`
fails with `Auto merge is not allowed for this repository`.

Use the repo wrapper instead. `pnpm deliver` runs it as its `merge` step once
the verdict for the PR head is a `pass`. Run it by hand only when `pnpm deliver`
stopped at `merge`, or after a `wait-verdict` stop whose `pass` the step could
not see (bound through `review-patch-id` after a rebase):

```bash
kookr merge <PR_NUMBER> --repo kookr-ai/kookr   # from your own worktree
```

`kookr merge` always runs the merge wrapper of the deployed production checkout, which follows `main`; `pnpm merge` runs the wrapper of the checkout you are in, which may be old and skip the retarget (that is how #3802 landed on `main` unverified). Run it from your own worktree; never change directory to the main checkout to merge. A plugin hook (`merge-retarget-guard`) denies `pnpm merge`, a too-old
`scripts/kookr-merge.sh`, and a bare `gh pr merge` into `main` while an
integration branch is configured.

If it exits 3 with `PR #<n> conflicts with <base>`, rebase on `origin/<base>`,
start a new review if the diff changed, and rerun
`pnpm deliver --from review-marker --specialists independent-review` (or push and
run `kookr merge` again by hand).

Read the `kookr-merge: summary:` block at the end of the output (#3913). On
success it gives the merge commit and what the integration train does next; the
task is done then and does not wait for `main`. On a refusal it names the gate,
its evidence and the exact next command: run that command. Later, the train
comments on the pull request when the change is promoted to `main` or reverted
(see `docs/reference/integration-train.md`, "Where to read what happened to a
pull request").

The wrapper first retargets a PR aimed at `main` to `staging` (the integration
branch named in `.kookr/delivery-gate.json`), then waits for checks and
squash-merges into `staging` and deletes the head branch. It refuses to merge a
closed, draft, or changes-requested PR. Never merge into `main` or push to
`main` or `staging` yourself. Use it instead of writing one-off `sleep` polling loops
or scheduling wakeups. Do not invoke `gh pr merge --auto` on this repo.

**Independent merge-review gate (issue #1717).** For an autonomous self-merge,
the wrapper additionally refuses (exit 4) unless the PR carries a fresh-context
reviewer verdict of `pass` with an exact `review-head-sha` for the current head.
The `review-skipped-timeout` label is telemetry only and never bypasses the
gate. Before calling `kookr merge`, run the [[independent-merge-review]] skill:
it spawns a reviewer blind to your implementation reasoning (Codex lane, Claude
fallback when Codex is rate-limited), posts the verdict comment (the
`wait-verdict` step of `pnpm deliver` waits for it), and applies the
timeout label if no verdict lands within the 10-minute budget; retry up to the
durable default of 10 correction/review attempts, then record a concrete
blocker. After a BLOCK, the next review is a fix check on the diff since the
blocked head, not a second full review, and the round rules decide which new
findings block (`[[independent-merge-review]]` §4a). Only a
human-driven manual merge may bypass it with `KOOKR_MERGE_REQUIRE_REVIEW=0`.

### 7. Report PR health explicitly

Before you say the branch is in good shape, report:

- PR: number + URL (or "no PR yet")
- mergeability: clean / conflicted / unknown
- checklist/body: current / stale
- CI: passing / failing / pending
- feedback: none / bot comments pending / review comments pending
- independent review (before an autonomous merge): exact-head verdict `pass`/`block` (lane) / timeout-blocked / not yet run
- next action: wait / fix / triage / merge-ready

### 8. After the merge

"Merged" means merged into `staging`. The task is done at that point. The
integration train then runs the full `pnpm verify` on `staging` and
fast-forwards `main` to the commit it verified; the linked issue closes then,
not at the merge. If the train finds your change broke the suite, it reverts
the PR on `staging` (a commit with the trailer `Kookr-Integration-Train: revert`),
reopens the linked issue with the failing output, and spawns one task to fix and
re-land it (up to three per issue). To see what happened to a change: `pnpm train:status`,
`pnpm train:logs`, and the reopened issue. See
`docs/reference/integration-train.md`.

Do not leave the user to ask whether CI, mergeability, or the post-push workflow was checked.

## Done Criteria

Do not declare the task complete while any of these remain true:
- The PR has merge conflicts
- The PR body still has checklist items that should already be checked off
- CI is failing on known issues you can address now
- Early bot or reviewer comments are waiting without triage

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.