rustfs: Skill for Claude Code

.agents/skills/plugin-contract-guard/SKILL.md

plugin-contract-guard is a skill for Claude Code, Codex from rustfs/rustfs. It costs 71 tokens per session (1,018 once invoked), scanned A, original, Apache-2.0.

A set of rules and checks for maintaining a target application's plugin and extension system. It covers manifests, installation planning, schemas, admin APIs, and secret handling.

In plain words
What is it for?
It is for changes to plugin manifests, catalogs, control-plane installation, extension schemas, admin endpoints, and secret redaction.
Why use it?
It helps prevent different parts of the plugin system from disagreeing about configuration, permissions, or how secrets are stored and displayed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is rustfs/rustfs's own configuration. It tells Claude Code and Codex how to work on rustfs 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 rustfs configures →

About the project

RustFS is an open-source distributed object storage system written in Rust that stores data and provides compatible interfaces for S3-based applications. It is intended for storage migrations, coexistence with systems such as MinIO and Ceph, data lakes, AI, and other big-data workloads.

rustfs/rustfs · 35,418 stars · on GitHub · rustfs.com

Reuse

Borrowing it

Nothing to install: this file belongs to rustfs/rustfs. 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/rustfs/rustfs/main/.agents/skills/plugin-contract-guard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rustfs/rustfs

Made for: Claude Code, Codex.

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 plugin-contract-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/rustfs/rustfs/plugin-contract-guard/github.svg)](https://agentmods.dev/skills/rustfs/rustfs/plugin-contract-guard)
Your own site
<a href="https://agentmods.dev/skills/rustfs/rustfs/plugin-contract-guard"><img src="https://agentmods.dev/badge/skills/rustfs/rustfs/plugin-contract-guard/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 plugin-contract-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/rustfs/rustfs/plugin-contract-guard"><img src="https://agentmods.dev/badge/skills/rustfs/rustfs/plugin-contract-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,018 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00071 $0.01018
Opus 5.5 $0.00028 $0.00407
Sonnet 5.5 $0.00014 $0.00204
Haiku 4.5 $0.00007 $0.00102

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

Security

Grade A, and why

plugin-contract-guard 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 1mo 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.

.agents/skills/plugin-contract-guard/SKILL.md · 84 lines

How it starts

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

Plugin & Extension Contract Guard

The "plugin system" spans four surfaces that must stay consistent:

Surface Location
Manifests & registry crates/targets/src/{manifest,plugin}.rs
Install/enable planning (control plane) crates/targets/src/control_plane.rs
Extension schemas crates/extension-schema/src/lib.rs, crates/targets/src/catalog/extension.rs
Admin API contract rustfs/src/admin/plugin_contract.rs, handlers/{plugins_catalog,plugins_instances,extensions,target_descriptor}.rs

Hard invariants (verify before merging)

  1. Secrets have one source of truth. Secret config keys are declared only in the plugin manifest (TargetPluginManifest.secret_fields, crates/targets/src/manifest.rs) and flow to admin via AdminTargetSpec.secret_fields. Never add a hand-maintained per-service secret table in a handler; if redaction misses a field, fix the manifest.

  2. Redaction must round-trip. Instance GET responses replace secret values with ***redacted*** (REDACTED_SECRET_VALUE in plugins_instances.rs). Instance PUT restores the stored secret when it receives that placeholder back (restore_redacted_secret_values). Any new read or write path for target config must keep both halves: redact on the way out, restore the placeholder on the way in. The placeholder literal must never be persisted.

  3. Fixtures never reach production responses. example_external_webhook_plugin() (crates/targets/src/catalog/mod.rs) is a test/demo fixture for control-plane planning tests. Production catalog/extension handlers must not include it; regression tests (plugin_catalog_never_exposes_example_or_external_fixtures, extension_catalog_never_exposes_example_or_external_fixtures) enforce it.

  4. External plugin flow is planning-only and deny-by-default. plan_external_target_plugin_action returns decisions, it executes nothing. TargetPluginExternalFlowGate::default() is fully closed and TargetPluginInstallPolicy::default().allowed_download_hosts is empty — keep it that way; tests opt in via explicit policies. Install validation requires https, an allowlisted host, a full 64-hex-char sha256 digest, signature and provenance URIs, and an artifact matching the host target_triple.

Read the full file on GitHub · 84 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. 1mo ago Changed · -12 tokens per session a4d7340e5dc7
  2. 1mo ago First seen · 84 lines · 83 tokens per session scan A 1525c36d21a6

Subscribe to this mod's changes

plugin-contract-guard is a skill published in the GitHub repository rustfs/rustfs (35,418 stars, last pushed today), licensed Apache-2.0. It adds 71 tokens to every session and 1,018 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-30.

Related

Other skills, from other repositories

ui-audit

Audit and fix UI quality issues across web apps, dashboards, landing pages, product sites, forms, dialogs, tables, component libraries, and rendered frontend flows. Use when the user asks for UI walkthrough, visual QA, pixel/detail review, dimensions, spacing, whitespace, color hierarchy, alignment, typography, icon…

rustfs/console · 97 tokens

rustfs-console-design-guide

Design and review RustFS Console interfaces with a consistent visual hierarchy, interaction model, responsive behavior, and operational safety. Use this skill whenever creating or changing Console pages, settings, forms, dialogs, tables, status views, destructive flows, mobile layouts, or UI screenshots—even when the…

rustfs/console · 73 tokens

agent-fs

Use when the user wants to store, retrieve, search, or manage files in agent-fs — an agent-first filesystem backed by S3. Triggers on: "save this to agent-fs", "find that file", "find a file by name", "store this document", "search agent-fs", "list my files", "show version history", "revert file", "set up agent-fs"…

desplega-ai/agent-fs · 497 tokens

minio-aiops

Use this skill whenever the user needs to operate or diagnose MinIO object storage — explain why the cluster is filling up or refusing writes (capacityrca), find publicly exposed buckets and hygiene gaps (bucketexposureaudit), find storage that lifecycle/ILM should be reclaiming but isn't, including noncurrent…

AIops-tools/MinIO-AIops · 332 tokens

cw-gates

Use before claiming any Codewhale change is done, green, or ready to land: the focused-to-broad verification ladder, the budget checks CI enforces, and the rules for what counts as a passing test.

Hmbown/Codewhale · 48 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens