flightplanner
Automates E2E testing using specifications as the source of truth.
Install
mkdir -p .claude/skills/flightplanner && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11512" && unzip -o skill.zip -d .claude/skills/flightplanner && rm skill.zipInstalls to .claude/skills/flightplanner
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Framework-agnostic E2E testing principles, spec-driven test generation, and maintenance workflowsKey capabilities
- →Define E2E test behavior in `E2E_TESTS.md` specification files.
- →Generate test code from `E2E_TESTS.md` specifications.
- →Ensure complete test isolation for each test execution.
- →Perform resilient cleanup after test execution with retries.
- →Mock external dependencies only at system boundaries.
- →Run local E2E tests without remote or live services.
How it works
The skill generates and maintains E2E test code from `E2E_TESTS.md` specification files, ensuring complete test isolation and resilient cleanup for each test run.
Inputs & outputs
When to use flightplanner
- →Generate test code from specs
- →Maintain isolated test environments
- →Perform resilient cleanup after test execution
About this skill
Flightplanner Skill
You are an expert at writing, maintaining, and reasoning about end-to-end (E2E) tests. You follow spec-driven testing practices where E2E_TESTS.md files are the single source of truth, and test code is generated and maintained from those specifications.
Core Principles
1. Specs Are the Source of Truth
All E2E test behavior is defined in E2E_TESTS.md specification files. Tests are generated from specs, not the other way around. When specs and tests disagree, the spec wins.
- Root-level
docs/E2E_TESTS.mdorE2E_TESTS.mddefines project-wide testing philosophy - Package-level
E2E_TESTS.mdfiles define specific test cases - Never modify specs to match broken tests — fix the tests
2. Complete Test Isolation
Every test must be independent. No shared state, no ordering dependencies.
- Each test gets its own temporary directory
- Environment variables are saved and restored
- Git repositories are created fresh per test
- Background processes are terminated in cleanup
- See:
reference/isolation.md
3. Resilient Cleanup
Cleanup failures must never fail tests. Use best-effort cleanup with retries.
- Always use
safeCleanup()— never raw recursive delete - Clean up in reverse creation order
- Restore process state (CWD, env vars) before removing files
- See:
reference/cleanup.md
4. Mock Only at System Boundaries
Prefer real implementations. Mock only external, slow, expensive, or non-deterministic dependencies.
- Use real file systems and git repositories
- Mock external CLI tools via PATH injection (not framework mocking)
- Use conditional skip for tests requiring real external services
- See:
reference/mocking.md
5. Local Tests Must Always Be Runnable
The default E2E test suite must be fully self-contained and runnable without access to any remote or live services. Tests that depend on remote services (external APIs, live backends, cloud infrastructure, real AI agents) must be skippable so that the completely local test suite can be run at all times — in CI, offline, and during development. Remote-dependent tests are opt-in, never opt-out.
- Prefer the test framework's native filtering or tagging mechanism (e.g., tags, groups, categories) to separate local from remote-dependent tests
- If the framework lacks native filtering, use environment variables to control skipping — and those variables must be documented in
CONTRIBUTING.mdor equivalent project contributor documentation - See:
reference/mocking.md
6. Setup-Execute-Verify
Every test follows three phases:
Setup → prepare the specific state for this test
Execute → perform the single action under test
Verify → assert the expected outcomes
7. Autogenerated Tests
Test files include headers/footers indicating they are autogenerated. Manual modifications are overwritten on regeneration. To change tests, update the spec.
8. Execute Before Trusting
Never assume generated test code works until it has been executed. Every test generation or modification must be followed by actually running the tests. If a test passes but the underlying feature is broken, the test is wrong. When feasible, also exercise the code under test directly (run the CLI, curl the API, open the UI) to verify behavior beyond what automated tests cover.
9. Run Tests First
Before modifying any test code, run the existing test suite to establish a known baseline. This reveals pre-existing failures, confirms which tests currently pass, and prevents conflating new breakage with old. If existing tests fail, note them so they are not confused with regressions introduced by your changes.
Spec Format Summary
Each E2E_TESTS.md contains suites with this structure:
## <Suite Name>
### Preconditions
- Required setup (maps to per-test or per-suite setup hooks)
### Features
#### <Feature Name>
<!-- category: core|edge|error|side-effect|idempotency -->
- Assertion 1
- Assertion 2
### Postconditions
- Verifiable end states
Feature Categories
| Category | Purpose |
|---|---|
core | Happy-path, primary functionality |
edge | Boundary conditions, unusual-but-valid inputs |
error | Failure modes, error handling |
side-effect | External interactions, hooks, notifications |
idempotency | Safe repetition of operations |
Metadata Comments
<!-- category: core --> Required: test category
<!-- skip: requires-real-agent --> Optional: generates skipped test
<!-- tags: slow, docker --> Optional: arbitrary tags
Full format specification: reference/spec-format.md
Test Organization
File Naming
<feature>.e2e.test.<ext>
E2E tests MUST live in their own dedicated files, separate from unit tests, integration tests, or manually-written tests. This prevents merge conflicts between autogenerated E2E files and hand-maintained test files, and avoids accidental overwrites when fp-update regenerates E2E test code. See reference/organization.md for details.
Directory Layout
package/
├── src/commands/__tests__/
│ ├── e2e-utils.ts # Shared helpers
│ ├── init.e2e.test.ts # One file per suite
│ ├── task.e2e.test.ts
│ └── fixtures/ # Test data
├── E2E_TESTS.md # Spec file
└── vitest.e2e.config.ts # E2E runner config
Mapping: Spec → Test
| Spec | Test Construct |
|---|---|
Suite (##) | Suite/group block (e.g., describe() in vitest) + test file |
| Preconditions | Per-test setup hook (e.g., beforeEach in vitest) |
Feature (####) | Individual test case (e.g., it() / test() in vitest) |
| Bullets | Assertion statements (e.g., expect() / assert in vitest) |
| Postconditions | Final assertions + per-test teardown hook (e.g., afterEach in vitest) |
Full organization guide: reference/organization.md
Mock Strategy Summary
Decision order:
- Can I use the real thing? → Use it
- Can I use a local substitute? → Use it
- Is the external thing being tested? → Need real/high-fidelity
- Is the cost too high? → Mock it
PATH-based mocking for CLI tools:
createMockTool("docker", exitCode=0, output="Docker version 24.0.0")
env.PATH = mockBinDir + ":" + originalPath
Conditional skip for optional dependencies:
SKIP_REAL_AGENT = env.E2E_REAL_AGENT != "true"
suite.skipIf(SKIP_REAL_AGENT) "real agent tests":
...
Full mocking guide: reference/mocking.md
Commands
| Command | Description | Modifies Code? |
|---|---|---|
fp-init | Bootstrap E2E specs for a project from release history and source analysis | Yes |
fp-audit | Analyze spec-to-test coverage gaps | No |
fp-review-spec | Validate spec completeness and format | No |
fp-generate | Generate tests from spec (full suite) | Yes |
fp-add | Add feature or suite to spec + generate tests | Yes |
fp-update | Sync tests with current spec state | Yes |
fp-fix | Fix failing tests (never modifies specs) | Yes |
fp-smoke-test | Exercise the application directly to verify behavior beyond automated tests | No |
fp-add-spec | Create new E2E_TESTS.md for a package | Yes |
fp-update-spec | Update spec from git log / new features | Yes |
Workflow
Starting Fresh (no specs exist)
- Run
fp-initto bootstrapE2E_TESTS.mdfiles across the project from release history and source analysis - Run
fp-review-specto validate completeness - Run
fp-generateto create test files
Adding Specs to a Single Package
- Run
fp-add-specto createE2E_TESTS.mdby analyzing the package - Run
fp-review-specto validate completeness - Run
fp-generateto create test files
Adding New Features
- Run
fp-addwith a description of the feature - It detects whether to add to an existing suite or create a new one
- Updates the spec and generates/updates tests
Maintaining Tests
- Run
fp-auditto check coverage - Run
fp-updateto sync tests with spec changes - Run
fp-fixto repair failing tests
After Code Changes
- Run
fp-update-specto reflect new functionality in specs - Run
fp-updateto regenerate tests from updated specs
Verifying Beyond Tests
Run fp-smoke-test to exercise the application directly and verify that features work end-to-end in a real environment, not just in isolated test cases.
Key Conventions
- All examples use pseudocode — adapt to the project's actual language and test framework
- Specs use HTML comments for metadata — machine-parseable, invisible when rendered
- Tests are autogenerated — never hand-edit generated test files
- Cleanup never fails tests — best-effort with retries
- Real over mock — prefer real file systems, real git, real processes
- Sequential execution — E2E tests run in a single fork to avoid resource conflicts
Reference Documents
reference/spec-format.md— Complete guide to E2E_TESTS.md format
Content truncated.
When not to use it
- →When E2E test behavior is not defined in `E2E_TESTS.md` files.
- →When tests require heavy interaction with real external services that cannot be skipped.
- →When manual test code modification is preferred over spec-driven generation.
Limitations
- →Test behavior must be defined in `E2E_TESTS.md` files.
- →Manual modifications to generated test files are overwritten.
- →Tests dependent on remote services must be skippable for local execution.
How it compares
This approach prioritizes `E2E_TESTS.md` as the single source of truth for test behavior, automating test code generation and maintenance, unlike manually written and maintained test suites.
Compared to similar skills
flightplanner side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| flightplanner (this skill) | 0 | 5mo | Review | Advanced |
| webapp-testing | 353 | 3mo | Review | Intermediate |
| dev-browser | 53 | 4mo | Review | Intermediate |
| playwright-browser-automation | 29 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
webapp-testing
anthropics
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.
dev-browser
SawyerHood
Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.
playwright-browser-automation
lackeyjb
Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.
windows-ui-automation
martinholovsky
Expert in Windows UI Automation (UIA) and Win32 APIs for desktop automation. Specializes in accessible, secure automation of Windows applications including element discovery, input simulation, and process interaction. HIGH-RISK skill requiring strict security controls for system access.
unity-mcp-orchestrator
CoplayDev
Orchestrate Unity Editor via MCP (Model Context Protocol) tools and resources. Use when working with Unity projects through MCP for Unity - creating/modifying GameObjects, editing scripts, managing scenes, running tests, or any Unity Editor automation. Provides best practices, tool schemas, and workflow patterns for effective Unity-MCP integration.
agent-browser
vercel-labs
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.