name: ‘step-02-generation-mode’ description: ‘Choose AI generation or recording mode’ outputFile: ‘{test_artifacts}/atdd-checklist-{story_key}.md’
Choose the appropriate generation mode for ATDD tests.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
Use AI generation when:
backend: Always use AI generation (no browser recording needed)Proceed directly to test strategy if this applies.
Skip this section entirely if {detected_stack} is backend. For backend projects, use AI generation from API documentation, OpenAPI/Swagger specs, or source code analysis instead.
If {detected_stack} is frontend or fullstack:
Use recording when UI interactions need live browser verification.
Tool selection based on config.tea_browser_automation:
If auto:
Note:
${timestamp}is a placeholder the agent should replace with a unique value (e.g., epoch seconds) for session isolation.
playwright-cli -s=tea-atdd-${timestamp} open <url> → playwright-cli -s=tea-atdd-${timestamp} snapshot → extract refsIf cli:
playwright-cli -s=tea-atdd-${timestamp} open <url>, snapshot, screenshot, click <ref>, etc.If mcp:
If none:
State the chosen mode and why. Then proceed.
Save this step’s accumulated work to {outputFile}.
{outputFile} does not exist (first save), create it with YAML frontmatter: ---
stepsCompleted: ['step-02-generation-mode']
lastStep: 'step-02-generation-mode'
lastSaved: '{date}'
---
Then write this step’s output below the frontmatter.
{outputFile} already exists, update:
'step-02-generation-mode' to stepsCompleted array (only if not already present)lastStep: 'step-02-generation-mode'lastSaved: '{date}'Load next step: {nextStepFile}