Agent skill

Git Gh Pat Auth

by NEventStore in NEventStore/NEventStore

A skill your agent uses when: authenticating git and GitHub CLI for NEventStore tasks, fixing gh auth errors, setting PAT environment variables, preparing a shell session for git push and gh issue…

MITAuto-check passedDevelopment

Install Git Gh Pat Auth

skills CLI
$ npx skills add NEventStore/NEventStore --skill git-gh-pat-auth -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NEventStore/NEventStore git-gh-pat-auth --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NEventStore/NEventStore.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-gh-pat-auth .claude/skills/git-gh-pat-auth && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-gh-pat-auth
GitHub stars
1.6k
Token cost
~828 tokens
SKILL.md length
372 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when: authenticating git and GitHub CLI for NEventStore tasks, fixing gh auth errors, setting PAT environment variables, preparing a shell session for git push and gh issue…

  • Works in 8 steps: Validate the token variable exists in… → If missing, stop and request the user to… → Export GH_TOKEN from GITHUB_NEventStore… → …
  • : authenticating git and GitHub CLI for NEventStore tasks
  • SKILL.md covers Outcome, When To Use, Required Input and Procedure, plus 5 more sections
  • Calls gh; needs GH_TOKEN

What it does

Git Gh Pat Auth is an agent skill from NEventStore/NEventStore. Use when: authenticating git and GitHub CLI for NEventStore tasks, fixing gh auth errors, setting PAT environment variables, preparing a shell session for git push and gh issue or pr commands.

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git workflow and Secrets management. It works with Git and GitHub. The repository describes itself as: A persistence agnostic Event Store for .NET. The licence is MIT.

When your agent uses it

  • : authenticating git and GitHub CLI for NEventStore tasks
  • Fixing gh auth errors
  • Setting PAT environment variables
  • Preparing a shell session for git push and gh issue

Example prompts

  • “/git-gh-pat-auth”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Validate the token variable exists in the current shell session.
  2. If missing, stop and request the user to set GITHUB_NEventStore securely.
  3. Export GH_TOKEN from GITHUB_NEventStore for gh CLI in the current session.
  4. Confirm gh authentication status.
  5. Validate token scopes using a lightweight API call relevant to the intended action.
  6. Configure git credential flow for the current operation
  7. Run the target git or gh command.
  8. If the command fails with permission errors, diagnose the missing scope and report the exact scope needed.

What it can do on your machine

Read from SKILL.md and the folder at commit 8f2e896. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GH_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Gh Pat Auth loads about 828 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 372 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~828

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NEventStore/NEventStore at commit 8f2e896, republished under its MIT licence (© NEventStore). 372 words, ~828 tokens.

Download SKILL.mdSave it as .claude/skills/git-gh-pat-auth/SKILL.md (or your agent's skills folder).
name
git-gh-pat-auth
description
Use when: authenticating git and GitHub CLI for NEventStore tasks, fixing gh auth errors, setting PAT environment variables, preparing a shell session for git push and gh issue or pr commands.
argument-hint
Goal, for example: create issue, push branch, open PR
user-invocable
false

Git And gh Authentication With PAT

Outcome

Prepare the current shell session so both git remote operations and gh CLI commands authenticate using a personal access token from the environment variable GITHUB_NEventStore.

When To Use

  • gh returns authentication or permission errors.
  • git push, fetch, or remote operations fail due to missing credentials.
  • You need a repeatable login flow without interactive prompts.
  • You are preparing automation that must avoid hardcoded secrets.

Required Input

  • Environment variable GITHUB_NEventStore containing a valid GitHub PAT.
  • Repository owner and name, when command scoping is needed.

Procedure

  1. Validate the token variable exists in the current shell session.
  2. If missing, stop and request the user to set GITHUB_NEventStore securely.
  3. Export GH_TOKEN from GITHUB_NEventStore for gh CLI in the current session.
  4. Confirm gh authentication status.
  5. Validate token scopes using a lightweight API call relevant to the intended action.
  6. Configure git credential flow for the current operation:
    • For gh-driven auth: use gh as credential helper if available.
    • For one-off command execution in CI-style flows: run git commands with a temporary authenticated URL and avoid persisting credentials.
  7. Run the target git or gh command.
  8. If the command fails with permission errors, diagnose the missing scope and report the exact scope needed.
Show full SKILL.md (164 more words)Show less

Decision Points

  • Missing GITHUB_NEventStore:
    • Stop and ask user to set it.
  • gh auth status shows not logged in:
    • Re-export GH_TOKEN and re-check.
  • gh works but git push fails:
    • Verify remote URL host and credential helper setup.
  • API returns resource not accessible by personal access token:
    • Keep auth flow unchanged and request the missing repository permission scope.

Validation Checklist

  • GH_TOKEN is populated from GITHUB_NEventStore in the active shell.
  • gh auth status is successful.
  • A read API check succeeds for the target repository.
  • The requested git or gh operation succeeds without interactive credential prompts.

Security Rules

  • Never print token values.
  • Never commit token values to files.
  • Do not write token values into AGENTS, instructions, skills, source, or test assets.
  • Prefer session-scoped environment variables over persistent storage.

Common Commands

PowerShell session setup:

powershell
$env:GH_TOKEN = $env:GITHUB_NEventStore
if ([string]::IsNullOrWhiteSpace($env:GH_TOKEN)) { throw "GITHUB_NEventStore is not set" }
gh auth status

Bash session setup:

bash
export GH_TOKEN="$GITHUB_NEventStore"
if [ -z "$GH_TOKEN" ]; then echo "GITHUB_NEventStore is not set"; exit 1; fi
gh auth status

Repository access check:

gh api repos/NEventStore/NEventStore > /dev/null

Completion Criteria

  • The target git or gh command is completed successfully.
  • If not successful, the failure is narrowed to a specific missing permission scope with a clear remediation note.

© NEventStore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/git-gh-pat-auth of NEventStore/NEventStore.

Open the folder on GitHubat commit 8f2e896

Compare with similar skills

Git Gh Pat Auth next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Gh Pat Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Gh Pat Auth this skillNEventStore/NEventStore1.6k—~828Automated safety check: PassMIT
Yao Workspace Git ConfigYaoApp/yao8.1k—~712Automated safety check: PassCustom licence
Ansible Backport Creatoransible/ansible71k—~1.2kAutomated safety check: PassGPL-3.0
Hunk Release Workflowmodem-dev/hunk9.5k—~3.8kAutomated safety check: PassMIT
Worktrunk Release Workflowmax-sixty/worktrunk9k—~6.9kAutomated safety check: PassCustom licence
ZCF Release AutomationUfoMiao/zcf6.1k—~3.4kAutomated safety check: PassMIT

Similar skills

  • Manages Git identity, HTTPS access tokens and SSH keys at the workspace level through three `tai tool` commands, each with a get, set, list, import or delete action.

    8.1k GitHub stars~712 tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Creates backports of a merged Ansible devel pull request onto the right stable branches by cherry-picking its merge commit onto new backport branches.

    71k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Hunk Release Workflow

    modem-dev/hunk

    Maintainer workflow for preparing, publishing, verifying and curating Hunk releases, with confirmation gates before tags, publishes and public edits.

    9.5k GitHub stars~3.8k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Worktrunk Release Workflow

    max-sixty/worktrunk

    Walks a maintainer through cutting a Worktrunk release: sync the release branch, pass two test gates, review the changes, then publish.

    9k GitHub stars~6.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Automates a version release with changesets: analyzes code changes, writes a bilingual CHANGELOG, bumps the version and commits through a release branch and pull request.

    6.1k GitHub stars~3.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • ClawRouter Release Checklist

    BlockRunAI/ClawRouter

    Walks the agent through every ClawRouter release step in order, from the version bump and changelog entry to build, tests, npm publish, git tag and GitHub release.

    6.6k GitHub stars~1.4k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from NEventStore/NEventStore

  • Add Persistence Or Serializer

    NEventStore/NEventStore

    A skill your agent uses when: adding a new persistence provider, adding a new serializer, reviewing an existing serializer implementation, wiring up a new storage backend, or checking whether a…

    1.6k GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Git Gh Pat Auth

What does Git Gh Pat Auth do?

A skill your agent uses when: authenticating git and GitHub CLI for NEventStore tasks, fixing gh auth errors, setting PAT environment variables, preparing a shell session for git push and gh issue…. Git Gh Pat Auth is an agent skill from NEventStore/NEventStore. Use when: authenticating git and GitHub CLI for NEventStore tasks, fixing gh auth errors, setting PAT environment variables, preparing a shell session for git push and gh issue or pr commands.

When should I use Git Gh Pat Auth?

Git Gh Pat Auth fits situations like: : authenticating git and GitHub CLI for NEventStore tasks; fixing gh auth errors; setting PAT environment variables; preparing a shell session for git push and gh issue.

How do I install Git Gh Pat Auth in Claude Code?

Run `npx skills add NEventStore/NEventStore --skill git-gh-pat-auth -a claude-code`. Or copy the skill folder (.agents/skills/git-gh-pat-auth in NEventStore/NEventStore) into .claude/skills/git-gh-pat-auth in your project. Claude Code loads it when a task matches its description.

How do I install Git Gh Pat Auth in Codex?

Run `npx skills add NEventStore/NEventStore --skill git-gh-pat-auth -a codex`. Or copy the skill folder (.agents/skills/git-gh-pat-auth in NEventStore/NEventStore) into .agents/skills/git-gh-pat-auth in your project. Codex loads it when a task matches its description.

Can I use Git Gh Pat Auth in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NEventStore/NEventStore --skill git-gh-pat-auth -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-gh-pat-auth, .gemini/skills/git-gh-pat-auth, .github/skills/git-gh-pat-auth and .opencode/skills/git-gh-pat-auth in your project.

What does Git Gh Pat Auth need to run?

Going by SKILL.md and its folder, Git Gh Pat Auth needs the command-line tools its instructions call (gh) and credentials named GH_TOKEN.

Does Git Gh Pat Auth access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Gh Pat Auth safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Gh Pat Auth use?

Git Gh Pat Auth is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Gh Pat Auth use?

About 828 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Gh Pat Auth?

Skills that share tags, products or a category with Git Gh Pat Auth: Yao Workspace Git Config (YaoApp/yao, 8.1k stars), Ansible Backport Creator (ansible/ansible, 71k stars), Hunk Release Workflow (modem-dev/hunk, 9.5k stars) and Worktrunk Release Workflow (max-sixty/worktrunk, 9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Gh Pat Auth?

NEventStore (a GitHub organization) maintains it in NEventStore/NEventStore, which has 1,613 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on July 22, 2026.

Source: NEventStore/NEventStore on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.