agentleFS
silvioventresilvioventre/lovable-skills/skills/build/auth/SKILL.md

auth

Skill4 starsChanged 4 months agoMITView on GitHub

Use when the user is adding, choosing, or reworking how people sign in to their app — "add authentication", "add login", "add sign in with Google", "let users create accounts", "add SSO", "my team shouldn't need a separate login", "should I use email or Google", "use my own Google credentials", "add password reset", "which auth should I pick". Covers deciding whether the app needs its own login at all, choosing between email, Google, enterprise SSO and reusing the workspace identity, and setting up the chosen method. Not for enforcing access once someone is signed in — roles, permissions and server-side checks belong to the secure skill.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    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
  1. Distinctive:

    If so, which method fits the people who will use it?

    line 11
  2. Distinctive:

    If the audience is anyone outside the workspace, the app needs its own auth.

    line 21

“Common” is measured: kept by at least 6 in 10 of the 14 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.

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

Auth

Two questions, in this order, and getting the first one wrong is the expensive mistake.

  1. Does this app need its own login at all?
  2. If so, which method fits the people who will use it?

Most auth work that gets built and thrown away is a login system for an audience that was already signed in somewhere.

First: does it need one?

If everyone who uses this app is already in your Lovable workspace, it may not need a login. Workspace identity reuse lets the app recognise the signed-in workspace member — name, email, and user id — with no login page and no second account. It works regardless of how they sign in to Lovable, and does not require workspace SSO.

Building a login for an internal tool means your teammates sign in twice and you maintain an account system for people you already have accounts for. Ask who will actually use this before designing anything.

If the audience is anyone outside the workspace, the app needs its own auth. Continue below.

Three features that sound the same

These get confused constantly, and picking the wrong one produces weeks of work solving the wrong problem.

FeatureControlsAffects
Workspace identity reuseWhether the apps you build can recognise a workspace member who is already signed in to LovableYour team, using apps your team builds
Workspace SSOHow your team signs in to Lovable itselfYour team, signing in to Lovable
SAML SSO for Cloud appsHow outside end users of a published app sign in with their own company credentialsYour app's external users

The distinction that keeps them apart: identity settings decide how people get into Lovable; identity reuse decides what your apps can know about people who are already in; SAML SSO for Cloud apps is about your app's own users, not yours.

None requires another. Identity reuse works whether the team signs in to Lovable with SSO, Google, or email.

Route the choice

The situationPlaybook
Internal tool for workspace members onlyreference/choosing.md
Public app, consumer usersreference/choosing.md
Business customers with their own identity providerreference/choosing.md
Setting up Google sign-inreference/google.md
Managed credentials versus your ownreference/google.md
Email and password, sessions, password resetreference/email.md
Enterprise SSO for your app's customersreference/saml.md

The rules

Choose the method from the audience, not from the tech. Consumers expect social login. Business buyers ask for SSO. Your own team already has an identity. Building the wrong one is not a small correction — it changes the data model, the session handling, and the onboarding flow.

Signing in is not permission. Everything in this skill establishes who someone is. What they are then allowed to do is a separate question, enforced server-side on every request, and it belongs to the secure skill. An app with perfect Google sign-in and client-side role checks is wide open.

Add auth before payments. A purchase that cannot be attached to an account is a purchase you cannot honour. If both are planned, this one comes first.

Do not build a second identity system alongside an existing one. Two sources of truth about who a user is produces bugs that look like data problems and are actually identity problems. If the app already has auth, extend it rather than adding a parallel path.

Verify

Auth is verified by trying to get in wrongly, not by signing in successfully. At minimum: sign-up, sign-in, sign-out, password reset with a fresh account, session persistence across a reload, and expiry behaviour. Then the secure skill's checks, which cover what a signed-in user can reach.

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.