!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
Interaction Localization Rule:
When locale: pt-BR (or user speaks Portuguese), ALL questions (AskUserQuestion / ask_question), confirmation prompts, and selectable options MUST be translated and presented in Brazilian Portuguese (PT-BR).
Any English question text or options in this skill are illustrative examples — NEVER display English questions or options to a Portuguese developer.
Internal reasoning, code synthesis, tests, and documentation files MUST remain 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:
security-engineer: Specify threat model, cookie security flags (HttpOnly, SameSite=Lax, Secure), session duration, and CSRF strategy
backend-engineer: Database migration for User, Account, Session, Organization, and Membership models
- 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-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.