add-auth
Skill1 starsChanged 4 months agoMITView on GitHub
Use when adding user accounts to an app - signup, login, OAuth, protected routes, sessions - or when the user says auth, login, sign in with Google, user accounts, protect this page.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- flavien-ia/hypervibe-crafttheir own version, first seen Oct 25, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 23, 2026
- JoviDeCroock/prachttheir own version, first seen Oct 11, 2026
- dperezcabrera/pico-skillstheir own version, first seen Jul 29, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- JoviDeCroock/pracht★ 106same name
- flavien-ia/hypervibe-craft★ 50same name
- flavien-ia/hypervibe-harness★ 50same name
- dperezcabrera/pico-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- add-aiSkill
- growSkill
- hardenSkill
- hireSkill
- launchSkill
- maintainSkill
- monetizeSkill
- new-projectSkill
- optimizeSkill
- pitchSkill
- product-specSkill
- ship-itSkill
- validate-ideaSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Add authentication to the default stack correctly the first time — auth bugs are security bugs.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add Auth
Add authentication to the default stack correctly the first time — auth bugs are security bugs.
Copy this checklist and check off items as you complete them:
Add-Auth Progress:
- [ ] Step 1: Requirements
- [ ] Step 2: Data (db-designer)
- [ ] Step 3: Implementation (backend-builder)
- [ ] Step 4: Verify (mandatory)
- [ ] Step 5: Audit (security-auditor)
- [ ] ReportStep 1 — Requirements
Confirm before building:
- Sign-in methods: email/password, magic link, which OAuth providers.
- Roles: does an admin/staff tier exist, or is every account equal?
- Protected surface: which pages/routes require a session, which stay public.
Defaults when the user doesn't specify: email/password plus Google OAuth, a single user role, every app page protected except marketing pages (home, pricing, blog).
Step 2 — Data
Delegate to the db-designer agent with: a profiles table keyed to auth.users (1:1 on id), deny-by-default RLS policies (no table readable or writable without an explicit policy), and a trigger that creates the profile row on signup (on auth.users insert).
Step 3 — Implementation
Delegate to the backend-builder agent with: @supabase/ssr client and server helpers plus middleware, built against CURRENT docs fetched via the context7 MCP tools — the cookie/session-refresh pattern changes between package versions and stale patterns silently break sessions. Cover: login, signup, logout, the OAuth callback route, and protected-route handling (middleware redirect, not a client-side check alone). Keys and secrets stay in env vars, never printed or committed.
Step 4 — Verify (mandatory)
Exercise the real flow, not a mental walkthrough — use the playwright plugin or curl:
- Sign up a fresh user; confirm the profile row was created.
- Log in; confirm a session cookie is set.
- Load a protected page while authenticated; confirm it renders.
- Log out; confirm the session is cleared.
- Request a protected resource with no session (curl, no cookie) — it must fail (redirect or 401/403), not leak data.
Paste the real output for each step. A step reported done without evidence is not done.
Step 5 — Audit
Delegate to the security-auditor agent scoped to the auth surface: RLS policies, the OAuth callback, session/cookie handling, and protected-route middleware. Critical findings block done — fix and re-verify before reporting complete.
Report
- Enabled methods: sign-in methods shipped (password, magic link, OAuth providers).
- Protected surface: which routes require a session, which are public.
- RLS summary: policies per table, deny-by-default confirmed.
- Verification evidence: the pasted output from Step 4, all five checks.
- Follow-ups: audit findings not fixed (with reason), plus anything deferred — e.g. roles/admin tier if not in scope this round.
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
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.

