sync-agent-symlinks

sync-agent-symlinks is a skill for Claude Code, Codex from LIDR-academy/lidr-specboot. It costs 59 tokens per session (966 once invoked), scanned B, original, MIT.

A skill that keeps coding-agent skill folders aligned across a project. It treats `ai-specs/skills` as the source and checks matching symbolic links in `.claude/skills` and `.cursor/skills`.

In plain words
What is it for?
Use it after changing the canonical skill collection to inspect and synchronize the Claude and Cursor skill folders. It reports valid links, broken links, orphaned links, conflicts, and external entries.
Why use it?
It removes stale or broken links after skills are added, removed, renamed, or moved. It also identifies conflicts where a real folder would be overwritten.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ln -s ../../ai-specs/skills/<skill-name> .claude/skills/<skill-name>.

Good fit Use it after changing the canonical skill collection to inspect and synchronize the Claude and Cursor skill folders. It reports valid links, broken links, orphaned links, conflicts, and external entries.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/LIDR-academy/lidr-specboot
agentmods
npx agentmods add skills/lidr-academy/lidr-specboot/sync-agent-symlinks

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 sync-agent-symlinks

README.md
[![agentmods](https://agentmods.dev/badge/skills/lidr-academy/lidr-specboot/sync-agent-symlinks/github.svg)](https://agentmods.dev/skills/lidr-academy/lidr-specboot/sync-agent-symlinks)
Your own site
<a href="https://agentmods.dev/skills/lidr-academy/lidr-specboot/sync-agent-symlinks"><img src="https://agentmods.dev/badge/skills/lidr-academy/lidr-specboot/sync-agent-symlinks/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-agent-symlinks

Your own site · 80×15
<a href="https://agentmods.dev/skills/lidr-academy/lidr-specboot/sync-agent-symlinks"><img src="https://agentmods.dev/badge/skills/lidr-academy/lidr-specboot/sync-agent-symlinks.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 966 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.00059 $0.00966
Opus 5 $0.00030 $0.00483
Sonnet 5 $0.00012 $0.00193
Haiku 4.5 $0.00006 $0.00097

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

Security

Grade B, and why

sync-agent-symlinks 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 12d 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 -la .claude/skills
ai-specs/skills/sync-agent-symlinks/SKILL.md · 136 lines

How it starts

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

Keep agent-facing skill structures synchronized with ai-specs/skills as the canonical source.

Use this skill after any change in ai-specs/skills (new skill, removed skill, renamed skill, moved skill), especially when you need to avoid stale or broken symlinks.

Scope and Safety Rules

  • Canonical source is ai-specs/skills.
  • Mirror targets are:
    • .claude/skills
    • .cursor/skills
  • Manage only entries that are symlinks to ../../ai-specs/skills/<skill-name>.
  • Do not delete non-symlink directories in mirror targets unless the user explicitly asks.
  • Never overwrite a real directory automatically; report it as a conflict.

Workflow

Step 1 - Build inventories

Collect three inventories:

  1. Canonical skills from ai-specs/skills/*/SKILL.md
  2. Mirror entries in .claude/skills
  3. Mirror entries in .cursor/skills

From mirror entries, classify:

  • linked: valid symlink pointing to existing canonical skill
  • broken: symlink target missing
  • orphan: symlink points to canonical namespace but skill no longer exists
  • conflict: non-symlink entry with same name as canonical skill
  • external: entry not managed by canonical symlink policy (leave unchanged)

Step 2 - Compute sync plan

For each mirror target:

  • to_add: canonical skills missing in mirror target
  • to_fix: broken canonical symlinks that should be recreated
  • to_remove: orphan canonical symlinks with no canonical source
  • to_skip: conflicts and external entries (report only)

Step 3 - Apply sync safely

Apply changes in this order:

  1. Add missing symlinks:
    • <mirror>/<skill-name> -> ../../ai-specs/skills/<skill-name>
  2. Fix broken canonical symlinks:
    • Remove broken link and recreate the same canonical link
  3. Remove orphan canonical symlinks:
    • Remove symlink only if it points to canonical namespace and skill is gone

Never remove:

  • non-symlink directories
  • files not under canonical symlink policy

Step 4 - Verify integrity

Read the full file on GitHub · 136 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. 12d ago First seen · 136 lines · 59 tokens per session scan B aea9f4ab4db1

Subscribe to this mod's changes

sync-agent-symlinks is a skill published in the GitHub repository LIDR-academy/lidr-specboot (66 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 966 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens