github-oauth-skill

github-oauth-skill is a skill for Claude Code from kubiyabot/skill. It costs 25 tokens per session (3,068 once invoked), scanned A, original, Apache-2.0.

A GitHub connection that lets a coding agent sign in securely and work with repositories, issues, and pull requests. It uses a browser-free login designed for command-line tools and stores access tokens in the system keychain.

In plain words
What is it for?
Use it to find repositories, manage issues, create or inspect pull requests, and identify the signed-in GitHub user.
Why use it?
It removes the need to create and keep personal access tokens in configuration files. It also lets the agent access GitHub without exposing credentials.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to find repositories, manage issues, create or inspect pull requests, and identify the signed-in GitHub user.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kubiyabot/skill/github-oauth-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kubiyabot/skill --skill github-oauth-skill
Clone the repo
git clone --depth 1 https://github.com/kubiyabot/skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-oauth-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/kubiyabot/skill/github-oauth-skill/github.svg)](https://agentmods.dev/skills/kubiyabot/skill/github-oauth-skill)
Your own site
<a href="https://agentmods.dev/skills/kubiyabot/skill/github-oauth-skill"><img src="https://agentmods.dev/badge/skills/kubiyabot/skill/github-oauth-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-oauth-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/kubiyabot/skill/github-oauth-skill"><img src="https://agentmods.dev/badge/skills/kubiyabot/skill/github-oauth-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.03068
Opus 5.5 $0.00010 $0.01227
Sonnet 5.5 $0.00005 $0.00614
Haiku 4.5 $0.00003 $0.00307

Measured 1mo ago against content hash 9d15c8f530f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-oauth-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (src/skill.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/wasm-skills/github-oauth-skill/SKILL.md · 418 lines

How it starts

The opening of the file, as written. The whole thing — 418 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub OAuth Skill

A comprehensive GitHub integration demonstrating OAuth2 Device Flow authentication with the Skill Engine SDK. Provides secure, token-based access to GitHub repositories, issues, and pull requests without exposing credentials in configuration files.

Overview

This skill showcases modern OAuth2 authentication patterns for CLI tools, using GitHub's Device Flow (RFC 8628) which is ideal for command-line applications. All tokens are stored securely in your system keychain.

When to Use This Skill

Use this skill when you need to:

  • Authenticate with GitHub without manually creating personal access tokens
  • List and search your repositories or organization repos
  • Manage issues (create, list, filter by labels/state)
  • Work with pull requests (create, list, filter)
  • Get information about your authenticated user
  • Store credentials securely in system keychain

Prerequisites

  1. GitHub Account: An active GitHub account with repository access
  2. System Keychain: macOS Keychain, Windows Credential Manager, or Linux Secret Service

OAuth2 Device Flow Setup

The Device Flow allows you to authenticate without a local HTTP server:

  1. Run the login command
  2. A browser window opens with GitHub authorization page
  3. Enter the provided device code
  4. Authorize the application
  5. Token is automatically stored in your system keychain

Required Scopes:

  • repo - Full control of private repositories
  • read:user - Read user profile data

Authentication

Initial Setup

# Authenticate with GitHub (opens browser)
skill auth login github --skill github-oauth-skill

# This will:
# 1. Display a URL and device code
# 2. Open GitHub authorization page in your browser
# 3. Prompt you to enter the code
# 4. Store the token securely in system keychain

Check Authentication Status

# View current auth status
skill auth status

# Test the connection
skill run github-oauth-skill whoami

# Log out (revokes token)
skill auth logout github

Read the full file on GitHub · 418 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 418 lines · 25 tokens per session scan A 9d15c8f530f4

Subscribe to this mod's changes

github-oauth-skill is a skill published in the GitHub repository kubiyabot/skill (19 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 3,068 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories