From ai-devkit
Create a well-structured GitHub issue with AI-inferred type, labels, and duplicate detection. Works on any GitHub repository.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-devkit:create-issue Brief description of the issueBrief description of the issueThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a well-structured GitHub issue with AI-powered code analysis and comprehensive details. Repository-agnostic: it operates on whatever repo you're in and adapts to that repo's existing labels.
Create a well-structured GitHub issue with AI-powered code analysis and comprehensive details. Repository-agnostic: it operates on whatever repo you're in and adapts to that repo's existing labels.
$ARGUMENTS
# Operate on the current repo (inferred from the local git remote)
REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)
# Fetch the repo's existing labels so we match its taxonomy, not a hardcoded one
gh label list --repo "$REPO" --json name,description
AI Analysis — infer from the description:
Present the AI-inferred details for confirmation before creating anything.
For detailed patterns, read: issue-templates.md
SLUG=$(echo "$REPO" | tr '/' '-')
CACHE_FILE="/tmp/gh-issues-open-$SLUG.json"
# Portable mtime: GNU `stat -c %Y` (Linux), else BSD `stat -f %m` (macOS), else 0.
file_mtime() { stat -c %Y "$1" 2>/dev/null || stat -f %m "$1" 2>/dev/null || echo 0; }
if [ ! -f "$CACHE_FILE" ] || [ "$(( $(date +%s) - $(file_mtime "$CACHE_FILE") ))" -gt 300 ]; then
gh issue list --repo "$REPO" --state open --limit 100 --json number,title,body,labels > "$CACHE_FILE"
fi
gh search issues "keywords" --repo "$REPO" --limit 20
Duplicate criteria: title similarity >80%, same error message, identical affected components, created within the last 7 days. If duplicates found, offer: comment on the existing issue, reopen if closed, or create new (with justification).
Use the Task tool to investigate: search for mentioned classes/methods/errors, trace dependencies, find TODOs in affected areas, check test coverage, and extract relevant snippets.
For detailed labeling rules, read: labeling-guide.md
For templates, read: issue-templates.md
# Create a label only if the repo lacks a suitable one
gh label create "new-label" --repo "$REPO" --description "Description" --color "hexcode"
gh issue create --repo "$REPO" \
--title "Clear, searchable title" \
--body "Detailed description" \
--label "label1,label2"
**Summary**
[Brief problem/request summary]
**Context**
[Background information]
**Steps to Reproduce** (for bugs)
1. Step 1
2. Step 2
**Expected Behavior**
[What should happen]
**Actual Behavior**
[What actually happens]
**Environment** (fill in what's relevant to this project)
- Platform / runtime / version:
- OS / device / browser:
- Build or release:
**Code Analysis**
[Relevant code snippets, file:line references]
**Impact**
[User/system impact]
**Suggested Solutions**
[Potential approaches]
**Acceptance Criteria**
- [ ] Criterion 1
- [ ] Criterion 2
**Related Issues**
- #XXX (related)
issue-templates.md — bug/feature/task templateslabeling-guide.md — label conventions and assignment rulesGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub alexandremorgado/ai-devkit --plugin ai-devkit