jmservera/aithena/e2e-auth-reuse
Claude Code and agent skill by jmservera/aithena
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install jmservera/aithena/e2e-auth-reuseSKILL.md
The same SKILL.md was published earlier as jmservera/aithena/e2e-auth-reuse.
E2E Auth Token Reuse Pattern
Skill ID
e2e-auth-reuse
Confidence
Medium — Successfully implemented in PR #1588, validated in CI, and confirmed to resolve chronic rate-limit failures (#1583).
Last Confirmed
2026-05-31 — PR #1588 merged, CI runs show [setup] reusing E2E_API_TOKEN from environment (skipping login) pattern working at scale (28 passed, 22 skipped, 0 failures in ci_e2e_tests workflow run 26717457605).
Evidence
- Issue #1583: Chronic 429 rate-limit failures in E2E workflows (root cause: back-to-back
/v1/auth/logincalls from same IP) - PR #1588: Implementation of token-reuse pattern + single-retry defense-in-depth
- Files:
e2e/playwright/global-setup.ts(lines 71-142) — production code showing pattern in use - CI Validation: Multiple workflow runs passing with
E2E_API_TOKENenv var present; fallback path (password login) tested locally and working when env var absent
Context
E2E tests in CI often need authenticated sessions. When the CI workflow mints an auth token (e.g., via curl), downstream test runners should consume that token via environment variable instead of re-authenticating. This avoids rate-limit races and speeds up test setup.
Pattern
Workflow Side (CI)
Test Setup Side (e.g., Playwright global-setup)
Defense-in-Depth: Retry on 429
Add a single retry with jittered backoff when the login endpoint returns 429:
Benefits
- Eliminates rate-limit races — no back-to-back login calls from the same IP
- Faster test setup — one fewer HTTP round-trip
- Clear separation of concerns — workflow owns auth, tests consume tokens
- Preserves local dev workflow — fallback to password login when env var is absent
When to Use
- CI workflows that mint auth tokens before running tests
- Test setups that currently perform their own login (Playwright global-setup, pytest fixtures, etc.)
- Any scenario where multiple processes might hit the same rate-limited auth endpoint
Implementation Example
See e2e/playwright/global-setup.ts (lines 71-142) for the full implementation that fixed #1583.
Related
- Issue: #1583 (chronic 429 errors in E2E workflows)
- PR: #1588 (implementation)
- Decision:
.squad/decisions/inbox/parker-e2e-token-reuse.md
Discovered
2026-05-31 by Parker (Backend Dev) while fixing CI E2E failures
Related
- Pattern complements
.squad/skills/playwright-e2e-aithena(test infrastructure) - Enables "Always Test Locally Before Pushing" directive (
.squad/decisions.md)
Security
- Security scanPassed, 90 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.squad/skills/e2e-auth-reuse/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/jmservera/aithena/e2e-auth-reuse)