About monitoring
monitoring is a Checkly skill for creating and managing monitoring checks with Checkly CLI v6.0.0 and later. It directs work toward the official CLI and construct references, covering API, browser, uptime, and related monitoring constructs.
Key features
- 01Checkly CLI setup and usage
- 02API, browser, and Playwright checks
- 03TCP, URL, DNS, ICMP, and heartbeat monitors
- 04Check groups and alert channels
- 05Testing with npx checkly test
Use cases
- 01Creating a Checkly monitoring project
- 02Defining API or browser checks
- 03Configuring uptime monitors and alert channels
- 04Running checks and inspecting test output
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ checkly/ checkly-cli --skill monitoringAfter installing, type/monitoringin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdreferences/alert-channels.mdapi-checks.mdbrowser-checks.mdcheck-groups.mdmultistep-checks.mdplaywright-checks.mdsupporting-constructs.mduptime-monitors.mdDetails
From the project READMECheckly Monitoring
- Refer to docs for Checkly CLI v6.0.0 and above.
- Check the Checkly CLI output to figure out into which folder the setup was generated.
- Use the Checkly CLI reference documentation.
- Use the Checkly construct reference documentation.
- Import and / or require any constructs you need in your code, such as
ApiCheck,BrowserCheck, orPlaywrightCheckfrom thecheckly/constructspackage. - Always ground generated code and CLI commands against the official documentation and examples in this file.
Using the Checkly CLI
- Use
npx checklyinstead of installing the Checkly CLI globally. - NEVER make up commands that do not exist.
- Use
npm create checkly@latestto set up a new Checkly project via the CLI.
Project Structure
checkly.config.ts- Mandatory global project and CLI configuration. We recommend using TypeScript.*.check.ts|js- TS / JS files that define the checks.*.spec.ts|js- TS / JS files that contain Playwright code for Browser and MultiStep checks.src/__checks__- Default directory where all your checks are stored. Use this directory if it already exists, otherwise create a new directory for your checks.package.json- Standard NPM project manifest.
Here is an example directory tree of what that would look like:
.
|-- checkly.config.ts
|-- package.json
-- src -- checks
|-- alert-channels.ts
|-- api-check.check.ts
`-- homepage.spec.ts
The checkly.config.ts at the root of your project defines a range of defaults for all your checks.
Reference: https://www.checklyhq.com/docs/constructs/project/
import { defineConfig } from 'checkly'
import { Frequency } from 'checkly/constructs'
export default defineConfig({
projectName: "Production Monitoring Suite",
logicalId: "prod-monitoring-2025",
repoUrl: "https://github.com/acme/monitoring",
checks: {
activated: true,
muted: false,
runtimeId: "2025.04",
frequency: Frequency.EVERY_10M,
locations: ["us-east-1", "eu-west-1", "ap-southeast-1"],
tags: ["production", "critical"],
checkMatch: "**/__checks__/*.check.ts",
ignoreDirectoriesMatch: ["node_modules/**", "dist/**"],
playwrightConfig: {
use: {
baseURL: "https://app.example.com",
},
},
browserChecks: {
frequency: Frequency.EVERY_30M,
testMatch: "**/__tests__/*.spec.ts",
},
},
cli: {
runLocation: "eu-west-1",
privateRunLocation: "private-dc1",
retries: 2,
},
})
Check and Monitor Constructs
Parse and read further reference documentation when tasked with creating or managing any of the following Checkly constructs:
- API Checks - ApiCheck construct, assertions, and authentication setup scripts
- Browser Checks - BrowserCheck construct with Playwright test files
- Playwright Checks - PlaywrightCheck construct for multi-browser test suites
- MultiStep Checks - MultiStepCheck construct for complex user flows
- Uptime Monitors - TCP (
TcpMonitor), URL (UrlMonitor), DNS (DnsMonitor), ICMP (IcmpMonitor), and Heartbeat monitors (HeartbeatMonitor) - Check Groups - CheckGroupV2 construct for organizing checks
- Alert Channels - Email, Phone, and Slack alert channels
- Supporting Constructs - Status pages, dashboards, maintenance windows, and private locations
Testing and Debugging
- Test checks using the
npx checkly testcommand. Pass environment variables with the-eflag, use--recordto persist results, and use--verboseto see all errors.