agentleFS
kentcdoddskentcdodds/kcd-skills/skills/ship-pr/SKILL.md

ship-pr

Skill47 starsChanged 2 months agoMITView on GitHub

Babysit a PR. Iterate with AI reviewers and CI. Get it ready and maybe merge. Send summary message.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ideate and triage.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    ideate

    Generate image-based alternatives, remixes, or new design directions from a Product Design brief. Use when the user asks for design variants, visual exploration, remixes, or image-generated approaches from provided context.

    Also in 3 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the Kody snippets below with CLI local execute when Node ≥ 22 is available — auth via provisioned KODY_API_TOKEN (Cloud Agents / CI) or …

    line 10
  2. Very specific:

    Prefer Cursor Bugbot. Never comment bugbot run or cursor review yourself (kody-bot cannot trigger BugBot).

    line 17
  3. Very specific:

    Wait for CI — gh pr checks (compose loop-on-ci, fix-ci)

    line 30
  4. Very specific:

    Always summarize (merged or not) by calling kody:@kentcdodds/discord/send-shipped-pr with structured fields.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ship PR

Run the Kody snippets below with CLI local execute when Node ≥ 22 is available — auth via provisioned KODY_API_TOKEN (Cloud Agents / CI) or kody login (interactive); see /prefer-local-kody-execute. Hosted MCP execute is the fallback.

AI reviewers

Prefer Cursor Bugbot. Never comment bugbot run or cursor review yourself (kody-bot cannot trigger BugBot). Trigger with kody:@kentcdodds/bugbot using { prUrl } or { owner, repo, prNumber }. Do not pass a GitHub account.

import triggerBugbot from 'kody:@kentcdodds/bugbot'
await triggerBugbot({ prUrl })

Loop

  1. Mark ready — kody:@kentcdodds/github/pr/set-review-status with { prUrl, status: 'ready' }, or { owner, repo, prNumber, status: 'ready' }
  2. Wait for CI — gh pr checks (compose loop-on-ci, fix-ci)
  3. Fix failures; address valid AI-reviewer feedback (ignore insignificant nits / already-fixed / wrong); check mergability with base branch and rebase if needed
  4. Green and no valid feedback left → break
  5. Push → repeat

Merge and Deploy if requested or the change is low risk

Squash and merge PR as Kody with kody:@kentcdodds/github/pr/merge using { prUrl, mergeMethod: 'squash' } (or { owner, repo, prNumber, ... }; optional commitTitle), watch CI deploy. Relevant links for the discord message include: agent, PR, CI job, and relevant deployment page(s).

Other useful exports on the same package: pr/get-checks for check-run status without gh, and request / graphql (kody:@kentcdodds/github/request, kody:@kentcdodds/github/graphql) for one-off authenticated GitHub calls.

Done → Discord

Always summarize (merged or not) by calling kody:@kentcdodds/discord/send-shipped-pr with structured fields. Do not use raw post-message and do not compute or guess token cost — the export fetches the billed Cursor Cloud Agent usage and formats the cost line.

agentId (required):

title: a human headline of the change, not ship owner/repo#N (repo and PR already have links). Example: OpenAPI spec fetches now count against daily quota.

difficulty (always set): 'Easy' | 'Medium' | 'Hard'. Distinct from merge risk. Easy = small/localized; Medium = several files or real behavior change; Hard = architecture, migrations, subtle correctness, or wide blast radius.

npx @kodycodes/cli execute --local --code '
import sendShippedPr from "kody:@kentcdodds/discord/send-shipped-pr"

export default async function main() {
	return sendShippedPr({
		agentId, // bc- id from the metadata socket or launch URL
		title: "OpenAPI spec fetches now count against daily quota",
		difficulty: "Easy", // or "Medium" | "Hard"
		summary: "What shipped / parked / blocked and why.",
		prUrl: "https://github.com/owner/repo/pull/1",
		repo: "owner/repo",
		extras: ["CI green", "preview verified"],
		status: "Shipped", // or "Parked" | "Blocked"
	})
}
'

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.