github-auth

github-auth is a skill for Claude Code from CHENyiru3/AI-Skills-Collections. It costs 43 tokens per session (529 once invoked), scanned A, a copy of github-auth, MIT.

A setup guide for authenticating an agent with GitHub through Git or the GitHub CLI. It covers HTTPS tokens, SSH keys, credential helpers, and choosing an available method.

In plain words
What is it for?
Use it to check the current login state and configure GitHub access with either Git credentials or the gh command-line tool.
Why use it?
It helps the agent access repositories, pull requests, issues, and continuous-integration jobs without assuming a particular authentication tool is installed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the platforms plugin — 10 skills shipped together

Good fit Use it to check the current login state and configure GitHub access with either Git credentials or the gh command-line tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chenyiru3/ai-skills-collections/github-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CHENyiru3/AI-Skills-Collections --skill github-auth
Clone the repo
git clone --depth 1 https://github.com/CHENyiru3/AI-Skills-Collections

Made for: Claude Code.

Or install platforms, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/github-auth/github.svg)](https://agentmods.dev/skills/chenyiru3/ai-skills-collections/github-auth)
Your own site
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/github-auth"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/github-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/github-auth"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/github-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00529
Opus 5.5 $0.00017 $0.00212
Sonnet 5.5 $0.00009 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured 20d ago against content hash b963d418fedf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/gh-env.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to github-auth — 279 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills-market/platforms/github/github-auth/SKILL.md · 55 lines

What it actually says

GitHub Authentication

Identify the required operation, GitHub host/repository and existing access path. A connected GitHub tool may already work even if the local gh/git client is not configured. Separate identity, authentication, repository permission and network failure; a DNS error is not evidence that a token needs replacement.

Prefer an existing credential manager, host connector or authenticated gh session. Use gh auth status or a scoped read when needed without displaying token material. The optional scripts/gh-env.sh uses gh auth status and local repository/env hints; it does not scrape credential files, print secrets, set global Git configuration or resolve a username. gh may contact the host to verify authentication. Inspect a shell script before sourcing it.

For a requested new login, use the provider's supported browser/device flow or a least-required token/account scope. Do not default to a broad classic repo/workflow credential when a narrower method covers the task. Keep secrets out of chat, URLs, process arguments, logs and committed files; use a protected input/store mechanism. Do not enable plaintext credential-store as the convenient default.

For SSH, reuse a suitable existing key/agent. Never overwrite a key path, expose a private key or generate an unencrypted key by default. Follow the chosen provider's public-key registration and host verification procedure. Limit configuration to the requested host/repository rather than rewriting all HTTPS URLs globally.

Git author identity is separate from access. Set repository-local identity only when a requested commit needs it and the value is known; do not invent an email or change global identity. git ls-remote proves read access only, not push permission. Validate the specific access needed without creating a test commit/publication.

Stop when the requested operation has suitable access, or report the exact missing credential/permission. Reference: gh auth login.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed · -193 lines · -5 tokens per session scan F → A b963d418fedf
  2. 2mo ago First seen · 248 lines · 48 tokens per session scan F 94a557d0ec94

Subscribe to this mod's changes

github-auth is a skill published in the GitHub repository CHENyiru3/AI-Skills-Collections (3 stars, last pushed 9d ago), licensed MIT. It adds 43 tokens to every session and 529 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to github-auth, differing in 279 lines, and is treated as a copy.

Related

github-auth compared with skills from other repositories

github-auth next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-authCHENyiru3/AI-Skills-CollectionsSkill39d agoMITA43Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k2d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1ktodayMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k13d agoMITA39Codex