Commit all repos

From raffertyuy/repo-of-repos · View interactive version

Commit all repos is an AI agent skill from the GitHub repository raffertyuy/repo-of-repos. Iterate through all sub-repos in repos/ and stage/commit/push each one, then do the same for the master repo

How to use this skill

Skill file

Commit All Repos

Iterate through every sub-repo in repos/ and stage, commit, and push changes in each one individually, then do the same for the master repo last.

Order of Operations

  1. Sub-repos first — iterate through each directory in repos/*/ that is a git repository
  2. Master repo last — commit root-level changes after all sub-repos are done

For Each Sub-Repo

For each directory under repos/<name>/ that is a git repository (has a .git directory):

Note: Skip type: local entries from repos/repos.yaml — local source folders have no git history of their own. Their changes are committed via the root repo's /commit skill.

  1. cd into the repo directory
  2. Run git status (never use -uall) — if no changes, skip it
  3. Run git diff to review what changed
  4. Run git log --oneline -5 to match that repo's commit message style
  5. Read the sub-repo's agentic instructions if they exist (in priority order):
  1. Follow the sub-repo's commit message guidelines if they define any; otherwise fall back to the root .claude/prompt-snippets/commit-message.md
  2. Stage relevant files using explicit paths — never git add -A
  3. Create the commit
  4. Run git push to push the commit to the remote
  5. Run git status to verify

For the Master Repo

After all sub-repos are committed:

  1. Run the /commit skill for the root workspace (which excludes repos/)
  2. If there are no root-level changes, skip — don't create an empty commit

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.