main.

Let your agent do it
Let your agent do it
To run this guide from your terminal or your coding agent, run The steps below are the same work done by hand, so you can see what the agent built and why each piece is there.
npx checkly init in your project first. It installs the Checkly CLI and Checkly Skills for your agent. Then paste the prompt below into Claude Code, Cursor, Codex, or any agent that supports skills. It builds the same setup as this guide, proves it with npx checkly test --record, and stops for your confirmation before npx checkly deploy.Prompt
Step 1: One folder per service
The quickstart scaffold puts every check in a flat__checks__ folder. That works for four files and stops working at forty. Split it by the services in your system, so the folder tells you who owns a check and what it covers.
Project layout
group.ts and its checks. The config’s checkMatch glob finds check files at any depth, so nothing else changes when you add a folder.
Step 2: Shared settings in one config
Put the defaults every check should inherit incheckly.config.ts, and the alert channel they share next to the checks.
checkly.config.ts
__checks__/alert-channels.ts
logicalId stable. Changing it makes Checkly treat the project as new and drops its history.
Step 3: A group per service
A group holds the settings that are true for a whole service and lets you run or mute that service as a unit. The storefront runs from three regions so a regional CDN problem shows up as a single-location failure.__checks__/web/group.ts
group property. The uptime monitor also overrides the project’s ten-minute default, because a URL monitor is cheap enough to run every minute.
__checks__/web/uptime.check.ts
{{API_BASE_URL}}, so moving the API to a new host is a one-line change.
__checks__/api/group.ts
__checks__/api/books.check.ts
Terminal
Terminal

Step 4: Deploy from CI on every merge
Preview what the first deploy creates, then deploy once from your machine.Terminal
Terminal
Terminal
main touches monitoring code. Checkly diffs the project against what is deployed and applies only the change, so re-running it is safe.
.github/workflows/checkly-deploy.yml
CHECKLY_API_KEY as a repository secret and CHECKLY_ACCOUNT_ID as a repository variable. Both come from your Checkly settings, described in CLI authentication. The --force flag skips the interactive confirmation.
This workflow deploys after a merge. Running
npx checkly test on every pull request, so a broken check never reaches main, is the subject of the checks on every deploy guide.Verify it works
Add a check the way a teammate would: one new file in the service folder, nothing else.__checks__/api/book-detail.check.ts
Terminal
Terminal
Next
Turn your Playwright tests into monitors: the tests you already have become the checks in yourweb folder.