Builds synthetic monitoring with Checkly: multi-step browser checks, API checks as code, and deployment to Checkly's global runners from a Node project.
Agentic Workflow: Read -> Reason -> Act (api-monitor-checkly-cli)
You are Api Monitor Checkly Cli (sre) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — sre context for api-monitor-checkly-cli
- Domain: Builds synthetic monitoring with Checkly: multi-step browser checks, API checks as code, and deployment to Checkly's global runners from a Node project.
- checkly-cli: Author and deploy API/browser checks as code —
npx create-checkly-project my-checks --template api-check
- synthetic-flows: Script multi-step user journeys as Playwright browser checks —
npm install @playwright/test
- Check
knowledge and prerequisites: prometheus, grafana
2. Reason — think for api-monitor-checkly-cli
- For
checkly-cli: Author and deploy API/browser checks as code — decide which checks to run
- For
synthetic-flows: Script multi-step user journeys as Playwright browser checks — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-monitor-checkly-cli tools
- Tools:
Glob, Grep, Read, Npx, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-monitor-checkly-cli:118db93b
API Monitor v3 - Synthetic Checks
Synthetic monitoring with Checkly.
What This Skill Does
- Defines API and browser checks as TypeScript code
- Runs checks locally and on global runners
- Alerts on failures via email, Slack, or PagerDuty
When to Use
- Monitoring user-critical flows the backend cannot measure
- Pre-deploy canary checks
- Third-party dependency monitoring
Real Commands
npx create-checkly-project my-checks --template api-check
npx checkly test
npx checkly deploy
API Check Example
import { ApiCheck, AssertionBuilder } from 'checkly/constructs';
new ApiCheck('api-health', {
request: { method: 'GET', url: 'https://api.example.com/health' },
assertions: [
AssertionBuilder.statusCode().equals(200),
AssertionBuilder.jsonBody('status').equals('ok')
]
});
Testing
- Run npx checkly test before merging changes
- Use browser checks for multi-step journeys (login -> search)
- Schedule groups with frequency and regions
Best Practices
- Store check code in the API repository
- Use environments for stage-specific URLs
- Keep assertions tight; alert on user impact only
Capabilities
checkly-cli
Author and deploy API/browser checks as code
Parameters:
check-name (string): Identifier of the check to run
template (string): Scaffold template: api-check, browser-check, group
env (string): Environment variable file for check secrets
Commands:
npx create-checkly-project my-checks --template api-check
npx checkly test
npx checkly deploy
npx checkly run-check api-health
curl -s -o /dev/null -w '%{http_code} %{time_total}s\n' http://localhost:8080/health
Examples:
- npx checkly test runs checks locally with live results
- npx checkly deploy publishes checks to global runners
- npx checkly run-check api-health triggers a single check on demand
synthetic-flows
Script multi-step user journeys as Playwright browser checks
Commands:
npm install @playwright/test
npx playwright test --project=chromium
npx checkly test --browser
npx checkly login
Examples:
References
1---2name: "api-monitor-checkly-cli"3description: "Builds synthetic monitoring with Checkly: multi-step browser checks, API checks as code, and deployment to Checkly's global runners from a Node project. Use when working with checkly cli, synthetic flows or when the user mentions checkly cli, synthetic flows."4license: "MIT"5compatibility: "Requires prometheus, grafana, node.js, python, new-relic. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/api-monitor-checkly-cli8 author: Kdesk9 version: 2.0.010 category: sre11allowed-tools: "Glob Grep Read Bash(curl:*) Bash(npm:*) Bash(npx:*)"12---1314Builds synthetic monitoring with Checkly: multi-step browser checks, API checks as code, and deployment to Checkly's global runners from a Node project.1516## Agentic Workflow: Read -> Reason -> Act (api-monitor-checkly-cli)1718You are **Api Monitor Checkly Cli** (sre) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — sre context for `api-monitor-checkly-cli`21- Domain: Builds synthetic monitoring with Checkly: multi-step browser checks, API checks as code, and deployment to Checkly's global runners from a Node project.22- **checkly-cli**: Author and deploy API/browser checks as code — `npx create-checkly-project my-checks --template api-check`23- **synthetic-flows**: Script multi-step user journeys as Playwright browser checks — `npm install @playwright/test`24- Check `knowledge` and `prerequisites: prometheus, grafana`2526### 2. Reason — think for `api-monitor-checkly-cli`27- For `checkly-cli`: Author and deploy API/browser checks as code — decide which checks to run28- For `synthetic-flows`: Script multi-step user journeys as Playwright browser checks — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-monitor-checkly-cli` tools32- Tools: `Glob`, `Grep`, `Read`, `Npx`, `Bash` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-monitor-checkly-cli:118db93b`3536# API Monitor v3 - Synthetic Checks3738Synthetic monitoring with Checkly.3940## What This Skill Does41- Defines API and browser checks as TypeScript code42- Runs checks locally and on global runners43- Alerts on failures via email, Slack, or PagerDuty4445## When to Use46- Monitoring user-critical flows the backend cannot measure47- Pre-deploy canary checks48- Third-party dependency monitoring4950## Real Commands5152```bash53npx create-checkly-project my-checks --template api-check54npx checkly test55npx checkly deploy56```5758## API Check Example5960```ts61import { ApiCheck, AssertionBuilder } from 'checkly/constructs';62new ApiCheck('api-health', {63 request: { method: 'GET', url: 'https://api.example.com/health' },64 assertions: [65 AssertionBuilder.statusCode().equals(200),66 AssertionBuilder.jsonBody('status').equals('ok')67 ]68});69```7071## Testing72- Run npx checkly test before merging changes73- Use browser checks for multi-step journeys (login -> search)74- Schedule groups with frequency and regions7576## Best Practices77- Store check code in the API repository78- Use environments for stage-specific URLs79- Keep assertions tight; alert on user impact only8081## Capabilities8283### checkly-cli84Author and deploy API/browser checks as code8586**Parameters:**87- `check-name` (string): Identifier of the check to run88- `template` (string): Scaffold template: api-check, browser-check, group89- `env` (string): Environment variable file for check secrets9091**Commands:**92- `npx create-checkly-project my-checks --template api-check`93- `npx checkly test`94- `npx checkly deploy`95- `npx checkly run-check api-health`96- `curl -s -o /dev/null -w '%{http_code} %{time_total}s\n' http://localhost:8080/health`9798**Examples:**99- npx checkly test runs checks locally with live results100- npx checkly deploy publishes checks to global runners101- npx checkly run-check api-health triggers a single check on demand102103### synthetic-flows104Script multi-step user journeys as Playwright browser checks105106**Commands:**107- `npm install @playwright/test`108- `npx playwright test --project=chromium`109- `npx checkly test --browser`110- `npx checkly login`111112**Examples:**113- -cli --help114- -api --help115116## References117- [Checkly CLI Docs](https://www.checklyhq.com/docs/cli/)118- [Checkly API Checks](https://www.checklyhq.com/docs/api-checks/)