name: ‘step-02-discover-tests’ description: ‘Find and parse test files’ nextStepFile: ‘{skill-root}/steps-c/step-03-quality-evaluation.md’
Collect test files in scope and parse structure/metadata.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
{test_dir} or selected folderHalt if no tests are found.
Collect:
tea_browser_automation is cli or auto)Fallback: If CLI is not installed, fall back to MCP (if available) or skip evidence collection.
CLI Evidence Collection: All commands use the same named session to target the correct browser:
playwright-cli -s=tea-review open <target_url>playwright-cli -s=tea-review tracing-start-s=tea-review on each command)playwright-cli -s=tea-review tracing-stop → saves trace.zipplaywright-cli -s=tea-review screenshot --filename={test_artifacts}/review-evidence.pngplaywright-cli -s=tea-review network → capture network request logplaywright-cli -s=tea-review closeAfter capturing trace.zip, prefer Playwright’s newer trace CLI for local or downloaded artifact analysis:
npx playwright trace open <trace.zip> to start a trace sessionnpx playwright trace actions --grep="expect" to jump to the failing assertionnpx playwright trace action <n> / trace snapshot <n> --name after for root-cause detailsnpx playwright trace close when doneSession Hygiene: Always close sessions using
playwright-cli -s=tea-review close. Do NOT useclose-all— it kills every session on the machine and breaks parallel execution.
Save this step’s accumulated work to {outputFile}.
{outputFile} does not exist (first save), create it using the workflow template (if available) with YAML frontmatter: ---
stepsCompleted: ['step-02-discover-tests']
lastStep: 'step-02-discover-tests'
lastSaved: '{date}'
---
Then write this step’s output below the frontmatter.
{outputFile} already exists, update:
'step-02-discover-tests' to stepsCompleted array (only if not already present)lastStep: 'step-02-discover-tests'lastSaved: '{date}'Load next step: {nextStepFile}