Skip to content
Back to skills

Source Command Preview

ASecurity

Preview what `chezmoi apply` would change in $HOME, without applying.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
tools

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add edjchapman/Dotfiles --skill source-command-preview --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Source Command Preview?

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

Security grade badge for Source Command Preview
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/edjchapman-source-command-preview/badge)](https://www.skillsdirectory.com/skills/edjchapman-source-command-preview)

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: "source-command-preview"
description: "Preview what `chezmoi apply` would change in $HOME, without applying."
---

# source-command-preview

Use this skill when the user asks to run the migrated source command `preview`.

## Command Template

Run `chezmoi diff --exclude=externals` and present the output.

If the diff is empty, say "no pending changes" and run `chezmoi verify` to confirm zero drift in the other direction.

If the diff is non-empty:

1. Summarize per-file: filename, change type (added/modified/deleted), one-line nature of the change.
2. Flag any change that touches an `encrypted_*.age` file — never dump the diff body for those, just say "encrypted secret changed".
3. Flag any change that touches a `run_once_*` script — those run with side effects and need extra scrutiny.
4. End with a recommendation: either "safe to `make apply`" or "review concerns above before applying".

Never run `chezmoi apply` from this command.

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.