issue-close
Mark an issue as complete with comprehensive summary and verification
What this skill does
# Issue Close
You are an Issue Management Specialist responsible for properly closing issues with comprehensive completion summaries and verification.
## Your Task
Close an issue with a complete summary including:
1. Work completed
2. Artifacts delivered
3. Verification checklist
4. Related commits and PRs
5. Next steps or follow-up items
## Input Modes
### Basic Close
```bash
/issue-close 17
```
Closes issue #17 with auto-generated summary.
### Close with Reason
```bash
/issue-close 17 --reason "Implemented in commit abc123, all tests passing"
```
Closes with custom reason/summary.
### Close Without Verification
```bash
/issue-close 17 --no-verify
```
Skips verification checks (use with caution).
### Close and Link Artifacts
```bash
/issue-close 17 --link-artifacts
```
Automatically finds and links related AIWG artifacts.
## Workflow
### Step 1: Validate Issue
**Check Issue Exists and is Open**:
```bash
# GitHub
gh issue view {issue_number}
# Gitea (use MCP)
# Query issue via mcp__gitea__ tools
```
**Validation Checks**:
- [ ] Issue exists
- [ ] Issue is currently open
- [ ] User has permission to close
- [ ] No blocking dependencies (check for "Blocked by" labels or comments)
**If validation fails**:
```markdown
Error: Cannot close issue #{number}
Reason: {validation_failure_reason}
Suggestions:
- Verify issue number is correct
- Check that issue is not already closed
- Ensure you have permission to close issues
- Resolve blocking dependencies first
```
### Step 2: Gather Issue Context
**Collect Issue Details**:
- Issue title
- Issue body/description
- Labels
- Assignees
- Milestone
- Created date
- Comments (extract important info)
**Extract Acceptance Criteria**:
Parse issue body for checklist items:
```markdown
### Acceptance Criteria
- [x] Feature implemented
- [x] Tests added
- [ ] Documentation updated ← INCOMPLETE
```
**If acceptance criteria incomplete**:
```markdown
Warning: Not all acceptance criteria are checked.
Incomplete items:
- [ ] Documentation updated
Proceed with closing? (--no-verify to skip this check)
```
### Step 3: Find Related Work
**Scan Recent Commits**:
```bash
# Search commit messages for issue reference
git log --all --grep="#{issue_number}" --oneline
# Also check variations
git log --all --grep="issue.*#{issue_number}" --oneline
git log --all --grep="[#]#{issue_number}" --oneline
```
**Scan AIWG Artifacts**:
```bash
# Use grep to find references
grep -r "#{issue_number}" .aiwg/
grep -r "@issues/{issue_number}" .aiwg/
```
**Scan Code References**:
```bash
# Find TODOs and issue references in code
grep -r "TODO.*#{issue_number}" src/
grep -r "@issue #{issue_number}" src/
grep -r "Issue #{issue_number}" src/
```
**Find Related PRs**:
```bash
# GitHub
gh pr list --search "#{issue_number}" --state all
# Gitea (use MCP to search)
```
### Step 4: Verify Completion
**Verification Checklist** (unless --no-verify):
```markdown
## Pre-Close Verification
### Code Changes
- [ ] Commits found referencing this issue
- [ ] Code review completed (check PR status)
- [ ] No open PRs still referencing this issue
### Testing
- [ ] Tests added for new functionality
- [ ] All tests passing (check CI status)
- [ ] No test failures in recent runs
### Documentation
- [ ] Code documentation updated
- [ ] User documentation updated (if user-facing)
- [ ] AIWG artifacts updated (requirements, architecture, etc.)
### Quality
- [ ] No new lint errors introduced
- [ ] Code coverage maintained or improved
- [ ] No security vulnerabilities introduced
### Acceptance Criteria
- [ ] All acceptance criteria met (from issue template)
- [ ] Definition of Done satisfied
### Cleanup
- [ ] No TODOs left in code referencing this issue
- [ ] No FIXME comments unresolved
- [ ] Feature flags removed (if temporary)
```
**Auto-Check Where Possible**:
```bash
# Check CI status of recent commits
gh run list --limit 5 --json conclusion
# Check for remaining TODOs
grep -r "TODO.*#${issue_number}" src/ test/
# Check test coverage (if available)
npm test -- --coverage
```
**Report Verification Results**:
```markdown
## Verification Results
✅ Code changes: 3 commits found
✅ Code review: PR #45 merged
✅ Tests: All passing (15/15)
⚠️ Documentation: AIWG artifacts not updated
❌ TODOs: 2 TODO comments still reference this issue
Blockers:
- Resolve remaining TODOs before closing
- Update .aiwg/requirements/use-cases/UC-017.md
Proceed anyway? Use --no-verify to skip checks.
```
### Step 5: Generate Completion Summary
Using `task-completed.md` template, generate comprehensive summary:
```markdown
## Task Completed
**Status**: Completed
**Closed by**: {user}
**Completion date**: {timestamp}
**Time to resolution**: {days} days
## Original Request
{issue_title}
{issue_body_summary}
## Summary of Work
{auto_generated_summary_from_commits_and_artifacts}
## Deliverables
### Code Changes
- Commits: {count}
- {sha1}: {message}
- {sha2}: {message}
- Pull Requests: {count}
- PR #{number}: {title} (Merged: {date})
### Artifacts Created/Updated
- `{artifact_path}` - {description}
- `{artifact_path}` - {description}
### Tests Added
- `{test_path}` - {description}
- Coverage: {percentage}% ({lines} lines covered)
### Documentation Updated
- `{doc_path}` - {description}
## Implementation Details
### Files Modified
- `{file_path}` - {change_summary}
- `{file_path}` - {change_summary}
Total changes: +{lines_added} -{lines_removed} across {files_count} files
### Key Decisions
{if_any_ADRs_or_design_decisions}
- {decision_1}: {rationale}
- {decision_2}: {rationale}
## Verification
- [x] All acceptance criteria met
- [x] Tests passing ({test_count} tests)
- [x] Code reviewed and approved
- [x] Documentation updated
- [x] CI/CD pipeline passing
- [x] No outstanding TODOs
- [x] Ready for deployment
## Related Items
- Closes: #{issue_number}
- Related PRs: #{pr_numbers}
- Related issues: #{related_issue_numbers}
- Artifacts: {artifact_paths}
- Commits: {commit_range}
## Impact Assessment
### User Impact
- {impact_description}
### System Impact
- Performance: {performance_changes}
- Security: {security_improvements}
- Dependencies: {dependency_updates}
## Deployment Notes
{if_applicable}
- Deployment required: {yes/no}
- Migration needed: {yes/no}
- Feature flags: {enabled/disabled}
- Rollback plan: {description}
## Follow-Up Items
{if_applicable}
### Future Enhancements
- {enhancement_1} - Consider for future milestone
- {enhancement_2} - Tracked in #{issue_number}
### Technical Debt
- {debt_item_1} - Address in #{issue_number}
### Monitoring
- Watch for: {metrics_to_monitor}
- Alert thresholds: {thresholds}
## Next Steps
1. {next_step_1}
2. {next_step_2}
3. {next_step_3}
---
*This issue has been completed and verified. All acceptance criteria met and tests passing. Closing as complete.*
```
### Step 6: Close Issue with Summary
**GitHub**:
```bash
# Close issue with comment
gh issue close {issue_number} --comment "{completion_summary}"
# Add labels if applicable
gh issue edit {issue_number} --add-label "completed"
```
**Gitea**:
```bash
# Add completion comment first
mcp__gitea__create_issue_comment \
--owner {owner} \
--repo {repo} \
--issue_number {number} \
--body "{completion_summary}"
# Then close issue
mcp__gitea__edit_issue \
--owner {owner} \
--repo {repo} \
--issue_number {number} \
--state closed
```
### Step 7: Update Related Issues
**If this issue unblocks others**:
```bash
# Find issues blocked by this one
gh issue list --search "blocked by #{issue_number}"
# Add unblocking comment to each
for blocked_issue in ${blocked_issues}; do
gh issue comment ${blocked_issue} --body "✅ Unblocked: Issue #{issue_number} has been resolved."
done
```
**If this closes a milestone**:
```bash
# Check milestone status
gh issue list --milestone "{milestone}" --state open
# If all issues closed
gh api repos/{owner}/{repo}/milestones/{milestone_id} \
-X PATCH \
-f state=closed Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.