github-integration

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

⭐2stars🔀0forks📁View on GitHub🕐Updated Dec 11, 2025⬇️2downloads

When & Why to Use This Skill

This Claude skill streamlines the development of GitHub-integrated features by providing comprehensive guidance on authentication token management and Gist operations. It simplifies the process of handling device login tokens, creating, reading, and rendering Gists, ensuring developers can efficiently implement secure and functional GitHub workflows within their applications while adhering to best practices for API integration.

Use Cases

  • Implementing secure GitHub authentication workflows by managing device login tokens and handling authorization refreshes.
  • Automating the creation, reading, and storage of code snippets or data logs using the GitHub Gists API.
  • Developing web-based preview features for HTML content hosted on Gists using specialized rendering helpers.
  • Streamlining developer onboarding for GitHub-based tools by providing clear instructions on token scopes and local storage management.
namegithub-integration
description"Use when building GitHub-based features - Explains auth token usage, Gist reading/writing and rendering helpers."

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.