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.
mdr add superdesigndev/treg/add-oauth-provider@git:20260928.ce916f2Pins 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
mdr add superdesigndev/treg/add-oauth-provider@sha256:e31f08ed7469b5b6The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260928.ce916f2 latest | 2026-09-28 | ce916f2 | 10,045 B | A | view · diff |
| git:20260905.6a68eb0 | 2026-09-05 | 6a68eb0 | 9,952 B | A | view · diff |
| git:20260722.c2d9ebc | 2026-07-22 | c2d9ebc | 9,915 B | A | view |
Audit of the latest version
- 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
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.