add-oauth-provider SKILL.md skillA

add-oauth-provider from superdesigndev/treg is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add superdesigndev/treg/add-oauth-provider@git:20260928.ce916f2

Pins git:20260928.ce916f2 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
superdesigndev/treg
Path
.agents/skills/add-oauth-provider/SKILL.md
Versions recorded
3
Latest version
git:20260928.ce916f2, committed Sep 28, 2026
First version recorded
Jul 22, 2026
Size
10,045 bytes
Repository stars
5,899
License
a license file GitHub does not identify

Add a provider to treg's OAuth registry (the ones treg holds its own approved app for). Use when asked to "add YouTube/Notion/Meta OAuth", "support connecting X", "add a new OAuth provider", or when a connect flow, capability picker, channel/account picker, or provider health probe needs building. Covers the code changes, the platform-side approval steps, and the pitfalls that don't announce themselves.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Adding an OAuth provider

Two connect modes exist. **BYO** (`POST /oauth/start` with a caller-supplied
client_id/secret) already works for any OAuth2 provider and needs no code. This
skill is the **registry** path: treg owns the registered app, so the user picks a
provider and supplies nothing. Only add a provider here if treg holds — or is
willing to go get — the platform approval behind it.

Read `src/treg/oauth_providers.py`'s module docstring first. The rule it states is
the one most easily broken: **scopes are per capability, never per provider.**

## The code changes

All of these, in order. Skipping any one produces a provider that looks fine in
`/oauth/providers` and fails somewhere the tests don't reach.

### 1. Credentials → `src/treg/config.py`

Add `<name>_client_id` / `<name>_client_secret` to `Settings`, loaded from
`TREG_<NAME>_CLIENT_ID` / `_SECRET`. **Reuse an existing pair when the platform
uses one app for several products** — all four Google providers plus YouTube
share `google_client_id`, because Google verification and API audits are scoped to
the *Cloud project*, not to the OAuth client. A second client in the same project
isolates nothing.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add superdesigndev/treg/add-oauth-provider@sha256:e31f08ed7469b5b6

The line at the top of this page pins the label git:20260928.ce916f2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_lcwoawkhzbuaprtd.svg)](https://markdownregistry.com/a/art_lcwoawkhzbuaprtd)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jul 22, 2026 and Sep 28, 2026, about one every 34 days.

versioncommittedcommitsizeaudit
git:20260928.ce916f2 latest2026-09-28 ce916f2 10,045 BA view · diff
git:20260905.6a68eb02026-09-05 6a68eb0 9,952 BA view · diff
git:20260722.c2d9ebc2026-07-22 c2d9ebc 9,915 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10045 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

superdesigndev/treg · 5,899 stars · license a license file GitHub does not identify · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_lcwoawkhzbuaprtd
GET https://markdownregistry.com/api/v1/resolve?ref=superdesigndev/treg/add-oauth-provider
GET https://markdownregistry.com/api/v1/blob/e31f08ed7469b5b6550298483792a5feacc2828138f3602ce14a36d28b7bd2ac

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from superdesigndev/treg

code-quality SKILL.md skill
superdesigndev/treg · .agents/skills/code-quality/SKILL.md · Use when writing or reviewing code, comments, tests, or docs.
git:20261015.d4c34b8 · audit A · 5,899 stars
dev-local SKILL.md skill
superdesigndev/treg · .agents/skills/dev-local/SKILL.md · One-command local dev stack for tools-registry. Use when asked to "start the dev server", "run treg locally", "test…
git:20260928.ce916f2 · audit A · 5,899 stars
google-ads SKILL.md skill
superdesigndev/treg · .agents/skills/google-ads/SKILL.md · Traps when running Google Ads through treg — the API requirements and cleanup semantics that cost round-trips or money…
git:20260817.6541167 · audit A · 5,899 stars
google-analytics SKILL.md skill
superdesigndev/treg · .agents/skills/google-analytics/SKILL.md · Traps to avoid when querying Google Analytics 4 through treg — cases where the GA4 Data API returns a confident wrong…
git:20260723.9d1ab49 · audit A · 5,899 stars
google-search-console SKILL.md skill
superdesigndev/treg · .agents/skills/google-search-console/SKILL.md · Traps to avoid when querying Google Search Console through treg — cases where the API returns a confident wrong answer…
git:20260723.9d1ab49 · audit A · 5,899 stars
portrait-clone SKILL.md skill
superdesigndev/treg · .agents/skills/portrait-clone/SKILL.md · Turn any n reference images (with at least one person) into one exhaustively locked, always de-slopped, JSON-only AIGC…
git:20260915.e0d336d · audit B · 5,899 stars
tools-registry-context SKILL.md skill
superdesigndev/treg · .agents/skills/tools-registry-context/SKILL.md · tools-registry context + doc upkeep. Use to warm up a fresh session (orient on the architecture + recent commits) or…
git:20260928.ce916f2 · audit A · 5,899 stars
ugc-talking-head-video SKILL.md skill
superdesigndev/treg · .agents/skills/ugc-talking-head-video/SKILL.md · Turn a locked character image (from portrait-clone) into a UGC-style 9:16 talking-head video: pick a voice-reference…
git:20260915.e0d336d · audit B · 5,899 stars
vendor-listing SKILL.md skill
superdesigndev/treg · .agents/skills/vendor-listing/SKILL.md · Onboard a vendor who wants their API listed in the treg catalog. Use whenever someone asks "how do we get listed on…
git:20261019.4df5b3f · audit A · 5,899 stars
write-provider-skill SKILL.md skill
superdesigndev/treg · .agents/skills/write-provider-skill/SKILL.md · Build a treg provider skill — the endpoint map + mistake map that lets an agent do real work on a platform API through…
git:20260928.ce916f2 · audit A · 5,899 stars
AGENTS.md AGENTS.md file
superdesigndev/treg · AGENTS.md
git:20261016.4c86ce5 · audit A · 5,899 stars
CLAUDE.md CLAUDE.md file
superdesigndev/treg · CLAUDE.md
git:20260905.8031c83 · audit A · 5,899 stars

Every file in superdesigndev/treg

Browse by kind, by grade A, or by owner.