author-generation-rules

author-generation-rules is a skill for Claude Code, Codex from runwhen-contrib/runwhen-platform-mcp. It costs 83 tokens per session (1,329 once invoked), scanned A, original, Apache-2.0.

A guide for writing Custom Discovery generation rules in YAML. These rules tell RunWhen which infrastructure resources should produce automation tasks, using reference material included with the add-on.

In plain words
What is it for?
Use it to create or repair generation-rule files, choose resource types and match conditions, and validate rules against the bundled schema and examples.
Why use it?
It avoids guessing the required rule format, resource names, and matching syntax, including when working without internet access.

Skill for Claude CodeCodex

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

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.

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

Made for: Claude Code, Codex.

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 author-generation-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules.svg)](https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/author-generation-rules)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00083 $0.01329
Opus 5 $0.00042 $0.00665
Sonnet 5 $0.00017 $0.00266
Haiku 4.5 $0.00008 $0.00133

Measured 4d ago against content hash 9c4d52aa9dcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 4d 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.

skills/author-generation-rules/SKILL.md · 120 lines

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)

Read the full file on GitHub · 120 lines

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. 4d ago First seen · 120 lines · 83 tokens per session scan A 9c4d52aa9dcf

Subscribe to this mod's changes

author-generation-rules is a skill published in the GitHub repository runwhen-contrib/runwhen-platform-mcp (1 stars, last pushed 21d ago), licensed Apache-2.0. It adds 83 tokens to every session and 1,329 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

specflow-use

To connect Rosetta with Grid Dynamics SpecFlow MCP; only when SpecFlow is mentioned and the MCP is installed.

griddynamics/rosetta · 27 tokens

planning-and-task-breakdown

Breaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.

shashankswe2020-ux/whoop-mcp · 56 tokens

qa-knowledge

To run QA engineering — requirements/gap analysis, scenario & spec design, test implementation, failure triage — over the QA knowledge base.

griddynamics/rosetta · 32 tokens

ue-mcp-epic-routing

Use when deciding between ue-mcp's native category actions and Epic's wrapped ToolsetRegistry tools (the epic actions, incl. the Blueprint graph DSL) for a task in Unreal. Pulls in when authoring Blueprint graph bodies, or any time both a native action and an epic action could do the job and you need to pick.

db-lyon/ue-mcp · 81 tokens

mcp-google-map-project

Project knowledge for developing and maintaining @cablate/mcp-google-map. Architecture, Google Maps API guide, GIS domain knowledge, and design decisions. Read this skill to onboard onto the project or make informed development decisions.

cablate/mcp-google-map · 49 tokens