Agent skill
ghapp
Give your AI agents and automations their own GitHub (App) identity. Authenticate using GitHub Apps so every commit, PR, and action is attributed to the bot — not your personal account.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ghapp
Metadata
Additional technical details for this skill
- clawdbot
-
{ "emoji": "\ud83d\udd11", "install": [ { "id": "brew", "bins": [ "ghapp" ], "kind": "brew", "label": "Install ghapp (brew)", "formula": "operator-kit/tap/ghapp" }, { "id": "bash", "bins": [ "ghapp" ], "kind": "bash", "label": "Install ghapp (bash)", "command": "curl -sSL https://raw.githubusercontent.com/operator-kit/ghapp-cli/main/install.sh | bash" } ], "requires": { "bins": [ "ghapp" ] } }
SKILL.md
ghapp
Use ghapp to authenticate as a GitHub App and use git/gh with installation tokens. Requires a GitHub App with App ID, Installation ID, and a private key (.pem).
Setup (once) — interactive
ghapp setup— prompts for App ID, Installation ID, key path; optionally configures git+gh auth
Setup (once) — non-interactive (scripted/LLM)
ghapp config set --app-id 123 --installation-id 456 --private-key-path /path/to/key.pem- Or with keyring:
ghapp config set --app-id 123 --installation-id 456 --import-key /path/to/key.pem - Then:
ghapp auth configure --gh-auth shell-function
Post-setup
ghapp auth configure— configure git credential helper, gh CLI auth, and git identity (if skipped during setup)ghapp auth status— show current auth config and diagnostics
Common commands
- Get token:
ghapp token(cached;--no-cachefor fresh) - Configure auth:
ghapp auth configure [--gh-auth shell-function|path-shim|none] - Check status:
ghapp auth status - Reset auth:
ghapp auth reset [--remove-key] - Config:
ghapp config set,ghapp config get [key],ghapp config path - Self-update:
ghapp update - Version:
ghapp version
gh auth modes
--gh-auth shell-function— wrapsghvia shell function injecting fresh token per call (recommended)--gh-auth path-shim— installs wrapper binary asghearlier in PATH (CI/containers)--gh-auth none— only writeshosts.yml(token expires ~1hr)
Notes
- After setup+auth configure,
git clone/push/pullandghcommands work transparently — no manual tokens. - SSH-style URLs (
[email protected]:...) are auto-rewritten to HTTPS. - Commits are attributed to the app's bot account (e.g.,
myapp[bot]). - Tokens are cached locally;
ghapp tokenreturns in <10ms on cache hit. - Config lives at
~/.config/ghapp/config.yaml. - Env overrides:
GHAPP_APP_ID,GHAPP_INSTALLATION_ID,GHAPP_PRIVATE_KEY_PATH,GHAPP_NO_UPDATE_CHECK=1. - Private key can be stored on disk (default) or imported into OS keyring with
--import-key.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?