원클릭으로
integrate-changes
Analyze chezmoi changes and create safe integration plan
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Analyze chezmoi changes and create safe integration plan
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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>