add-auth
Skill1 starsChanged 24 days agoMITView on GitHub
Adds authentication and authorisation (sessions, OAuth, magic links, passkeys, MFA, roles, organisations) using the provider in project.yaml stack.auth (Clerk, Auth.js, Better Auth, Supabase Auth, Firebase Auth or custom sessions). Use when the product needs login, signup, protected routes, roles or teams.
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- ronka/skillstheir own version, first seen Nov 22, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Nov 19, 2026
- flavien-ia/hypervibe-crafttheir own version, first seen Oct 25, 2026
- JoviDeCroock/prachttheir own version, first seen Oct 11, 2026
- dperezcabrera/pico-skillstheir own version, first seen Jul 29, 2026
- T4LEL/Claude-Arsenaltheir own version, first seen Jul 12, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- JoviDeCroock/pracht★ 116same name
- flavien-ia/hypervibe-craft★ 54same name
- flavien-ia/hypervibe-harness★ 54same name
- dperezcabrera/pico-skills★ 4same name
- ronka/skills★ 1same name
- T4LEL/Claude-Arsenal★ 1same 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 repository100 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- add-ai-featureSkill
- add-cmsSkill
- add-i18nSkill
- add-paymentsSkill
- add-realtimeSkill
- adoptSkill
- analytics-planSkill
- api-contractSkill
- architecture-decisionSkill
- architecture-reviewSkill
- brainstormSkill
- brand-identitySkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- ci-setupSkill
- client-demoSkill
- competitor-auditSkill
- consistency-checkSkill
- content-calendarSkill
- content-strategySkill
- create-architectureSkill
- create-epicsSkill
- create-storiesSkill
- cro-reviewSkill
- data-modelSkill
- db-migrationSkill
- dependency-auditSkill
- deploy-setupSkill
- design-reviewSkill
- design-systemSkill
- design-tokensSkill
- dev-storySkill
- e2eSkill
- email-flowsSkill
- estimateSkill
- experimentSkill
- feature-specSkill
- funnel-reviewSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- incidentSkill
- install-depsSkill
- launch-checklistSkill
- load-testSkill
- market-researchSkill
- milestone-reviewSkill
- observability-setupSkill
- onboardSkill
- perf-auditSkill
- personasSkill
- postmortemSkill
- privacy-auditSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- refactorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
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
- Very specific: line 26
If stack.auth is null, ask: "Which auth approach?" with options fitted to the stack, e.g.
- Distinctive: line 54
Ask: "Create stories for this (recommended), or implement directly now?"
“Common” is measured: kept by at least 6 in 10 of the 6 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
Integration playbook for authentication and authorisation. Prefers a maintained provider over hand-rolled auth. Uses test/development instances only; never touches production auth settings.
Inputs
project.yaml → stack.auth,stack.frontend,stack.backend,privacy.regions- PRD and specs: who signs up, roles, teams/orgs, SSO needs, account deletion
.claude/docs/stack-matrix.mdfor the specialist pairing
Phases
Phase 1: Provider
If stack.auth is null, ask: "Which auth approach?" with options fitted to the
stack, e.g. Clerk (hosted, orgs built in), Auth.js / Better Auth (self-hosted, in your DB),
Supabase Auth / Firebase Auth (when on that BaaS), Framework-native
(Laravel Fortify/Sanctum, Django auth, Rails authentication generator). Give cost,
lock-in and data-residency trade-offs. On a choice: draft an ADR
(/architecture-decision format, template adr), and after approval run
bash .claude/scripts/config-set.sh stack.auth=<value>.
Phase 2: Requirements
Confirm: sign-in methods (email+password, magic link, OAuth providers, passkeys),
MFA, roles and permissions, organisations/teams, invitations, account deletion,
session length. Spawn security-lead for a short threat model (template
threat-model): enumeration, brute force, session fixation, CSRF, OAuth redirect
abuse, privilege escalation, tenant isolation. Spawn
privacy-compliance-specialist if privacy.regions is set.
Phase 3: Plan the work
auth-specialist with the stack specialists proposes:
- provider setup and env vars (placeholders added to
.env.example, never real values) - route protection (middleware) plus a server-side
requireUser()/ policy helper used by every handler - the authorisation model: a single
can(user, action, resource)layer, tenant scoping - user record sync / webhooks (verified signatures)
- UI: sign-in, sign-up, reset, account settings, org switcher (design-system components)
- tests: per-role integration tests, Playwright sign-up/sign-in journey
Ask: "Create stories for this (recommended), or implement directly now?"
Phase 4: Do it
- Stories →
/create-storiesformat with ACs for each method, role and failure case. - Direct → run
/dev-storystyle TDD withauth-specialist, asking before every write.
Never
Store passwords or tokens in logs or localStorage; roll custom crypto; rely on
hidden UI for authorisation; use production keys.
Next step
/security-audit auth once implemented.
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.

