github-integration

dave1010 的头像作者 dave1010

"在构建基于GitHub的功能时使用 - 解释了认证令牌使用、Gist读写和渲染助手。"

📖 中文导读:"在构建基于GitHub的功能时使用 - 解释了认证令牌使用、Gist读写和渲染助手。" 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: github-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.