manage-rules

manage-rules is a skill for Claude Code from runwhen-contrib/runwhen-platform-mcp. It costs 84 tokens per session (1,082 once invoked), scanned A, original, Apache-2.0.

A tool for creating and managing workspace chat rules that guide how an AI assistant interprets infrastructure findings. Rules can change what the assistant downplays, highlights, or treats as actionable.

In plain words
What is it for?
Use it to add or edit rules for a whole workspace, a specific assistant persona, or an entire platform.
Why use it?
It reduces repetitive platform noise and makes important application issues, priorities, and severity language more consistent.

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

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/manage-rules
Any agent
npx skills add runwhen-contrib/runwhen-platform-mcp --skill manage-rules
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 manage-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/manage-rules.svg)](https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/manage-rules)
Your own site
<a href="https://agentmods.dev/skills/runwhen-contrib/runwhen-platform-mcp/manage-rules"><img src="https://agentmods.dev/badge/skills/runwhen-contrib/runwhen-platform-mcp/manage-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,082 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.1 $0.00084 $0.01082
Opus 5 $0.00042 $0.00541
Sonnet 5 $0.00017 $0.00216
Haiku 4.5 $0.00008 $0.00108

Measured 5d ago against content hash 47c60bd05744, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

manage-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 5d 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/manage-rules/SKILL.md · 131 lines

How it starts

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

Manage Rules

Rules are loaded into the assistant's prompt context on every response. They shape how findings are interpreted — what to de-prioritize, what to highlight, and how to frame expected behavior versus actionable risk.

When to use

  • Assistant responses are technically correct but operationally noisy
  • Known infrastructure churn keeps dominating investigations
  • Important application issues are buried in platform noise
  • Severity language is inconsistent across investigations
  • User asks to "tune", "adjust", or "configure" the assistant's behavior

Key concepts

Scoping

Scope Effect scope_type scope_id
Workspace All assistants in the workspace see the rule workspace workspace name (e.g. my-workspace)
Persona (assistant) Only a specific assistant sees the rule persona persona name
Platform All workspaces in the organization platform null

Most rules should be workspace-scoped. Use persona scope only when different assistants need different interpretation behavior.

Rule anatomy

Good rules are short, explicit instructions with clear priority direction:

Acknowledge that GKE node preemptions are expected in this cluster.
Do not treat preemptions as root cause unless clearly correlated with
user-reported symptoms.

Bad rules are vague or too broad:

Be better at analyzing Kubernetes issues.

Workflow

1. Audit existing rules

list_chat_rules(scope_type="workspace", scope_id="my-workspace")

2. Identify noise patterns

Use workspace_chat(workspace_name="my-workspace", message="...") to run a baseline prompt your team asks often. Note which findings are repeated noise vs actual issues. Common noise sources:

  • Node preemptions / spot instance recycling
  • CNI flapping in shared clusters
  • Resource pressure on non-critical namespaces
  • Platform controller reconciliation events
  • Expected CronJob failures in dev/test

Read the full file on GitHub · 131 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. 5d ago First seen · 131 lines · 84 tokens per session scan A 47c60bd05744

Subscribe to this mod's changes

manage-rules is a skill published in the GitHub repository runwhen-contrib/runwhen-platform-mcp (1 stars, last pushed 22d ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,082 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