DEV Community

Omar Ali Khan
Omar Ali Khan

Posted on • Originally published at breaking-changes.blog

git version control your claude skills and setup (.dotfiles)

I started doing this a while back and thought it was super useful.

claude-code saves all skills, agents, commands as text files in ~/claude and so they're super git-friendly.

tl;dr:

  1. save your ~/.claude dir to git
  2. push/pull it from multiple machines
  3. be able to git blame and revert skills and more

Nothing revolutionary but very rewarding.

I've included a fleshed out .gitignore file for anyone interested as well as a breakdown of the ~/.claude dir.

Top comments (0)