managing-lifecycle
GitHub Issue CRUD and state management. TRIGGERS - create issue, close issue, update issue, bulk process issues.
What this skill does
# Issue Lifecycle Operations
**Capability:** Complete CRUD operations for GitHub Issues and PRs
**When to use:** Creating, reading, updating, deleting, commenting on issues/PRs
---
## Create Operations
### Create Issue
```bash
# Basic creation
gh issue create --title "Bug: Login fails" --body "Steps to reproduce..."
# With labels and assignee
gh issue create \
--title "Feature: Add dark mode" \
--body "User requested dark mode support" \
--label feature,ui \
--assignee username
# From file
gh issue create --title "API Documentation" --body-file doc.md
# Interactive mode
gh issue create
```
### Create with Template
```bash
# Knowledge base entry
gh issue create \
--repo terrylica/claude-code-skills-github-issues \
--title "Claude Code: Using Plan Mode" \
--label claude-code,tips,how-to \
--body-file tip.md
```
---
## Read Operations
### View Issue
```bash
# Web view
gh issue view 123 --web
# Terminal view
gh issue view 123
# JSON output (21 fields available)
gh issue view 123 --json title,body,state,labels,assignees,createdAt
```
### List Issues
```bash
# List open issues
gh issue list
# Filter by assignee
gh issue list --assignee @me
# Filter by label
gh issue list --label bug --state open
# Limit results
gh issue list --limit 50
```
---
## Update Operations
### Modify Issue
```bash
# Update title
gh issue edit 123 --title "New title"
# Update body
gh issue edit 123 --body "Updated description"
# Add labels
gh issue edit 123 --add-label priority:high,bug
# Remove labels
gh issue edit 123 --remove-label wontfix
# Change assignee
gh issue edit 123 --add-assignee username
```
### State Management
```bash
# Close issue
gh issue close 123
# Close with comment
gh issue close 123 --comment "Fixed in commit abc123"
# Reopen issue
gh issue reopen 123
# Mark as resolved
gh issue close 123 --reason completed
# Mark as won't fix
gh issue close 123 --reason "not planned"
```
---
## Comment Operations
```bash
# Add comment
gh issue comment 123 --body "Thanks for reporting this!"
# Comment from file
gh issue comment 123 --body-file response.md
# Edit comment (requires comment ID)
gh api repos/owner/repo/issues/comments/COMMENT_ID \
--method PATCH \
--field body="Updated comment"
```
---
## Delete Operations
```bash
# Delete issue (careful - permanent!)
gh issue delete 123
# Delete with confirmation skip
gh issue delete 123 --yes
# Note: Prefer closing over deleting for audit trail
```
---
## Batch Operations
### Close Multiple Issues
```bash
# Close all issues with specific label
gh issue list --label wontfix --json number --jq '.[].number' | \
xargs -I {} gh issue close {} --reason "not planned"
# Close old issues
gh search issues "is:open created:<2024-01-01" --json number --jq '.[].number' | \
xargs -I {} gh issue close {}
```
### Bulk Label Updates
```bash
# Add label to multiple issues
for issue in 101 102 103; do
gh issue edit $issue --add-label priority:high
done
```
---
## Common Workflows
### Knowledge Base Entry Workflow
```bash
# 1. Create issue with content
gh issue create --title "Tip: Git worktrees" --body-file tip.md
# 2. Add labels
gh issue edit 1 --add-label git,tips,how-to
# 3. Verify created
gh issue view 1
```
### Issue Triage Workflow
```bash
# 1. List new issues
gh issue list --label needs-triage
# 2. Review and categorize
gh issue edit 123 --add-label bug --remove-label needs-triage
# 3. Assign if needed
gh issue edit 123 --add-assignee dev-team
```
---
## JSON Output Fields (21 available)
**Core:** number, title, body, state, url
**Metadata:** labels, assignees, milestone, projectCards
**Timestamps:** createdAt, updatedAt, closedAt
**Engagement:** comments, reactions
**Users:** author, participants
**Full list:** `gh issue view --help`
---
## Best Practices
1. **Prefer closing over deleting** - Maintains audit trail
2. **Use labels for organization** - Better than comments
3. **Atomic updates** - One change per command for clarity
4. **JSON for automation** - Script with `--json` and `--jq`
5. **Batch carefully** - Test on single issue first
---
**Empirical Testing:** 200+ test cases covering all CRUD operations
**Full Operational Guide:** [AI_AGENT_OPERATIONAL_GUIDE.md](/docs/guides/AI_AGENT_OPERATIONAL_GUIDE.md)
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.