name: 'step-01-preflight-and-context' description: 'Verify prerequisites and load story, framework, and knowledge base' outputFile: '{test_artifacts}/atdd-checklist-{story_id}.md' nextStepFile: './step-02-generation-mode.md'
Verify prerequisites and load all required inputs before generating failing tests.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
playwright.config.ts or cypress.config.ts)If any are missing: HALT and notify the user.
{story_file} (or ask user if not provided){test_dir} for existing test patterns, fixtures, helpersFrom {config_source}:
tea_use_playwright_utilstea_browser_automationUse {knowledgeIndex} to load:
Core (always):
data-factories.mdcomponent-tdd.mdtest-quality.mdtest-healing-patterns.mdselector-resilience.mdtiming-debugging.mdPlaywright Utils (if enabled):
overview.md, api-request.md, network-recorder.md, auth-session.md, intercept-network-call.md, recurse.md, log.md, file-utils.md, network-error-monitor.md, fixtures-composition.mdPlaywright CLI (if tea_browser_automation is "cli" or "auto"):
playwright-cli.mdMCP Patterns (if tea_browser_automation is "mcp" or "auto"):
Traditional Patterns (if utils disabled):
fixture-architecture.mdnetwork-first.mdSummarize loaded inputs and confirm with the user. Then proceed.
Save this step's accumulated work to {outputFile}.
If {outputFile} does not exist (first save), create it with YAML frontmatter:
---
stepsCompleted: ['step-01-preflight-and-context']
lastStep: 'step-01-preflight-and-context'
lastSaved: '{date}'
---
Then write this step's output below the frontmatter.
{outputFile} already exists, update:
'step-01-preflight-and-context' to stepsCompleted array (only if not already present)lastStep: 'step-01-preflight-and-context'lastSaved: '{date}'Load next step: {nextStepFile}