Dotfiles
This skill should be used when the user runs "/hyprland-config:dotfiles" or asks to version-control, back up to git, or sync their config/dotfiles — e.g. "put my hyprland config in git", "version control my dotfiles", "set up a dotfiles repo", "commit my config", "push my dotfiles", "track my config in git", or "back up my rice to github". Initializes a dotfiles git repo (bare-repo, GNU Stow, or chezmoi), tracks the Hyprland/desktop configs, and commits/pushes — committing after each verified change.From its SKILL.md
npx -y skills add NSchatz/hyprland-config --skill dotfilesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.0 KB, as published. Nobody here has run it
Version-Control Dotfiles
Put the user's Hyprland/desktop configs under git so the whole rice is reproducible and backed
up, and commit after each verified change. Supports three standard methods — ask which to use
(default bare repo). Treat $ARGUMENTS as the request.
Read references/dotfiles.md for the methods, the bare-repo alias, secrets handling, and
new-machine restore. All operations go through the helper:
${CLAUDE_PLUGIN_ROOT}/scripts/dotfiles.sh.
Methods (ask per run; default bare)
- bare — a bare git repo (
~/.dotfiles) tracking files in place in$HOME, no symlinks. Best fit: it versions the live config exactly where the plugin writes it. Recommended default. - stow — GNU Stow symlink farm from
~/dotfiles. Organized, but restructures files into the repo and symlinks them back (requiresstow). - chezmoi — a chezmoi-managed source repo with templating/secrets/multi-machine (requires
chezmoi).
If the chosen tool isn't installed (stow/chezmoi), ask once whether to install it (stow/chezmoi
via pacman); if the user declines, fall back to bare.
Workflow
1. Initialize
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dotfiles.sh" init <bare|stow|chezmoi> [[email protected]:USER/dotfiles.git]
Pass the remote URL if the user has one (or add it later). For bare it sets
status.showUntrackedFiles=no so unrelated $HOME files never show up accidentally.
2. Track the configs
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dotfiles.sh" add-defaults
Tracks the common desktop config paths that exist (~/.config/hypr, hypr-rice, waybar,
kitty, rofi, wofi, mako, dunst, gtk-3.0/4.0, qt5ct/6ct, swaync, wlogout,
fastfetch, starship.toml). Add more with dotfiles.sh add <path>…. Shell rc files
(~/.bashrc/~/.zshrc) are opt-in — add them explicitly only if the user wants, and warn about
secrets (tokens/keys) first.
3. Commit & push
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dotfiles.sh" commit "describe the change"
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dotfiles.sh" push # if a remote is set
4. Commit after every verified change (the habit)
This is the point of the skill: after any verified config change — a rice generate/theme, an
edit-config edit, a rice apply, a profile switch — run
dotfiles.sh commit "<what changed>" (and push). Suggest doing this automatically as part of
those flows so history stays granular and the remote is current.
5. Report
Summarize: method, repo location, what's tracked, commit hash, push result, and the remote URL (or
how to add one). For a new machine, give the restore command from dotfiles.md.
Safety rules
- Never track secrets. Don't add files containing tokens/keys/passwords; the bare repo's
showUntrackedFiles=noalready prevents accidental$HOMEadds. Warn before adding shell rc. - Install
stow/chezmoionly after one confirmation if the user picks that method; otherwise fall back to bare. - Pushing publishes the configs — confirm the remote/visibility with the user first.
Resources
references/dotfiles.md— the three methods, bare-repo alias, secrets,.gitignore, new-machine restore, recommended tracked paths.${CLAUDE_PLUGIN_ROOT}/scripts/dotfiles.sh— init / add / add-defaults / commit / push / status.