
Git Submodule
This is the submodule operator manual you wish you had when you were three levels deep in detached HEAD confusion. It forces you to pick one mode (add and pin, bootstrap, sync to recorded commit, advance a tracked branch, edit inside without losing work, remove cleanly, or configure CI) and gives you the exact command packet for that mode. The real value is in the decision matrix upfront: it tells you when submodules are the wrong boundary and you should use subtree, vendoring, or package delivery instead. It keeps the invariants visible (superprojects record commits not branches, update usually leaves you detached, hosted platforms add auth and visibility constraints) so you don't get surprised when CI fails or GitHub Pages refuses your private submodule.
- skills.sh installs
- 167
- GitHub stars
- 22
- last updated
- Jun 3, 2026
Install
$ npx -y skills add akillness/oh-my-skills --skill git-submodule --agent claude-codeInstalls into .claude/skills of the current project.
Files
Git Submodule
Use this skill as the repository's Git submodule choice and operator-workflow anchor.
The job is not to dump every git submodule command in one blob. The job is to:
- decide whether submodule is the right boundary at all,
- choose one operating mode,
- keep pinned-commit, detached-
HEAD, and hosted-platform consequences explicit, - emit the next safe commands only for that mode.
Read references/decision-matrix.md first.
Read references/update-and-detached-head.md when the request involves pointer updates, detached HEAD, or editing inside the submodule.
Read references/ci-and-automation.md for CI/bootstrap expectations.
Read references/mode-packets-and-hosted-constraints.md for mode-specific command packets and GitHub Pages / URL-drift constraints.
Sponsors
Details
- Repository
- github.com/akillness/oh-my-skills
- Category
- Git & Pull Requests
- First seen
- Jun 3, 2026
More from akillness/oh-my-skills
All 81- Git Workflow167
- Marketing Skills Collection167
- Pattern Detection167
- Bmad166
- System Environment Setup166
- Workflow Automation166
- Clawteam165
- State Management165
- Firebase Cli164
- Langsmith164
- Npm Git Install164
- Prompt Repetition164
- Skill Standardization164
- Vercel Deploy164
- Genkit163
- Jeo163
- React Grab163
- Skill Autoresearch160
- Agent Browser154
- Harness152
- Strix151
- Obsidian Cli148
- Steam Store Launch Ops143
- Code Refactoring251