一键导入
fp-init
Bootstrap E2E_TESTS.md specification files for a project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bootstrap E2E_TESTS.md specification files for a project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Add a new feature or suite to the E2E spec and generate corresponding tests
Create a new E2E_TESTS.md specification file for a package
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
基于 SOC 职业分类
| name | fp-init |
| description | Bootstrap E2E_TESTS.md specification files for a project |
Bootstrap E2E_TESTS.md specification files for a project by analyzing its source code, release history, and architecture. This command is designed for projects that have no existing E2E specs and produces one or more spec files depending on the project's structure.
Additional instructions from the user: "$ARGUMENTS". Ignore if empty.
Read the project root to build a mental model:
Check for existing E2E_TESTS.md files. If any exist, inform the user and suggest fp-update-spec or fp-add-spec instead. Stop here unless the user explicitly wants to proceed.
Identify testable artifacts — each one will get its own E2E_TESTS.md:
For each testable artifact identified in Phase 1:
git tag --list to find version tagsRead the code carefully to identify features worth testing end-to-end:
For each feature, read the implementation to understand:
Cross-reference with tests that already exist (unit tests, integration tests):
Rank features for inclusion using these criteria:
Create the root-level spec (docs/E2E_TESTS.md or E2E_TESTS.md) with:
For each testable artifact, draft a package-level E2E_TESTS.md:
- [Suite Name](#suite-name))Preconditions (heading with bullet list): Setup required for all features in the suiteFeatures (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: Happy-path scenarios covering the primary functionalityedge: Boundary conditions, unusual-but-valid inputserror: Failure modes, validation errors, missing dependenciesside-effect: Observable interactions (hooks, notifications, file writes)idempotency: Safe repetition of operationsPostconditions (heading with bullet list): Verifiable end states<!-- skip: ... --> metadata for features requiring real external services, with clear instructions on how to unskip<!-- category: ... --> comment and at least one concrete, testable assertionAim for practical coverage, not exhaustive coverage:
Present a summary to the user:
Flightplanner Init Summary
====================
Project type: <monorepo|single-package>
Specs to create: N files
Root spec: docs/E2E_TESTS.md
- Project-wide testing constraints
Package specs:
packages/cli/E2E_TESTS.md
Suites: 4 (Init, Task, Push, Config)
Features: 23 (14 core, 3 edge, 4 error, 1 side-effect, 1 idempotency)
Skipped: 2 (requires-real-agent)
packages/server/E2E_TESTS.md
Suites: 3 (Auth, Projects, Webhooks)
Features: 18 (10 core, 2 edge, 4 error, 2 side-effect)
Skipped: 1 (requires-database)
Feature sources:
From release history: 15 features
From source code analysis: 26 features
From bug fix history: 4 features
Total: N specs, N suites, N features
Show the full draft of each spec file. Ask the user for feedback and adjustments before writing.
fp-review-spec to validate spec format and completenessfp-generate to create test files from the specsfp-audit to check coverage after generation