nativ3ai/hermes-agent-camel/github-auth
Claude Code and agent skill by nativ3ai/hermes-agent-camel
- community
Checking that the SKILL.md file is still in the repository.
GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login.
Install
npx vskill@latest install nativ3ai/hermes-agent-camel/github-authSKILL.md
GitHub Authentication Setup
This skill sets up authentication so the agent can work with GitHub repositories, PRs, issues, and CI. It covers two paths:
- `git` (always available) — uses HTTPS personal access tokens or SSH keys
- `gh` CLI (if installed) — richer GitHub API access with a simpler auth flow
Detection Flow
When a user asks you to work with GitHub, run this check first:
Decision tree:
- If
gh auth statusshows authenticated → you're good, useghfor everything - If
ghis installed but not authenticated → use "gh auth" method below - If
ghis not installed → use "git-only" method below (no sudo needed)
Method 1: Git-Only Authentication (No gh, No sudo)
This works on any machine with git installed. No root access needed.
Option A: HTTPS with Personal Access Token (Recommended)
This is the most portable method — works everywhere, no SSH config needed.
Step 1: Create a personal access token
Tell the user to go to: https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Give it a name like "hermes-agent"
- Select scopes:
repo(full repository access — read, write, push, PRs)workflow(trigger and manage GitHub Actions)read:org(if working with organization repos)- Set expiration (90 days is a good default)
- Copy the token — it won't be shown again
Step 2: Configure git to store the token
After entering credentials once, they're saved and reused for all future operations.
Alternative: cache helper (credentials expire from memory)
Alternative: set the token directly in the remote URL (per-repo)
Step 3: Configure git identity
Step 4: Verify
Option B: SSH Key Authentication
Good for users who prefer SSH or already have keys set up.
Step 1: Check for existing SSH keys
Step 2: Generate a key if needed
Tell the user to add the public key at: https://github.com/settings/keys
- Click "New SSH key"
- Paste the public key content
- Give it a title like "hermes-agent-<machine-name>"
Step 3: Test the connection
Step 4: Configure git to use SSH for GitHub
Step 5: Configure git identity
Method 2: gh CLI Authentication
If gh is installed, it handles both API access and git credentials in one step.
Interactive Browser Login (Desktop)
Token-Based Login (Headless / SSH Servers)
Verify
Using the GitHub API Without gh
When gh is not available, you can still access the full GitHub API using curl with a personal access token. This is how the other GitHub skills implement their fallbacks.
Setting the Token for API Calls
Extracting the Token from Git Credentials
If git credentials are already configured (via credential.helper store), the token can be extracted:
Helper: Detect Auth Method
Use this pattern at the start of any GitHub workflow:
Troubleshooting
| Problem | Solution | |
|---|---|---|
git push asks for password | GitHub disabled password auth. Use a personal access token as the password, or switch to SSH | |
remote: Permission to X denied | Token may lack repo scope — regenerate with correct scopes | |
fatal: Authentication failed | Cached credentials may be stale — run git credential reject then re-authenticate | |
ssh: connect to host github.com port 22: Connection refused | Try SSH over HTTPS port: add Host github.com with Port 443 and Hostname ssh.github.com to ~/.ssh/config | |
| Credentials not persisting | Check git config --global credential.helper — must be store or cache | |
| Multiple GitHub accounts | Use SSH with different keys per host alias in ~/.ssh/config, or per-repo credential URLs | |
gh: command not found + no sudo | Use git-only Method 1 above — no installation needed |
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/github/github-auth/SKILL.md
Popularity
- Repository stars
- 193
- Repository forks
- 18
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nativ3ai/hermes-agent-camel/github-auth)