gh-issue-priority-handoff
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Use when the user asks to triage GitHub issues, prioritize backlog work, verify issue readiness or staleness, or generate delegation-ready issue briefs for coding agents.
In this repository38 other files it gives its agents.
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/CLAUDE.mdCLAUDE.md
- ai-app-security-auditSkill
- ai-slide-templatesSkill
- backlog-ready-specSkill
- check-compiler-errorsSkill
- clawpackerSkill
- deslopSkill
- devex-reviewSkill
- fix-ciSkill
- fix-merge-conflictsSkill
- founder-office-hoursSkill
- get-cookiesSkill
- get-pr-commentsSkill
- image2-with-codexSkill
- investigateSkill
- local-ultra-reviewSkill
- loop-on-ciSkill
- loop-on-pr-review-and-fixSkill
- new-branch-and-prSkill
- npm-release-pipelineSkill
- peer-reviewSkill
- plan-devex-reviewSkill
- planmode-ceoSkill
- planmode-engineerSkill
- qa-onlySkill
- review-and-shipSkill
- run-smoke-testsSkill
- security-best-practicesSkill
- site-design-auditSkill
- site-design-fixSkill
- slow-is-fastSkill
- supabase-postgres-best-practicesSkill
- vercel-react-best-practicesSkill
- xianyu-api-client-skillSkill
- xianyu-automation-skillSkill
- xianyu-product-manager-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 20 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when the user asks to:
- Distinctive: line 14
create a backlog execution sequence
- Distinctive: line 25
If the user does not provide these, proceed with sensible defaults and state assumptions.
- Distinctive: line 29
Before ranking or writing handoff instructions:
- Distinctive: line 30
Read local AGENTS.md and repo docs if present.
- Distinctive: line 33
Check whether the current checkout is dirty.
- Very specific: line 34
Never recommend direct work on protected branches (main, master, develop, release branches, or repo-defined equivalents).
- Distinctive: line 35
Default each delegated issue to a dedicated branch and worktree.
- Very specific: line 45
If there is no usable remote, replace origin/$BASE_BRANCH with the best local base ref and state the limitation.
- Distinctive: line 58
Treat each issue as a claim to verify against current code, not as an instruction to apply blindly.
- Distinctive: line 59
Verify whether the issue is still reproducible, already partially implemented, fully fixed, duplicated, or superseded.
- Distinctive: line 61
Check whether the issue is implementation-ready.
- Distinctive: line 65
Before scoring priority or handoff status, assign each issue one readiness verdict:
- Distinctive: line 103
Keep skipped/deferred issues visible with a brief reason instead of silently dropping them.
- Distinctive: line 111
Always return these sections in order:
- Very specific: line 129
Only include READY and READY WITH RISKS issues.
- Distinctive: line 140
If no issues are handoff-ready, say so and do not fabricate blocks.
- Distinctive: line 150
Do not rank by title only.
- Distinctive: line 151
Check comments and linked closing PR references when available.
- Distinctive: line 152
Call out stale, duplicate, outdated, already-fixed, or not-agent-ready issues explicitly.
- Very specific: line 153
Use repo-specific validation commands from package scripts, test config, Makefiles, CI config, or docs.
- Very specific: line 154
Do not hand off NOT READY issues as if they were executable.
- Distinctive: line 155
Keep recommendations actionable.
- Distinctive: line 156
Keep handoff blocks self-contained enough for another coding agent to start without rereading this analysis.
- Distinctive: line 157
If uncertain, state assumptions and what evidence is missing.
≈ “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
GH Issue Priority Handoff
Trigger
Use this skill when the user asks to:
- analyze open GitHub issues
- rank issues by priority, impact, or value
- generate delegation-ready instructions for other coding agents
- create a backlog execution sequence
Inputs to Clarify
Collect these before scoring:
- Repository: local checkout,
owner/repo, or current directory. - Scope: all open issues, selected issue numbers, labels, milestone, or search query.
- Exclusions: issues already delegated, in progress, intentionally deferred, or out of scope.
- Goal: bugfix focus, growth focus, reliability focus, cost/security focus, or balanced.
- Time horizon: urgent sprint, near-term, or strategic roadmap.
If the user does not provide these, proceed with sensible defaults and state assumptions.
Freshness and Repo Guardrails
Before ranking or writing handoff instructions:
- Read local
AGENTS.mdand repo docs if present. - Identify the repo default/base branch. Prefer
gh repo view --json defaultBranchRef, thengit symbolic-ref --short refs/remotes/origin/HEAD, then the current branch. - Fetch the base branch when a remote exists. If the repo has no remote or fetch fails, say that freshness is limited to local state.
- Check whether the current checkout is dirty. Do not ask delegated agents to build on unrelated local changes unless the user explicitly requests it.
- Never recommend direct work on protected branches (
main,master,develop, release branches, or repo-defined equivalents). - Default each delegated issue to a dedicated branch and worktree.
- Include explicit setup commands in each handoff block using the detected base branch, for example:
BASE_BRANCH=<detected-base-branch>
git fetch origin "$BASE_BRANCH"
git worktree add -b codex/issue-<id>-<slug> /path/to/worktrees/issue-<id> "origin/$BASE_BRANCH"
cd /path/to/worktrees/issue-<id>If there is no usable remote, replace origin/$BASE_BRANCH with the best local base ref and state the limitation.
Workflow
- Gather issue metadata, body, comments, and linked closure context.
Use gh first:
gh issue list --state open --limit 200 --json number,title,labels,assignees,createdAt,updatedAt,url,state
gh issue view <number> --comments --json number,title,body,labels,comments,assignees,closedByPullRequestsReferences,createdAt,updatedAt,url,state- Inspect codebase state for each issue.
- Treat each issue as a claim to verify against current code, not as an instruction to apply blindly.
- Verify whether the issue is still reproducible, already partially implemented, fully fixed, duplicated, or superseded.
- Identify likely touched files, architecture dependencies, and existing tests or validation commands.
- Check whether the issue is implementation-ready.
Issue Readiness Gate
Before scoring priority or handoff status, assign each issue one readiness verdict:
READY: clear user outcome, scope, acceptance criteria, likely target files/modules, and validation path.READY WITH RISKS: implementable, but assumptions, dependencies, or code uncertainty must be visible in the handoff.NOT READY: missing a product or technical decision that would materially change implementation.NOT NEEDED: duplicate, obsolete, already implemented, or no longer relevant to current code.
For NOT READY issues, do not create a normal delegation block. Instead, create a readiness block with:
- Missing decision or evidence.
- One concrete question to unblock it.
- Suggested owner: founder/product/engineering.
- Recommended next step: use
backlog-ready-spec, update the issue, close as duplicate, or investigate code.
Readiness is separate from priority. A high-value issue can still be NOT READY.
- Classify handoff readiness before scoring.
Hand off now: valid, bounded, agent-executable, and valuable.Needs human/product: valid problem but acceptance criteria or direction is missing.Defer: valid but low value, high opportunity cost, or blocked by another issue.Close/skip: stale, duplicate, already fixed, invalid, or not worth agent time.
- Score valid issues using this rubric.
Importance: Critical / High / Medium / LowValue: 1-10 (user impact + business impact + data correctness + risk reduction)Effort: S / M / L / XLDependency: blocked-by or blocks-other-workReadiness: READY / READY WITH RISKS / NOT READY / NOT NEEDED
Suggested weighting:
- User-visible breakage or data integrity: highest
- Security, abuse, or cost-control risks: highest
- Structural unblockers for many downstream tasks: high
- Nice-to-have channels/features without clear demand: lower
- Produce ranked list.
- Exclude issues user marked as delegated or in progress.
- Sort handoff-ready issues by importance first, then value, then dependency impact.
- Keep skipped/deferred issues visible with a brief reason instead of silently dropping them.
- Produce per-issue paragraph + delegation block for handoff-ready issues only.
- Paragraph: what problem it solves, why now, expected value, risk if delayed, and what evidence was checked.
- Delegation block: objective, scope, non-goals, files, acceptance criteria, branch/worktree setup, validation commands.
Output Contract
Always return these sections in order:
Freshness and Assumptions
- Repo/ref checked, issue scope, base branch, fetch status, and any freshness caveat.
Priority Table
- Issue, Status, Readiness, Importance, Value, Effort, Recommendation, Reason
Issue Analysis
- One paragraph per issue, including skipped/deferred issues.
Readiness Fixes
- One block per
NOT READYorNOT NEEDEDissue. - State the missing decision, duplicate/obsolete evidence, or already-implemented evidence.
- Recommend whether to run
backlog-ready-spec, update the issue, close it, or investigate further.
Agent Handoff Blocks
- One copy-paste block per handoff-ready issue.
- Only include
READYandREADY WITH RISKSissues. - Each block must include:
- issue id and title
- URL
- goal
- implementation scope
- non-goals
- target files or modules
- acceptance criteria
- required validation commands
- worktree/branch setup commands
- If no issues are handoff-ready, say so and do not fabricate blocks.
Skipped or Needs Follow-up
- Issues not handed off, with one-line reasons.
For handoff block format, use:
references/handoff-template.md
Quality Bar
- Do not rank by title only. Use issue body + code reality.
- Check comments and linked closing PR references when available.
- Call out stale, duplicate, outdated, already-fixed, or not-agent-ready issues explicitly.
- Use repo-specific validation commands from package scripts, test config, Makefiles, CI config, or docs. Do not default to
pnpmunless the repo actually uses it. - Do not hand off
NOT READYissues as if they were executable. - Keep recommendations actionable; avoid vague prioritization.
- Keep handoff blocks self-contained enough for another coding agent to start without rereading this analysis.
- If uncertain, state assumptions and what evidence is missing.
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.

