Generate E2e
Generate end-to-end browser tests for user workflows
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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:
- User workflow analysis
- Identify key user journeys
- Map page interactions
- Define success criteria
- Page Object Model
- Create page classes
- Define selectors
- Implement action methods
- Test scenarios
- Happy path workflows
- Error handling paths
- Edge cases
- 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
- Legacy Code Remover Modernizes deprecated API usage, old syntax patterns (var, prototype, XMLHttpRequest), unnecessary polyfills, and compatibility shims — always checking platform targets first to avoid over-modernizing. Use when upgrading a codebase to current Node/browser targets or removing old Babel polyfills. Trigger with \"remove legacy code\", \"modernize deprecated APIs\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Learn Toggle learning mode with educational micro-explanations Slash Command · jeremylongshore/tons-of-skills-marketplace
- Lb Test Test load balancer traffic distribution and failover strategies Slash Command · jeremylongshore/tons-of-skills-marketplace
- Legal Obligations Maps every obligation, deadline, trap, and financial exposure in a contract into a chronological obligations matrix with total exposure calculation and imbalance scoring. Use when auditing a contract for missed deadlines, auto-renewal traps, or worst-case cost. Trigger with \"map contract obligations\", \"calculate financial exposure\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Generate Grpc Service Generate production-ready gRPC services with Protocol Buffers Slash Command · jeremylongshore/tons-of-skills-marketplace
- Generate Contract Generate comprehensive API contracts for consumer-driven contract testing Slash Command · jeremylongshore/tons-of-skills-marketplace
- Generate Map Analyze codebase and generate a comprehensive project-map.md overview Slash Command · jeremylongshore/tons-of-skills-marketplace
- Generate Api Docs Generate comprehensive OpenAPI/Swagger documentation from existing APIs Slash Command · jeremylongshore/tons-of-skills-marketplace