
Description
oauth is an agent skill from Matteo Collina's skills collection, listed on skills.sh. It helps an AI agent implement or debug OAuth 2.0 and 2.1 authorization flows in a Fastify application. It walks through configuring the authorization code flow with PKCE, and it also covers client credentials, device flow and refresh token rotation. The skill includes setup steps such as installing @fastify/oauth2, @fastify/cookie, @fastify/session and fastify-plugin, and registering the OAuth plugin. It also helps validate tokens, secure routes and plugins with access-control middleware, answer RFC compliance questions, and spot common security anti-patterns. It is aimed at backend developers who need a secure login or API authorization setup in Fastify and want the agent to follow the standard flows closely. A skill is a SKILL.md file that an AI agent loads only when a task calls for it. It is free and open source on GitHub.…
Highlights
- Authorization code flow with PKCE
- Client credentials and device flow
- Refresh token rotation
- Token validation and route protection
Ratings & Reviews
No ratings yet
Be the first to rate oauth.
People also visit

better-auth-security-best-practices
Configure rate limiting, manage auth secrets, set up CSRF protection
oauth FAQ
What does the oauth skill do?
It helps an AI agent set up or debug OAuth 2.0 and 2.1 flows in a Fastify app, including PKCE, client credentials, device flow and refresh token rotation.
How do I install it?
Run: npx skills add https://github.com/mcollina/skills --skill oauth.
Is it free?
Yes. The skill is free and open source.
Which framework does it target?
Fastify. Its step-by-step guide uses the @fastify/oauth2 plugin with @fastify/cookie and @fastify/session.
Does it cover PKCE?
Yes. The main worked example is the authorization code flow with PKCE.
Security audits: what do the results show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best oauth alternatives?
Popular alternatives to oauth include create-auth-skill, better-auth/create-auth and better-auth-security-best-practices. See all oauth alternatives













