sync-skill-cache

sync-skill-cache is a skill for Claude Code from hyhmrright/logic-lens. It costs 103 tokens per session (504 once invoked), scanned A, original, MIT.

A maintenance skill that copies edited Logic-Lens skills into the installed plugin cache used by content evaluations.

In plain words
What is it for?
Use it after editing a skill or shared guide, before running content evaluations, and to check that the working files and cache match.
Why use it?
Without this synchronization, tests may evaluate an older cached version instead of the files you changed.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the logic-lens plugin — 11 skills, 6 commands, 3 agents, 2 hooks shipped together

Good fit Use it after editing a skill or shared guide, before running content evaluations, and to check that the working files and cache match.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hyhmrright/logic-lens/sync-skill-cache
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.

Any agent
npx skills add hyhmrright/logic-lens --skill sync-skill-cache
Clone the repo
git clone --depth 1 https://github.com/hyhmrright/logic-lens

Made for: Claude Code.

Or install logic-lens, the plugin that ships this one along with the rest of its 11 skills, 6 commands, 3 agents, 2 hooks.

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-skill-cache

README.md
[![agentmods](https://agentmods.dev/badge/skills/hyhmrright/logic-lens/sync-skill-cache/github.svg)](https://agentmods.dev/skills/hyhmrright/logic-lens/sync-skill-cache)
Your own site
<a href="https://agentmods.dev/skills/hyhmrright/logic-lens/sync-skill-cache"><img src="https://agentmods.dev/badge/skills/hyhmrright/logic-lens/sync-skill-cache/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-skill-cache

Your own site · 80×15
<a href="https://agentmods.dev/skills/hyhmrright/logic-lens/sync-skill-cache"><img src="https://agentmods.dev/badge/skills/hyhmrright/logic-lens/sync-skill-cache.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 504 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.00103 $0.00504
Opus 5.5 $0.00041 $0.00202
Sonnet 5.5 $0.00021 $0.00101
Haiku 4.5 $0.00010 $0.00050

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

Security

Grade A, and why

sync-skill-cache 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync-cache.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/sync-skill-cache/SKILL.md · 38 lines

What it actually says

sync-skill-cache

content-evals invoke each skill through Claude Code's plugin mechanism, which loads from ~/.claude/plugins/cache/logic-lens-marketplace/logic-lens/<version>/skills/ — not the repo's skills/. Editing skills/ changes nothing the eval sees until you copy it into the cache. This is the single most expensive footgun in the iteration loop: skip it and you grade the previous skill while believing you tested your change.

Steps

  1. Sync + verify from the repo root:

    bash .claude/skills/sync-skill-cache/scripts/sync-cache.sh
    

    The script reads the active version from package.json, rsyncs skills/ into the matching cache dir (--delete, so removed files are removed in the cache too), then diffs the two to confirm they are byte-identical. It prints OK … on success.

  2. If it prints DRIFT or a missing-cache error: do not run evals. The two common causes:

    • The cache dir for the current package.json version doesn't exist (plugin not installed at this version) — reinstall/refresh the plugin, or check you didn't just bump the version without refreshing the cache.
    • rsync was blocked — rerun and read the diff list it prints.
  3. Verify-only mode (no copy) to answer "is the cache fresh?":

    bash .claude/skills/sync-skill-cache/scripts/sync-cache.sh --check
    

This skill is the mandatory gate between editing a skill and grading it. The iterate-skill orchestrator calls it automatically; run it by hand whenever you edit a skill outside that loop.

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. 1mo ago First seen · 38 lines · 103 tokens per session scan A 5818174e89aa

Subscribe to this mod's changes

sync-skill-cache is a skill published in the GitHub repository hyhmrright/logic-lens (25 stars, last pushed 24d ago), licensed MIT. It adds 103 tokens to every session and 504 once invoked, about $0.0004 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.