Skip to content
Back to skills

Managing Symlinks

ASecurity

Create, audit, repair, and document cross-platform symlinks. Use when the user mentions symlinks, junctions, broken links after git pull, cross-platform path issues, or missing files after switching machines. Supports macOS/Linux and Windows; Windows users need Developer Mode or administrator rights before creating true symlinks.

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 9, 2026
ai-agentspythonbashgit

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add richfrem/agent-plugins-skills --skill managing-symlinks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Managing Symlinks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Managing Symlinks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-managing-symlinks/badge)](https://www.skillsdirectory.com/skills/richfrem-managing-symlinks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: managing-symlinks
plugin: dev-utils
description: >
  Create, audit, repair, and document cross-platform symlinks. Use when the user
  mentions symlinks, junctions, broken links after git pull, cross-platform path
  issues, or missing files after switching machines. Supports macOS/Linux and
  Windows; Windows users need Developer Mode or administrator rights before
  creating true symlinks.
allowed-tools: Bash, Read, Write
---

# Managing Symlinks (`managing-symlinks`)

Create, audit, repair, and document cross-platform symlinks across macOS, Linux, and Windows.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Real Symlinks Only**: Never substitute hardlinks or plain text files for Git symlinks.
2. **No Symlink Chaining**: Target must be a regular file or directory, never another symlink.
3. **Hub-and-Spoke Invariant**: Canonical assets live at plugin root (`scripts/`, `references/`, `assets/`); spokes link directly to hub.
4. **Register in Manifest**: All created symlinks must be recorded in `symlinks.json`.
5. **Windows Support**: Developer Mode (or admin elevation) required for unprivileged symlink creation (`git config core.symlinks true`).

## Quick start

Diagnose environment, Git settings, and existing symlink health:

```bash
python3 scripts/symlink_manager.py diagnose
```

## Workflow

1. **Step 1 (Diagnose)**: Run `python3 scripts/symlink_manager.py diagnose` to check Git configuration and link health.
2. **Step 2 (Configure)**: On Windows, enable Developer Mode and run `git config core.symlinks true`. On macOS/Linux, verify `core.symlinks` is true.
3. **Step 3 (Create/Restore)**:
   - Create single link: `python3 scripts/symlink_manager.py create --src <hub-path> --dst <spoke-path>`
   - Restore all manifest links: `python3 scripts/symlink_manager.py restore`
4. **Step 4 (Bulk Repair)**: Recursively scan and repair text-file stand-ins with `python3 scripts/bulk_symlink_fixer.py <target-directory>`.

## Verification

Audit repository symlink health and integrity against `symlinks.json`:

```bash
python3 scripts/symlink_manager.py audit
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Acceptance criteria and validation gates.
- [troubleshooting.md](references/troubleshooting.md) — Troubleshooting for Windows permissions, CI configuration, and APFS issues.

Files in this skill

  • SKILL.md2.5 KB
  • evals/evals.json940 B
  • evals/results.tsv172 B
  • references/acceptance-criteria.md1.5 KB
  • references/troubleshooting.md4.3 KB
  • scripts/bulk_symlink_fixer.py8.9 KB
  • scripts/fix_all_skills.py4.6 KB
  • scripts/fix_all_skills_comprehensive.py5.4 KB
  • scripts/symlink_manager.py24.3 KB
  • tests/test_symlink_manager_policy.py3.7 KB
  • tests/test_symlink_manager_remove.py2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.