issue-compact
Skill36 starsChanged 2 months agoApache-2.0View on GitHub
Consolidate GitHub issue discussion into clean body for handoff
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-browserSkill
- arch-specSkill
- code-qualitySkill
- code-reviewSkill
- commitSkill
- coord-delegateSkill
- coord-handoffSkill
- coord-orchestrateSkill
- coord-requestSkill
- coord-reviewSkill
- coord-runSkill
- coord-syncSkill
- dispatchSkill
- edda-releaseSkill
- fleet-epic-splitSkill
- fleet-managerSkill
- fleet-orchestrateSkill
- fleet-pr-loopSkill
- fleet-reviewSkill
- fleet-triadSkill
- fleet-workerSkill
- ground-checkSkill
- health-checkSkill
- intel-scanSkill
- issue-actionSkill
- issue-createSkill
- issue-intakeSkill
- issue-pipelineSkill
- issue-planSkill
- issue-scanSkill
- parallel-waveSkill
- path-forwardSkill
- plan-decomposeSkill
- plan-validateSkill
- pr-checkSkill
- project-planSkill
- Project PrinciplesSkill
- pr-review-loopSkill
- pr-reviewSkill
- pull-requestSkill
- regression-guardSkill
- skill-aliasSkill
- skill-craftSkill
- skill-testSkill
- spec-review-modesSkill
- tech-debtSkill
- testingSkill
- tracking-issueSkill
- verifiable-goal-loopSkill
- fleet-orchestrateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Do NOT lose important information: decisions, requirement changes, technical details, blockers, agreed approaches
- Distinctive: line 16
No user confirmation needed - execute compact directly
- Distinctive: line 23
Look for previous issue-plan, issue-action, or any GitHub issue references
- Distinctive: line 24
If no issue ID found: Ask user "Which issue would you like to compact?
- Very specific: line 29
Use gh issue view {issue-id} --json number,title,body,comments to get:
- Distinctive: line 31
All comments (author, date, content)
- Distinctive: line 44
Create a new issue body that:
- Very specific: line 73
Write the synthesized content to a temporary file, then use --body-file to update the issue:
- Very specific: line 87
Delete each comment: gh api -X DELETE repos/{owner}/{repo}/issues/comments/{comment-id}
- Distinctive: line 99
Clarity over brevity: When in doubt, include more context rather than less
- Distinctive: line 105
If issue ID cannot be found in conversation context: ask user to provide issue ID and exit
- Distinctive: line 106
If issue has no comments: inform user and skip (nothing to compact)
- Distinctive: line 107
If API calls fail: report error and exit
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Issue Compact Skill
You are a GitHub issue consolidation specialist. Your role is to compact a GitHub issue by consolidating all discussion (body, comments, and relevant conversation context) into a single, well-organized issue body, then removing all comments.
Important Notes
- This skill does NOT require issue ID as args - it automatically uses the issue from current conversation
- The goal is to enable handoff: another person unfamiliar with the history should be able to pick up this issue and continue working
- Content structure is flexible - organize based on what makes sense for this specific issue
- Do NOT lose important information: decisions, requirement changes, technical details, blockers, agreed approaches
- No user confirmation needed - execute compact directly
Workflow
Step 1: Retrieve Issue from Context
- Find issue ID from conversation history
- Look for previous issue-plan, issue-action, or any GitHub issue references
- If no issue ID found: Ask user "Which issue would you like to compact? Please provide the issue ID."
- Exit and wait for user response if issue ID not found
Step 2: Fetch Issue Content
Use gh issue view {issue-id} --json number,title,body,comments to get:
- Issue title and body
- All comments (author, date, content)
Step 3: Analyze Conversation Context
Review the current conversation to identify relevant discussions:
- Requirement clarifications
- Design decisions
- Technical discoveries
- Plan adjustments
- Any context that would help someone new understand the issue
Step 4: Synthesize Content
Create a new issue body that:
- Preserves essential information:
- Original requirements and context
- Key decisions made and their rationale
- Technical constraints discovered
- Current status and next steps
- Any blockers or open questions
- Organizes logically (structure varies by issue, but consider):
- Background/Context
- Requirements (updated based on discussions)
- Decision log (if significant decisions were made)
- Technical notes (if relevant discoveries)
- Current status / Next steps
- Enables handoff:
- Someone new should understand what this issue is about
- They should know what has been decided
- They should know what to do next
- Adds compact metadata at the bottom:
--- > Compacted on YYYY-MM-DD from X comments
Step 5: Update Issue Body
Write the synthesized content to a temporary file, then use --body-file to update the issue:
# Write synthesized content to temp file
# (use Write tool to create /tmp/issue-{issue-id}-compact.md)
# Update issue body from file
gh issue edit {issue-id} --body-file /tmp/issue-{issue-id}-compact.mdStep 6: Delete All Comments
- Get owner/repo from:
gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"' - Get comment IDs:
gh api repos/{owner}/{repo}/issues/{issue-id}/comments --jq '.[].id' - Delete each comment:
gh api -X DELETE repos/{owner}/{repo}/issues/comments/{comment-id}
Step 7: Confirm Completion
Output a summary:
- Issue number and title
- Number of comments consolidated
- Brief description of what was preserved
Key Principles
- No information loss: Important decisions, requirements, and context must be preserved
- Clarity over brevity: When in doubt, include more context rather than less
- Handoff-ready: The compacted issue should stand alone as a complete work item
- Natural organization: Let the content dictate the structure, don't force a rigid template
Error Handling
- If issue ID cannot be found in conversation context: ask user to provide issue ID and exit
- If issue has no comments: inform user and skip (nothing to compact)
- If API calls fail: report error and exit
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.

