create-auth
Create Auth
You are scaffolding authentication (signin + signup) for the user's project.
Step 1: Detect Existing Project Context
Before asking any questions, scan the user's project to detect their stack:
- Look for framework config files (e.g.,
next.config.*,package.json,go.mod,Cargo.toml,pyproject.toml,build.gradle*,pom.xml) - Look for existing database/ORM setup (e.g.,
prisma/schema.prisma,drizzle.config.*,alembic/,diesel.toml,ormconfig.*) - Look for existing auth code or dependencies
Use what you find to pre-select the best options in the questions below. If the project clearly uses a specific stack, set that as the recommended option.
Step 2: Gather Context with Interactive Questions
Use the AskUserQuestion tool to ask the user to make selections. Ask up to 3 questions in a single AskUserQuestion call so the user can answer everything at once.
Question 1: Language/Framework
More from himself65/auth-spec
security-best-practice
Audit and harden authentication code for security best practices. Use when the user wants to check their auth implementation for vulnerabilities, harden session handling, fix credential storage, validate OAuth/OIDC flows, add MFA/passkeys, or apply OWASP-recommended security patterns.
14add-test-case
Add a new conformance test case to auth-testing-library. Use when adding a new test for auth endpoints (sign-up, sign-in, session, sign-out).
4auth-review
Reviews authentication and authorization code for security issues, best practices, and spec compliance. Use when reviewing auth-related code, checking login flows, token handling, session management, or access control.
3