Skip to content
Back to skills

System Files

ASecurity

Use for conf/system-files.toml, tracked fragments under system/, or the task and resource that merge administrator-owned files below /etc. Not for user symlinks, systemd unit enablement, or Windows registry values.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 20, 2026
development

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add sneivandt/dotfiles --skill system-files --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of System Files?

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

Security grade badge for System Files
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sneivandt-system-files/badge)](https://www.skillsdirectory.com/skills/sneivandt-system-files)

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: system-files
description: >
  Use for conf/system-files.toml, tracked fragments under system/, or the task
  and resource that merge administrator-owned files below /etc. Not for user
  symlinks, systemd unit enablement, or Windows registry values.
---

# System Files

Implementation lives in
[config/system_files.rs](../../../cli/src/domains/system/config/system_files.rs),
[resources/system_file.rs](../../../cli/src/domains/system/resources/system_file.rs),
and [system_file/install.rs](../../../cli/src/domains/system/resources/system_file/install.rs).

## Non-obvious invariants

- Sources are relative to the declaring repo's `system/` directory; targets must
  be absolute paths below `/etc`. Entries do not probe package state.
- Merge strategies (`toml`, `ini`, `pam`, `create-only`) all preserve unrelated
  target content. Refuse malformed content, non-regular targets, differing
  `create-only` targets, missing PAM service files, and PAM fragments whose
  facilities do not exist.
- Privileged installation (`ATOMIC_INSTALL` + `system-file-helper`) must
  preserve symlink-component traversal checks, directory ownership/mode checks,
  same-filesystem private staging, `stat`/SHA-256 race verification before
  atomic `mv -fT` (and `ln -T` for new files so a concurrently created target
  cannot be clobbered), existing owner/group/mode/xattr preservation, and
  `root:root` `0644` defaults for new files.

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

Comments

Loading comments…

Newsletter

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