record-test

record-test is a command for coding agents from rohitg00/awesome-claude-code-toolkit. It costs 0 tokens per session (292 once invoked), scanned A, original, Apache-2.0.

A command that records actions in a web application and turns them into an end-to-end test. End-to-end tests check a complete user flow, such as logging in or completing checkout.

In plain words
What is it for?
Use it to record and save Playwright or Cypress tests, following the project's naming and selector conventions, then run the new test.
Why use it?
It removes the need to write every browser interaction by hand, while cleaning up the recorded code and adding checks that confirm each step worked.

Command

Part of the e2e-runner plugin — 2 commands shipped together

About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,585 stars · on GitHub

Install

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.

agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/record-test
Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Or install e2e-runner, the plugin that ships this one along with the rest of its 2 commands.

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 record-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/record-test.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/record-test)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/record-test"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/record-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 292 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00292
Opus 5 $0.00000 $0.00146
Sonnet 5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

Measured yesterday against content hash 11af13fd0f34, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

record-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 yesterday.

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.

plugins/e2e-runner/commands/record-test.md · 28 lines

What it actually says

/record-test - Record New E2E Test

Record user interactions to generate an end-to-end test file.

Steps

  1. Ask the user for the test name and the user flow to record (e.g., "login flow", "checkout process")
  2. Determine the e2e framework in use from the project configuration
  3. Identify the base URL and starting page for the recording session
  4. For Playwright: use npx playwright codegen with the target URL
  5. For Cypress: set up Cypress Studio or guide manual recording
  6. Capture the generated test code from the recording session
  7. Clean up the recorded code: add proper assertions, remove redundant waits
  8. Add descriptive test names and group related interactions into logical steps
  9. Add page object references if the project uses the Page Object Model pattern
  10. Save the test file to the appropriate directory with the correct naming convention
  11. Run the newly created test to verify it passes
  12. Report the result and suggest additional assertions to strengthen the test

Rules

  • Follow the project's existing test naming conventions
  • Use data-testid selectors over CSS selectors when available
  • Add at least one assertion per user interaction step
  • Include setup and teardown hooks if the test requires authentication
  • Do not hardcode test data; use fixtures or environment variables
  • Keep recorded tests under 50 lines; split longer flows into separate tests
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. yesterday First seen · 28 lines · 0 tokens per session scan A 11af13fd0f34

Subscribe to this mod's changes

record-test is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,585 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 292 tokens. 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-09-03.