Agent Skills
› fcakyon/claude-codex-settings
› setup
setup
GitHub提供 GitHub CLI (gh) 的配置、认证及故障排除指南,涵盖状态检查、登录流程、验证方法及常见问题修复。
Trigger Scenarios
GitHub CLI 配置
gh 认证失败
GitHub CLI 连接错误
Install
npx skills add fcakyon/claude-codex-settings --skill setup -g -y
SKILL.md
Frontmatter
{
"name": "setup",
"description": "This skill should be used when the user asks \"how to setup GitHub CLI\", \"configure gh\", \"gh auth not working\", \"GitHub CLI connection failed\", \"gh CLI error\", or needs help with GitHub authentication."
}
GitHub CLI Setup
Configure gh CLI for GitHub access.
Check Current Status
gh auth status
Report one of these states:
ghis not authenticated and needs loginghis authenticated, including the current username if available
Login Flow
If authentication is missing or broken, guide the user through:
gh auth login
Select: GitHub.com -> HTTPS -> Login with browser
Verify Authentication
gh auth status
gh api user --jq '.login'
Troubleshooting
If gh commands fail:
- Check authentication -
gh auth status - Re-login if needed -
gh auth login - Check scopes - Ensure the token has repo access
- Refresh auth -
gh auth refresh - Update gh -
brew upgrade ghor equivalent
Version History
- 9d0ce8b Current 2026-07-25 10:34


