Write correct test blocks and assertions for Mission Control canary health checks. Use when creating canaries that need pass/fail conditions, adding test expressions, or writing assertions based on HTTP status, JSON response, exec output, or Kubernetes health.
Ships in mission-control-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write correct test blocks for canary checks.
true / false)..? + orValue(...)).| Field | Description | Example |
|---|---|---|
expr | CEL expression that evaluates to boolean | code == 200 && json.status == 'ok' |
javascript | JavaScript expression/script returning true / false | code === 200 |
template | Go template rendering true / false | {{ eq .code 200 }} |
Exact fields vary by check type.
| Variable | Description | Example |
|---|---|---|
results | Primary result payload for many check types | size(results) > 0 |
code | HTTP status code (HTTP checks) | code in [200, 201, 301] |
json | Parsed JSON response body (HTTP checks) | json.headers['User-Agent'] != '' |
headers | HTTP response headers | 'Content-Type' in headers.keys() |
sslAge | SSL validity duration (HTTP TLS checks) | sslAge > Duration('7d') |
outputs.<checkName> | Previous named check outputs (with dependsOn) | outputs.getUuid.json.uuid != '' |
check | Current check metadata | check.name != '' |
canary | Current canary metadata | canary.namespace == 'prod' |
test:
expr: "code == 200 && json.uuid != ''"
test:
expr: "! ('Authorization' in headers.keys())"
test:
expr: 'results.stdout == "hello"'
test:
expr: dyn(results).all(x, k8s.isHealthy(x))
test:
expr: results.failed == 0 && results.passed > 0
test:
expr: "code == 200 && outputs.getUuid.json.uuid != ''"
test:
expr: results.?files.orValue([]).size() > 0
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/mission-control-skills:write-canary-testsfrom mission-control-skills
npx claudepluginhub flanksource/claude-code-plugin --plugin mission-control-skills10 skills in this plugin
/create-config-scraperGenerate Mission Control ScrapeConfig YAML from natural language. Use when users ask to build a scraper, create a config scraper, or want YAML to scrape Kubernetes/AWS/GCP/Azure/SQL/HTTP/File/Exec/Logs/Slack/GitHub Actions/Trivy/Terraform sources./mission-control-overviewHigh-level guide to Flanksource Mission Control — an Internal Developer Platform for Kubernetes. Use when users ask what Mission Control is, available CRDs, and quick-start actions (scrapers, scrape plugins, health checks, notifications, silences, playbooks, views, and connections)./promotion-eval-createCreate a promotion evaluation template for any system by gathering requirements through structured questions and generating a reusable evaluation skill. Use when users ask to create a promotion check, release readiness evaluation, environment health template, or want to build a custom evaluation workflow for systems beyond Mission Control.
/promotion-eval-mission-controlEvaluates a Mission Control environment's platform health for release or promotion readiness. Checks health check pipelines, config scrapers, background jobs, notifications, event queues, and MC infrastructure. Use for pre-release checks, environment promotion, or environment status. Triggers: "check environment health", "is it ready for release", "pre-release health check", "evaluate environment", "promotion readiness", "environment status"
/troubleshooting-config-itemTroubleshoots infrastructure and application configuration items in Mission Control by diagnosing health issues, analyzing recent changes, and investigating resource relationships. Use when users ask about unhealthy or failing resources, mention specific config items by name or ID, inquire about Kubernetes pods/deployments/services, AWS EC2 instances/volumes, Azure VMs, or other infrastructure components. Also use when investigating why a resource is down, stopped, degraded, or showing errors, or when analyzing what changed that caused an issue./troubleshooting-health-checksDebugs and troubleshoots Mission Control health checks by analyzing check configurations, reviewing failure patterns, and identifying root causes. Use when users ask about failing health checks, mention specific health check names or IDs, inquire why a health check is failing or unhealthy, or need help understanding health check errors and timeouts.