triage-prs
Skill3.4k starsChanged 7 months agoApache-2.0View on GitHub
Triage open pull requests on docker/docker-agent — apply area/* and kind/* labels, flag merge conflicts (draft + status/needs-rebase + author comment), clear the needs-rebase label once conflicts are resolved, flag unsigned commits (status/needs-signed-commits + author comment), and clear that flag once all commits are verified. Idempotent and API-frugal; designed to run on a recurring schedule.
2 other projects use a version of this.
Trending
Quiet since July.about the whole repository
Most recently taken up by
- jlu-lujing/TaskHuntertheir own version, first seen Aug 30, 2026
- iliaal/whetstonetheir own version, first seen Jul 12, 2026
Who's talking about docker/docker-agent
- @aheritier.net“2.9K ⭐️ Thank you! 🙏 github.com/docker/docker-agent www.star-history.com?repos=docker... #starhistory …”Bluesky · May 17, 2026 · 7 likes
- @dgageot.bsky.social“You like cagent? You'll love github.com/docker/docke...! We renamed cagent to Docker Agent to show our …”Bluesky · Mar 6, 2026 · 6 likes
- @aheritier.net“Docker Agent is moving fast. In addition of many stability and performances improvements recent versions …”Bluesky · Jul 6, 2026 · 4 likes
- MH0386/aur“chore(deps): update dependency docker/docker-agent to v1.86.0”GitHub · Jun 23, 2026 · 2 reactions
- MH0386/aur“chore(deps): update dependency docker/docker-agent to v1.83.0”GitHub · Jun 19, 2026 · 2 reactions
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub and Bluesky (15 times).
On GitHub · 9
- Jun 23, 2026chore(deps): update dependency docker/docker-agent to v1.86.0 — MH0386/aur2 reactions · 5 comments
- Jun 19, 2026chore(deps): update dependency docker/docker-agent to v1.83.0 — MH0386/aur2 reactions · 4 comments
- Apr 23, 2026chore(deps): update dependency docker/docker-agent to v1.50.0 — MH0386/aur2 reactions · 10 comments
- Apr 16, 2026chore(deps): update dependency docker/docker-agent to v1.46.0 — MH0386/aur2 reactions · 8 comments
- Apr 15, 2026chore(deps): update dependency docker/docker-agent to v1.45.0 — MH0386/aur2 reactions · 7 comments
4 more on GitHub
- Apr 3, 2026chore(deps): update dependency docker/docker-agent to v1.42.0 — MH0386/aur2 reactions · 4 comments
- Mar 30, 2026chore(deps): update dependency docker/docker-agent to v1.40.0 - autoclosed — MH0386/aur2 reactions · 5 comments
- Mar 26, 2026chore(deps): update dependency docker/docker-agent to v1.38.0 — MH0386/aur2 reactions · 4 comments
- Mar 11, 2026chore(deps): update dependency docker/docker-agent to v1.31.0 — MH0386/aur2 reactions · 5 comments
On Bluesky · 6
- May 17, 20262.9K ⭐️ Thank you! 🙏 github.com/docker/docker-agent www.star-history.com?repos=docker... #starhistory #GitHub #OpenSource via… — @aheritier.net7 likes and reposts
- Mar 6, 2026You like cagent? You'll love github.com/docker/docke...! We renamed cagent to Docker Agent to show our commitment. Gordon, our AI assistant… — @dgageot.bsky.social6 likes and reposts
- Jul 6, 2026Docker Agent is moving fast. In addition of many stability and performances improvements recent versions added many providers to simplify… — @aheritier.net4 likes and reposts
- Apr 7, 2026github.com/docker/docke... - cAgent is now #Docker #Agent, a way to orchestrate #AI #Agents. — @robrich.bsky.social2 likes and reposts
- Mar 9, 2026>docker/docker-agent: AI Agent Builder and Runtime by Docker Engineering https://github.com/docker/docker-agent >docker-agent lets you… — @mstdn.baldanders.info1 likes and repost
1 more on Bluesky
- Mar 9, 2026>docker/docker-agent: AI Agent Builder and Runtime by Docker Engineering github.com/docker/docke... >docker-agent lets you create and run… — @baldanders.info1 likes and repost
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- iliaal/whetstone★ 36same name
- jlu-lujing/TaskHunter★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bump-config-versionSkill
- bump-go-dependenciesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 6 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Minimize GitHub API calls: Read once, decide everything in memory, then make the smallest possible number of writes — see API budget.
- Distinctive: line 66
Never issue one call per label.
- Distinctive: line 67
No-op means no call: If a PR needs no change, make zero write calls for it.
- Very specific: line 76
Use only labels that already exist in the repository.
- Very specific: line 138
If the PR closes/links an issue, use that issue's native issue type to guide the kind: Bug → kind/fix.
- Very specific: line 149
Add only the missing dimension.
- Distinctive: line 151
Use only existing repository labels (see taxonomy).
- Very specific: line 153
If kind/* or area/* is genuinely ambiguous, leave that dimension unset (optionally add status/needs-triage) rather than guessing.
- Very specific: line 163
Idempotency gate (critical): if the PR already has status/needs-rebase, do
- Very specific: line 171
Add status/needs-rebase (in the same grouped label mutation as any Rule 1 labels).
- Very specific: line 188
Action: remove status/needs-rebase (fold into the PR's single grouped label mutation).
- Very specific: line 204
Idempotency gate (critical): if the PR already has status/needs-signed-commits, do nothing for this rule — do not post another comment.
- Very specific: line 210
Add status/needs-signed-commits (fold into the same grouped label mutation as any Rule 1 / Rule 2 changes).
- Very specific: line 240
Action: remove status/needs-signed-commits (fold into the PR's single grouped label mutation).
- Very specific: line 251
Read its live fields (labels, isDraft, mergeable, linked-issue types, changed paths, prior bot comments — one check for the conflict …
- Distinctive: line 270
After the run, output a concise summary of what changed:
- Distinctive: line 281
If nothing changed, say so explicitly — for an idempotent run over already-triaged PRs, "no changes" is the expected and correct outcome.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Triage Pull Requests
Triage open pull requests on the docker/docker-agent repository: classify them
with area/* and kind/* labels, flag those with merge conflicts, clear the
conflict flag once it is resolved, flag PRs with unsigned commits, and clear that
flag once every commit is verified.
This skill is designed to run unattended on a recurring schedule (every ~30 minutes). It is written to be agent-agnostic — use whatever GitHub access you have (CLI, REST, GraphQL, an MCP server). Two properties matter more than the mechanism and must hold no matter how you talk to GitHub:
- Idempotency is critical. The skill runs repeatedly. A given PR must never be re-drafted, re-labeled, or re-commented if it is already in the desired state. Re-running over the same PRs must produce zero changes and, ideally, zero write calls.
- Minimize GitHub API calls. Read once, decide everything in memory, then make the smallest possible number of writes — see API budget.
Scope
Process open pull requests (including author-created drafts) whose last update was within the past 60 minutes.
Out of scope — skip entirely:
- Closed and merged PRs.
- PRs untouched in the last 60 minutes.
The 60-minute window against the ~30-minute cadence intentionally gives every PR two chances to be processed, so a single missed or failed run is harmless.
⚠️ Never trust GitHub's search index for decisions.
is:pr label:…search filters (and thegh --label/search/issuesAPIs that back them) are stale: they return PRs that no longer carry a label and miss PRs that do. Before acting on any PR, read that PR's live, per-item fields (labels, draft state, mergeable state). Use search only as a coarse pre-filter, never as the source of truth for a mutation.
API budget
- One read pass. Fetch the in-scope candidate set in a single batched query
(GraphQL is ideal). For each PR retrieve everything all five rules need at once:
updatedAt,isDraft, andmergeablestate (MERGEABLE/CONFLICTING/UNKNOWN)- the current set of labels (live)
title,body, and linked issues viaclosingIssuesReferences, including each linked issue's labels and native issue type- the changed files / paths (to infer
area/*) - per-commit signature verification data:
commits(last: 100) { nodes { commit { oid signature { isValid } } } }(signatureisnullfor unsigned commits;isValidisfalsefor commits signed with an unrecognised or invalid key) - whether a previous run already posted the conflict comment and whether a previous run already posted the unsigned-commits comment (two separate bot-comment checks — one gate per rule)
- Decide fully in memory. For each PR, compute the complete set of mutations for all five rules before issuing any write.
- One grouped label mutation per PR. Fold every label change for a PR — adding
area/*, addingkind/*, adding or removingstatus/needs-rebase, and adding or removingstatus/needs-signed-commits— into a single label update call. Never issue one call per label. - No-op means no call. If a PR needs no change, make zero write calls for it.
UNKNOWNmergeable → do nothing this run. GitHub computes mergeability asynchronously. If the state isUNKNOWN, skip the conflict rules for that PR; it will be re-evaluated next run once GitHub finishes. (You may still apply Rule 1 labels and Rule 4/5 signed-commit checks, which do not depend on mergeability.)
Label taxonomy
Use only labels that already exist in the repository. Never invent a label. If
the appropriate label does not exist or the correct value is genuinely ambiguous,
leave that dimension alone (optionally apply status/needs-triage) rather than
guessing.
kind/* — the change type (exactly one on a PR)
kind/feat— adds a new feature (Conventional-Commitfeat:).kind/fix— fixes a bug (Conventional-Commitfix:).kind/docs— documentation-only change.kind/chore— maintenance, deps, CI, tooling (chore:).kind/refactor— refactor with no behavior change (refactor:).kind/test— test-only change (test:).kind/security— security fix or hardening.
kind/featandkind/fixare the canonical labels — they map to the repo'sfeat:/fix:commit convention. The olderkind/featureandkind/buglabels have been deleted; never apply them.
kind/*is for pull requests only. Issues use GitHub's native issue type field (Task,Bug,Enhancement,Epic,Initiative) and must never carry akind/*label. When a linked issue informs a PR's kind (see Rule 1), read its native issue type, not akind/*label.
area/* — the part of the codebase touched (one or more on a PR)
Infer from the changed paths. Valid values (do not invent others):
area/a2a, area/agent, area/api, area/ci, area/cli, area/config,
area/core, area/deps, area/distribution, area/docs, area/gateway,
area/mcp, area/models, area/providers, area/providers/anthropic,
area/providers/bedrock, area/providers/docker-model-runner,
area/providers/gemini, area/providers/openai, area/rag, area/registry,
area/runtime, area/security, area/sessions, area/skills, area/telemetry,
area/testing, area/tools, area/tui.
For Docker Model Runner work, use
area/providers/docker-model-runner. The legacy top-levelarea/docker-model-runnerhas been deleted; never apply it.
Path-hint examples: pkg/config/** → area/config; TUI code → area/tui;
.github/workflows/** → area/ci; MCP server/tooling → area/mcp or area/tools;
provider integrations → the matching area/providers/*; docs/markdown → area/docs.
status/*
status/needs-rebase— the PR has merge conflicts / is out of date with the base branch. Applied and removed by this skill (Rules 2 and 3).status/needs-signed-commits— the PR contains one or more commits that are not signed and verified by GitHub. Applied and removed by this skill (Rules 4 and 5).status/needs-triage— optional fallback when a PR'skind/*orarea/*cannot be determined with confidence.
Rule 1 — Apply area/* and kind/*
Trigger: an in-scope PR missing an area/* label and/or a kind/* label.
Skip if: the PR already has at least one area/* and one kind/* label
(consider it triaged for those dimensions).
Action — add only the missing dimension:
kind/*(a PR should have exactly one), inferred in this priority order:- If the PR closes/links an issue, use that issue's native issue type to guide
the kind:
Bug→kind/fix;Enhancement→kind/feat. (Use the PR's own signals below to refine, e.g. a docs-only PR closing an Enhancement is stillkind/docs.) - Otherwise infer from the Conventional-Commit prefix in the PR title
(
feat:→kind/feat,fix:→kind/fix,docs:→kind/docs,chore:→kind/chore,refactor:→kind/refactor,test:→kind/test), and from the PR title/body intent.
- If the PR closes/links an issue, use that issue's native issue type to guide
the kind:
area/*— infer one or more from the files/paths the PR changes.
Guard rails:
- Add only the missing dimension. Never remove or overwrite an
area/*orkind/*label that a human already set. - Use only existing repository labels (see taxonomy); never invent one.
- If
kind/*orarea/*is genuinely ambiguous, leave that dimension unset (optionally addstatus/needs-triage) rather than guessing. - Fold these label additions into the PR's single grouped label mutation, together
with any
status/needs-rebaseorstatus/needs-signed-commitschange from Rules 2–5.
Rule 2 — Flag merge conflicts
Trigger: an in-scope PR whose live mergeable state is CONFLICTING.
Idempotency gate (critical): if the PR already has status/needs-rebase, do
nothing for this rule — do not re-draft, do not post another comment.
Action (first time only):
- Convert the PR to draft — skip this step if the PR is already a draft
(the
isDraftfield from the read pass tells you; converting an already-draft PR is a no-op write and violates the "no-op means no call" budget rule). - Add
status/needs-rebase(in the same grouped label mutation as any Rule 1 labels). Post one comment addressed to the author, for example:
👋 This PR has merge conflicts with the base branch. Please rebase or merge the latest base branch and resolve them. I've moved it to draft and added
status/needs-rebase; it'll be picked back up automatically once the conflicts are cleared.
Because the label, the draft conversion, and the comment are always applied together,
the presence of status/needs-rebase is a reliable signal that the comment was
already posted — use it as the gate to avoid duplicate comments.
Rule 3 — Clear resolved conflicts
Trigger: a PR that currently has status/needs-rebase whose live mergeable state
is now MERGEABLE.
Action: remove status/needs-rebase (fold into the PR's single grouped label
mutation).
Do not:
- trigger on
UNKNOWNmergeable state — onlyMERGEABLEclears the label. If the state isUNKNOWN, leavestatus/needs-rebasein place and re-evaluate next run (see the API budgetUNKNOWNrule); never treatUNKNOWNas resolved, - mark the PR ready for review (leave the draft/ready state to the author), and
- post any comment.
Rule 4 — Flag unsigned commits
Trigger: an in-scope PR where at least one commit has signature.isValid ≠ true
(either unsigned — signature is null — or signed with an unrecognised or invalid
key).
Idempotency gate (critical): if the PR already has
status/needs-signed-commits, do nothing for this rule — do not post another
comment.
Action (first time only):
- Add
status/needs-signed-commits(fold into the same grouped label mutation as any Rule 1 / Rule 2 changes). Post one comment addressed to the author that:
- lists the short SHAs (7 chars) of the non-verified commits,
- explains what "signed and verified by GitHub" means (GPG or SSH key registered in their GitHub account),
- links to https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits,
- notes that the label will be removed automatically once all commits carry a valid GitHub-verified signature.
Example comment:
👋 Some commits in this PR are not signed and verified by GitHub. Please sign your commits with a GPG or SSH key registered in your GitHub account, then force-push.
Commits that are not verified:
abc1234,def5678See GitHub's guide on signing commits for setup instructions. I've added
status/needs-signed-commits; it will be removed automatically once every commit in this PR carries a valid GitHub-verified signature.
Because the label and the comment are always applied together, the presence of
status/needs-signed-commits is a reliable gate — use it to avoid duplicate comments.
Rule 5 — Clear resolved signed-commits flag
Trigger: a PR that currently has status/needs-signed-commits whose commits now
all have signature.isValid == true.
Action: remove status/needs-signed-commits (fold into the PR's single grouped
label mutation).
Do not:
- post any comment,
- change draft/ready state.
Execution summary
For each in-scope PR, in one read-then-write cycle:
- Read its live fields (labels,
isDraft,mergeable, linked-issue types, changed paths, prior bot comments — one check for the conflict comment, one for the unsigned-commits comment — and per-commit signature verification data). - Compute the combined set of changes from Rules 1–5 in memory:
- missing
kind/*/area/*to add (Rule 1), status/needs-rebaseto add + draft + comment if newlyCONFLICTINGand not already flagged (Rule 2),status/needs-rebaseto remove if flagged and nowMERGEABLE(Rule 3),status/needs-signed-commitsto add + comment if any commit is unverified and not already flagged (Rule 4),status/needs-signed-commitsto remove if flagged and all commits are now verified (Rule 5).
- missing
- Apply one grouped label mutation for all label changes, plus at most one draft conversion (only if newly drafting a not-already-draft PR) and at most one comment per rule that fires for the first time. Skip every PR that needs nothing.
Report
After the run, output a concise summary of what changed:
- PRs newly labeled, with the
area/*/kind/*added per PR. - PRs newly flagged
status/needs-rebase(drafted + commented). - PRs cleared of
status/needs-rebase. - PRs newly flagged
status/needs-signed-commits(with the list of unsigned commit SHAs per PR). - PRs cleared of
status/needs-signed-commits. - PRs skipped because mergeable state was
UNKNOWN(to be retried next run). - Any PR left for human triage (ambiguous
kind/*/area/*).
If nothing changed, say so explicitly — for an idempotent run over already-triaged PRs, "no changes" is the expected and correct outcome.
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
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.

