Skip to content
Back to skills

Overlay Scripts

ASecurity

Use for private overlay path resolution, overlay script resources, or dynamic OverlayScriptTask discovery. Not for generic TOML section loading/merging (use toml-configuration), ordinary repository scripts, or public config alone.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 31, 2026
toolsshellgit

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add sneivandt/dotfiles --skill overlay-scripts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Overlay Scripts?

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

Security grade badge for Overlay Scripts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sneivandt-overlay-scripts/badge)](https://www.skillsdirectory.com/skills/sneivandt-overlay-scripts)

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: overlay-scripts
description: >
  Use for private overlay path resolution, overlay script resources, or dynamic
  OverlayScriptTask discovery. Not for generic TOML section loading/merging
  (use toml-configuration), ordinary repository scripts, or public config alone.
---

# Overlay Scripts

User-facing setup and protocol live in
[Private overlays](../../../docs/content/guides/private-overlays.md);
implementation lives in [resolution.rs](../../../cli/src/domains/overlay/resolution.rs),
[script.rs](../../../cli/src/domains/overlay/resources/script.rs), and
[scripts.rs](../../../cli/src/domains/overlay/scripts.rs).

## Resolution and persistence

- Precedence: `--overlay > DOTFILES_OVERLAY > repository dotfiles.overlay`.
- An explicit linked worktree (`.git` is a file) requires interactive `[y/N]`
  confirmation before use or persistence; empty input and non-interactive runs
  decline it.
- `resolution::resolve_from_args` and `resolution::resolve_read_only` are both
  read-only; [app/commands/runner.rs](../../../cli/src/app/commands/runner.rs)
  owns persisting an explicit `--overlay` selection.

## Script execution and dynamic discovery

- Script paths are overlay-relative: reject absolute paths and `..`, and
  preserve canonical containment checks against symlink escapes.
- Scripts implement apply, `--check`, `--dryrun`, and `--remove`. `--check`
  exits `0` (correct), `1` (apply needed), or other non-zero (error); every
  mode propagates failures. Shell scripts use POSIX `sh`; PowerShell runs
  non-interactively.
- Dry-run is cooperative: `--check` and `--dryrun` execute overlay code and
  cannot sandbox a misbehaving script.
- Build one `OverlayScriptTask` per active entry from the immutable startup
  snapshot (not catalog entries), preserving config order and stable
  `script-<normalized-name>` selectors. Repository updates rebuild dynamic tasks
  only across the two-phase reload boundary.

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.