!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys locale,review_mode,automation
Resolved above — use as-is; --review overrides review_mode for this run.
Team Authentication & Access
Locale & User Profile: Match
locale(pt-BR→ natural Brazilian Portuguese questions/options, overriding English examples;en→ English) anduser_profile(founder→ plain business language with(Recomendado)first, zero tech jargon;developer→ technical). Keep code/tests in English.
Orchestrate the authentication, authorization, and multi-tenancy team to build secure login,
RBAC permissions, session handling, team invites, and organization switching.
Argument check: If no description is provided, output:
"Usage:
/saas-team-auth-access [feature description] [--review full|lean|solo]— Describe the auth or access feature (e.g. Email+Password auth with magic links, Google/GitHub OAuth, Organization invite & RBAC, Multi-tenant Row-Level Security, Session revocation)."
When this skill is invoked with a valid argument, orchestrate the team:
- Security & Data Modeling:
auth-security-specialist: Specify threat model, cookie security flags (HttpOnly,SameSite=Lax,Secure), session duration, and CSRF strategybackend-engineer: Database migration forUser,Account,Session,Organization, andMembershipmodels- Define Row-Level Security (RLS) policies or middleware tenant guards
- Backend API & Middleware:
backend-engineer: Implement OAuth callbacks, email verification token generation, password hashing (Argon2id/bcrypt), and role authorization middleware (requireRole('admin'))
- Frontend Flows:
frontend-engineer: Login, Registration, Forgot Password, and Accept Invite screens- Session context provider (
useUser,useTenant), protected route wrappers, and error alert banners
- Testing & Security Validation:
qa-manual-tester: Test valid and invalid login attempts, token tampering, expired links, and cross-tenant access denial
- Verdict:
- Output: COMPLETE — authentication and access controls designed, implemented, and verified.