with one click
fp-add-spec
Create a new E2E_TESTS.md specification file for a package
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create a new E2E_TESTS.md specification file for a package
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Add a new feature or suite to the E2E spec and generate corresponding tests
Bootstrap E2E_TESTS.md specification files for a project
Validate that E2E_TESTS.md specification files are complete and well-structured
Update an existing E2E_TESTS.md specification to reflect changes
Framework-agnostic E2E testing principles, spec-driven test generation, and maintenance workflows
Analyze the gap between E2E specifications and existing test implementations
| name | fp-add-spec |
| description | Create a new E2E_TESTS.md specification file for a package |
Create a new E2E_TESTS.md specification file for a package by analyzing its source code, commands, and public API.
Additional instructions from the user: "$ARGUMENTS". Ignore if empty.
Identify the target package:
$ARGUMENTS specifies a package path, use that.Read the package to understand:
Check if an E2E_TESTS.md already exists for this package. If it does, inform the user and suggest using update-spec instead.
Determine the suites. Each major command, workflow, or feature area becomes a suite.
Include an Index section at the top of the spec (after the title and description) with a markdown link to every suite (e.g., - [Suite Name](#suite-name)).
For each suite, draft these sections using heading levels appropriate to their nesting depth (e.g., if the suite is an H2, then these sections are H3; if the suite is an H3, they are H4; and so on):
Preconditions (heading with bullet list): What setup is needed (temp dir, git repo, config files, mock tools)Features (heading) containing individual features as flat peer subheadings one level deeper. Do NOT create intermediate category headings (e.g., #### Core, #### Edge) — categories are specified only via <!-- category: ... --> HTML comments on each feature. Aim for a mix of features across these categories:
core: Primary happy-path scenariosedge: Boundary conditions (empty inputs, very long strings, special characters)error: Failure modes (missing config, invalid input, unavailable dependencies)side-effect: Observable interactions (hooks, notifications, file creation)idempotency: Safe repetition (re-running commands, re-creating resources)Postconditions (heading with bullet list): Verifiable end statesFor features requiring real external services, add <!-- skip: ... --> metadata with clear documentation on how to unskip.
Ensure every feature has:
<!-- category: ... --> commentE2E_TESTS.md in the package directory.docs/E2E_TESTS.md or E2E_TESTS.md doesn't exist yet, offer to create one with project-wide testing constraints (isolation rules, cleanup patterns, environment variable conventions).review-spec to validate the formatgenerate to create test files from the spec