Install chezmoi
Windows:winget install twpayne.chezmoi
Other:https://chezmoi.io/install/
Bring security settings under management
chezmoi add ~/.codex/AGENTS.md
chezmoi add ~/.codex/skills/xxx
⚠️ Do not sync entire ~/.codex/(auth.json, logs, state will leak)
Push
chezmoi cd
git status --short
git add dot_codex/AGENTS.md dot_codex/skills/<本次修改的skill>
git commit -m "..."
git push
Sync on another computer
chezmoi init <repo-url>
chezmoi apply
# 之後:chezmoi update
The other computer still requires manual steps: Codex login, Obsidian path, GitHub login.