bass-projects/skills-from-my-life/github-https-repo-auth
Claude Code and agent skill by bass-projects/skills-from-my-life
- community
Checking that the SKILL.md file is still in the repository.
Diagnose and guide GitHub HTTPS git push/pull authentication for one repository without logging out existing GitHub accounts or switching to SSH. Use when the user wants repo-scoped GitHub HTTPS credentials, personal access token setup, macOS Keychain/git credential helper repair, separate GitHub account publishing, 403 push errors, "could not read Password", "Device not configured", or credential.useHttpPath workflows.
Install
npx vskill@latest install bass-projects/skills-from-my-life/github-https-repo-authSKILL.md
The same SKILL.md was published earlier as bass-projects/skills-from-my-life/github-https-repo-auth.
GitHub HTTPS Repo Auth
Use this skill when the user needs GitHub HTTPS authentication for a specific repo, especially when they do not want to log out of an existing GitHub account or use SSH.
Be careful, current, and token-safe. Do not ask the user to paste secrets into chat. Do not print, retrieve, expose, or log tokens. If GitHub UI labels differ from memory, verify with official GitHub docs or ask the user what page they are on instead of guessing.
Core Rule
Respect the transport the user chose.
If the user asks for HTTPS, solve HTTPS. Do not pivot to SSH unless the user explicitly asks for an SSH alternative.
Safety Rules
- Never ask the user to paste a PAT, password, OTP, or API key into chat.
- Have the user paste tokens only into their local terminal prompt.
- Use
read -rsp "GitHub token: " GH_TOKEN; echoinstead of putting tokens directly in shell commands. - Unset token variables after use.
- Do not run commands that would print a stored credential unless the token is masked before output.
- Prefer repo-local git config over global config.
First Diagnosis
Check the actual state before advising:
Interpret common failures:
Could not resolve host: github.com: network or sandbox/DNS problem, not credentials.could not read Password ... Device not configured: Git did not find a usable HTTPS credential.The requested URL returned error: 403: authentication worked, but the token/account lacks permission for the repo/action.Repository not found: wrong repo URL, repo does not exist, or authenticated account has no access.denied to USER: GitHub recognizedUSER, but that user/token cannot write to the repo.
Repo-Scoped HTTPS Credential Setup
For macOS Keychain or any configured Git credential helper, scope the credential to this repo path:
printf "protocol=https\nhost=github.com\npath=OWNER/REPO.git\nusername=USERNAME\n\n" | git credential reject
read -rsp "GitHub token: " GH_TOKEN; echo printf "protocol=https\nhost=github.com\npath=OWNER/REPO.git\nusername=USERNAME\npassword=$GH_TOKEN\n\n" | git credential approve unset GH_TOKEN
git push origin BRANCH
printf "protocol=https\nhost=github.com\npath=OWNER/REPO.git\nusername=USERNAME\n\n" \
| git credential fill \ |
|---|
| sed -n '/^username=/p; /^password=/s/.*/password=<present>/p' |
username=USERNAME password=<present>
read -rsp "GitHub token: " GH_TOKEN; echo
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevelop/SE/github-https-repo-auth/SKILL.md
Popularity
- 7-day trend score
- 0
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/bass-projects/skills-from-my-life/github-https-repo-auth)