Skip to content
Back to skills

Symlink Management

ASecurity

Use for conf/symlinks.toml, source glob expansion, SymlinkResource target computation, or managed-link install/remove/materialization. Not for editing the contents of an already-managed application config without changing links.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 31, 2026
toolsshell

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add sneivandt/dotfiles --skill symlink-management --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Symlink Management?

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

Security grade badge for Symlink Management
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sneivandt-symlink-management/badge)](https://www.skillsdirectory.com/skills/sneivandt-symlink-management)

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: symlink-management
description: >
  Use for conf/symlinks.toml, source glob expansion, SymlinkResource target
  computation, or managed-link install/remove/materialization. Not for editing
  the contents of an already-managed application config without changing links.
---

# Symlink Management

Sources live in [symlinks.rs](../../../cli/src/domains/files/config/symlinks.rs),
[glob_expansion.rs](../../../cli/src/domains/files/config/symlinks/glob_expansion.rs),
[state.rs](../../../cli/src/domains/files/resources/symlink/state.rs), and
[materialize.rs](../../../cli/src/domains/files/resources/symlink/materialize.rs).

## Targets and globs

- Sources are relative to their declaring repo's `symlinks/` tree (resolved
  from the entry's recorded `origin` for overlays); explicit targets are
  home-relative.
- Bare string entries receive a leading dot on the first segment (`config/foo`
  -> `~/.config/foo`, not `~/.config/.foo`). Use `{ source, target }` to omit
  the leading dot; one source may feed multiple targets. Never link inside
  another managed directory link.
- Source globs support only a complete `*` path segment (single-segment capture,
  no general shell globbing or `**`). Expansion runs deterministically before
  conflict checks; malformed/unmatched globs fail, and explicit target `*`
  count must match source captures.

## Install and removal invariants

- `SymlinkResource` uses strict processing. Existing non-link files/dirs and
  unrelated symlinks are preserved as conflicts (`Invalid`). The **only**
  permitted occupied-target replacement is a recognized historical managed link
  (`legacy_link`), rechecked immediately before replacing.
- Check where existing target parents resolve: external destinations require
  `allow_external_target` for both install and removal.
- Uninstall materializes managed links into real files/directories rather than
  deleting content (stage copy before unlink, handle cross-filesystem errors
  without assuming atomicity). Missing targets stay absent unless
  `--restore-missing` is passed; never overwrite an existing non-link target.

Use `windows-specific-patterns` for Windows symlink capability and junction
fallback.

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 tools →

Comments

Loading comments…

Newsletter

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