Agent skill
working-github-cli
Use when working with GitHub repositories, pull requests, issues, releases, or other GitHub operations via the gh CLI
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/working-github-cli
SKILL.md
Working with GitHub CLI
Use the gh CLI tool via the Bash tool for all GitHub operations.
Authentication & Account Issues
IMPORTANT: If you encounter "repository not found" or authentication errors:
-
Check authentication status:
bashgh auth status -
If multiple accounts are configured, try switching accounts:
bashgh auth switch -
If not authenticated, prompt user to run:
bashgh auth login
Commands & Usage
See @common-commands.md for detailed command reference, examples, and common operations.
Best Practices
- Use
ghcommands instead of git+web workflows when possible - Always check
gh <command> --helpfor options - Use
--jsonflag for machine-readable output when parsing - Use heredoc for multiline bodies (PR descriptions, issue bodies)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?