Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/runwhen-contrib/runwhen-platform-mcpnpx agentmods add skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rulesWrote 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.
[](https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules)<a href="https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules"><img src="https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules/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.
<a href="https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules"><img src="https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.01329 |
| Opus 5.5 | $0.00033 | $0.00532 |
| Sonnet 5.5 | $0.00017 | $0.00266 |
| Haiku 4.5 | $0.00008 | $0.00133 |
Grade A, and why
author-generation-rules 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.
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.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Author Generation Rules
All reference material is bundled inside this MCP package under
skills/author-generation-rules/references/. No GitHub or internet access
required (airgap-safe).
Load get_skill("author-generation-rules") for this workflow; read bundled
files from the MCP install tree (same paths relative to the repo / wheel).
Bundled reference index
| Need | Bundled path |
|---|---|
| Concepts | references/concepts.md |
| Schema (GenerationRules kind) | references/generation-rules-schema.md |
| Full syntax | references/generation-rules-syntax.md |
| JSON Schema | references/generation-rule-schema.json |
| Tag / hierarchy | references/tag-hierarchy-contract.md |
| Examples | references/examples/*.md |
| Platform indexer guides | references/indexed-resources/*.md |
| Resource type catalogs | references/catalogs/*-resource-catalog.md |
Sync stamp: references/BUNDLE_MANIFEST.json (updated by MCP CI from runwhen-local).
Before writing a rule: search the relevant catalog file for the exact CloudQuery table name, K8s kind, or CRD syntax. Do not guess from memory.
Real schema (never use legacy shapes)
Use kind: GenerationRules (plural), one platform per file:
apiVersion: runwhen.com/v1
kind: GenerationRules
spec:
platform: azure # azure | aws | gcp | kubernetes | runwhen
generationRules:
- resourceTypes:
- azure_appservice_web_apps
matchRules:
- type: pattern
pattern: "prod"
properties: [tags]
mode: substring
slxs:
- baseName: az-appsvc-triage
qualifiers: ["resource", "resource_group"]
baseTemplateName: azure-appservice-triage
levelOfDetail: detailed
outputItems:
- type: slx
- type: sli
- type: runbook
templateName: azure-appservice-triage-taskset.yaml
Rejected patterns (do not generate)
| Legacy / aspirational | Use instead |
|---|---|
kind: GenerationRule (singular) |
kind: GenerationRules |
spec.match.resource_type |
spec.platform + resourceTypes[] |
spec.match.predicates with jsonpath |
matchRules[] (pattern, exists, and/or/not) |
spec.templates: / spec.context: |
.runwhen/templates/* + Jinja2 match_resource |
spec.relatedResources |
IDs on primary resource in templates, or separate rules |
snake_case (base_name, output_items) |
camelCase (baseName, outputItems) |
What ships with it
24 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.
- references/BUNDLE_MANIFEST.json 3.1 KB
- references/catalogs/aws-resource-catalog.md 99 KB
- references/catalogs/azure-resource-catalog.md 68 KB
- references/catalogs/gcp-resource-catalog.md 42 KB
- references/catalogs/indexed-resource-types.json 83 KB
- references/catalogs/kubernetes-resource-catalog.md 814 B
- references/catalogs/runwhen-platform-resource-catalog.md 621 B
- references/concepts.md 3.7 KB
- references/examples/azure-keyvault-slx.md 3.0 KB
- references/examples/azure-vm-disk-runbook.md 2.5 KB
- references/examples/kubernetes-deployment-slx.md 2.7 KB
- references/examples/multi-resource-runbook.md 2.8 KB
- references/examples/README.md 781 B
- references/generation-rule-schema.json 8.6 KB
- references/generation-rules-schema.md 6.0 KB
- references/generation-rules-syntax.md 13 KB
- references/indexed-resources-index.md 838 B
- references/indexed-resources/aws.md 4.0 KB
- references/indexed-resources/azure.md 10.0 KB
- references/indexed-resources/gcp.md 9.7 KB
- references/indexed-resources/kubernetes.md 2.8 KB
- references/indexed-resources/runwhen-platform.md 1.5 KB
- references/README.md 547 B
- references/tag-hierarchy-contract.md 13 KB
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.
- 3mo ago First seen · 120 lines · 83 tokens per session scan A 9c4d52aa9dcf
author-generation-rules 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 83 tokens to every session and 1,329 once invoked, about $0.0003 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.
author-generation-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| author-generation-rulesrunwhen-contrib/runwhen-platform-mcp | Skill | 1 | 8d ago | Apache-2.0 | A | 83 | Claude Code |
| wenlan-handoffwenlan-app/wenlan | Skill | 502 | yesterday | Apache-2.0 | A | 46 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 289 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| check-name-realFuRongJun-1999/dsh-memory | Skill | 763 | today | MIT | A | 101 | Claude Code |
| opik-diagnosecomet-ml/opik-mcp | Skill | 227 | 5d ago | Apache-2.0 | A | 187 | Claude Code |
| ue-mcp-epic-routingdb-lyon/ue-mcp | Skill | 526 | today | MIT | A | 81 | Claude Code, Codex |
| qa-knowledgegriddynamics/rosetta | Skill | 382 | today | Apache-2.0 | A | 32 | Claude Code, Codex |