From aai-pm-github
Detects duplicate GitHub issues before creation using gh CLI searches, key term extraction, similarity assessment, and handling recommendations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aai-pm-github:issue-duplicate-detectionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides patterns for detecting and handling duplicate GitHub issues.
This skill provides patterns for detecting and handling duplicate GitHub issues.
From the potential new issue:
# Search open issues
gh issue list --state open --search "keyword1 keyword2" --limit 20
# Search all issues (including closed)
gh issue list --state all --search "keyword1 keyword2" --limit 20
# Search with specific terms
gh issue list --state all --search "in:title error message"
# Search by label
gh issue list --state open --label "bug" --search "keyword"
For each potential match:
## Duplicate Check Results
### Potential Duplicates Found
| # | Title | State | Created | Similarity |
|---|-------|-------|---------|------------|
| #123 | Similar issue title | Open | 2024-01-10 | High |
| #456 | Related problem | Closed | 2023-12-01 | Medium |
### Analysis
**#123** appears to describe the same issue:
- Same error message mentioned
- Same component affected
- Both triggered by same user action
**Recommendation**: Add context to #123 instead of creating new issue.
### If Not Duplicate
If you confirm this is a new issue, I'll proceed with creation.
gh issue list --state all --search "TypeError: Cannot read property"
gh issue list --state all --search "in:title checkout"
gh issue list --state all --search "in:body payment"
gh issue list --state all --author @me --search "keyword"
gh issue list --state open --label "bug" --search "in:title login error"
Action: Recommend adding to existing issue
Action: Recommend linking issues
Action: Proceed with new issue
gh issue comment 123 --body "$(cat <<'EOF'
Additional report:
[New information not in original issue]
Confirming this is still occurring as of [date].
EOF
)"
When related but not duplicate:
In new issue body:
Related to #123
See also #456
gh issue close {number} --comment "Closing as duplicate of #123"
gh issue edit {number} --add-label "duplicate"
| Query | Meaning |
|---|---|
keyword | Search all fields |
in:title keyword | Title only |
in:body keyword | Body only |
is:open | Open issues |
is:closed | Closed issues |
label:bug | With label |
author:username | By author |
assignee:username | Assigned to |
created:>2024-01-01 | Created after |
updated:>2024-01-01 | Updated after |
Combine with AND:
gh issue list --search "is:open label:bug in:title checkout"
npx claudepluginhub bradtaylorsf/alphaagent-teamGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.