mcp-rancher: Command for Claude Code

.claude/commands/sync-skills.md

sync-skills is a command for Claude Code from rex/mcp-rancher. It costs 18 tokens per session (593 once invoked), scanned B, original, MIT.

A command that refreshes a repository's Claude configuration files from installed agentic-skeleton templates. It covers hooks, rules, commands, and agents under .claude/.

In plain words
What is it for?
Use it after the agentic-skeleton templates change, to update matching .claude files while leaving settings, policy, and repository-specific files alone.
Why use it?
It avoids manually copying updated shared infrastructure into a repository and reduces the chance of overwriting repository-specific settings or content.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to rex/mcp-rancher. 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/rex/mcp-rancher/main/.claude/commands/sync-skills.md
Clone the repo
git clone --depth 1 https://github.com/rex/mcp-rancher

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 sync-skills

README.md
[![agentmods](https://agentmods.dev/badge/commands/rex/mcp-rancher/sync-skills/github.svg)](https://agentmods.dev/commands/rex/mcp-rancher/sync-skills)
Your own site
<a href="https://agentmods.dev/commands/rex/mcp-rancher/sync-skills"><img src="https://agentmods.dev/badge/commands/rex/mcp-rancher/sync-skills/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 sync-skills

Your own site · 80×15
<a href="https://agentmods.dev/commands/rex/mcp-rancher/sync-skills"><img src="https://agentmods.dev/badge/commands/rex/mcp-rancher/sync-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 593 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00018 $0.00593
Opus 5 $0.00009 $0.00296
Sonnet 5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00059

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

Security

Grade B, and why

sync-skills scanned grade B with 1 finding 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls ~/.claude/skills/agentic-skeleton/templates/brownfield/PR5-delegation-hooks/files/.claude/
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/sync-skills.md · 71 lines

How it starts

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

/sync-skills — pull updated infrastructure files from skills

Run this when the upstream agentic-skeleton skill has been updated and you need to bring this repo's .claude/ infrastructure files in sync. Covers hooks, rules, commands, and agents — not repo-specific content.

Source directories

Brownfield source (prefer this for retrofitted repos):

~/.claude/skills/agentic-skeleton/templates/brownfield/PR5-delegation-hooks/files/

Greenfield source (fallback for files not found above):

~/.claude/skills/agentic-skeleton/templates/greenfield/

What to sync

For every file under .claude/ in this repo, check whether a matching file exists in the brownfield source (same relative path). If yes: read the source and overwrite the local file. If not in brownfield source: check the greenfield source. If not in either source: leave the local file untouched.

Directories in scope: .claude/hooks/, .claude/rules/, .claude/commands/, .claude/agents/.

What NOT to touch

  • .claude/settings.json — wires hooks and permissions; repo-specific, can't be safely overwritten. Update manually if needed.
  • VIBE.yaml — repo policy, repo-specific.
  • AGENTS.md — repo-specific.
  • .mcp.json — repo-specific.
  • Any file under .claude/ that has NO matching source file.

Procedure

  1. Confirm the skill source exists:

    ls ~/.claude/skills/agentic-skeleton/templates/brownfield/PR5-delegation-hooks/files/.claude/
    

    If missing, stop and tell the user to run make sync-links in the agent-skills repo.

  2. For each local file in .claude/hooks/, .claude/rules/, .claude/commands/, .claude/agents/: find the corresponding source file in brownfield (falling back to greenfield), read it, and write the local copy.

  3. Show a summary of which files were updated and which were unchanged (diff at a glance — filenames only, not full diffs).

  4. If any files changed, commit:

    chore: sync .claude/ infrastructure from agentic-skeleton
    

    No PR needed — this is a maintenance update, not a feature branch.

Read the full file on GitHub · 71 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 Changed · -2 lines 33007a111c20
  2. 9d ago First seen · 73 lines · 18 tokens per session scan B d24483ccda67

Subscribe to this mod's changes

sync-skills is a command published in the GitHub repository rex/mcp-rancher (1 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 593 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.