PluginBench
Skill
Review
Audit score 70

github-ops

affaan-m/everything-claude-code

Manage GitHub issues, PRs, CI/CD, releases, and security using gh CLI.

What is github-ops?

GitHub Operations automates repository management tasks including issue triage, PR review, CI/CD debugging, release preparation, and security monitoring. Use it when you need to classify issues, manage pull requests, investigate workflow failures, prepare releases, or monitor Dependabot alerts.

  • Triage issues by type and priority with automated labeling
  • Review PR status, CI checks, and identify stale pull requests
  • Debug CI/CD failures and re-run failed workflows
  • Generate changelogs and create releases with release notes
  • Monitor Dependabot and security scanning alerts
  • Manage contributor experience and flag community PRs needing attention

How to install github-ops

npx skills add https://github.com/affaan-m/everything-claude-code --skill github-ops
Prerequisites
  • gh CLI installed and configured
  • Repository access via gh auth login
Claude Code
Cursor
Windsurf
Cline

How to use github-ops

  1. 1.Run gh issue list or gh pr list to view items needing action
  2. 2.For issues: read title/body, search for duplicates, apply labels with gh issue edit --add-label
  3. 3.For PRs: check CI status with gh pr checks, verify mergeable status, flag if >5 days without review
  4. 4.For CI failures: use gh run view <run-id> --log-failed to identify failing steps and root cause
  5. 5.For releases: review merged PRs, create release with gh release create --generate-notes
  6. 6.For security: check Dependabot alerts via gh api and review/merge safe dependency updates

Use cases

Good for
  • Classifying and labeling incoming issues by type (bug, feature-request, question) and priority (critical, high, medium, low)
  • Reviewing merged PRs since last release to generate accurate changelogs
  • Identifying and commenting on stale issues (14+ days) and PRs (7+ days) with no activity
  • Investigating failed CI workflows to determine if failures are real or flaky tests
  • Checking Dependabot alerts and auto-merging safe dependency bumps
Who it's for
  • Open-source maintainers managing community contributions
  • DevOps engineers handling CI/CD operations and release management
  • Repository owners triaging issues and managing PR workflows
  • Teams monitoring security alerts and dependency updates

github-ops FAQ

What's the difference between this and basic git commands?

GitHub Operations uses gh CLI to manage repository-level tasks like issue triage, PR review workflows, CI debugging, and release management—beyond simple git push/pull operations.

How do I identify stale issues and PRs?

Use gh issue list --label "stale" for issues with 14+ days inactivity, and gh pr list with --json updatedAt to find PRs without recent activity. Comment asking for updates before auto-closing.

Can this skill auto-merge pull requests?

Yes, you can auto-merge safe dependency bumps and other PRs using gh pr merge, but the skill focuses on review and investigation rather than automatic merging.

How do I generate a changelog for a release?

Review merged PRs since the last release using gh pr list --state merged --base main, then create a release with gh release create --generate-notes to auto-populate from PR titles.

What should I do if CI is failing?

Use gh run view <run-id> --log-failed to check the failing step, determine if it's a real failure or flaky test, identify root cause, and either fix the code or re-run with gh run rerun <run-id> --failed.

Full instructions (SKILL.md)

Source of truth, from affaan-m/everything-claude-code.


name: github-ops description: 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. metadata: origin: ECC

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