andrewyng/context-hub/login-flows
Claude Code and agent skill by andrewyng/context-hub
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Common login automation patterns for web apps using Playwright
Install
npx vskill@latest install andrewyng/context-hub/login-flowsSKILL.md
The same SKILL.md was published earlier as andrewyng/context-hub/login-flows.
Login Flow Patterns for Playwright
Reusable patterns for automating login flows in end-to-end tests.
Basic Username/Password Login
OAuth / SSO Login
For OAuth flows that redirect to an external provider:
Persisting Auth State (storageState)
Avoid logging in before every test by saving and reusing browser state:
Then in playwright.config.ts:
MFA / 2FA Handling
For test environments with TOTP-based 2FA:
Tips
- Always use
storageStateto avoid repeated logins — it's the single biggest speedup for E2E suites - Use environment variables for credentials, never hardcode them
- For CI, consider a dedicated test user with stable credentials
- Use
page.waitForURL()instead of arbitrarywaitForTimeout()after login
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcontent/playwright-community/skills/login-flows/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/andrewyng/context-hub/login-flows)