Prompt Patterns
**Skill**: [Chezmoi Workflows](../SKILL.md)
## Command Reference
Quick reference for chezmoi commands with expected outputs.
---
## Status Commands
| Command | Expected Output |
| ------------------- | ----------------------------------------------------- |
| `chezmoi status` | `M` modified, `A` added, `D` deleted, empty = in sync |
| `chezmoi diff` | Unified diff, empty = no changes |
| `chezmoi managed` | List of all tracked files |
| `chezmoi verify` | Exit 0 = success, non-zero = drift detected |
| `chezmoi unmanaged` | Files in target not tracked by chezmoi |
---
## Tracking Commands
| Command | Effect |
| ------------------------- | ---------------------------------------------- |
| `chezmoi add ~/.zshrc` | Add file to source, auto-commits if configured |
| `chezmoi re-add` | Re-add all managed files that changed |
| `chezmoi forget ~/.zshrc` | Stop tracking file (keeps in home) |
---
## Sync Commands
| Command | Effect |
| ------------------------ | ----------------------------------------- |
| `chezmoi apply` | Deploy source to home directory |
| `chezmoi apply ~/.zshrc` | Deploy single file |
| `chezmoi update` | Pull from remote + apply (single command) |
---
## Git Commands
All git operations use `chezmoi git --` prefix for portability:
| Command | Effect |
| --------------------------------- | ------------------------- |
| `chezmoi git -- status` | Git status of source repo |
| `chezmoi git -- log --oneline -5` | Recent commits |
| `chezmoi git -- push` | Push to remote |
| `chezmoi git -- pull` | Pull from remote |
| `chezmoi git -- remote -v` | Show configured remotes |
---
## Workflow: Track Changeswhen to use it
Community prompt sourced from the open-source GitHub repo terrylica/cc-skills (MIT). A "Prompt Patterns" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
terrylica/cc-skills · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar