build-runwhen-task

build-runwhen-task is a skill for Claude Code from runwhen-contrib/runwhen-platform-mcp. It costs 115 tokens per session (3,707 once invoked), scanned A, original, Apache-2.0.

A workflow for creating a RunWhen automation task, called an SLX, from start to finish. It covers writing a health check or troubleshooting script, testing it, fixing its output, and committing it.

In plain words
What is it for?
Use it to build monitoring checks, troubleshooting runbooks, incident-response automations, or service health metrics.
Why use it?
It provides the checks and iteration needed to turn an infrastructure script into a task that can run reliably, while first checking whether an existing task already solves the problem.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the runwhen-platform plugin — 15 skills, 3 agents, 1 MCP server shipped together

Good fit Use it to build monitoring checks, troubleshooting runbooks, incident-response automations, or service health metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add runwhen-contrib/runwhen-platform-mcp --skill build-runwhen-task
Clone the repo
git clone --depth 1 https://github.com/runwhen-contrib/runwhen-platform-mcp

Made for: Claude Code.

Or install runwhen-platform, the plugin that ships this one along with the rest of its 15 skills, 3 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-runwhen-task

README.md
[![agentmods](https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task/github.svg)](https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task)
Your own site
<a href="https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task"><img src="https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-runwhen-task

Your own site · 80×15
<a href="https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task"><img src="https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/build-runwhen-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.03707
Opus 5.5 $0.00046 $0.01483
Sonnet 5.5 $0.00023 $0.00741
Haiku 4.5 $0.00012 $0.00371

Measured 3mo ago against content hash d381097a5794, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-runwhen-task scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (references/bash-sli-template.sh, references/bash-task-template.sh, references/python-sli-template.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/build-runwhen-task/SKILL.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build RunWhen Task

End-to-end workflow for creating a RunWhen SLX from scratch.

Before you start — check the registry

Always search the CodeBundle Registry first using the find-and-deploy-codebundle skill. There may already be a production-ready codebundle for the task. Only proceed here if the registry has no suitable match.

When to use

  • Creating a new health check or monitoring task that doesn't exist in the registry
  • Building a troubleshooting runbook for infrastructure
  • Automating incident response with scheduled checks
  • Adding an SLI (health metric) to an existing task

Workflow

  1. Load context — get_workspace_context (ALWAYS first — loads RUNWHEN.md rules)
  2. Discover secrets — get_workspace_secrets(workspace_name="my-workspace")
  3. Write script — Use the reference templates below as starting points
  4. Validate — validate_script checks contract compliance
  5. Test — run_script_and_wait(workspace_name="my-workspace", ...) with env_vars, secret_vars
  6. Iterate — Fix based on output, re-test until issues/severity/next-steps are correct
  7. Commit — commit_slx(workspace_name="my-workspace", ...) with metadata (see reference examples)
    • Or GitOps: render_codecollection_skill via the commit-to-codecollection skill when storing in a private codecollection repo instead of the workspace
  8. Wait — Allow 1-3 minutes for reconciliation before querying the SLX

Location auto-resolves. You do NOT need to call get_workspace_locations or pass a location parameter. The server automatically picks the best runner (workspace locations preferred over public). Only specify location explicitly when the workspace has multiple workspace-type runners and you need to target a specific one. See the discover-locations skill for details.

Reference templates

Read these files for complete, contract-compliant script templates:

Template Path Use for
Bash task references/bash-task-template.sh Bash health checks that report issues
Python task references/python-task-template.py Python health checks that report issues
Bash SLI references/bash-sli-template.sh Bash health metric (returns 0-1)
Python SLI references/python-sli-template.py Python health metric (returns 0-1)
Commit examples references/commit-examples.md commit_slx call patterns for common scenarios

Read the full file on GitHub · 319 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 319 lines · 115 tokens per session scan A d381097a5794

Subscribe to this mod's changes

build-runwhen-task is a skill published in the GitHub repository runwhen-contrib/runwhen-platform-mcp (1 stars, last pushed 8d ago), licensed Apache-2.0. It adds 115 tokens to every session and 3,707 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

build-runwhen-task compared with skills from other repositories

build-runwhen-task next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-runwhen-taskrunwhen-contrib/runwhen-platform-mcpSkill18d agoApache-2.0A115Claude Code
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60kyesterdayApache-2.0A31Claude Code
n8n-error-handlingczlonkowski/n8n-mcpSkill23kyesterdayMITA128Claude Code, Codex
n8n-validation-expertczlonkowski/n8n-mcpSkill23kyesterdayMITA91Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0ktodayApache-2.0A52Claude Code, Codex
openlore-analyze-codebaseclay-good/OpenLoreSkill371todayMITA48Claude Code, Codex
flutter-mcp-toolkit-intentcall-migrationArenukvern/mcp_flutterSkill4014d agoMITA58Claude Code