GitHub CLI for GLCP Organization
Use GitHub CLI (gh) for all GitHub operations in the glcp organization instead of GitHub MCP server tools.
When to Use This Skill
ALWAYS use gh CLI for glcp organization when:
- •Viewing workflow runs and job logs
- •Accessing pull requests
- •Reading issues and comments
- •Getting commit details
- •Any other GitHub API operations
Problem: GitHub MCP server tools frequently return 404 errors for glcp organization resources, even when they exist.
Solution: Use gh CLI commands which have direct authentication and proper access.
Common Operations
Workflow Runs and Jobs
View workflow run with failed job logs:
gh run view <run-id> --repo glcp/<repo-name> --log-failed
View specific job details:
gh run view <run-id> --repo glcp/<repo-name> --job <job-id>
List workflow runs:
gh run list --repo glcp/<repo-name> --limit 10
Pull Requests
View PR details:
gh pr view <pr-number> --repo glcp/<repo-name>
Check PR status:
gh pr view <pr-number> --repo glcp/<repo-name> --json state,mergedAt
List PRs:
gh pr list --repo glcp/<repo-name> --limit 10
Issues
View issue:
gh issue view <issue-number> --repo glcp/<repo-name>
List issues:
gh issue list --repo glcp/<repo-name> --limit 10
Commits
View commit details:
gh api repos/glcp/<repo-name>/commits/<sha>
Best Practices
- •Always specify
--repo glcp/<repo-name>for clarity - •Use
--jsonflag for structured output when parsing is needed - •Pipe large outputs through
grep,head, ortailfor manageable results - •Save large outputs to temp files for analysis
Error Handling
If gh CLI returns authentication errors:
- •Check
gh auth status - •Re-authenticate with
gh auth login - •Ensure correct organization access
If resources truly don't exist, gh will provide clear error messages unlike the ambiguous 404s from MCP tools.