Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/agentmantis/test-skills/e2e-test-conventionsnpx skills add agentmantis/test-skills --skill e2e-test-conventionsgit clone --depth 1 https://github.com/agentmantis/test-skillsWrote 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/agentmantis/test-skills/e2e-test-conventions)<a href="https://agentmods.dev/skills/agentmantis/test-skills/e2e-test-conventions"><img src="https://agentmods.dev/badge/skills/agentmantis/test-skills/e2e-test-conventions.svg" alt="Measured on agentmods" height="20"></a>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.00084 | $0.02512 |
| Opus 5 | $0.00042 | $0.01256 |
| Sonnet 5 | $0.00017 | $0.00502 |
| Haiku 4.5 | $0.00008 | $0.00251 |
Grade A, and why
e2e-test-conventions 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 6d 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 — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.
E2E Test Conventions
These conventions apply to all Playwright E2E test code. Read and follow them whenever generating, modifying, or reviewing tests.
Technology Stack
- Playwright for browser automation and test running
- TypeScript for all test code (no plain JavaScript)
- Framework-agnostic — adapt selectors and helpers to whatever UI framework the project uses
Project Structure
The e2e/ directory follows this layout:
e2e/
├── auth/ # Authentication setup (runs before all tests)
│ └── auth.setup.ts # Logs in and saves session state
├── fixtures/ # Custom Playwright fixtures
│ └── base.ts # Extends Playwright's test with custom fixtures
├── helpers/ # Shared utility functions (NOT page objects)
│ └── env-config.ts # Environment resolution
├── poms/ # Page Object Models (one file per page)
│ └── base.page.ts # Abstract base class — all POMs extend this
├── test-data/ # External test data (JSON files)
├── tests/ # Test specs organised by suite
│ ├── handover/ # Ticket-driven handover tests (temporary)
│ ├── regression/ # Full regression tests (permanent)
│ └── smoke/ # Quick critical-path checks
├── playwright.config.ts
├── tsconfig.json
└── .env.example # Template for environment variables
Rules:
- Do NOT create files outside this structure
- Do NOT move existing files without explicit permission
See references/folder-structure.md for details on each directory.
Browser × Suite Configuration
The Playwright config defines projects using {browser}:{suite} naming:
Browsers: chromium, firefox, webkit, mobile-chrome, mobile-safari
Suites:
| Suite | Directory | Purpose | Lifecycle |
|---|---|---|---|
regression |
tests/regression/ |
Full regression | Permanent |
handover |
tests/handover/ |
Ticket-driven handover | Temporary — promote or delete |
smoke |
tests/smoke/ |
Critical-path sanity | Permanent |
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 6d ago First seen · 266 lines · 84 tokens per session scan A b354f6ddbabd
e2e-test-conventions is a skill published in the GitHub repository agentmantis/test-skills (12 stars, last pushed 5mo ago), licensed MIT. It adds 84 tokens to every session and 2,512 once invoked, about $0.0004 per session on Opus 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
typescript-e2e-testing
E2E and integration testing for TypeScript/NestJS projects using Jest, supertest, and real infrastructure via Docker (Kafka, PostgreSQL, MongoDB, Redis) with the Given-When-Then pattern. Use whenever the user is working on .e2e-spec.ts files or anything under test/e2e/, or asks to set up, write, review, run, debug, or…
author
Rules for writing Playwright .spec.ts files that don't flake — selector hygiene, auto-wait discipline, idempotent fixtures, readable trace output. Used by /e2e:write, /e2e:record, and the e2e:spec-writer subagent.
automated_qa_cypress
Use when user needs Cypress E2E test specs written in TypeScript using Page Object Model with CI/CD integration.
qa-cypress-writer
Generate Cypress E2E and component tests for TypeScript with time-travel debugging, cy.intercept for network mocking, and component testing via cy.mount.
lint-js
Lint JS/TS code only. Use before opening a PR when only JavaScript or TypeScript files were changed (no Rust).
no-bare-casts
Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.