github-app-token

Community

Keep GitHub App tokens refreshed and valid

Authornsheaps
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates management of GitHub App installation tokens in Claude Code sessions to prevent auth failures from expired tokens, simplify initial setup, and enable shared access for agent teams.

Core Features & Use Cases

  • Automatic Token Generation & Refresh: Generates JWTs from a PEM private key, exchanges them for one-hour installation tokens, and refreshes tokens when nearing expiry.
  • Session Integration & Hooks: Provides a SessionStart hook to initialize credentials and a debounced PreToolUse hook to synchronously or asynchronously check and refresh tokens with retry/backoff logic.
  • Secure Local Storage & Team Sharing: Writes tokens to a secured file with proper permissions, supports file-based locking to avoid race conditions, and allows multiple agents to read the same token file for coordinated access.

Quick Start

Source the plugin environment and ask the assistant to refresh or check the GitHub App installation token for the current session.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: github-app-token
Download link: https://github.com/nsheaps/ai-mktpl/archive/main.zip#github-app-token

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.