Skip to content
alyn
thedotmack

Oh My Issues skill

Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix PRs that close clusters atomically. Use when an issue tracker has accumulated dozens of reports that share underlying defects, when asked to triage / consolidate / cluster / dedupe issues, when asked to build a plan series or roadmap from open issues, or when routing a new incoming bug into an existing plan.

$npx skills add thedotmack/claude-mem --skill oh-my-issues
GitHub stars
115,790
Pack installs
109k
Alyn Score
81/99
Updated
3 h ago
License
Apache-2.0

Install Oh My Issues

Pick your agent. Every command is ready to paste.

$npx skills add thedotmack/claude-mem --skill oh-my-issues

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads oh-my-issues when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the oh-my-issues skill”. In Codex, type $oh-my-issues.

The skill itself

SKILL.md

GitHub

oh-my-issues

Turn an issue backlog into a roadmap. Issues are symptom data, not units of work — the unit of work is the architectural defect that produces them. The end state is open issues == open plans, 1:1.

Core principle

Stop closing issues one at a time. Group symptoms that share a single architectural fix into a cluster, give the cluster one canonical home (a plan-master issue whose body is the design), close every child with a standardized redirect, and ship one PR per cluster that closes all children atomically. New incoming bugs get appended to the matching master as a "Round N" comment, not opened as new tracked issues.

This compounds three ways: architectural fixes retire whole symptom families, the plan's test matrix institutionalizes prevention in CI, and standardized triage makes residual inflow cheap.

When to use

  • The repo has 20+ open issues and many feel like duplicates or platform-specific symptoms of the same defect.
  • The user asks to "triage", "consolidate", "cluster", "dedupe", "group", or "make a plan from" the issue list.
  • A new bug is filed and the user wants to know whether it belongs to existing work.
  • The user wants to ship a focused PR that resolves a cluster of related issues.

When NOT to use

  • Fewer than ~15 open issues: just close them.
  • Issues are genuinely independent (no shared root causes): one fix per issue is correct.
  • The repo has no plan-master discipline (one tracked master issue per root cause) and the user does not want to introduce one — propose first, do not impose.

Three modes

Mode 1: Cluster pass (initial reduction)

Use when the backlog has never been consolidated, or when the user wants a fresh re-cluster. Goal: go from N issues to N_plans masters in one operation.

Start blind. Do NOT read prior plan notes (local drafts, or plans/*.md in git history), prior [plan-XX] master issues, plan-labeled issues, or closed-issue redirect trails before clustering. Prior clusterings anchor the new one to their surfaces and defeat the point of re-running the pass. Cluster from the open issues alone; only after the new clusters are named may you diff against existing masters to decide which to close/supersede.

  1. Read everything in full. Fetch every open issue's body and its comment thread — not just titles — excluding issues labeled plan (the existing masters; see "Start blind" above — they are compared against only after clustering). Surface-level grouping fails without full text, and reproduction steps, linked duplicates, and diagnostic output often live in comments rather than the original body. See "GitHub CLI primitives" below for the correct paginated listing + per-issue comment fetch (a single gh issue list call does not return comment bodies).
  2. Cluster by root cause, not by surface. The clustering question is would one architectural change retire all of these? — not do these mention the same word?. "Windows" is a surface; "spawn contract violated by host shells" is a root cause. Two issues with different surfaces can share a cluster (e.g. an env-var leak in two different code paths sharing one missing env-isolation boundary).
  3. Name each cluster as an architectural problem. Title format: [plan-XX] <Architectural Defect> — <one-line scope>. Example: [plan-14] Child Process Ownership — every process the worker spawns dies with the worker. The title must imply a fix, not a topic.
  4. Open one master issue per cluster with a body that lists: the architectural defect, the children (by issue number), the fix sequence, and a required test matrix (host × IDE × shell, etc.) that prevents regression.
  5. Keep the design in the master issue body. It is the public tracker and the canonical design. Do not commit plan docs to the repo or open a PR for them: plans, research and notes never go in a PR. If you want a working draft, keep it in a gitignored local folder (for example .scratch/plans/).
  6. Close every child with the standardized redirect comment (see below) and state not planned.
  7. Verify end state: gh issue list --state open returns exactly the masters and nothing else.

Target shape for ~100 issues: 4–8 masters. More than 10 means you're clustering by surface; fewer than 3 means clusters are too broad to ship as one PR each.

Mode 2: Triage (new incoming bug, steady state)

Use when a new issue is filed after consolidation is in place. Goal: never let the issue list re-accumulate.

  1. Read the new issue's body in full.
  2. Pattern-match the symptom against existing plan masters. For each open master, ask: would the fix described here also fix this new bug? If yes → it belongs to that plan.
  3. If a match exists, post a "Round N" comment on the master that:
    • Names the new child by number
    • Describes the symptom in one line
    • Sketches the concrete fix (1–3 lines, e.g. "guard with case "$_SH" in /*.exe|"") _SH=bash ;; esac")
    • Adds any new test-matrix cell the bug exposes
  4. Close the child with the standardized redirect comment, not planned.
  5. If no match exists and the bug is genuinely novel: open a new plan master. Resist this. Most bugs are children of existing plans.

Mode 3: Bundle (ship the cluster)

Use when a plan slice is ready to ship. Goal: one PR closes N children atomically.

  1. List the master's children. From the master body and consolidation comments, collect every child issue number routed to this plan.
  2. Verify each child's symptom is covered by the architectural fix in the PR. If a child is not covered, the PR is not ready or that child belongs in a different plan.
  3. Generate the PR description: title is the plan slice (e.g. "fix(spawn): canonical ${CLAUDE_PLUGIN_ROOT} resolution"); body lists every child with Closes #N so GitHub auto-closes them on merge.
  4. Add the test matrix from the plan to CI in the same PR. Without the matrix, the cluster will re-emerge.
  5. After merge, the master issue can be closed only if every child was covered. If the plan has remaining scope, leave the master open and link the PR as a partial-shipping checkpoint.

Applying the pass to open pull requests

An open-PR backlog is the same symptom data in a different shape: each PR is a proposed fix for one surface of a root cause. Run Mode 1 over PRs when the repo has accumulated dozens of them (gh api "search/issues?q=repo:$owner/$repo+is:pr+is:open" --jq .total_count).

  1. Read every PR in full — body, issue comments, reviews, inline review threads, and the changed-file list (gh api repos/$owner/$repo/pulls/$n/{files,reviews,comments} + issues/$n/comments). Review threads carry the verdict-relevant facts (unresolved P1s, "superseded by", CI state). Also check cheaply whether the fix already landed on main (git log origin/main -- <key file> / git grep for the PR's distinctive identifier).
  2. Card each PR with: root cause targeted (mechanism, not symptom), fix-sequence step it implements, review state, already-on-main?, and a verdict — BUNDLE-CANDIDATE (sound fix to fold into the plan's bundle PR with author credit), STANDALONE (small, self-contained, merge ahead of the bundle), NEEDS-REWORK (right diagnosis, blocked on a named item), OUT-OF-SCOPE (capability, not a defect — route to the roadmap master), SUPERSEDED (already on main / obsoleted by another PR), JUNK.
  3. Route every PR to a master. Post one roster comment per master grouping its PRs by verdict and fix-sequence step; post one short routing note per PR pointing at the master and stating its verdict and blocker. Do not post routing notes on the maintainer's own PRs.
  4. Close only SUPERSEDED and JUNK (with the commit/PR that superseded them). Bundle candidates stay open until the plan's bundle PR (Mode 3) lands and closes them; needs-rework PRs stay open until their blocker is addressed or the bundle covers them.
  5. A PR cluster with no master is a new plan — same bar as an issue cluster (one architectural change would retire all of them). Open the master before routing.

End state: every open PR carries a routing note to exactly one master; open PR count == bundle candidates + standalone + needs-rework + product decisions.

Naming a plan master

A plan-master title must imply its fix.

Bad (surface) Good (architectural)
Windows bugs Spawn-Contract Templating across hosts
Worker crashes Worker / Daemon Lifecycle Hardening — supervision, health, retry
Auth issues Worker Env Isolation — strip host CLI env from the SDK subprocess
Install failures Installer Failure Transparency — cross-IDE error taxonomy + 12×4 test matrix

If you cannot write a one-line architectural scope, the cluster is wrong.

The standardized redirect comment

Use this exact phrasing on every child closure. Consistency lets contributors recognize the pattern at a glance and keeps the audit trail searchable.

Consolidating into #<MASTER> (plan-XX). The root cause and fix sequencing are tracked there alongside the rest of the cluster — please follow that issue for progress.

Close as not planned (not completed) — the child was a symptom, not a unit of work.

GitHub CLI primitives

Resolve repo:

repo_json=$(gh repo view --json owner,name)
owner=$(jq -r '.owner.login // .owner.name' <<<"$repo_json")
repo=$(jq -r '.name' <<<"$repo_json")

List all open issues (the read-everything pass). Two gotchas:

  • gh issue list --json comments returns only a count placeholder, not the comment bodies. You must fetch comments per issue with gh issue view <N> --json comments.
  • Any explicit --limit silently truncates if the backlog is larger. Always check the total open count first.
# 1. Confirm total — never trust an arbitrary --limit.
# Note: GitHub's REST API treats PRs as issues, so .open_issues_count
# from /repos/{owner}/{repo} is actually issues + PRs. Use the search
# API to get the issue-only count.
total=$(gh api "search/issues?q=repo:$owner/$repo+is:issue+is:open" --jq '.total_count')
echo "Open issues: $total"

# 2. List bodies (set --limit at or above the true total). Exclude existing
#    plan masters (label `plan`) — the cluster pass starts blind (Mode 1).
gh issue list --state open --limit "$total" --search "-label:plan" \
  --json number,title,body,labels,author,createdAt

# 3. For each issue, fetch its full comment thread
for n in $(gh issue list --state open --limit "$total" --search "-label:plan" --json number --jq '.[].number'); do
  echo "=== Issue #$n ==="
  gh issue view "$n" --json comments \
    --jq '.comments[] | "\(.author.login) (\(.createdAt)): \(.body)"'
done

If total > 1000, paginate via the REST API instead. Its issue list includes PRs and the plan masters, so filter both out, and stop on an empty raw page (a page can be all PRs and still have more pages after it). Use the saved numbers for the comment pass too, so the masters stay out of it:

mkdir -p .scratch/oh-my-issues   # gitignored local working folder
page=1
while :; do
  raw=$(gh api "repos/$owner/$repo/issues?state=open&per_page=100&page=$page")
  [ "$(jq length <<<"$raw")" -eq 0 ] && break
  jq -c '.[] | select(.pull_request | not) | select(any(.labels[]?; .name == "plan") | not)
         | {number, title, body, labels: [.labels[].name], author: .user.login, createdAt: .created_at}' <<<"$raw"
  page=$((page + 1))
done > .scratch/oh-my-issues/open-issues.jsonl

for n in $(jq -r '.number' .scratch/oh-my-issues/open-issues.jsonl); do
  echo "=== Issue #$n ==="
  gh issue view "$n" --json comments \
    --jq '.comments[] | "\(.author.login) (\(.createdAt)): \(.body)"'
done

Open a plan master:

gh issue create \
  --title "[plan-14] Child Process Ownership — every process the worker spawns dies with the worker" \
  --body-file .scratch/plans/plan-14-child-process-ownership.md \
  --label plan,plan-14

Post the consolidation comment + close the child. Post comments serially with a ~3 s pause — parallel gh ... comment calls trip GitHub's abuse limiter (GraphQL: was submitted too quickly); log OK/FAIL per number and retry failures serially:

gh issue comment <CHILD> --body "Consolidating into #<MASTER> (plan-XX). The root cause and fix sequencing are tracked there alongside the rest of the cluster — please follow that issue for progress."
gh issue close <CHILD> --reason "not planned"

Append a "Round N" triage comment to a master:

gh issue comment <MASTER> --body "$(cat <<'EOF'
**Round N consolidation**

- #<CHILD> (<one-line symptom>) folded into this plan as <classification>.

Proposed fix: <1–3 line sketch>.

Adds matrix cell: <host/IDE/shell combination>.
EOF
)"

Verify final state:

gh issue list --state open --json number,title \
  | jq -r '.[] | "\(.number)\t\(.title)"'

Output should be exactly the plan masters.

Plan master body template

Draft it in a gitignored local file (for example .scratch/plans/plan-XX-<slug>.md) and pass it as --body-file for the master issue. After that, the issue body is the canonical copy; edit the issue, not the draft.

# [plan-XX] <Architectural Defect> — <one-line scope>

## Defect

<One paragraph: what is structurally broken, why it produces the observed family of symptoms.>

## Children

- #N — <symptom one-liner>
- #N — <symptom one-liner>
- ...

## Fix sequence

1. <First architectural change — bounded, reviewable>
2. <Second>
3. ...

## Test matrix

| Axis A | Axis B | Required behavior |
|---|---|---|
| ... | ... | ... |

The matrix lives in CI. A future regression must fail CI before a user can file.

## Out of scope

<What this plan deliberately does not cover, with pointers to other plan masters.>

Health checks

Run periodically against the plan masters to catch the failure modes.

  • Graveyard master: master issue has accumulated 5+ "Round N" comments without a shipping PR. The plan needs a forcing PR or it must be split.
  • Over-broad master: the children's fixes cannot fit one PR. Split into two plans with narrower scope.
  • Surface-clustered master: the children share a topic but not a fix. Re-cluster by root cause; some children belong to different plans.
  • Stale master body: the master body no longer matches its Round-N comments. Fold the rounds into the body so the issue stays the one place the design lives.

Stop conditions

For a cluster pass: stop when gh issue list --state open returns exactly the masters.

For a triage: stop when the new child is closed and the master has a Round-N entry.

For a bundle: stop when the PR is merged and every listed child is auto-closed by Closes #N.

Failure modes worth refusing

  • Premature clustering before reading every issue body in full. Don't.
  • Reading prior plans/masters before clustering. A cluster pass starts blind (see Mode 1). Consulting old plan notes or [plan-XX] issues first anchors the result to the previous clustering.
  • Closing children before the master is open. Children must always have a redirect target.
  • Using the redirect comment for issues that aren't symptoms (e.g. genuine feature requests with no shared root cause). Those stay open or get their own track.
  • Closing a master before every listed child is shipped. The master is the contract; closing it early breaks the audit trail.

Tips for Oh My Issues

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Oh My Issues

What does the Oh My Issues skill do?

Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix PRs that close clusters atomically. Use when an issue tracker has accumulated dozens of reports that share underlying defects, when asked to triage / consolidate / cluster / dedupe issues, when asked to build a plan series or roadmap from open issues, or when routing a new incoming bug into an existing plan.

How do I install Oh My Issues?

Run "npx skills add thedotmack/claude-mem --skill oh-my-issues" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Oh My Issues work in Cursor and Codex?

Yes. Oh My Issues uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Oh My Issues free?

Oh My Issues is open source on GitHub under the Apache-2.0 license. It is free to install; check the license before commercial use.

Who made Oh My Issues?

Oh My Issues is published by thedotmack in the thedotmack/claude-mem repository, together with 29 other skills.

Similar skills. From other creators.