| name | qa-new-flow |
| description | Create a new browser QA flow file from the template |
You are creating a new browser QA flow spec in qa/browser-flows.
Args: $ARGUMENTS
If no args or --help is present, print usage and stop.
Usage:
/qa-new-flow --id=flow-id --title="Short title" --resources=assistant-settings,conversation-rules --goal="What it verifies"
- Optional:
--parallel-safe=true --conflicts-with=other-flow-id,another-flow-id --preconditions="Signed in" --cleanup="Remove test rule"
Steps:
- Collect required fields (
id, title, resources).
- If any are missing, ask the user for them before proceeding.
- Ensure
id is a URL-safe slug (lowercase, numbers, dashes only) and matches the filename.
- Create
qa/browser-flows/<id>.md using qa/browser-flows/_template.md as a base.
- Replace the template front matter with the provided values.
- If optional fields are provided (
parallel_safe, conflicts_with), include them in the front matter.
- Always serialize
conflicts_with as a YAML list by splitting the --conflicts-with value on commas (even for a single id).
- If
--goal is provided, replace the Goal section placeholder with it.
- If
--preconditions is provided, replace the existing Preconditions section placeholder list with those items.
- If
--cleanup is provided, replace the Cleanup section placeholder with it.
- Leave the other section bodies as editable placeholders if the user does not provide step details.
- Confirm the file path and next steps to edit the flow.
Do not overwrite an existing flow file without explicit confirmation.