symlink-checker

symlink-checker is an agent for Claude Code from yacb2/aidex. It costs 31 tokens per session (827 once invoked), scanned A, original, MIT.

An agent that checks whether symbolic links in a project's and user's .claude folders point to existing targets.

In plain words
What is it for?
Use it to scan project and global skills, commands, and rules directories and report invalid symbolic links.
Why use it?
It catches broken links that can prevent skills, commands, or rules from being found or used.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Part of the aidex plugin — 22 skills, 31 agents, 5 hooks shipped together

Good fit Use it to scan project and global skills, commands, and rules directories and report invalid symbolic links.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yacb2/aidex/symlink-checker
View source ↗ yacb2/aidex
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.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex

Made for: Claude Code.

Or install aidex, the plugin that ships this one along with the rest of its 22 skills, 31 agents, 5 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 symlink-checker

README.md
[![agentmods](https://agentmods.dev/badge/agents/yacb2/aidex/symlink-checker/github.svg)](https://agentmods.dev/agents/yacb2/aidex/symlink-checker)
Your own site
<a href="https://agentmods.dev/agents/yacb2/aidex/symlink-checker"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/symlink-checker/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 symlink-checker

Your own site · 80×15
<a href="https://agentmods.dev/agents/yacb2/aidex/symlink-checker"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/symlink-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 827 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.00031 $0.00827
Opus 5.5 $0.00012 $0.00331
Sonnet 5.5 $0.00006 $0.00165
Haiku 4.5 $0.00003 $0.00083

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

Security

Grade A, and why

symlink-checker 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 11d 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/symlink-checker.md · 69 lines

How it starts

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

You are a symlink integrity checker. You will receive the project path in the prompt.

Checks

Scan for symlinks at BOTH levels. Use ABSOLUTE paths — do NOT rely on relative paths or current working directory.

Project level (replace $PROJECT with the actual project path):

  • $PROJECT/.claude/skills/
  • $PROJECT/.claude/commands/
  • $PROJECT/.claude/rules/

Global level:

  • ~/.claude/skills/
  • ~/.claude/commands/
  • ~/.claude/rules/

For each symlink found ($SCAN is one of the absolute directories listed above):

find "$SCAN" -maxdepth 2 -type l 2>/dev/null | while read -r link; do
  raw=$(readlink "$link")
  # Test the LINK, not the raw target. `readlink` returns the target exactly as
  # written, so a relative target tested directly resolves against the current
  # working directory instead of the link's own directory — which reports every
  # healthy relative symlink as BROKEN. `[ -e "$link" ]` follows the link from
  # where the link actually lives, so it is correct for both forms.
  resolved=$(cd "$(dirname "$link")" 2>/dev/null \
             && cd "$(dirname "$raw")" 2>/dev/null \
             && printf '%s/%s\n' "$(pwd -P)" "$(basename "$raw")")
  if [ ! -e "$link" ]; then
    echo "BROKEN: $link -> $raw"
  else
    echo "OK: $link -> ${resolved:-$raw}"
  fi
done

Report the raw target on BROKEN (that string is what has to be fixed) and the resolved absolute path on OK — LK2 must be judged on resolved, never on the raw target, or a relative link that legitimately points into ~/.myskills/ or another tool's install dir reads as an unexpected location.

  • [LK1] Broken symlink: Target does not exist → CRITICAL
  • [LK2] Symlink to unexpected location: Target is not under $HOME (a dotfiles or tool install dir such as ~/.myskills/, or ~/.claude/) → WARNING (may be intentional). Since aidex 0.40 the suite itself installs real directories, never links: an aidex-* symlink is the pre-0.40 layout and install.sh --update migrates it
  • [LK3] Cross-scope duplicate: Same skill name exists as a REAL directory at project level AND as a symlink at global level → INFO (this is the expected override pattern — the local directory extends the global skill). Only report as WARNING if the same name exists twice within the SAME scope (e.g., two entries in project .claude/skills/ with the same name).

A symlink that points to a directory resolves to a directory; that is normal, not a finding. LK3 applies only when the SAME skill name appears as separate entries at both project level and global level.

Read the full file on GitHub · 69 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. 11d ago Changed f54577ad4482
  2. 20d ago Changed · -2 lines aed1ae617841
  3. 29d ago Changed · +1 lines 0dee26803902
  4. 1mo ago Changed · -6 tokens per session 7fe8f844b039
  5. 1mo ago Changed · -1 lines · +17 tokens per session c07c8f0e93ac
  6. 1mo ago Changed 1f9f5d0719dd
  7. 1mo ago Changed 5e3e191ff28c
  8. 2mo ago Changed cdc53c56f134
  9. 2mo ago First seen · 71 lines · 20 tokens per session scan A eea2476f0e0e

Subscribe to this mod's changes

symlink-checker is an agent published in the GitHub repository yacb2/aidex (2 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 827 once invoked, about $0.0001 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-31.

Related

symlink-checker compared with agents from other repositories

symlink-checker next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
symlink-checkeryacb2/aidexAgent23d agoMITA31Claude Code
ap-depth-proberSpielewoy/autoprompt-skillAgent1.2k1mo agoMITA22Claude Code
perf-analyzermantacron/mantaAgent101mo agononeA0Claude Code
remediation-agentmantacron/mantaAgent101mo agononeA58Claude Code
bug-hunterPlanVault/ai-engineering-playbookAgent62mo agononeA16Claude Code
ap-run-coordinatorSpielewoy/autoprompt-skillAgent1.2k1mo agoMITA24Claude Code
ap-work-group-managerSpielewoy/autoprompt-skillAgent1.2k1mo agoMITA24Claude Code