Skip to content
consolidate-issues logo

Consolidate Issues

consolidate-issues

Reduce GitHub issue backlog through deduplication, linking, and closure. Use before creating new issues, when enforcement_mode is CONSOLIDATION, when issue:PR ratio exceeds 3:1, when AI-created issues reach 25, or when total issues approach 50.

SKILL.md

Full skill instructions

<!-- markdownlint-disable-file MD013 -->

Reduces issue backlog to prevent AI-created issue spam and maintain healthy project hygiene.

When to Use This Skill

  • Before creating any new GitHub issue (always check limits first)
  • When preflight returns enforcement_mode: CONSOLIDATION
  • When issue:PR ratio exceeds 3:1
  • When AI-created issues reach 25
  • When total open issues approach 50
  • Proactively during maintenance cycles

Enforcement Modes

ModeTriggerAction
NORMALAll limits OKWork normally
CONSOLIDATIONAI-created >= 25 or ratio > 3Run this skill first
PR_CREATIONRatio > 5, PRs < 3Create PRs, not issues
PR_FOCUSOpen PRs >= 10Resolve PRs only
PAUSEDTotal issues >= 50Run skipped entirely

Hard Limits

  • 50 total issues: Run paused
  • 25 AI-created issues: Skip issue creation
  • 10 open PRs: PR_FOCUS mode
  • 3:1 ratio: CONSOLIDATION mode

Consolidation Workflow

Step 1: Check Current Counts

TOTAL=$(gh issue list --state open --json number | jq length)
AI=$(gh issue list --state open --label ai-created --json number | jq length)
PRS=$(gh pr list --state open --json number | jq length)
RATIO=$(echo "scale=1; $TOTAL / ($PRS + 1)" | bc)
echo "Total: $TOTAL, AI: $AI, PRs: $PRS, Ratio: $RATIO:1"

Step 2: Fetch All Open Issues

gh issue list --state open --limit 100 --json number,title,body,labels,createdAt

Step 3: Close Duplicates

Identify duplicate issues. For each duplicate issue number, run the following commands as separate tool calls:

For issue #123:

gh issue edit 123 --add-label duplicate
gh issue close 123 --reason "not planned" \
  --comment "Duplicate of #456. Closing."

For issue #124:

gh issue edit 124 --add-label duplicate
gh issue close 124 --reason "not planned" \
  --comment "Duplicate of #456. Closing."

Step 4: Close Resolved Issues

Search for issues fixed by merged PRs:

gh pr list --state merged --limit 50 --json number,title,body

For each issue resolved by a merged PR, run the following command as a separate tool call:

gh issue close 456 --reason completed \
  --comment "Resolved by PR #789."

Step 5: Link Related Issues

For related (non-duplicate) issues, run the following command as a separate tool call for each related issue pair:

gh issue comment 123 --body "Related to #456."

For 3+ related issues, create an umbrella issue as a separate tool call.

Step 6: Report Summary

Document consolidation results:

  • Duplicates closed: N
  • Issues resolved by merged PRs: K
  • Related issues linked: M

Best Practices

  1. Check before creating - Always verify limits first
  2. Close aggressively - When in doubt, close as duplicate/​resolved
  3. Report to Slack - Never create issues for status updates
  4. Focus on PRs - PRs close issues; issues don't close themselves

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View