add-command
Use this skill when the user asks to "add a command", "implement cx <something>", "new subcommand", "new CLI command", "add a new…
Use this skill when the user asks to "run tests", "test this", "check if tests pass", "cargo test", "run clippy", "lint this", "check formatting", "cargo fmt", "CI checks", "verify changes", "does this pass tests", "run the full check", "pre-commit check", or wants to verify
$ npx -y skills add coralogix/cx-cli --skill run-tests --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/run-testsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when the user asks to "run tests", "test this", "check if tests pass", "cargo test", "run clippy", "lint this", "check formatting", "cargo fmt", "CI checks", "verify changes", "does this pass tests", "run the full check", "pre-commit check", or wants to verify
name: run-tests description: Use this skill when the user asks to "run tests", "test this", "check if tests pass", "cargo test", "run clippy", "lint this", "check formatting", "cargo fmt", "CI checks", "verify changes", "does this pass tests", "run the full check", "pre-commit check", or wants to verify that code changes are correct. Use this even when the user says something like "make sure this works" or "check for issues" in the context of code changes. version: 0.1.0 metadata: internal: true
How to run tests, lint, and verify changes in the `cx` CLI. This skill covers running only - for writing new tests, see the `add-command` skill.
| Command | What it does | |---------|-------------| | `cargo test` | Run all unit + integration tests | | `cargo test <name>` | Run tests matching a name substring | | `cargo test -- --ignored` | Run integration tests (filesystem-dependent, skipped by default) | | `cargo fmt --check` | Check formatting (no changes) | | `cargo fmt` | Auto-fix formatting | | `cargo clippy --locked -- -D warnings` | Lint with warnings-as-errors | | `cargo build` | Verify compilation |
This is the exact sequence CI runs on every PR. Run it before committing or creating a PR:
cargo fmt --check && cargo clippy --locked -- -D warnings && cargo test --locked
The `--locked` flag ensures the lockfile is respected - this matches `.github/workflows/test.yml` and `lint.yml` exactly. CI runs tests on Ubuntu, macOS, and Windows.
Pick the right level of verification based on what changed:
Target tests efficiently instead of running the entire suite:
**Clippy warnings** - treated as errors via `-D warnings`. Fix every warning before committing. Common ones: unused variables, unnecessary clones, missing error handling.
**Format failures** - run `cargo fmt` to auto-fix. These never need manual intervention.
**Deserialization test failures** - usually means struct field names don't match JSON keys. Check that `#[serde(rename_all = "camelCase")]` is on response types and that `#[serde(default)]` is on `Vec` fields (the API sometimes omits empty arrays).
**Compilation errors in tests** - likely caused by changing a public function signature. Check callers in both `src/` and `tests/` directories.
**Integration test failures (`--ignored`)** - these depend on filesystem state (`~/.cx/` config directory). They may fail if the local environment isn't set up. This is expected in CI where no config exists.
The observability backbone for AI agents and engineering teams. Connect your agents to live logs, traces, metrics, dashboards, and alerts so they can investigate incidents, explain what changed, and reason about production with real operational context.
Use this skill when the user asks to "add a command", "implement cx <something>", "new subcommand", "new CLI command", "add a new…
Use this skill when the user asks to "add a skill", "create a skill", "new skill", "write a skill for", "skill for cx…
Creates GitHub pull requests with auto-generated summaries. Use this skill whenever the user wants to create a PR, open a pull…
Search and read official Coralogix platform documentation using **`cx docs search`** and **`cx docs fetch`**. Use when the user…
Use this skill for any question or action about the user's AI/GenAI applications or agents — their behavior, prompts/responses,…
This skill should be used when the user asks to "manage alerts", "create alert", "list alerts", "delete alert", "check alert…