Sponsor Suno AI Music arrow_forward
Slash Command

Generate E2e

Generate end-to-end browser tests for user workflows

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026

What Generate E2e is

Generate E2e is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Generate E2e gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Generate E2e

Claude Code

  1. Download generate-e2e.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/testing/e2e-test-framework/commands/generate-e2e.md, shared under the repository's MIT license. Read the full file on GitHub.

Generate comprehensive browser-based E2E tests for complete user workflows using Playwright, Cypress, or Selenium.

Purpose

Create automated tests that simulate real user interactions:

  • Complete user journeys (signup → login → purchase)
  • Multi-page workflows
  • Form interactions and validations
  • Navigation flows
  • Browser-specific behaviors
  • Mobile responsive testing

Supported Frameworks

Playwright (Recommended)

  • Multi-browser support (Chromium, Firefox, WebKit)
  • Auto-wait for elements
  • Network interception
  • Mobile emulation
  • Parallel execution

Cypress

  • Time-travel debugging
  • Real-time reloads
  • Automatic waiting
  • Network stubbing
  • Screenshot/video capture

Selenium WebDriver

  • Mature ecosystem
  • Cross-browser support
  • Remote execution (Selenium Grid)
  • Mobile testing (Appium)

Test Generation

When invoked, generate E2E tests with:

  1. User workflow analysis
  • Identify key user journeys
  • Map page interactions
  • Define success criteria
  1. Page Object Model
  • Create page classes
  • Define selectors
  • Implement action methods
  1. Test scenarios
  • Happy path workflows
  • Error handling paths
  • Edge cases
  1. Assertions
  • URL validation
  • Element presence
  • Content verification
  • State changes

Example: Playwright Test

import { test, expect } from '@playwright/test';

test.describe('User Registration Flow', () => {
  test('should complete full registration workflow', async ({ page }) => {
    // Navigate to signup
    await page.goto('https://example.com/signup');

    // Fill registration form
    await page.fill('[name="email"]', '[email protected]');
    await page.fill('[name="password"]', 'SecurePass123!');
    await page.fill('[name="confirmPassword"]', 'SecurePass123!');
    await page.check('[name="terms"]');

    // Submit and wait for navigation
    await page.click('button[type="submit"]');
    await page.waitForURL('**/verify-email');

    // Verify success message
…

Example: Cypress Test

describe('User Dashboard Workflow', () => {
  beforeEach(() => {
    cy.login('[email protected]', 'password123');
  });

  it('should load dashboard with user data', () => {
    cy.visit('/dashboard');
    cy.get('.welcome-message').should('contain', 'Welcome, John');
    cy.get('.user-stats').should('be.visible');
  });

  it('should create new project', () => {
    cy.visit('/dashboard');
    cy.get('[data-testid="new-project"]').click();

    cy.get('[name="projectName"]').type('My New Project');
    cy.get('[name="description"]').type('Project description here');
    cy.get('button[type="submit"]').click();
…

Page Object Model

// pages/LoginPage.ts
export class LoginPage {
  constructor(private page: Page) {}

  async goto() {
    await this.page.goto('/login');
  }

  async login(email: string, password: string) {
    await this.page.fill('[name="email"]', email);
    await this.page.fill('[name="password"]', password);
    await this.page.click('button[type="submit"]');
  }

  async getErrorMessage() {
    return this.page.locator('.error-message').textContent();
  }
}
…

Best Practices

  • Use data-testid attributes - Stable selectors
  • Implement Page Objects - Reusable page interactions
  • Handle waits properly - Auto-wait or explicit waits
  • Test realistic scenarios - Actual user workflows
  • Parallelize tests - Faster execution
  • Capture screenshots on failure - Debugging aid
  • Use fixtures - Consistent test data
  • Test across browsers - Chrome, Firefox, Safari

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Generate E2e?

Generate E2e is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Generate end-to-end browser tests for user workflows

How do I install Generate E2e in Claude Code?

Download generate-e2e.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Generate E2e in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Generate E2e safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.