# Github Integration

> Use when building GitHub-based features - Explains auth token usage, Gist reading/writing and rendering helpers.

- Skill: `tomevault-io/github-integration` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/github-integration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/github-integration/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/github-integration

---


## GitHub tokens and auth

- Check whether `github-device-login-token` is already in local storage before prompting users.
- When the token is missing or lacks scopes, direct users to `/tools/github-device-login/` to refresh authorization.

## Gists

- Review `tools/scratch-pad/index.html` for an end-to-end example of creating and saving Gists.
- Render saved HTML gists at `https://gistpreview.github.io/?${encodeURIComponent(gistId)}` to preview their content.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/dave1010) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

