gh-workflow
FreeNo executable scriptsNot checkedGitHub CLI (gh) workflow automation for repository management, issue tracking, pull request workflows, GitHub Actions debugging, GitHub Projects (multi-repo…
by nasrulhazim★ 26 GitHub starsAbout this skill
GitHub CLI Workflow
Automate GitHub operations — from issue tracking to release management — using the gh CLI. Assumes gh auth login has been completed.
Command Reference
| Command | Description |
|---|---|
/gh issue |
Create, list, search, triage, and close issues |
/gh pr |
Create PRs, request reviews, check status, merge |
/gh actions |
List, trigger, watch, and debug workflow runs |
/gh repo |
Create, clone, fork repos; manage settings and visibility |
/gh release |
Create releases with assets, manage downloads |
/gh labels |
Scaffold and sync label sets across repositories |
/gh secrets |
Manage repository and environment secrets and variables |
/gh project |
Create and manage GitHub Projects — boards, custom fields, views, multi-repo tracking |
/gh report |
Generate repository and project reports in HTML, JSON, or Markdown format |
/gh api |
Raw GitHub API calls for advanced operations |
1. /gh issue — Issue Management
Create, list, search, and triage GitHub issues.
Create an Issue
gh issue create \
--title "Bug: login fails with SSO" \
--body "$(cat <<'EOF'
## Description
Login fails when using SSO provider.
## Steps to Reproduce
1. Click "Login with SSO"
2. Complete SSO flow
3. Redirected back with 500 error
## Expected Behaviour
User should be logged in and redirected to dashboard.
## Environment
- Laravel 12.x
- PHP 8.4
- Production
EOF
)" \
--label "bug,priority:high" \
--assignee "@me"
List and Filter Issues
# List open issues assigned to me
gh issue list --assignee "@me" --state open
# Search issues with filters
gh issue list --label "bug" --state open --limit 50
# Search across repos with query
gh search issues "login SSO" --repo owner/repo --state open
# JSON output for scripting
gh issue list --json number,title,labels,assignees --jq '.[] | "\(.number) \(.title)"'
Triage Workflow
# Add labels to an issue
gh issue edit 123 --add-label "priority:high,bug"
# Assign an issue
gh issue edit 123 --add-assignee "username"
# Add to a milestone
gh issue edit 123 --milestone "v2.0"
# Add a comment
gh issue comment 123 --body "Investigating — likely related to #120"
# Close with reason
gh issue close 123 --reason "completed" --comment "Fixed in #125"
Issue Templates
Create .github/ISSUE_TEMPLATE/bug_report.yml:
name: Bug Report
description: Report a bug or unexpected behaviour
labels: ["bug", "triage"]
body:
- type: textarea
id: description
attributes:
label: Description
description: What happened?
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to Reproduce
description: How can we reproduce this?
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behaviour
description: What should have happened?
validations:
required: true
- type: dropdown
id: severity
attributes:
label: Severity
options:
- Critical (app unusable)
- High (major feature broken)
- Medium (workaround exists)
- Low (cosmetic / minor)
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: "PHP version, Laravel version, OS, browser, etc."
Create .github/ISSUE_TEMPLATE/feature_request.yml:
name: Feature Request
description: Suggest a new feature or improvement
labels: ["enhancement"]
body:
- type: textarea
id: problem
attributes:
label: Problem
description: What problem does this solve?
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed Solution
description: How should this work?
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives Considered
description: What other approaches did you consider?
See references/gh-issue-patterns.md for advanced search queries and bulk operations.
2. /gh pr — Pull Request Workflow
Create, review, check status, and merge pull requests.
Create a Pull Request
# Basic PR creation
gh pr create \
--title "feat(auth): add SSO login support" \
--body "$(cat <<'EOF'
## Summary
- Add SSO authentication via SAML 2.0
- Support Azure AD and Okta providers
- Auto-provision users on first login
## Test plan
- [ ] SSO login flow with Azure AD
- [ ] SSO login flow with Okta
- [ ] User auto-provisioning
- [ ] Fallback to standard login
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)" \
--reviewer "teammate1,teammate2" \
--label "feature" \
--milestone "v2.0"
# Create draft PR
gh pr create --title "wip: SSO support" --draft
# Create PR targeting a specific base branch
gh pr create --base develop --title "feat: SSO support"
Review Workfl
Install gh-workflow in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the gh-workflow skill do?
GitHub CLI (gh) workflow automation for repository management, issue tracking, pull request workflows, GitHub Actions debugging, GitHub Projects (multi-repo boards with custom fields, views, and workflows), label management, secrets handling, and advanced API operations. Complements git-workflow by covering GitHub-specific operations via the gh CLI. Trigger: "create issue", "list PRs", "check workflow status", "manage labels", "set up repo", "manage secrets", "gh api", "review PR", "merge PR", "create release with assets", "debug actions", "fork repo", "create project", "manage project board", "add to project", "project status", "generate report", "repo report", "activity report", "contributor report". BM: "buat issue", "senarai PR", "semak status workflow", "urus label", "sediakan repo", "urus secrets", "semak PR", "gabung PR", "buat release", "debug actions", "fork repo", "buat project", "urus project board", "tambah ke project", "status project", "jana laporan", "laporan repo", "laporan aktiviti".
How do I install the gh-workflow skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the gh-workflow skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic