Backup your AI coding agent rules, skills, and commands
sanjeed.in·1d
📋Gaming Backlogs
Preview
Report Post

If you use Cursor, Claude Code, or Codex, you probably have user-level rules, skills, and commands you’ve built up over time. The stuff that makes your setup yours.

Project-level configs are fine. Your .cursor/rules folder gets committed to the repo. Same with AGENTS.md. But user-level configs? They live in ~/.cursor, ~/.claude, ~/.codex. They don’t get backed up anywhere.

I realized this when I was thinking about what would happen if my laptop died. All my custom skills and commands would be gone.

How I do it

I added these to my existing dotfiles repo. A simple Python script copies the configs to the repo, and a launchd job runs it daily. If there are changes, it commits and pushes.

./sync.py backup   # copy configs to dotfiles
./sync.py restore  # copy ...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help