benefriches: Skill for Claude Code

.claude/skills/create-e2e-test/SKILL.md

create-e2e-test is a skill for Claude Code from incubateur-ademe/benefriches. It costs 41 tokens per session (1,680 once invoked), scanned A, original, MIT.

A recipe for creating end-to-end tests with Playwright, a browser-testing tool, using reusable page objects and test fixtures. It follows the patterns already used in the project.

In plain words
What is it for?
Use it when adding tests for flows such as signing in, filling forms, navigating pages, or completing a feature in a web app.
Why use it?
It helps turn a described user journey into tests without overlooking pages, actions, setup data, or expected results.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is incubateur-ademe/benefriches's own configuration. It tells Claude Code how to work on benefriches itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything benefriches configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { test as authTest } from "../../fixtures/auth.fixtures";.

Reuse

Borrowing it

Nothing to install: this file belongs to incubateur-ademe/benefriches. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/incubateur-ademe/benefriches/main/.claude/skills/create-e2e-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/incubateur-ademe/benefriches

Made for: Claude Code.

Wrote 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.

agentmods badge for create-e2e-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/incubateur-ademe/benefriches/create-e2e-test/github.svg)](https://agentmods.dev/skills/incubateur-ademe/benefriches/create-e2e-test)
Your own site
<a href="https://agentmods.dev/skills/incubateur-ademe/benefriches/create-e2e-test"><img src="https://agentmods.dev/badge/skills/incubateur-ademe/benefriches/create-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.

agentmods 80×15 button for create-e2e-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/incubateur-ademe/benefriches/create-e2e-test"><img src="https://agentmods.dev/badge/skills/incubateur-ademe/benefriches/create-e2e-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,680 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01680
Opus 5 $0.00020 $0.00840
Sonnet 5 $0.00008 $0.00336
Haiku 4.5 $0.00004 $0.00168

Measured 12d ago against content hash b603d4cb1ca3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

create-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 12d 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.

.claude/skills/create-e2e-test/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create E2E Test

Create end-to-end tests for the user flow described below.

Instructions

1. Understand the User Flow

First, analyze the User Flow to identify:

  • Entry point: Which page/route does the flow start from?
  • Steps: What user actions are involved (clicks, form fills, navigation)?
  • Assertions: What should be verified at each step or at the end?
  • Prerequisites: Does the user need to be authenticated? Any setup data needed?

2. Explore Existing Patterns

Before writing code, explore relevant existing files:

apps/e2e-tests/
├── pages/                    # Page Objects - check for reusable pages
├── fixtures/                 # Base fixtures (auth.fixtures.ts)
└── tests/
    └── [feature]/            # Existing test patterns
        ├── [feature].fixtures.ts
        └── [feature].spec.ts

Key files to reference:

  • apps/e2e-tests/fixtures/auth.fixtures.ts - Authentication fixtures
  • apps/e2e-tests/pages/SiteCreationPage.ts - Page object pattern example
  • apps/e2e-tests/tests/site-creation/site-creation.fixtures.ts - Fixture composition example

3. Create/Update Page Objects

For each page/screen in the flow, create or update a page object in apps/e2e-tests/pages/:

Page Object Pattern:

import { expect, type Page } from "@playwright/test";

export class FeaturePage {
  readonly page: Page;

  constructor(page: Page) {
    this.page = page;
  }

  // Navigation
  async goto(): Promise<void> {
    await this.page.goto("/route-path");
  }

  // Assertions (prefix with expect*)
  async expectStepVisible(): Promise<void> {
    await expect(this.page.getByRole("heading", { name: "Step Title" })).toBeVisible();
  }

  // User Actions (verb-based names)
  async clickButton(): Promise<void> {
    await this.page.getByRole("button", { name: "Button Text" }).click();
  }

  async fillInput(value: string): Promise<void> {
    await this.page.getByLabel("Input Label").fill(value);
  }

  async selectOption(value: string): Promise<void> {
    await this.page.getByRole("radio", { name: value }).check({ force: true });
    await this.submit();
  }

  // Private helpers
  private async submit(): Promise<void> {
    await this.page.getByRole("button", { name: /Valider|Suivant/ }).click();
  }
}

Read the full file on GitHub · 224 lines

Changes

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.

  1. 12d ago First seen · 224 lines · 41 tokens per session scan A b603d4cb1ca3

Subscribe to this mod's changes

create-e2e-test is a skill published in the GitHub repository incubateur-ademe/benefriches (45 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 1,680 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

playwright-cli

A command-line tool for controlling Chromium, Firefox, and WebKit browsers, including navigation, page interaction, screenshots, PDFs, and recorded actions.

UnicomAI/wanwu · 76 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens