agentleFS
cogine-aicogine-ai/cogine-dev-skillset/skills/gh-issue-priority-handoff/SKILL.md

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.

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
  1. Distinctive:

    Use this skill when the user asks to:

    line 10
  2. Distinctive:

    create a backlog execution sequence

    line 14
  3. Distinctive:

    If the user does not provide these, proceed with sensible defaults and state assumptions.

    line 25
  4. Distinctive:

    Before ranking or writing handoff instructions:

    line 29
  5. Distinctive:

    Read local AGENTS.md and repo docs if present.

    line 30
  6. Distinctive:

    Check whether the current checkout is dirty.

    line 33
  7. Very specific:

    Never recommend direct work on protected branches (main, master, develop, release branches, or repo-defined equivalents).

    line 34
  8. Distinctive:

    Default each delegated issue to a dedicated branch and worktree.

    line 35
  9. Very specific:

    If there is no usable remote, replace origin/$BASE_BRANCH with the best local base ref and state the limitation.

    line 45
  10. Distinctive:

    Treat each issue as a claim to verify against current code, not as an instruction to apply blindly.

    line 58
  11. Distinctive:

    Verify whether the issue is still reproducible, already partially implemented, fully fixed, duplicated, or superseded.

    line 59
  12. Distinctive:

    Check whether the issue is implementation-ready.

    line 61
  13. Distinctive:

    Before scoring priority or handoff status, assign each issue one readiness verdict:

    line 65
  14. Distinctive:

    Keep skipped/deferred issues visible with a brief reason instead of silently dropping them.

    line 103
  15. Distinctive:

    Always return these sections in order:

    line 111
  16. Very specific:

    Only include READY and READY WITH RISKS issues.

    line 129
  17. Distinctive:

    If no issues are handoff-ready, say so and do not fabricate blocks.

    line 140
  18. Distinctive:

    Do not rank by title only.

    line 150
  19. Distinctive:

    Check comments and linked closing PR references when available.

    line 151
  20. Distinctive:

    Call out stale, duplicate, outdated, already-fixed, or not-agent-ready issues explicitly.

    line 152
  21. Very specific:

    Use repo-specific validation commands from package scripts, test config, Makefiles, CI config, or docs.

    line 153
  22. Very specific:

    Do not hand off NOT READY issues as if they were executable.

    line 154
  23. Distinctive:

    Keep recommendations actionable.

    line 155
  24. Distinctive:

    Keep handoff blocks self-contained enough for another coding agent to start without rereading this analysis.

    line 156
  25. Distinctive:

    If uncertain, state assumptions and what evidence is missing.

    line 157

≈ “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.

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

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:

  1. Repository: local checkout, owner/repo, or current directory.
  2. Scope: all open issues, selected issue numbers, labels, milestone, or search query.
  3. Exclusions: issues already delegated, in progress, intentionally deferred, or out of scope.
  4. Goal: bugfix focus, growth focus, reliability focus, cost/security focus, or balanced.
  5. 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:

  1. Read local AGENTS.md and repo docs if present.
  2. Identify the repo default/base branch. Prefer gh repo view --json defaultBranchRef, then git symbolic-ref --short refs/remotes/origin/HEAD, then the current branch.
  3. 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.
  4. Check whether the current checkout is dirty. Do not ask delegated agents to build on unrelated local changes unless the user explicitly requests it.
  5. Never recommend direct work on protected branches (main, master, develop, release branches, or repo-defined equivalents).
  6. Default each delegated issue to a dedicated branch and worktree.
  7. 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

  1. 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
  1. 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.

  1. 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.
  1. Score valid issues using this rubric.
  • Importance: Critical / High / Medium / Low
  • Value: 1-10 (user impact + business impact + data correctness + risk reduction)
  • Effort: S / M / L / XL
  • Dependency: blocked-by or blocks-other-work
  • Readiness: 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
  1. 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.
  1. 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:

  1. Freshness and Assumptions
  • Repo/ref checked, issue scope, base branch, fetch status, and any freshness caveat.
  1. Priority Table
  • Issue, Status, Readiness, Importance, Value, Effort, Recommendation, Reason
  1. Issue Analysis
  • One paragraph per issue, including skipped/deferred issues.
  1. Readiness Fixes
  • One block per NOT READY or NOT NEEDED issue.
  • 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.
  1. Agent Handoff Blocks
  • One copy-paste block per handoff-ready issue.
  • Only include READY and READY WITH RISKS issues.
  • 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.
  1. 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 pnpm unless the repo actually uses it.
  • Do not hand off NOT READY issues 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.

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.