Agent workflows
Daily QA workflows for coding agents — PR gate, VRT, FRT, site onboarding, and Jira coverage.
Once VisualQ MCP is installed (quick start), use these workflows in Cursor or Claude Code Agent mode.
Workflow 1 — Pre-merge PR gate
Goal: Decide if a PR can merge based on VRT + FRT + rolling health.
-
Use MCP prompt
pr-quality-gate, or say:Run prompt pr-quality-gate for project acme-shop on staging. -
The agent calls
gate_pr_qualityand returnsblockMerge: true/false. -
If blocked:
- VRT:
get_run_failures→explain_vrt_failure - FRT:
frt_explain_failure - Re-run after fixes:
run_vrtwithconfirm: true
- VRT:
-
Open
viewerUrlin the response to see diffs in the dashboard.
Never use a single latest run as the site score. Use rolling health from get_site_health or gate_pr_quality.
Workflow 2 — Run VRT from the IDE
Run VRT on staging for project acme-shop, wait for completion, and list failures with mismatch %.Agent sequence:
run_vrt(confirm: true,environment: staging,project: acme-shop)wait_for_runget_run_failures- Optional:
explain_vrt_failureon the worst scenario
Workflow 3 — Create an FRT journey from plain language
Use prompt frt-journey-from-goal or:
Create an FRT test: user logs in, adds a product to cart, and reaches checkout.
Start URL: https://staging.example.com/
Project: acme-shopAgent sequence:
frt_search_step_libraryfrt_propose_journey→ pollget_job_statusfrt_save_feature_draft(confirm: true)frt_compile_featurerun_frt_feature(confirm: true)
Set VISUALQ_TOOL_PROFILE=frt-qa for a focused toolset.
Workflow 4 — Onboard a new client site
Use prompt onboard-new-site:
Onboard https://new-client.com/ in VisualQ — crawl, baselines, and one critical FRT flow.Steps the agent follows:
create_project → crawl_site → generate_scenarios → run_baseline → frt_propose_journey → check_setup_health
Workflow 5 — Jira ticket coverage
Use prompt jira-qa:
Cover JIRA ticket PROJ-456 for project acme-shop: acceptance criteria are login + order history visible.The agent creates or updates VRT or FRT coverage, runs tests, and summarizes with gate_pr_quality.
Workflow 6 — Setup health review
Before a release or after config changes:
Run prompt setup-health-review for project acme-shop.Surfaces missing baselines, unconfigured environments, and FRT compile blockers via check_setup_health.
Confirm mutations explicitly
Tools that change state (run tests, approve baselines, save FRT drafts) require confirm: true. Tell your agent “yes, confirm” when prompted — this prevents accidental runs.