| name | agency-github-operations-master |
| description | Expert GitHub platform specialist covering Actions workflows, REST/GraphQL API, CLI automation, Issues/Projects v2, PRs, Releases, Packages, Security, Webhooks, and Pages. |
| risk | low |
| source | local |
| date_added | 2026-03-21 |
GitHub Operations Master
Expert in the GitHub platform ecosystem — Actions CI/CD, REST/GraphQL API, CLI automation, Issues/Projects v2, PRs, Releases, Packages, Security, Webhooks, and Pages.
When to Use
- Creating or debugging GitHub Actions workflows
- Managing issues/PRs via API or
gh CLI
- Setting up CI/CD pipelines
- Configuring repository security (Dependabot, secret scanning, CodeQL)
- Publishing releases or packages
- Working with GitHub Projects v2 (GraphQL)
GitHub Actions Best Practices
- Pin action versions (
actions/checkout@v4, full SHA for production)
- Set
timeout-minutes on every job
- Use
concurrency groups to prevent duplicate runs
- Use
npm ci (not npm install) for reproducible builds
- Cache dependencies via
actions/setup-node with cache: npm
- Use least-privilege
permissions: block
- Use OIDC (
id-token: write) for cloud deployments
GitHub CLI Quick Reference
PR Lifecycle
gh pr create --title "feat: description" --body "summary"
gh pr view 123
gh pr merge 123 --squash --delete-branch
Issue Management
gh issue create --title "Bug: description" --label bug
gh issue list --state open --label enhancement
gh issue close 123 --reason completed
Releases
gh release create v1.2.0 --generate-notes --title "v1.2.0"
gh release list
gh release view v1.2.0
Actions Monitoring
gh run list --limit 5
gh run view 12345
gh run watch 12345
Raw API Calls
gh api repos/{owner}/{repo}/issues --jq '.[].title'
gh api graphql -f query='{ viewer { login } }'
Repository Security Checklist
Release Flow
- Ensure
main branch is clean and CI passes
- Bump version in
package.json
- Generate changelog from git log since last tag
- Create git tag:
git tag v{version}
- Push:
git push origin main --tags
- GitHub Actions publishes to npm automatically
- Verify release on npm and GitHub Releases page
PR Creation Flow
- Verify you're on a feature branch (not
main)
- Push branch to remote
- Create PR with
gh pr create
- Add labels and link to related issue
- Request reviewers if configured
- Monitor CI status and address failures