talos-mcp-server: Skill for Claude Code

.claude/skills/guard-mutating-tool/SKILL.md

guard-mutating-tool is a skill for Claude Code from Nosmoht/talos-mcp-server. It costs 59 tokens per session (950 once invoked), scanned A, original, MIT.

A safety check for code that changes Talos tools which can reboot, upgrade, roll back, reset, or reconfigure machines.

In plain words
What is it for?
Run it against a Git diff before asking for staff review of changes to Talos mutating tools.
Why use it?
It helps catch missing confirmations, unspecified target nodes, or unsafe dry-run, preservation, and graceful-operation settings before the change is reviewed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

This is Nosmoht/talos-mcp-server's own configuration. It tells Claude Code how to work on talos-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything talos-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Nosmoht/talos-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Nosmoht/talos-mcp-server/main/.claude/skills/guard-mutating-tool/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Nosmoht/talos-mcp-server

Made for: Claude Code.

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 guard-mutating-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/nosmoht/talos-mcp-server/guard-mutating-tool/github.svg)](https://agentmods.dev/skills/nosmoht/talos-mcp-server/guard-mutating-tool)
Your own site
<a href="https://agentmods.dev/skills/nosmoht/talos-mcp-server/guard-mutating-tool"><img src="https://agentmods.dev/badge/skills/nosmoht/talos-mcp-server/guard-mutating-tool/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 guard-mutating-tool

Your own site · 80×15
<a href="https://agentmods.dev/skills/nosmoht/talos-mcp-server/guard-mutating-tool"><img src="https://agentmods.dev/badge/skills/nosmoht/talos-mcp-server/guard-mutating-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 950 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.00059 $0.00950
Opus 5 $0.00030 $0.00475
Sonnet 5 $0.00012 $0.00190
Haiku 4.5 $0.00006 $0.00095

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

Security

Grade A, and why

guard-mutating-tool 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 9d 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.

.claude/skills/guard-mutating-tool/SKILL.md · 93 lines

How it starts

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

Guard Mutating Tool

Scan the current diff against the CLAUDE.md § Safety matrix (cached in references/guard-matrix.md) and emit a structured report the staff-reviewer agent can consume directly.

Arguments

Parse $ARGUMENTS:

  • --base <ref> — base ref for the diff. Defaults to origin/main.

Validate the base ref:

git rev-parse --verify "${BASE:-origin/main}" >/dev/null \
  || abort "Unknown base ref: $BASE"

Key Steps

  1. List changed mutating-tool files.

    git diff --name-only "${BASE:-origin/main}"...HEAD -- 'internal/tools/*.go'
    

    Filter by basename to one of: lifecycle, files, patch_blocklist, or any *_preflight (files that implement reboot, upgrade, rollback, reset, patch_config, apply_config, or preflight helpers that gate those mutations). Exit early with verdict GO if the filtered list is empty.

  2. Load the guard matrix. Read references/guard-matrix.md. Its required_args and default_values columns are the ground truth.

  3. Scan each file for guard presence. For every matched file:

    git diff "${BASE:-origin/main}"...HEAD -U3 -- <file> \
      | grep -nE 'confirm|nodes|dry_run|preserve|graceful|wait'
    

    Cross-reference the hunks against the matrix row for the tool.

  4. Classify each guard. Flag a regression when:

    • a required-arg check was removed (deletion of if !confirm / len(nodes)==0),
    • a default literal changed (e.g. dry_run: truedry_run: false),
    • a new control-flow path reaches the mutating gRPC call without passing through the guard check.

4b. Preflight helper check. For any *_preflight.go in the filtered set, load .claude/rules/quorum-member-counting.md and apply its invariants against the diff (dedup by member Id before counting, map[<id-type>]struct{} structure, no reliance on len(msg.GetMembers())). Flag as regression if a preflight helper is introduced or modified without the dedup pattern.

Read the full file on GitHub · 93 lines

Files

What ships with it

1 file 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. 9d ago First seen · 93 lines · 59 tokens per session scan A a24db4d59fa5

Subscribe to this mod's changes

guard-mutating-tool is a skill published in the GitHub repository Nosmoht/talos-mcp-server (3 stars, last pushed 16d ago), licensed MIT. It adds 59 tokens to every session and 950 once invoked, about $0.0003 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

k8s

Operate the joelclaw Kubernetes cluster — Talos Linux on Colima (Mac Mini). Deploy services, check health, debug pods, recover from restarts, add ports, manage Helm releases, inspect logs, fix networking. Triggers on: 'kubectl', 'pods', 'deploy to k8s', 'cluster health', 'restart pod', 'helm install', 'talosctl'…

joelhooks/joelclaw · 163 tokens

kfl

KFL2 (Kubeshark Filter Language) reference. This skill MUST be loaded before writing, constructing, or suggesting any KFL filter expression. KFL is statically typed — incorrect field names or syntax will fail silently or error. Do not guess at KFL syntax without this skill loaded. Trigger on any mention of KFL, CEL…

kubeshark/kubeshark · 203 tokens

detecting-container-drift-at-runtime

Detect unauthorized modifications to running containers by monitoring for binary execution drift, file system changes, and configuration deviations from the original container image.

xalgorix/xalgorix · 34 tokens

implementing-container-image-minimal-base-with-distroless

Reduce container attack surface by building application images on Google distroless base images that contain only the application runtime with no shell, package manager, or unnecessary OS utilities.

xalgorix/xalgorix · 45 tokens

implementing-rbac-hardening-for-kubernetes

Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.

xalgorix/xalgorix · 41 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens