con un clic
integrate-changes
Analyze chezmoi changes and create safe integration plan
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Analyze chezmoi changes and create safe integration plan
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Create timestamped backup of files that would be changed by chezmoi
Comprehensive chezmoi and dotfiles status overview
Restore files from a chezmoi backup
Safely review and process unmanaged chezmoi files
Log significant Claude Code actions to Obsidian vault. Invoke after completing features, bug fixes, refactors, deployments, cleanups, or any substantial task.
Use when unbiased analysis is needed without conversation context contamination. Launches an isolated read-only background agent with a self-contained prompt crafted from current context. Use for audits, reviews, reports, or any analysis where prior assumptions might bias results.
| name | integrate-changes |
| description | Analyze chezmoi changes and create safe integration plan |
| allowed-tools | Bash(chezmoi:*), Bash(mkdir:*), Bash(cp:*), Read, Write, ExitPlanMode |
| extended-thinking | true |
chezmoi diff --exclude=externals | grep '^diff' | wc -lchezmoi diff --exclude=externals | grep '^-' | grep -v '^---' | wc -lchezmoi diff --exclude=externals | grep '^+' | grep -v '^+++' | wc -lchezmoi unmanaged | wc -lKey principle: chezmoi diff shows what WOULD happen if we applied the config files:
Reference:
<analysis_process> For each file with changes:
Categorize the change type:
run_once_ script execution (no persistent file): a "new file" entry whose chezmoi source-path resolves to a run_once_* source isn't actually deployed — chezmoi materializes it as a temporary script, runs it, then discards it. Categorize as a script-run event and note its side effects (e.g. brew bundle will install/upgrade packages) rather than treating it as file creation.Assess data loss risk:
Identify patterns:
<output_format>
IMPORTANT: This command will NEVER automatically apply changes.
You must explicitly run chezmoi apply after review.
Enter your choice: </output_format>
<user_options>
/chezmoi-backup to save current statechezmoi diff --exclude=externals/chezmoi-unmanaged command<selective_review_workflow> When user chooses [S] Selective review:
For each file with changes:
File: ~/.example
Changes: [brief summary]
Risk: [High/Medium/Low]
Options:
[V] View full diff for this file
[A] Mark for apply (accept chezmoi version)
[K] Keep current (preserve local version)
[M] Merge manually later
[S] Skip to next file
Choice:
After review, provide summary and next steps. </selective_review_workflow>
<safety_features>
chezmoi apply - user must run explicitly<detailed_changes_display> When showing detailed changes, format as:
These changes would remove content from your current files:
File: ~/.zshrc
- alias myproject='cd ~/projects/important-work'
- export CUSTOM_VAR="my-special-value"
Risk: These appear to be custom additions that would be lost Recommendation: Save these changes before applying
These changes modify existing configurations:
File: ~/.gitconfig
- email = old@example.com
+ email = new@example.com
Risk: Email configuration would be changed Recommendation: Verify the new email is correct
These changes add new content without removing anything:
File: ~/.bashrc
+ source ~/.bash_aliases
+ export PATH="$PATH:/usr/local/bin"
Risk: Only adding content, no data loss Recommendation: Safe to apply </detailed_changes_display>
<next_steps> After analysis, always remind user:
/chezmoi-backup if neededchezmoi apply or chezmoi apply [specific-file]/chezmoi-undo if you need to restore from backup
</next_steps>