About codex-chezmoi
codex-chezmoi is a skill for managing and syncing Codex settings with chezmoi. It is intended for people maintaining Codex configuration across computers and stresses tracking selected files rather than the entire directory, which may contain sensitive data.
Key features
- 01Track Codex files with chezmoi
- 02Sync AGENTS.md and skills
- 03Push configuration changes with Git
- 04Exclude sensitive state files
Use cases
- 01Sync Codex settings across computers
- 02Back up AGENTS.md and skills
- 03Push configuration updates to a Git remote
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mathruffian-dot/ codex-lazy-packs --skill codex-chezmoiAfter installing, type/codex-chezmoiin Claude Code to confirm it loaded.
Details
From the project README用 chezmoi 同步 Codex 設定
安裝 chezmoi
Windows:winget install twpayne.chezmoi
其他:https://chezmoi.io/install/
納管安全設定
chezmoi add ~/.codex/AGENTS.md
chezmoi add ~/.codex/skills/xxx
⚠️ 不要同步 entire ~/.codex/(auth.json、logs、state 會洩漏)
推送
chezmoi cd
git status --short
git add dot_codex/AGENTS.md dot_codex/skills/<本次修改的skill>
git commit -m "..."
git push
另一台電腦同步
chezmoi init <repo-url>
chezmoi apply
# 之後:chezmoi update
另一台仍需手動:Codex 登入、Obsidian 路徑、GitHub 登入。
Comments
Markdown supported