dsifry/metaswarm/create-issue
Claude Code and agent skill by dsifry/metaswarm
- community
Checking that the SKILL.md file is still in the repository.
Create comprehensive GitHub issues with TDD plans, acceptance criteria, and agent instructions for autonomous PR lifecycle management
Install
npx vskill@latest install dsifry/metaswarm/create-issueSKILL.md
Create GitHub Issue Skill
Create comprehensive, well-structured GitHub issues with embedded agent instructions for autonomous PR lifecycle management.
Overview
This skill generates GitHub issues that are self-contained work packets. Each issue includes:
- Problem/Feature specification with clear scope
- Technical specification with types, schemas, and API design
- TDD Implementation Plan with test-first cycles
- Acceptance Criteria checklist
- Agent Instructions for complete PR lifecycle (implementation → review → merge)
Usage
Interactive Flow
Questions that only collect facts (the description, the acceptance criteria) are plain questions. Any question that is a choice between acceptable options (type, complexity, scope) is a decision request: lettered options (A, B, C) under numbered questions (reply 1 A 2 C), each with its pros and cons, the recommended option marked, and why it is recommended (see Decision requests in the metaswarm plugin's guides/delivery-scope.md); a line each is enough.
Step 1: Issue Type
Ask the user:
Step 2: Brief Description
Step 3: Complexity Assessment
Step 4: Context Gathering
Step 5: Generate Issue
Based on inputs, generate the full issue using the appropriate template below.
Issue Templates
Feature Template
// Key type definitions
Zod Schemas (if applicable)
API Endpoints (if applicable)
| Method | Path | Description |
|---|
Database Changes (if applicable)
[Schema changes, migrations needed]
TDD Implementation Plan
Cycle 1: [Happy Path]
Cycle 2: [Error Handling]
Cycle 3: [Edge Cases]
Cycle 4: [Integration]
Error Handling
| Scenario | Behavior | Logging |
|---|
Implementation Phases
Phase 1: [Core] (High Priority)
- [ ] Task 1
- [ ] Task 2
Phase 2: [Enhancement] (Medium Priority)
- [ ] Task 3
Files to Create/Modify
- NEW:
path/to/new/file.ts path/to/existing/file.ts- [what changes]
Acceptance Criteria
- [ ] All TDD cycles implemented with passing tests
- [ ] Zero TypeScript errors (
pnpm typecheck) - [ ] Zero lint warnings (
pnpm lint) - [ ] All tests pass (
pnpm test --run) - [ ] JSDoc documentation added to all new/modified services
- [ ] `docs/SERVICE_INVENTORY.md` updated (if new/modified service)
- [ ] Mock factories added/updated (if new service)
- [ ] PR created and all CI checks pass
- [ ] ALL code review comments addressed (see Agent Instructions)
- [ ] All review threads resolved
- [ ] PR approved and merged
Agent Instructions
CRITICAL: Follow this protocol when implementing this issue. A PR is NOT complete until ALL steps are done.
Phase 0: Research (BEFORE writing any code)
Read these files first to avoid reinventing the wheel:
- Service Inventory - Check for existing services that might already do what you need:
``bash # Read the service inventory cat docs/SERVICE_INVENTORY.md # Or search for specific functionality grep -i "embedding\|search\|cache" docs/SERVICE_INVENTORY.md ``
- Mock Factories - Review existing mocks to reuse patterns:
``bash ls src/test-utils/factories/ ``
- Similar Services - Find services with similar patterns:
``bash # Find orchestrator patterns ls src/lib/services/*-orchestrator*.ts # Find persistence patterns ls src/lib/services/*-persistence*.ts ``
Why this matters: Reusing existing services and patterns saves time, maintains consistency, and prevents duplicate code.
Phase A: Implementation
- Create feature branch from main:
git checkout -b feat/[short-name] - Follow TDD cycles exactly as specified above
- Add JSDoc documentation to all new/modified services
- Run local validation:
pnpm lint && pnpm typecheck && pnpm test --run - Update service inventory (if new service)
- Run
/self-reflectincluding the instruction review before the PR. If you are a subagent, do not ask the user or apply instruction edits: RETURN the "Instruction changes proposed" list to your parent and wait for it to hand back - Create PR with comprehensive description using
/create-pr
Phase B: Code Review Iteration
Wait for code reviews before proceeding. Do NOT mark complete after pushing code.
For EACH code review iteration:
- Fetch ALL comments (including trivial, nitpicks, and out-of-scope):
``bash PR_NUMBER=XXX OWNER=$(gh repo view --json owner -q .owner.login) REPO=$(gh repo view --json name -q .name) gh api "repos/$OWNER/$REPO/pulls/$PR_NUMBER/comments" --paginate ``
- Address ALL comments by category:
| Type | Action | |
|---|---|---|
| Critical/Major | Fix immediately | |
| Medium/Minor | Fix before merge | |
| Trivial/Nitpick | Fix these too! Do NOT skip | |
| Out-of-scope | Investigate thoroughly - often the BEST insights |
- For each comment:
- < 1 day of work → Implement the fix in this PR
- > 1 day OR architectural → Create a new GitHub issue, link in response
- Disagree → Reply explaining why with technical reasoning
- After making changes:
``bash pnpm lint && pnpm typecheck && pnpm test --run git add . && git commit -m "fix: address review feedback" && git push ``
- Respond to EVERY comment thread individually:
```bash COMMENT_ID=XXX CURRENT_USER=$(gh api user -q '.login') gh api "/repos/$OWNER/$REPO/pulls/$PR_NUMBER/comments/$COMMENT_ID/replies" \ -X POST \ -f body="Fixed in commit $(git rev-parse --short HEAD). [explanation]
(Response by Claude on behalf of @$CURRENT_USER)" ```
- Wait for next review cycle - Do NOT resolve threads yourself
- Repeat steps 1-6 until reviewer confirms satisfaction
Phase C: Thread Resolution
Only AFTER reviewer approval:
- Re-fetch all threads to get current IDs
- Resolve each thread:
``bash THREAD_ID="PRRT_xxx" gh api graphql -f threadId="$THREAD_ID" -f query=' mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { id isResolved } } }' ``
- Verify all threads resolved before proceeding
Phase D: Merge Readiness
PR is ready for merge ONLY when ALL are true:
- [ ] All CI checks pass (green)
- [ ] EVERY code review comment addressed (including trivial/out-of-scope)
- [ ] EVERY thread has individual response
- [ ] All threads are resolved (after reviewer approval)
- [ ] GitHub issues created for any deferred work (> 1 day)
- [ ] No pending reviewer comments awaiting response
Phase E: Squash Merge and Cleanup
IMPORTANT: Always use squash merge, never regular merge.
- Squash and merge the PR (combines all commits into one clean commit):
```bash # Via GitHub CLI gh pr merge $PR_NUMBER --squash --delete-branch
# Or via GitHub web UI: # Click "Squash and merge" (NOT "Merge" or "Rebase and merge") ```
- Delete the feature branch (automatically done with --delete-branch flag):
``bash # If branch wasn't auto-deleted: git push origin --delete feat/[branch-name] git branch -d feat/[branch-name] ``
- Update local main:
``bash git checkout main git pull origin main ``
Reference
See the /metaswarm:handle-pr-comments command for detailed protocol.
Related Issues
- [Link to related issues]
References
- [Link to relevant docs, specs, or PRs]
Bug Report
Priority: [P0-Critical|P1-High|P2-Medium|P3-Low] Affected Users: [scope of impact] First Reported: [date/source]
Expected Behavior
[What should happen]
Actual Behavior
[What actually happens]
Steps to Reproduce
- Step 1
- Step 2
- Step 3
Root Cause Analysis
[If known, explain why this is happening]
Evidence
[Logs, stack traces, screenshots]
Test Cases
Test 1: Verify fix for reported issue
it("should not regress [related functionality]", async () => { // Ensure fix doesn't break other things });
Refactor Template
Use the Feature template with these modifications:
Title format: refactor: [brief description]
Add after "Summary":
Add to "Acceptance Criteria":
After Generation
After generating the issue content:
- Show preview to user
- Ask for modifications if needed
- Create issue with appropriate labels:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/create-issue/SKILL.md
Popularity
- Repository stars
- 120
- Repository forks
- 8
- Repository npm downloads, 7 days
- 25
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dsifry/metaswarm/create-issue)