trnt-ai/trent-agent-skills/github-tools
Claude Code and agent skill by trnt-ai/trent-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Mint GitHub App installation tokens and call GitHub REST API
Install
npx vskill@latest install trnt-ai/trent-agent-skills/github-toolsSKILL.md
The same SKILL.md was published earlier as trnt-ai/trent-agent-skills/github-tools.
GitHub Tools Skill
Provides authenticated access to the GitHub REST API using a GitHub App installation token. Use this skill for ALL GitHub API calls. Never hardcode tokens.
Token Minting
Mint a fresh installation token at the start of each agent run. Tokens expire after 1 hour.
Step 1 — Create a JWT
Step 2 — Exchange JWT for installation token
Save the returned token field. Use it as Bearer {installation_token} for all subsequent calls.
Script Helper
A Python helper script is available at scripts/mint-token.py in this skill directory. Run it with: python3 <skill_dir>/scripts/mint-token.py It reads env vars, signs the JWT via openssl (subprocess, PEM path passed — contents stay on disk), exchanges it for an installation token via urllib.request with a 10-second timeout, and prints the token to stdout. Errors go to stderr, non-zero exit on any failure (including a null token in the response body).
Stdlib only — no pip install step. Replaces a previous Node helper that hung indefinitely on https.request() on AL2023 ARM64 hosts; Python's urllib works fine on the same host class.
API Conventions
Always include these headers:
Rate Limits
- On
429: readRetry-Afterheader, wait that many seconds, retry - On
403withX-RateLimit-Remaining: 0: wait untilX-RateLimit-Reset(unix timestamp) - Max 3 retries per request, exponential backoff: 1s, 2s, 4s
Common Operations
List merged PRs since a timestamp
Get PR diff/files
Get PR details
List directory contents
Get file contents
Create a branch
Commit a file
Create a PR
Repos Reference
| Repo | Owner | Access | |
|---|---|---|---|
| HumberAgent | trnt-ai | Read (PRs, files) | |
| threat-dashboard | trnt-ai | Read (PRs, files) | |
| sdks | trnt-ai | Read + Write (docs/ only) |
Never write to HumberAgent or threat-dashboard. Never write outside docs/ in sdks.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcode-to-doc/skills/github-tools/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/trnt-ai/trent-agent-skills/github-tools)