agentleFS
szlayszlay/roblox-base/.claude/skills/roblox-oauth/SKILL.md

roblox-oauth

Skill1 starsChanged 4 months agoMITView on GitHub

Use when implementing Roblox OAuth 2.0 for Open Cloud, including app registration, PKCE, token exchange, refresh, revocation, or scopes.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify state before using returned code.

    line 53
  2. Distinctive:

    Don't mix API keys and OAuth.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

roblox-oauth

When to Load

Load this skill when the task centers on Roblox OAuth 2.0 delegated authorization for Open Cloud — app registration, authorization code flow with PKCE, token exchange/refresh/revocation, scope selection, or OAuth-specific error debugging. Skip it for API-key automation, in-experience scripting, or general Open Cloud endpoint work (use roblox-cloud instead).

Quick Reference

Flow Selection

  • Auth Code + PKCE — required for public clients (browser/mobile), recommended for all.
  • Confidential — backend holds client_secret; never expose in frontend code.
  • Public — no secret; PKCE mandatory.

PKCE Essentials

  • Generate code_verifier (43–128 char random) + code_challenge (SHA-256, base64url).
  • Send code_challenge + code_challenge_method=S256 in authorize; send code_verifier in token exchange.
  • One verifier per authorization attempt.

Authorization URL

GET https://apis.roblox.com/oauth/v1/authorize Params: client_id, redirect_uri, scope, response_type=code, code_challenge, code_challenge_method=S256, state, optional nonce.

Token Exchange

POST /oauth/v1/token — application/x-www-form-urlencoded Params: grant_type=authorization_code, code, client_id, code_verifier (public) or client_secret (confidential).

Token Lifecycle

  • Auth code — seconds, single-use; exchange immediately.
  • Access token — ~15 min; use as Bearer.
  • Refresh token — ~90 days; single-use per refresh. Replace stored token atomically after each refresh.
  • Revoke: POST /oauth/v1/token/revoke on disconnect.

Scope Selection

  • Minimum scopes matching actual endpoint needs.
  • openid → ID token; profile only if profile claims needed.
  • Medium/high/critical risk = least-privilege review signal.
  • Changing scopes requires reauthorization.

Validation Endpoints

  • GET /oauth/v1/userinfo — identity claims.
  • POST /oauth/v1/token/introspect — token activity (not resource auth).
  • POST /oauth/v1/token/resources — resource-level access.

Key Rules

  • Verify state before using returned code.
  • Refresh tokens: server-side only.
  • PKCE even for confidential clients.
  • Don't mix API keys and OAuth. Need more detail? Load references/full.md for the complete reference with code examples, API tables, and edge cases.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.