Authgear is an open-source identity and authentication service that provides login, account management, multi-factor authentication, passkeys, and single sign-on for applications. SaaS and mobile-app developers can run it themselves or use Authgear Cloud to manage consumer and enterprise user access. The catalogue entries relate to operating and configuring Authgear's authentication workflows.
Borrowing it
Nothing to install: this file belongs to authgear/authgear-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/authgear/authgear-server/main/.claude/skills/write-e2e-test/SKILL.mdgit clone --depth 1 https://github.com/authgear/authgear-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/authgear/authgear-server/write-e2e-test)<a href="https://agentmods.dev/skills/authgear/authgear-server/write-e2e-test"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/write-e2e-test/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/authgear/authgear-server/write-e2e-test"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/write-e2e-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.03837 |
| Opus 5.5 | $0.00021 | $0.01535 |
| Sonnet 5.5 | $0.00010 | $0.00767 |
| Haiku 4.5 | $0.00005 | $0.00384 |
Grade A, and why
write-e2e-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 553 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Follow this guide when writing e2e tests.
E2E Environment Setup
CRITICAL: All make commands must be run from e2e/ directory, not project root.
Standard Workflow
When starting fresh or after code changes:
cd e2e # ← MUST be in e2e directory
make teardown && make setup # ← Tears down old containers, rebuilds binaries, applies migrations
This command:
- Stops and removes Docker containers (Redis, PostgreSQL, Deno hook server)
- Rebuilds authgear and authgear-portal binaries with latest code
- Applies all database migrations
- Starts services fresh
Running Tests
After setup completes, run tests from the e2e directory:
cd e2e # ← Must be in e2e directory
# Run a specific test
go test ./pkg/testrunner/ -count 1 -v -timeout 10m -run "TestAuthflow/<folder>/<filename_without_extension>"
# Run all tests
go test ./pkg/testrunner/ -count 1 -v -timeout 10m
When Setup Fails
If make teardown && make setup fails:
-
Try again - transient Docker issues are common:
cd e2e && make teardown && make setup -
Check if containers are stuck:
docker ps # Run from any directory to list containers -
If still failing - ask the user to manually intervene. Do NOT attempt low-level Docker operations (
docker-compose down -v, etc.) as these can affect other projects and data.
Always use the Makefile (make teardown && make setup). Do not skip to ./run.sh or other workarounds.
When to Re-setup
Always run make teardown && make setup from e2e/ directory when:
- You modified server code (rebuilds binaries)
- Database schema/migrations changed
- Tests fail with DB schema errors
- Starting fresh after a long break
Overview
E2e tests are YAML files placed under e2e/tests/<feature>/. The test runner auto-discovers all *.test.yaml files. Each file defines one test case.
Test File Structure
name: Human-readable test name
authgear.yaml: # Optional: config overrides
extend: path/to/base.yaml # Optional base config
override: |
fraud_protection:
enabled: true
before: # Optional: setup hooks (run before steps)
- type: custom_sql
custom_sql:
path: fixtures.sql
steps:
- name: step name # Optional but recommended
action: create
input: |
{
"type": "signup",
"name": "default"
}
output:
result: |
{
"action": {
"type": "identify"
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 553 lines · 52 tokens per session scan A 9efa0b5f8f5a
write-e2e-test is a skill published in the GitHub repository authgear/authgear-server (2,133 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 3,837 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
winui-ui-testing
Write and run automated UI tests for Windows desktop apps (WinUI 3, WPF, WinForms, Win32) with the winapp ui harness: one batch script, assertions, input, file pickers, dialogs, screenshots, locally or in Windows Sandbox. Use when asked for UI tests or to verify a feature end to end.
testing-and-ci
Choose and run unit, E2E, Caddyfile fixture, automation, and CI checks for caddy-security. Use for coverage requirements, test evidence, failures, and report workflows; official OP conformance remains opt-in.
Clerk Auth Testing
Testing patterns for Clerk authentication including sign-in flow testing, protected route testing, webhook verification, middleware testing, and organization-based access control.
auth0-docs
Auth0 — identity platform: auth flows, Universal Login, SSO, identity providers, MFA, RBAC, Actions, tokens.
Authentication Testing Patterns
Comprehensive authentication testing including login flows, password policies, MFA, session management, account lockout, and SSO integration.
enterprise-sso-rollout
Wire an enterprise identity provider (Entra ID, Okta, Google, or any OIDC issuer) into a Keycloak realm end to end, including the upstream app registration, broker configuration, connection testing, and verification against real login events. Use when asked to set up SSO, connect an IdP, or onboard a customer's…