pipeline-triage
Skill0 starsChanged 54 days agoMITView on GitHub
Session-start triage and dirty-repo router. Use at the start of any session when intent is unclear, the request continues existing work, or the operator says "where were we". Also use whenever the user asks what to do next with uncommitted changes, unpushed commits, open PR comments, or a dirty repo, or wants to finish existing work and start fresh from a clean branch, or when the next step is unclear between planning, reviewing, pushing, merging, or cleaning up.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- brianshepardpss/deal-tendertheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- brianshepardpss/deal-tender★ 0same 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 repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- skills/humanizer/AGENTS.mdAGENTS.md
- skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- click-path-auditSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- constraint-driven-developmentSkill
- context-engineeringSkill
- create-issueSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- diagnosing-bugsSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- extract-design-systemSkill
- frontend-designSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- humanizerSkill
- idea-refineSkill
- iiib-iterate-after-buildSkill
- iii-build-planSkill
- ii-plan-issueSkill
- incremental-implementationSkill
- interview-meSkill
- i-pick-issueSkill
- iv-review-build-and-prSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- playwright-cliSkill
- present-prSkill
- quick-fixSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- tailwind-design-systemSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
- v-babysit-pr-and-mergeSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- verification-before-completionSkill
- vi-close-pipelineSkill
- web-design-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
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
- Distinctive: line 16
Before any git checks, classify what the operator asked for:
- Distinctive: line 21
Ambiguous between Issue work and ad-hoc?: If it will end in a PR on code, treat as Issue work and run the table below.
- Very specific: line 23
Never run this skill and i-pick-issue or using-agent-skills on the same request — this skill hands off at most once.
- Distinctive: line 27
Run these read-only checks before deciding anything.
- Distinctive: line 29
Run git status --short --branch to see staged, unstaged, and untracked changes.
- Distinctive: line 30
Run git log --oneline -8 and git stash list to see recent commits and stashed work.
- Very specific: line 31
Run git branch --show-current plus git rev-list --left-right --count HEAD...@{upstream} when an upstream exists to see ahead and behind …
- Very specific: line 32
Run gh pr status and gh pr view --comments when a PR exists for the branch to see open state and review comments.
- Distinctive: line 53
Treat it as unknown-origin even when the diff content later traces to a real issue: the writer may still be mid-edit, and absorbing a …
- Distinctive: line 57
Only a human can attribute foreign dirt.
- Very specific: line 68
Read the #<issue> header of tasks/plan.md / tasks/todo.md — it names the branch's issue, which is the attribution target for …
- Distinctive: line 70
Read the content of files that match neither the branch commits nor the plan — a handoff doc or a new script often names its own origin …
- Distinctive: line 84
Never git checkout -b from a dirty tree.
- Distinctive: line 123
Ask for explicit approval before any destructive step.
- Distinctive: line 124
Never invent PR state or check results.
- Distinctive: line 125
When two rows seem to match, say so in one sentence and pick the smaller safer step first.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Pipeline Triage
Decide the single next path for existing changes so the repo lands clean on a synced master.
Pipeline Position
- Position: State gate — not a numbered station. Runs before Station I when the repo carries unfinished work, or when the next step is unclear.
- Next: the one station named in the routing table below.
Step 0 — Classify the operator's message (session start)
Before any git checks, classify what the operator asked for:
- Continuation / unclear intent / "where were we" / open work mentioned → continue with the checks and routing table below.
- New Issue work and the repo is clean → route to
i-pick-issue(Station I, backlog discovery), done. - Ad-hoc request (quick question, small fix, exploration, "where is X" — not Issue work) → say so in one line and route to
using-agent-skills, done. - Ambiguous between Issue work and ad-hoc? If it will end in a PR on code, treat as Issue work and run the table below; else ad-hoc. Still ambiguous → ask one question.
Never run this skill and i-pick-issue or using-agent-skills on the same request — this skill hands off at most once.
Checks first read only
Run these read-only checks before deciding anything. Never change files in this phase.
- Run
git status --short --branchto see staged, unstaged, and untracked changes. - Run
git log --oneline -8andgit stash listto see recent commits and stashed work. - Run
git branch --show-currentplusgit rev-list --left-right --count HEAD...@{upstream}when an upstream exists to see ahead and behind counts. Also check against the base branch, not just upstream:git rev-list --left-right --count HEAD...origin/<base>— an upstream in sync proves nothing when the base branch has moved ahead. - Run
gh pr statusandgh pr view --commentswhen a PR exists for the branch to see open state and review comments. Search the comments for acoderabbitreview and for an@coderabbitai reviewcomment from any author. When neither exists, nocoderabbitreview has run yet. - Look for
tasks/plan.mdandtasks/todo.mdwith an incomplete checklist. When found, read the issue number from those files and check the issue state withgh issue view <num>. When the issue is closed, check how it closed: a merged PR means the work landed, any other close reason means it did not.
Trust command output only after it agrees with disk. Output-injecting hooks can interleave banners or fragments into command results, producing phantom paths — a git status line naming a file a direct search_files (target='files') listing of the same directory cannot find, or a corrupted status line. When output disagrees with disk, re-run the command with its output routed through a plain passthrough pipe before classifying anything. Never stop the pipeline or declare unknown-origin dirt on a path you cannot see on disk.
Unknown-origin dirt — stop rule (BEFORE the routing table)
Dirt you cannot attribute to the work in front of you is never routed by size. Rows 10-11 classify dirt as "small" or "large", which is meaningless when nobody knows where it came from. So classify origin first:
- Can every changed file be traced to the operator's stated task, an open issue, or the merged work already named in this session?
- Yes → dirt is scoped. Continue to the routing table; rows 10-11 apply normally.
- No → the origin is unknown. Stop. Do NOT route to
ii-plan-issueoriii-build-planon a guess about size, and do NOT stash, discard, commit, or branch away from it. Report the foreign paths and ask one question: whose work is this? - Uncertain (mixed known/unknown files) → treat as unknown-origin. Ask.
- Dirt that appears mid-session is a live foreign writer. A tree clean at pre-flight that
shows a new modified file between two of your own commands (or a worktree appearing in
git worktree listmid-command) means another session is editing this checkout right now. Treat it as unknown-origin even when the diff content later traces to a real issue: the writer may still be mid-edit, and absorbing a partial change corrupts both streams. Ask whose work it is and offer to proceed in an isolated worktree.
Only a human can attribute foreign dirt. This station guides — it never absorbs another stream's changes into the current issue.
How to attribute dirt (method, not guessing)
Attribution is mechanical when the tree is on a feature branch — do it before declaring anything unknown-origin:
git diff --stat <base>...HEAD(three dots) — shows what the branch itself carries versus the base branch. Compare against the uncommittedgit diff: files matching branch commits belong to the branch's issue.- Read the
#<issue>header oftasks/plan.md/tasks/todo.md— it names the branch's issue, which is the attribution target for branch-matching files. - Read the content of files that match neither the branch commits nor the plan — a handoff doc or a new script often names its own origin issue in its first lines (read it before calling it unknown).
- Files matching nothing after those three passes are unknown-origin → stop rule.
stat -c '%y' <file>against the current clock confirms freshness — modified seconds ago while your commands run means a live writer, not leftover state.
"Branch off / pick an issue" gate
The operator asking to start new issue work ("branch off", "pick an issue") does not clear the current branch. A feature branch with unpushed commits is row 2 work that lands on top of, or is silently abandoned by, the new branch. Before branching:
- Report the branch's unpushed work (commit count vs base, no PR → row 2) as the first thing in the triage output — the new-issue request presupposes it is done.
- Never
git checkout -bfrom a dirty tree. Foreign dirt that cannot be attributed carries over to the new branch and pollutes the next issue's diff. - Route both streams in one report: current branch →
iv-review-build-and-pr(or park), foreign dirt → ask. Only after the operator resolves both doesi-pick-issuestart on a clean base-branch checkout.
Routing table
Pick exactly one row. First matching row wins. The PR rows (3–6) apply to a PR whose head is THIS branch — check the PR's headRefName against git branch --show-current before applying them. An open PR on a different branch is context to report, not a blocker: when the tree is a clean linked worktree on its own branch, the operator may choose to start the next issue there instead of babysitting the other branch's PR. Report both streams and let the operator pick.
- Clean tree, on master, synced with remote, no open PR -> work is done. Route to
i-pick-issue(Station I) to pick the next issue. - Clean tree, on a feature branch, commits unpushed, no PR yet -> needs review and shipping. Route to
iv-review-build-and-pr— unless the operator just reported corrections on a fresh build, then route toiiib-iterate-after-buildfirst. - Open PR with no
coderabbitreview and no@coderabbitai reviewcomment from any author -> start the review now so it runs while the next station starts. A trigger counts from any author, not just you: if another PR participant already posted@coderabbitai reviewand the review has not appeared yet, the trigger is already spent — do NOT post a second one, because re-triggering burns quota and creates review churn (same rule asv-babysit-pr-and-merge/references/review-loop.md). Check every PR comment before posting. With operator approval, post@coderabbitai reviewas a PR comment (identical wording to Station IV's trigger — never reword it), then route tov-babysit-pr-and-mergeknowing the review is already running. This saves waiting time. Because this path skips Station IV's own acknowledgement wait, read the trigger reply yourself and carry its status into the handoff — one of: review started / rate limited (N minutes) / summary-only review (private repo on Free — no findings expected, not a pass) / other reply / no acknowledgement. A summary-only outcome must reach Station V as such, never as a clean pass; on a private repo on the Free plan it is the expected shape. - Open PR with change requests or failing checks -> needs babysitting. Route to
v-babysit-pr-and-merge. - Open PR with green checks, no change requests, still waiting on reviews -> babysit until approval. Route to
v-babysit-pr-and-merge. - Open PR approved and green -> merge it, then clean up. Route to
v-babysit-pr-and-mergefor the merge step. - Branch merged already, leftover branch or worktree exists -> prune and sync. Route to
vi-close-pipeline(its Clean Exit Gate syncs master). tasks/plan.md(ortasks/todo.md) with an incomplete checklist and the linked issue still open -> work started but unfinished. Resume it. Route toiii-build-plan.tasks/plan.md(ortasks/todo.md) with an incomplete checklist and the linked issue closed -> stale work. When a PR was merged the work landed, otherwise it was abandoned. Either way sweep the leftovers. Route tovi-close-pipeline.- Dirty tree with a clear small task and no PR -> finish the work first. Route to
iii-build-plan. (Origin must be known — see the stop rule above.) - Dirty tree with an unclear or large task -> needs scoping first. Route to
ii-plan-issue. (Origin must be known — see the stop rule above.) - Brand new idea with no code yet -> capture it. Route to
create-issue(intake branch), then back toi-pick-issue. - Work merged and the operator wants a visual summary -> route to
present-pr(ad-hoc visual presentation, not a pipeline station). - The request is ad-hoc (not Issue work at all) -> say so in one line and route to
using-agent-skills.
Output format
Answer in the chat only. Always use this exact markdown shape with headings, bold, and emojis. Two sections only, short. No approval line. No explanation of what the station does.
After the status line, always list every changed file by category with a one-line classification of what it is (which issue/PR it belongs to, or "unknown origin"). Omit a category only when its count is 0. Also list each stash with its number, age, branch, and a one-line classification of its contents.
Report order: title, then folder state, then GitHub checks, then what was asked, then what was found. Issues and PRs are hyperlinks. The station name stays in English in the title. A --- separator line comes before the What-now section.
Safety rules
- Guide only by default and stop before push, merge, discard, or reset.
- Ask for explicit approval before any destructive step.
- Never invent PR state or check results. Report only what the commands above showed.
- When two rows seem to match, say so in one sentence and pick the smaller safer step first.
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.

