Skip to content
Agentmart
Submit a tool

gh-issue-priority-handoff

Use when the user asks to triage GitHub issues, prioritize backlog work, verify issue readiness or staleness, or generate delegation-ready issue briefs for…

Skill by cogine-ai

IndexedApache-2.0★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cogine-ai-gh-issue-priority-handoff

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/gh-issue-priority-handoff

What's inside

Skill name
gh-issue-priority-handoff
Description
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.
License
Apache-2.0
Instructions
154 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • openai.yaml · agents/
  • handoff-template.md · references/

SKILL.md (first lines)

# 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:

```bash
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:
```bash
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
```

2. 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`.

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

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

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

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

2. `Priority Table`
- Issue, Status, Readiness, Importance, Value, Effort, Recommendation, Reason

3. `Issue Analysis`
- One paragraph per issue, including skipped/deferred issues.

4. `Readiness Fixes`
- One block per `NOT READY` or `NOT NEEDED` issue.
- State the missing decision, duplicate/obsolete evidence, or already-implemented evidence.

From cogine-ai/cogine-dev-skillset, Apache-2.0.

More from cogine-ai/cogine-dev-skillset

Signals

Stars
3
Forks
1
Open issues
0
Last commit (this folder)
Jun 25, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
Website
cogine.ai
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from cogine-ai

Cite this page

gh-issue-priority-handoff skill. Agent Mart. https://agentmart.dev/skills/cogine-ai-gh-issue-priority-handoff (last updated 2026-10-24)