首页龙虾技能列表 › Checkly Cli Skills

Checkly Cli Skills

v1.0.1

Comprehensive Checkly CLI command reference and Monitoring as Code workflows. Use when user mentions Checkly CLI, monitoring as code, synthetic monitoring, A...

2· 446·1 当前·1 累计
by @vince-winkintel (Vince Lozada)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/26
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
The skill appears to implement a coherent Checkly CLI guide and templates, but there are internal inconsistencies (metadata vs runtime SKILL.md), and the runtime instructions reference credential/config locations and additional environment variables that the registry metadata does not declare — you should inspect scripts and templates before trusting secrets or running automation.
评估建议
This package looks like a genuine Checkly CLI skill set (lots of docs, templates, and helper scripts), but there are important inconsistencies you should resolve before use: - Verify source: confirm the repository URL and author (PROJECT_SUMMARY lists a GitHub repo; the registry says Source: unknown). Prefer a verified upstream repo before running scripts. - Inspect scripts: open scripts/import-from-ui.sh, scripts/init-project.sh, scripts/test-and-deploy.sh, and scripts/validate-config.sh for a...
详细分析 ▾
用途与能力
The skill's name, description, and many code/templates match a Checkly CLI Monitoring-as-Code skill, which legitimately needs CHECKLY_API_KEY and CHECKLY_ACCOUNT_ID and the checkly/npx binaries. However the registry metadata at the top states 'Required env vars: none' and 'Required binaries: none', while the SKILL.md frontmatter embedded in the package lists binaries (checkly, npx) and credentials (CHECKLY_API_KEY, CHECKLY_ACCOUNT_ID). That mismatch is an incoherence: either the published metadata is incomplete or the SKILL.md was prepared assuming credentials that the registry doesn't advertise. Also the PROJECT_SUMMARY claims a public GitHub repo URL while the skill 'Source' is 'unknown' in the registry — another discrepancy to verify.
指令范围
The runtime SKILL.md and sub-skill docs instruct use of npx checkly, npx checkly login, reading/writing the CLI config at ~/.config/@checkly/cli/config.json, and accessing environment variables. These are expected for a Checkly CLI skill. However templates and example check code also reference other environment variables (e.g., API_TOKEN, CLIENT_ID, CLIENT_SECRET, TEST_EMAIL, TEST_PASSWORD, process.env.API_KEY) that are not globally declared in the main registry metadata. The skill includes scripts that write files to disk (init/import/test/deploy helpers). Because instructions direct reading/writing local config and environment variables, you should audit the scripts and templates before running them with real credentials.
安装机制
No install specification is present (instruction-only skill with supporting templates and scripts). That minimizes hidden network downloads or arbitrary installs. The files included are plain templates and small shell scripts; still, they will execute local commands (npx, npm, sh) when you run them, so inspect them before execution.
凭证需求
Requesting CHECKLY_API_KEY and CHECKLY_ACCOUNT_ID is proportionate to a Checkly CLI deploy/import workflow and is documented in the skill. However: (1) the registry metadata omitted those required env vars, (2) many templates refer to additional environment variables (API_TOKEN, CLIENT_ID/SECRET, TEST_EMAIL/PASSWORD, etc.) which are application-specific — they are plausible for examples but not required universally, and (3) the SKILL.md documents a local storage path (~/.config/@checkly/cli/config.json) for credentials. Give only minimal-scope API keys (rotate & restrict permissions) and do not supply secrets until you review the code.
持久化与权限
The skill is not marked always:true and does not request system-wide privileges. It instructs storing Checkly credentials in the normal Checkly CLI config path (~/.config/@checkly/cli/config.json) — expected behavior for a CLI-based workflow. No evidence the skill attempts to modify other skills or agent-wide settings.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.12026/2/20

Fix ClawHub security scan - Add credential metadata declarations (CHECKLY_API_KEY, CHECKLY_ACCOUNT_ID). Metadata-only change, no functional updates.

● 无害

安装命令 点击复制

官方npx clawhub@latest install checkly-cli-skills
镜像加速npx clawhub@latest install checkly-cli-skills --registry https://cn.clawhub-mirror.com

技能文档

Comprehensive Checkly CLI command reference and Monitoring as Code (MaC) workflows.

Quick start

# Create new Checkly project
npm create checkly@latest

# Test checks locally npx checkly test

# Deploy to Checkly cloud npx checkly deploy

What is Monitoring as Code?

The Checkly CLI provides a TypeScript/JavaScript-native workflow for coding, testing, and deploying synthetic monitoring at scale. Define your monitoring checks as code, test them locally, version control them with Git, and deploy through CI/CD pipelines.

Key benefits:

  • Codeable - Define checks in TypeScript/JavaScript
  • Testable - Run checks locally before deployment
  • Reviewable - Code review your monitoring in PRs
  • Native Playwright - Use standard @playwright/test specs
  • CI/CD Native - Integrate with your deployment pipeline

Skill organization

This skill routes to specialized sub-skills by Checkly domain:

Getting Started:

  • checkly-auth - Authentication setup and login
  • checkly-config - Configuration files (checkly.config.ts) and project structure

Core Workflows:

  • checkly-test - Local testing workflow with npx checkly test
  • checkly-deploy - Deployment to Checkly cloud
  • checkly-import - Import existing checks from Checkly to code

Check Types:

  • checkly-checks - API checks, browser checks, multi-step checks
  • checkly-monitors - Heartbeat, TCP, DNS, URL monitors
  • checkly-groups - Check groups for organization and shared config

Advanced:

  • checkly-constructs - Constructs system and resource management
  • checkly-playwright - Playwright test suites and configuration
  • checkly-advanced - Retry strategies, reporters, environment variables, bundling

When to use Checkly CLI vs Web UI

Use Checkly CLI when:

  • Defining monitoring as part of your codebase
  • Automating check creation/updates in CI/CD
  • Testing checks locally during development
  • Version controlling monitoring configuration
  • Managing multiple checks efficiently
  • Integrating monitoring with application deployments

Use Web UI when:

  • Exploring Checkly for the first time
  • Viewing dashboards and historical results
  • Analyzing check failures and incidents
  • Managing account-level settings
  • Configuring alert channels (email, Slack, PagerDuty)
  • Setting up private locations

Common workflows

New project setup

# Initialize project
npm create checkly@latest
cd my-checkly-project

# Authenticate npx checkly login

# Test locally npx checkly test

# Deploy to cloud npx checkly deploy

Daily development

# Create new API check
cat > __checks__/api-status.check.ts <<'EOF'
import { ApiCheck, AssertionBuilder } from 'checkly/constructs'

new ApiCheck('api-status-check', { name: 'API Status Check', request: { url: 'https://api.example.com/status', method: 'GET', assertions: [ AssertionBuilder.statusCode().equals(200), AssertionBuilder.responseTime().lessThan(500), ], }, }) EOF

# Test locally npx checkly test

# Deploy when ready npx checkly deploy

Browser check with Playwright

# Create browser check
cat > __checks__/homepage.spec.ts <<'EOF'
import { test, expect } from '@playwright/test'

test('homepage loads', async ({ page }) => { const response = await page.goto('https://example.com') expect(response?.status()).toBeLessThan(400) await expect(page).toHaveTitle(/Example/) await page.screenshot({ path: 'homepage.jpg' }) }) EOF

# Test with Playwright locally (faster) npx playwright test __checks__/homepage.spec.ts

# Test via Checkly runtime npx checkly test __checks__/homepage.spec.ts

# Deploy npx checkly deploy

Import existing checks

# Import all checks from Checkly account
npx checkly import plan

# Review generated code git diff

# Commit imported checks git add . git commit -m "Import existing monitoring checks"

Decision Trees

"What type of check should I create?"

What are you monitoring?
├─ REST API / HTTP endpoint
│  ├─ Simple availability → API Check (request + status assertion)
│  ├─ Complex validation → API Check (request + multiple assertions + scripts)
│  └─ Just uptime/ping → URL Monitor (simpler, faster)
│
├─ Web application / User flow
│  ├─ Single page → Browser Check (one .spec.ts file)
│  ├─ Multiple steps → Browser Check or Multi-Step Check
│  └─ Full test suite → Playwright Check Suite (playwright.config.ts)
│
└─ Service health / Infrastructure
   ├─ Periodic heartbeat → Heartbeat Monitor
   ├─ TCP port → TCP Monitor
   ├─ DNS record → DNS Monitor
   └─ Simple HTTP → URL Monitor

Quick reference:

  • API Check: HTTP requests with assertions (status, headers, body, response time)
  • Browser Check: Single Playwright spec file for web testing
  • Multi-Step Check: Complex browser workflows (legacy, use Browser Check instead)
  • Playwright Check Suite: Multiple Playwright tests with projects/parallelization
  • Monitors: Simple health checks without code execution

"Test locally or deploy?"

What stage are you at?
├─ Developing new check
│  ├─ Browser check → npx playwright test (fastest iteration)
│  └─ API check → npx checkly test (includes assertions)
│
├─ Ready to validate
│  └─ npx checkly test (runs in Checkly runtime, catches issues)
│
└─ Ready for production
   └─ npx checkly deploy (schedule checks to run continuously)

Testing hierarchy:

  • npx playwright test - Fastest, local Playwright execution (browser checks only)
  • npx checkly test - Validates in Checkly runtime, catches compatibility issues
  • npx checkly deploy - Deploys for continuous scheduled monitoring

"File-based or construct-based checks?"

How do you want to define checks?
├─ Auto-discovery (convention over configuration)
│  ├─ Browser checks → .spec.ts files matching testMatch pattern
│  ├─ Multi-step → .check.ts files with MultiStepCheck construct
│  └─ API checks → *.check.ts files with ApiCheck construct
│
└─ Explicit definition
   ├─ Programmatic → Construct instances in .check.ts files
   └─ Full control → Playwright Check Suite with playwright.config.ts

Patterns:

  • Auto-discovery: Configure checks.browserChecks.testMatch in checkly.config.ts
  • Explicit constructs: Import from checkly/constructs and instantiate
  • Playwright projects: Define multiple test suites with different configs

"Where should configuration go?"

What are you configuring?
├─ Project-level (all checks)
│  └─ checkly.config.ts → defaults, locations, frequency, runtime
│
├─ Group-level (related checks)
│  └─ CheckGroup construct → shared settings for subset of checks
│
└─ Check-level (individual)
   └─ Check constructor → override defaults for specific check

Configuration hierarchy (specific overrides general):

  • Check-level properties (highest priority)
  • CheckGroup properties
  • checkly.config.ts defaults
  • Checkly account defaults (lowest priority)

Project structure

Typical Checkly CLI project:

my-monitoring-project/
├── checkly.config.ts          # Project configuration
├── __checks__/                # Check definitions
│   ├── api.check.ts           # API check construct
│   ├── homepage.spec.ts       # Browser check (auto-discovered)
│   ├── login.spec.ts          # Another browser check
│   └── utils/
│       ├── alert-channels.ts  # Shared alert channel definitions
│       └── helpers.ts         # Shared helper functions
├── playwright.config.ts       # Playwright configuration (optional)
├── package.json
└── node_modules/
    └── checkly/               # CLI package with constructs

Installation methods

New project (recommended)

npm create checkly@latest

Creates scaffolded project with:

  • checkly.config.ts with sensible defaults
  • Example checks in __checks__/ directory
  • package.json with checkly dependency
  • .gitignore configured

Existing project

# Install as dev dependency
npm install --save-dev checkly

# Create configuration file npx checkly init

Global installation (not recommended)

npm install -g checkly
checkly test

Note: Use npx checkly instead for project-specific CLI version.

Related Skills

Getting started:

  • See checkly-auth for authentication setup
  • See checkly-config for project configuration
  • See checkly-test for local testing workflow

Creating checks:

  • See checkly-checks for API and browser checks
  • See checkly-monitors for simpler health checks
  • See checkly-playwright for full test suite setup

Advanced workflows:

  • See checkly-deploy for deployment strategies
  • See checkly-constructs for understanding the object model
  • See checkly-advanced for retry strategies and reporters

Import existing:

  • See checkly-import to migrate from web UI to code
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务