/qa-shift-right:synthetic-monitor-authorfrom qa-shift-right
Writes synthetic monitors for Datadog, Pingdom, Checkly or New Relic with browser/API steps, cadence and alerts, ranking journeys from RUM data.
Ships in qa-shift-right. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Synthetic monitoring is "a monitoring technique that is done by using a simulation or scripted recordings of transactions" (synthetic-mon-wiki); the scripts "run continuously at set intervals to measure performance metrics like functionality, availability, and response time - without requiring actual traffic." Per the ISTQB Glossary V4.7.1, shift right is "a test approach to test a system continuously in production," and synthetic monitors are its load-bearing primitive. This skill builds the configuration: which journey, how often, what to assert, when to page.
If real-user traffic is high and well-instrumented, real-user monitoring (RUM) is the complement.
Synthetic monitors should target the highest-business-value journey the team would page on at 3am if it broke. Examples:
Target commonly used paths and critical business processes. Don't monitor every flow - pick the 3-5 hero flows that map to the team's SLOs.
Synthetic monitors verify journeys the team chose to script; Real User Monitoring records journeys users actually take. The gap between the two sets is where production breakage goes undetected: a journey with 40 k sessions per day but no monitor can fail silently for hours. When RUM is instrumented, derive the journey list from it instead of gut feel:
Collect the RUM journey inventory. Pull the top ~50 view paths (or transaction names) by session volume from Datadog RUM, Sentry Performance, or GA4 + CrUX. Per-source queries are in references/rum-source-queries.md.
Score each journey: coverage_priority = session_volume_score x business_value_score, each on a 1-5 scale (range 1-25):
| Score | Daily sessions | Journey type (business value) |
|---|---|---|
| 5 | > 10 k | Revenue-generating (checkout, upgrade); authentication (login, SSO, MFA) |
| 4 | 1 k - 10 k | Primary feature (core read/write); onboarding |
| 3 | 100 - 1 k | Support / self-service (docs, status) |
| 2 | 10 - 100 | Informational (marketing pages, help) |
| 1 | < 10 | Admin / internal tooling |
The business-value column is editorial - align it with product stakeholders before the first run and record the agreed values.
Build the existing-monitor inventory. Datadog: GET /api/v1/synthetics/tests; Checkly: monitors/*.spec.ts + *.yml in the
repo; New Relic: GET /v2/monitors.json. Normalize each monitor to a
canonical URL path pattern (strip query strings, replace ID segments with
{id}, lowercase).
Diff and rank. Journeys whose normalized path matches no monitor
pattern form the gap list, sorted by coverage_priority descending. Emit
one row per gap: path, sessions/day, business value, score, recommended
monitor type (score >= 20 with interactions: browser check; pure API
endpoint: API check; score < 10: defer - monitor sprawl costs more than
the coverage is worth).
Feed the ranked gap list back into this step as the journey input.
Hard-reject rule: no RUM source, no gap analysis. If neither Datadog RUM, Sentry Performance, nor CrUX data exists for the target, halt and say so. Do not estimate journey volume from a sitemap - it contains every URL, not the ones users visit, and produces a monitor list biased by developer assumptions. Two data caveats: CrUX only captures publicly discoverable pages (use Datadog RUM or Sentry for post-login journeys), and Datadog RUM session retention is 30 days, so pick a representative date range.
| Platform | Notes |
|---|---|
| Datadog Synthetics | Named provider. Browser + API. Good for teams already on Datadog APM. |
| Checkly | Playwright-native browser checks; API checks; CI-as-code via checkly CLI. |
| Pingdom | Mature; well-known; uptime + transaction. |
| New Relic Synthetics | Synthetics-as-Code via JS scripts. |
| AWS CloudWatch Synthetics | Selenium-based; fits AWS-native stacks. |
| Smokescreen (open-source) | Self-hosted; for compliance-restricted environments. |
| F5 Distributed Cloud Synthetic | Named provider; browser + API. |
The platform decision typically follows the existing observability stack (Datadog APM → Datadog Synthetics; New Relic → New Relic Synthetics).
For browser checks, Playwright-style is the de-facto standard (Checkly natively, Datadog Synthetics increasingly). Drive the journey step by step with accessibility-first locators, then assert a confirmation state:
// monitors/checkout-journey.spec.ts (Checkly-style, excerpt)
import { test, expect } from '@playwright/test';
test('checkout journey - happy path', async ({ page }) => {
await page.goto('https://example.com/');
await page.getByRole('textbox', { name: 'Search' }).fill('BOOK-001');
// ...search, add to cart, sign in with a synthetic account,
// place order with a test-mode card...
await expect(page.getByRole('heading', { name: /Order confirmed/i })).toBeVisible();
});
Full browser and API templates: references/monitor-templates.md.
Use accessibility-first locators (not CSS classes); synthetic monitors that depend on CSS classes break on every UI refactor.
Critical: synthetic monitors hit production with real APIs. Use dedicated synthetic test accounts (not real customer data) and test-mode payment processors so the script doesn't trigger real charges / orders.
For API checks, HTTP-step format chains requests and asserts on each step - status code, response shape, and response time:
# monitors/api-orders-flow.yml (Checkly-style, excerpt)
- name: 2. List orders
method: GET
url: https://api.example.com/orders
headers: { Authorization: "Bearer {{TOKEN}}" }
assertions:
- { source: STATUS_CODE, comparison: EQUALS, target: 200 }
- { source: RESPONSE_TIME, comparison: LESS_THAN, target: 500 }
- { source: JSON_BODY, property: $.orders, comparison: IS_ARRAY }
Full multi-step auth + list + fetch template: references/monitor-templates.md.
Per-step assertions distinguish "the API returned" from "the API returned the right thing" - distinguish status code, response shape, and response time.
Default: 5 min - matches most user journeys and fits within a 99.9% uptime SLO budget (5-min monitor with 2-failure alert rule gives ~10 min to detection, well within ~9 hours/year of allowed downtime). Use 1 min for the highest-criticality flows (auth, payment, primary read) or when the SLO is 99.99%+. Use 15 min for expensive E2E browser checks. Use 1 hour for transactions that have side effects. Use daily for compliance / audit verification flows.
| Cadence | Use |
|---|---|
| 1 min | Highest-criticality flows (auth, payment, primary read). |
| 5 min | Most user journeys (default). |
| 15 min | Lower-priority or expensive (full E2E browser checks). |
| 1 hour | Synthetic transactions that have side effects (only as a sanity check). |
| Daily | Compliance / audit verification flows. |
Match the cadence to the SLO.
A single failure isn't an alert; a single failure is noise. Pattern:
# Alert config (Checkly-style)
alerts:
channels:
- id: pagerduty-checkout
filters:
steps: [4, 5] # only checkout/confirmation steps
- id: slack-eng
filters:
consecutiveFailures: 1 # any failure → Slack notify
escalation:
runBased: true
consecutiveFailures: 2
cooldownPeriod: 1h
Run from multiple geographic regions (3-5 minimum):
Response time varies dramatically by region; multi-region monitoring catches CDN / DNS / TLS issues that single-region misses.
Treat monitors as code:
monitors/
├── checkout-journey.spec.ts # browser check
├── api-orders-flow.yml # API check
├── auth-flow.spec.ts
├── checkly.config.ts # global config
└── README.md
CI pipeline (Checkly example):
- run: npm ci
- run: npx checkly test --reporter ci # smoke check before deploy
- run: npx checkly deploy --force # push the configs
Versioning the monitors in git means: PR review on changes, rollback if a monitor becomes flaky after a change, audit trail for why a monitor was added / removed.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Real customer data in synthetic monitors | PII leakage; real charges; data corruption. | Dedicated synthetic test accounts (Step 3). |
| Production payments triggered by monitors | Real charges every minute add up; refunds are a nightmare. | Test-mode payment processor in production (Step 3). |
| Single-region monitoring | CDN / DNS / TLS / regional issues invisible. | 3-5 regions (Step 7). |
| Page on first failure | Flake = page; on-call burnout. | N consecutive failures (Step 6). |
| Single one-step alert for the whole journey | "Checkout failed" - but where? Triage takes longer than fix. | Per-step alerts (Step 6). |
| Brittle CSS-class selectors in browser checks | Monitor breaks on every UI refactor; team disables. | Accessibility-first locators (Step 3). |
Monitor that asserts only status_code = 200 | "200 OK" with empty body / wrong shape passes; bug ships. | Assert response shape too (Step 4). |
| One-hour cadence on a 99.99% SLO | SLO breach detected after the budget is gone. | Cadence matches SLO (Step 5 table). |
https://glossary.istqb.org/en_US/term/shift-right
defines shift right as "A test approach to test a system
continuously in production." (Per workspace memory: ISTQB glossary
is JS-rendered; navigate via Playwright or real browser.)experiment-results-interpreter (qa-feature-flags plugin) - validates A/B experiments running behind flags.prod-canary-validator -
sibling: catches regressions in canary stage before full rollout.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/prod-canary-validatorUse when a canary deploy needs an automatic promote or rollback decision instead of someone watching dashboards. Compares the canary's error rate, p50, p95 and p99 latency and business KPIs with the baseline over the observation window, with absolute and relative thresholds and a significance check./release-runbook-authorUse when a service is about to ship and its release steps live only in people's heads or a chat thread, or a shared release window needs its cutover order. Writes a six-phase runbook (pre-flight, smoke, canary, promote gate, rollout, verification) with baseline-relative criteria and rollback paths.2 plugins ship this exact skill · first indexed Nov 2, 2026
npx claudepluginhub testland/qa --plugin qa-shift-rightOther plugins' skills for the same job