thm-health/pilos/fortify-development
Claude Code and agent skill by thm-health/pilos
- community
Checking that the SKILL.md file is still in the repository.
ACTIVATE when the user works on authentication in Laravel. This includes login, registration, password reset, email verification, two-factor authentication (2FA/TOTP/QR codes/recovery codes), passkeys, profile updates, password confirmation, or any auth-related routes and controllers. Activate when the user mentions Fortify, auth, authentication, login, register, signup, forgot password, verify email, 2FA, passkeys, WebAuthn, or references app/Actions/Fortify/, CreateNewUser, UpdateUserProfileInformation, FortifyServiceProvider, config/fortify.php, or auth guards. Fortify is the frontend-agnostic authentication backend for Laravel that registers all auth routes and controllers. Also activate when building SPA or headless authentication, customizing login redirects, overriding response contracts like LoginResponse, or configuring login throttling. Do NOT activate for Laravel Passport (OAuth2 API tokens), Socialite (OAuth social login), or non-auth Laravel features.
Install
npx vskill@latest install thm-health/pilos/fortify-developmentSKILL.md
Laravel Fortify Development
Fortify is a headless authentication backend that provides authentication routes and controllers for Laravel applications.
Documentation
Use search-docs for detailed Laravel Fortify patterns and documentation.
Usage
- Routes: Use
list-routeswithonly_vendor: trueandaction: "Fortify"to see all registered endpoints - Actions: Check
app/Actions/Fortify/for customizable business logic (user creation, password validation, etc.) - Config: See
config/fortify.phpfor all options including features, guards, rate limiters, and username field - Contracts: Look in
Laravel\Fortify\Contracts\for overridable response classes (LoginResponse,LogoutResponse, etc.) - Views: All view callbacks are set in
FortifyServiceProvider::boot()usingFortify::loginView(),Fortify::registerView(), etc.
Available Features
Enable in config/fortify.php features array:
Features::registration()- User registrationFeatures::resetPasswords()- Password reset via emailFeatures::emailVerification()- Requires User to implementMustVerifyEmailFeatures::updateProfileInformation()- Profile updatesFeatures::updatePasswords()- Password changesFeatures::twoFactorAuthentication()- 2FA with QR codes and recovery codesFeatures::passkeys()- Passwordless authentication with WebAuthn passkeys
Usesearch-docsfor feature configuration options and customization patterns.
Setup Workflows
Two-Factor Authentication Setup
Usesearch-docsfor TOTP implementation and recovery code handling patterns.
Passkeys Setup
Usesearch-docsfor passkey configuration options. For@laravel/passkeysfrontend usage, refer to the package's README on npm.
Email Verification Setup
Usesearch-docsfor MustVerifyEmail implementation patterns.
Password Reset Setup
Usesearch-docsfor custom password reset flow patterns.
SPA Authentication Setup
Usesearch-docsfor integration and SPA authentication patterns.
Two-Factor Authentication in SPA Mode
When views is set to false, Fortify returns JSON responses instead of redirects.
If a user attempts to log in and two-factor authentication is enabled, the login request will return a JSON response indicating that a two-factor challenge is required:
Best Practices
Custom Authentication Logic
Override authentication behavior using Fortify::authenticateUsing() for custom user retrieval or Fortify::authenticateThrough() to customize the authentication pipeline. Override response contracts in AppServiceProvider for custom redirects.
Registration Customization
Modify app/Actions/Fortify/CreateNewUser.php to customize user creation logic, validation rules, and additional fields.
Rate Limiting
Configure via fortify.limiters.login in config. Default configuration throttles by username + IP combination.
Key Endpoints
| Feature | Method | Endpoint | |
|---|---|---|---|
| Login | POST | /login | |
| Logout | POST | /logout | |
| Register | POST | /register | |
| Password Reset Request | POST | /forgot-password | |
| Password Reset | POST | /reset-password | |
| Email Verify Notice | GET | /email/verify | |
| Resend Verification | POST | /email/verification-notification | |
| Password Confirm | POST | /user/confirm-password | |
| Enable 2FA | POST | /user/two-factor-authentication | |
| Confirm 2FA | POST | /user/confirmed-two-factor-authentication | |
| 2FA Challenge | POST | /two-factor-challenge | |
| Get QR Code | GET | /user/two-factor-qr-code | |
| Recovery Codes | GET/POST | /user/two-factor-recovery-codes | |
| Passkey Login Options | GET | /passkeys/login/options | |
| Passkey Login | POST | /passkeys/login | |
| Passkey Confirm Options | GET | /passkeys/confirm/options | |
| Passkey Confirm | POST | /passkeys/confirm | |
| Passkey Options | GET | /user/passkeys/options | |
| Register Passkey | POST | /user/passkeys | |
| Delete Passkey | DELETE | /user/passkeys/{passkey} |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/fortify-development/SKILL.md
Popularity
- Repository stars
- 66
- Repository forks
- 30
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thm-health/pilos/fortify-development)