Catalog
affaan-m/github-ops

affaan-m

github-ops

GitHub repository operations, automation, and management. Issue triage, PR management, CI/CD operations, release management, and security monitoring using the gh CLI. Use when the user wants to manage GitHub issues, PRs, CI status, releases, contributors, stale items, or any GitHub operational task beyond simple git commands.

global
origin:ECC
New~1.1k
v1.2Saved Jul 14, 2026

GitHub Operations

Manage GitHub repositories with a focus on community health, CI reliability, and contributor experience.

When to Activate

  • Triaging issues (classifying, labeling, responding, deduplicating)
  • Managing PRs (review status, CI checks, stale PRs, merge readiness)
  • Debugging CI/CD failures
  • Preparing releases and changelogs
  • Monitoring Dependabot and security alerts
  • Managing contributor experience on open-source projects
  • User says "check GitHub", "triage issues", "review PRs", "merge", "release", "CI is broken"

Tool Requirements

  • gh CLI for all GitHub API operations
  • Repository access configured via gh auth login

Issue Triage

Classify each issue by type and priority:

Types: bug, feature-request, question, documentation, enhancement, duplicate, invalid, good-first-issue

Priority: critical (breaking/security), high (significant impact), medium (nice to have), low (cosmetic)

Triage Workflow

  1. Read the issue title, body, and comments
  2. Check if it duplicates an existing issue (search by keywords)
  3. Apply appropriate labels via gh issue edit --add-label
  4. For questions: draft and post a helpful response
  5. For bugs needing more info: ask for reproduction steps
  6. For good first issues: add good-first-issue label
  7. For duplicates: comment with link to original, add duplicate label
# Search for potential duplicates
gh issue list --search "keyword" --state all --limit 20

# Add labels
gh issue edit <number> --add-label "bug,high-priority"

# Comment on issue
gh issue comment <number> --body "Thanks for reporting. Could you share reproduction steps?"

PR Management

Review Checklist

  1. Check CI status: gh pr checks <number>
  2. Check if mergeable: gh pr view <number> --json mergeable
  3. Check age and last activity
  4. Flag PRs >5 days with no review
  5. For community PRs: ensure they have tests and follow conventions

Stale Policy

  • Issues with no activity in 14+ days: add stale label, comment asking for update
  • PRs with no activity in 7+ days: comment asking if still active
  • Auto-close stale issues after 30 days with no response (add closed-stale label)
# Find stale issues (no activity in 14+ days)
gh issue list --label "stale" --state open

# Find PRs with no recent activity
gh pr list --json number,title,updatedAt --jq '.[] | select(.updatedAt < "2026-03-01")'

CI/CD Operations

When CI fails:

  1. Check the workflow run: gh run view <run-id> --log-failed
  2. Identify the failing step
  3. Check if it is a flaky test vs real failure
  4. For real failures: identify the root cause and suggest a fix
  5. For flaky tests: note the pattern for future investigation
# List recent failed runs
gh run list --status failure --limit 10

# View failed run logs
gh run view <run-id> --log-failed

# Re-run a failed workflow
gh run rerun <run-id> --failed

Release Management

When preparing a release:

  1. Check all CI is green on main
  2. Review unreleased changes: gh pr list --state merged --base main
  3. Generate changelog from PR titles
  4. Create release: gh release create
# List merged PRs since last release
gh pr list --state merged --base main --search "merged:>2026-03-01"

# Create a release
gh release create v1.2.0 --title "v1.2.0" --generate-notes

# Create a pre-release
gh release create v1.3.0-rc1 --prerelease --title "v1.3.0 Release Candidate 1"

Security Monitoring

# Check Dependabot alerts
gh api repos/{owner}/{repo}/dependabot/alerts --jq '.[].security_advisory.summary'

# Check secret scanning alerts
gh api repos/{owner}/{repo}/secret-scanning/alerts --jq '.[].state'

# Review and auto-merge safe dependency bumps
gh pr list --label "dependencies" --json number,title
  • Review and auto-merge safe dependency bumps
  • Flag any critical/high severity alerts immediately
  • Check for new Dependabot alerts weekly at minimum

Quality Gate

Before completing any GitHub operations task:

  • all issues triaged have appropriate labels
  • no PRs older than 7 days without a review or comment
  • CI failures have been investigated (not just re-run)
  • releases include accurate changelogs
  • security alerts are acknowledged and tracked
Files1
1 files · 1.0 KB

Select a file to preview

Overall Score

78/100

Grade

B

Good

Safety

82

Quality

75

Clarity

80

Completeness

72

Summary

A GitHub operations skill that uses the gh CLI to manage issues, PRs, CI/CD workflows, releases, and security monitoring. The skill provides structured workflows for issue triage, PR review, debugging CI failures, release preparation, and Dependabot/security alert tracking.

Detected Capabilities

read GitHub issues/PRs/workflowswrite labels and comments to GitHubquery GitHub APIexecute gh CLI commandsread CI/CD logsmanage releasessecurity alert monitoring

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

triage github issuesmanage pull requestsdebug ci failuresprepare releasemonitor dependabot alertsgithub operationsstale pr cleanup

Risk Signals

INFO

API queries to GitHub security endpoints (Dependabot alerts, secret scanning) may expose sensitive security metadata, but scoped to repository-level authorization

Security Monitoring section, API calls to `/dependabot/alerts` and `/secret-scanning/alerts`
WARNING

Release creation uses `gh release create` which can publish public releases; no guardrail documented for preventing accidental pre-release to main release

Release Management section, `gh release create` commands
INFO

JQ filtering of API responses (`--jq` flag) processes raw JSON; no validation of output before use

Security Monitoring section, Dependabot/secret-scanning API calls

Use Cases

  • Triage GitHub issues and apply labels for classification
  • Monitor and manage pull request review status and merge readiness
  • Debug failed CI/CD workflows and identify root causes
  • Prepare releases with automated changelog generation
  • Monitor Dependabot alerts and manage dependency security updates
  • Identify and manage stale issues and PRs requiring follow-up
  • Track and acknowledge critical security scanning alerts

Quality Notes

  • Skill provides clear, actionable workflows for each GitHub operation domain with concrete command examples
  • Each section includes both conceptual steps and executable bash commands, making it practical for implementation
  • Well-defined scope boundaries: explicitly focuses on gh CLI operations and does not cover lower-level git commands
  • Stale policy is documented with specific timeframes (14+ days for issues, 7+ days for PRs, 30-day auto-close)
  • Quality gate at the end provides measurable acceptance criteria for task completion
  • Security monitoring section is comprehensive but lacks specific guidance on response priority or escalation procedures
  • Missing error handling guidance: no instructions for what to do if API calls fail, rate limits are hit, or gh auth is not configured
  • Assumes `gh auth login` is already complete; does not cover authentication troubleshooting
  • Release management lacks explicit guidance on when/how to use pre-releases vs stable releases
  • Good-first-issue labeling section is brief; could benefit from examples of qualifying issues
Model: claude-haiku-4-5-20251001Analyzed: Jul 14, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

v1.2

Content updated

2026-07-14

Latest
v1.1

Content updated

2026-04-20

v1.0

No changelog

2026-04-12

Use affaan-m/github-ops in your dev environment

Command Palette

Search for a command to run...