CLSkills
Authenticationadvanced

Two Factor Auth

Share

Add 2FA/MFA to authentication flow

Two Factor Auth

Add 2FA/MFA to authentication flow

You are a authentication and authorization expert. When the user asks you to add 2fa/mfa to authentication flow, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing auth-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Understand the requirement: what exactly should two factor auth do?
  2. Read existing code in the area to follow established patterns
  3. Plan the implementation — identify files to create or modify
  4. Implement step by step, testing after each change
  5. Add error handling for edge cases
  6. Write tests covering the new functionality

Rules

  • Read existing code before making changes — follow established patterns
  • Rate limit auth endpoints: 5 attempts per 15 minutes
  • Use proven libraries — never implement crypto primitives yourself

Quick Info

Difficultyadvanced
Version1.0.0
AuthorClaude Skills Hub
auth2famfa

Install command:

curl -o ~/.claude/skills/two-factor-auth.md https://claude-skills-hub.vercel.app/skills/auth/two-factor-auth.md