github-oauth-nango-integration

github-oauth-nango-integration is a skill for Claude Code from AgentWorkforce/relay. It costs 37 tokens per session (3,193 once invoked), scanned A, original, Apache-2.0.

An integration pattern for using GitHub login and GitHub repository access together through Nango, a service that connects applications to external APIs.

In plain words
What is it for?
Use it to add “Sign in with GitHub,” grant access to repositories where a GitHub App is installed, and handle installation and data-sync webhooks.
Why use it?
GitHub login identifies the user but does not provide repository access, while a GitHub App can access selected repositories but does not provide that user identity.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to add “Sign in with GitHub,” grant access to repositories where a GitHub App is installed, and handle installation and data-sync webhooks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentworkforce/relay/github-oauth-nango-integration
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 AgentWorkforce/relay --skill github-oauth-nango-integration
Clone the repo
git clone --depth 1 https://github.com/AgentWorkforce/relay

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-nango-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentworkforce/relay/github-oauth-nango-integration/github.svg)](https://agentmods.dev/skills/agentworkforce/relay/github-oauth-nango-integration)
Your own site
<a href="https://agentmods.dev/skills/agentworkforce/relay/github-oauth-nango-integration"><img src="https://agentmods.dev/badge/skills/agentworkforce/relay/github-oauth-nango-integration/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-nango-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentworkforce/relay/github-oauth-nango-integration"><img src="https://agentmods.dev/badge/skills/agentworkforce/relay/github-oauth-nango-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,193 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00037 $0.03193
Opus 5.5 $0.00015 $0.01277
Sonnet 5.5 $0.00007 $0.00639
Haiku 4.5 $0.00004 $0.00319

Measured 1mo ago against content hash 837a2f02b54e, 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-nango-integration 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.

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.

.claude/skills/github-oauth-nango-integration/SKILL.md · 410 lines

How it starts

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

GitHub OAuth + Nango Integration

Overview

Implements dual-connection OAuth pattern: one for user identity (github integration), another for repository access (github-app-oauth integration). This separation enables secure login while maintaining granular repo permissions through GitHub App installations.

When to Use

  • Setting up GitHub OAuth login via Nango
  • Implementing GitHub App installation webhooks
  • Reconciling OAuth users with GitHub App installations
  • Building apps that need both user auth and repo access
  • Handling Nango sync webhooks for GitHub data

Why Two Connections?

GitHub has two different authentication mechanisms that serve different purposes:

GitHub OAuth App (github integration)

  • What it is: Traditional OAuth for user identity
  • What it gives you: User profile (name, email, avatar, GitHub ID)
  • What it DOESN'T give you: Access to repositories
  • Use for: Login, "Sign in with GitHub"

GitHub App (github-app-oauth integration)

  • What it is: Installable app with granular repo permissions
  • What it gives you: Access to specific repos the user installed it on
  • What it DOESN'T give you: User identity (it knows the installation, not who's using it)
  • Use for: Reading PRs, commits, files; posting comments; webhooks

The Reconciliation Problem

OAuth App alone:  "User [email protected] logged in" → but which repos can they access?
GitHub App alone: "Installation #12345 has access to repo X" → but who is the user?

Solution: Two separate OAuth flows linked by user ID:

  1. Login flow → User authenticates → Store user identity + nangoConnectionId
  2. Repo flow → Same user authorizes app → Store repos + link via ownerId

This lets you answer: "User [email protected] can access repos X, Y, Z"

Quick Reference

Connection Type Nango Integration Purpose Stored In
User Login github Authentication, identity users.nangoConnectionId
Repo Access github-app-oauth PR operations, file access repos.nangoConnectionId

Read the full file on GitHub · 410 lines

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 · 410 lines · 37 tokens per session scan A 837a2f02b54e

Subscribe to this mod's changes

github-oauth-nango-integration is a skill published in the GitHub repository AgentWorkforce/relay (885 stars, last pushed yesterday), licensed Apache-2.0. It adds 37 tokens to every session and 3,193 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-08-30.

Related

Other skills, from other repositories

vigilante-issue-implementation-on-php

Implement a GitHub issue end-to-end when Vigilante dispatches work for a PHP repository with Composer, static analysis, and security guidance.

aliengiraffe/vigilante · 39 tokens

kirocrew-app-dev

Build, package, and publish Kiro Crew external apps. Covers app.json manifests, UI components, crons, skills, lifecycle hooks, development mode, registry publishing, and common pitfalls.

kirodotdev/KiroCrew · 44 tokens

goal-conductor

Own a goal too large for one session ('clear the flaky-test backlog', 'push N PRs green') end to end via the work ledger — decompose into items, one session per item, read worker status as data, verify claims with the acceptance evaluator, decide each round until done. Use when handed such a goal.

kirodotdev/KiroCrew · 70 tokens

cost-efficiency-analyzer

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too…

awslabs/agentcore-samples · 98 tokens

security-conductor

Operating procedure for the kirocrew-security-conductor agent. Use when a security conductor session is seeded, inspected or debugged. Run vulnerability discovery on one target as a supervised fleet — one auditor per attack surface, an independent verifier per finding, two human gates.

kirodotdev/KiroCrew · 57 tokens

computer-use

Read and drive native desktop apps through the accessibility layer — list apps, snapshot a window as a numbered element tree, then click/type/scroll/drag by element index or screen coordinates. Use for a desktop app, not a web page. macOS + Windows; off unless enabled in Settings.

kirodotdev/KiroCrew · 62 tokens