gh-auth
Skill1 starsChanged 50 days agoMITView on GitHub
Enforce safe authentication behavior for GitHub and other CLIs. Use when handling credentials, checking auth status, or debugging agent auth failures so login churn and lockouts never happen.
- Reads credentials
In this repository113 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-ideateSkill
- ac-listSkill
- ac-roadmapSkill
- agentbridge-mcpSkill
- almanacSkill
- almquist-shellSkill
- ansible-fleetSkill
- apfsSkill
- apple-siliconSkill
- arena-actorsSkill
- asustor-nasSkill
- a-teamSkill
- atem-miniSkill
- at-tuiSkill
- autoresearchSkill
- babysitSkill
- bonzibuddySkill
- bop-brainstormSkill
- bop-catalogSkill
- bop-onSkill
- bop-teamSkill
- bop-workflowSkill
- bsd-portabilitySkill
- code-refactoringSkill
- codex-personasSkill
- context-graphSkill
- councilSkill
- datadog-backupSkill
- dd-tagsSkill
- delegateSkill
- deming-pdsaSkill
- deterministic-replaySkill
- dispatch-nuSkill
- durable-commitSkill
- elixir-gastown-opsSkill
- ergo-ircSkill
- esp32-tang-bridgeSkill
- fleet-evalSkill
- fleet-ircSkill
- freebsd-build-vmSkill
- freebsd-piSkill
- freebsdSkill
- ganttSkill
- gastown-opsSkill
- gastown-slingSkill
- gitea-releaseSkill
- gitea-runnerSkill
- henshuSkill
- irclaw-cluster-opsSkill
- irclaw-research-teamSkill
- irc-taskSkill
- jail-factorySkill
- jjSkill
- jobcard-systemSkill
- kubernetesSkill
- leptosSkill
- loreSkill
- lower-bound-reviewSkill
- macvlan-netSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill whenever auth is involved.
- Distinctive: line 12
Never run interactive login commands unless the user explicitly asks for login in this turn.
- Distinctive: line 13
Never repeat login attempts in a loop.
- Distinctive: line 14
If auth status is already healthy, stop there and continue the task.
- Distinctive: line 15
Prefer non-interactive credential propagation (env vars, instructions-path policy, secure files) over re-auth.
- Distinctive: line 20
If healthy, do not mutate auth state.
- Distinctive: line 21
If unhealthy, choose one:
- Distinctive: line 23
Use existing token/secret delivery already provided by the operator.
- Very specific: line 43
If no non-interactive credential is available, patch issue status to blocked with concise unblock instructions.
- Distinctive: line 44
Do not start auth flows from heartbeat loops.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
gh-auth
Use this skill whenever auth is involved.
Non-negotiable rules
- Never run interactive login commands unless the user explicitly asks for login in this turn.
- Never repeat login attempts in a loop.
- If auth status is already healthy, stop there and continue the task.
- Prefer non-interactive credential propagation (env vars, instructions-path policy, secure files) over re-auth.
Safe auth flow
- Check status only.
- If healthy, do not mutate auth state.
- If unhealthy, choose one:
- Continue read-only work without auth.
- Use existing token/secret delivery already provided by the operator.
- Mark blocked with exact unblock action.
Allowed checks (read-only)
gh auth status -h github.com || true
git config --global --get credential.helper || true
env | grep -E '^(GH_TOKEN|GITHUB_TOKEN)=' || trueForbidden by default
gh auth logingh auth logout- any browser/device-code auth initiation
Paperclip-specific guidance
- For agent runs, prefer setting
adapterConfig.env.GH_TOKENthrough the Paperclip API. - If no non-interactive credential is available, patch issue status to
blockedwith concise unblock instructions. - Do not start auth flows from heartbeat loops.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

