Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers the implementation of authentication routes. Trigger: When setting up auth-related endpoints in the backend.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -71% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -56% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -61% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -62% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -60% | 0% |
<!-- L1:START -->
This skill covers the implementation of authentication routes.
Trigger: When setting up auth-related endpoints in the backend. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |--------------------|-------------------------| | Login user | login | | Validate token | validate_token |
<!-- L2:END -->
<!-- L3:START -->
Handles user login via GitHub OAuth, redirecting to the callback after authentication.
pythonfrom fastapi import APIRouter from apps.server.app.routes.auth import login router = APIRouter() @router.get("/login") async def github_login(): return await login()
Validates JWT tokens to ensure the user is authenticated for protected routes.
pythonfrom fastapi import Depends from apps.server.app.routes.auth import validate_token async def get_current_user(token: str = Depends(validate_token)): return token
bashdocker-compose up python apps/server/app/main.py
Hardcoding secrets like JWT keys is insecure and should be avoided.
python# BAD JWT_SECRET = "mysecretkey"
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.