Write correct transform blocks for Mission Control canary checks including fan-out, inline, and generated canary patterns. Use when adding transformations to canary checks, splitting a single check into multiple results, modifying check output, or generating child canaries from discovered resources.
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.
Generate correct, production-ready Canary transform blocks from user intent.
Use this to pick the right transform pattern:
name).name).spec).transform.expr (CEL) by default over transform.javascript and transform.template.
.toJSON().name.pass explicitly in transformed checks (do not rely on defaults).deletedAt when events can resolve/disappear.markFailOnEmpty: true when empty output should fail the check.Return a JSON array (or object) of transformed check entries.
| Field | Required | Description | Example |
|---|---|---|---|
name | Yes | Check name. Keep deterministic across runs. | db/instance-1 |
pass | Recommended | Explicit pass/fail status. | true |
message | No | User-facing summary. | Replication lag within threshold |
description | No | Longer explanation/context. | Replica is healthy |
labels | No | Labels for filtering/relationships. | { 'env': 'prod', 'team': 'platform' } |
namespace | No | Override check namespace. | production |
icon | No | UI icon override. | alert |
duration | No | Duration in milliseconds. | 1200 |
start | No | Start time. | 2026-02-13T12:00:00Z |
detail | No | Structured detail payload. | { 'raw': r } |
data | No | Additional arbitrary data. | { 'source': 'prometheus' } |
metrics | No | Emitted metrics from transform. | [{ 'name': 'lag', 'type': 'gauge', ... }] |
deletedAt | No | Mark transformed check as resolved/deleted at a time. | r.endsAt |
transformDeleteStrategy | No | Behavior when transformed check disappears (Mark*,Ignore). | MarkHealthy |
Return a single JSON object and omit name.
| Field | Required | Description | Example |
|---|---|---|---|
name | Must omit | If set, this becomes fan-out behavior. | omit |
pass | No | Override pass/fail status. | json.status == 'ok' |
message | No | Override message. | 'status=' + string(json.status) |
description | No | Override description. | 'Health summary' |
error | No | Override error text. | 'response missing key' |
detail | No | Replace detail payload. | { 'status': json.status } |
data | No | Merge additional data into result data. | { 'apiVersion': json.version } |
duration | No | Override duration (milliseconds). | 1200 |
metrics | No | Add metrics emitted from transform. | [{ 'name': 'items', 'type': 'gauge', 'value': 10 }] |
Return either one canary object or an array of canary objects.
| Field | Required | Description | Example |
|---|---|---|---|
name | Yes | Child canary name. | generated-http-canary |
namespace | No | Child canary namespace. | default |
spec | Yes | Full child canary spec. | { 'schedule': '@every 5m', 'http': [...] } |
transform:
expr: |
results.alerts.map(r, {
'name': r.name + r.fingerprint,
'labels': r.labels,
'icon': 'alert',
'pass': false,
'message': r.message,
'description': r.message,
'deletedAt': has(r.endsAt) ? r.endsAt : null
}).toJSON()
transform:
expr: |
dyn(results).map(r, {
'name': r.job,
'namespace': 'namespace' in r ? r.namespace : '',
'labels': r.omit(['value', '__name__']),
'pass': r.value > 0,
'message': 'job=' + r.job
}).toJSON()
transform:
expr: |
{
'pass': json.status == 'ok',
'message': 'status=' + string(json.status),
'detail': {
'status': json.status,
'checkedAt': string(time.Now())
}
}.toJSON()
transform:
expr: |
{
'name': 'generated-http-canary',
'namespace': canary.namespace,
'spec': {
'schedule': '@every 5m',
'http': dyn(results).map(r, {
'name': r.Object.metadata.namespace + '/' + r.Object.metadata.name,
'url': 'https://' + r.Object.spec.rules[0].host
})
}
}.toJSON()
transform:
expr: |
dyn(results).map(r, {
'name': 'http-' + r.Object.metadata.name,
'namespace': r.Object.metadata.namespace,
'spec': {
'schedule': '@every 5m',
'http': [{
'name': r.Object.metadata.name,
'url': 'https://' + r.Object.spec.rules[0].host
}]
}
}).toJSON()
markFailOnEmpty: true
transform:
expr: |
dyn(results.rows).map(r, {
'name': r.id,
'pass': true
}).toJSON()
Use transformDeleteStrategy on the parent check when transformed checks may disappear.
Recommended values:
MarkHealthyMarkUnhealthyIgnoreExample:
transformDeleteStrategy: MarkHealthy
last_result() gives previous result context.Pattern:
transform:
expr: |
{
'detail': {
'max': string(results.?newest.modified.orValue(last_result().results.?max.orValue('now-60d')))
}
}.toJSON()
If checks use dependsOn, you can use outputs.<checkName>... in expressions/tests.
name..toJSON() in CEL expressions.pass for fan-out checks.markFailOnEmpty.spec) with check-transform output in same object.When user asks for a transformation:
results, json, rows, messages).pass, message, stable name.deletedAt, transformDeleteStrategy) if needed.If user provides sample payload, always base transform logic directly on that payload.
spec):
https://flanksource.com/docs/reference/canary-checker/llms.txtWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 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./mission-control-skills:write-canary-transformationsfrom mission-control-skills
npx claudepluginhub flanksource/claude-code-plugin --plugin mission-control-skills