Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Abd0r/porcupineai --skill github-auth명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | github-auth |
| description | Set up GitHub auth via gh CLI, HTTPS token, or SSH. |
| stack | vcs |
| tags | ["github","auth","gh","git","ssh","token"] |
Any GitHub work before PRs, issues, authenticated clone, or API calls.
bash for gh, git, ssh, curlgit --version
command -v gh >/dev/null && gh --version || echo "gh not installed"
gh auth status 2>/dev/null || echo "gh not authenticated"
test -n "${GH_TOKEN:-${GITHUB_TOKEN:-}}" && echo "token env set" || echo "no GH_TOKEN/GITHUB_TOKEN"
Decision:
gh auth status OK → use gh for everythinggh installed, not authed → Method Agh → Method B (git + token) or Method C (SSH)# Interactive device login (user completes in browser)
gh auth login -h github.com -p https -w
# Or token from env (do not echo the token back into chat)
# printf '%s\n' "$GH_TOKEN" | gh auth login --with-token
gh auth status
gh api user --jq .login
Useful scopes: repo, read:org, workflow (Actions), gist optional.
User creates classic PAT at https://github.com/settings/tokens
Scopes: repo (+ workflow if Actions, read:org for org repos).
git config --global credential.helper store
# First remote op prompts once: username = GitHub login, password = PAT
git ls-remote https://github.com/<user>/<repo>.git
Env fallback for API without gh:
: "${GITHUB_TOKEN:=${GH_TOKEN:-}}"
# Optional one-key load from Porcupine home (never dump the whole file):
# set -a; source <(grep -E '^(GH_TOKEN|GITHUB_TOKEN)=' ~/.porcupine/agent/.env 2>/dev/null); set +a
curl -sS -H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/user
test -f ~/.ssh/id_ed25519.pub || ssh-keygen -t ed25519 -C "porcupine" -f ~/.ssh/id_ed25519 -N ""
cat ~/.ssh/id_ed25519.pub
# User adds key at https://github.com/settings/keys
ssh -T git@github.com
git remote set-url origin git@github.com:OWNER/REPO.git
bash (not Hermes terminal)~/.porcupine/agent/ (not ~/.hermes)gh auth status 2>/dev/null || true
git ls-remote origin HEAD 2>/dev/null | head -1