Skip to main content
skill CX Codex

git-submodule — Claude Code skill for Git submodules

A skill that first asks whether a submodule is the right boundary, then walks you through one safe workflow. Useful when your project pulls in outside code through .gitmodules.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add akillness/jeo-skills --skill git-submodule -a claude-code
Open on GitHub

What git-submodule does

Each run picks a single mode: pinning an external repo at a commit, bootstrapping nested repos on a fresh clone, restoring a submodule to the commit the superproject records, moving it along a tracked branch, editing inside it, taking it out, or wiring checkout in CI. Before any command appears, the skill sorts the request into fields — goal, submodule state, CI and auth context — and states its safest assumption when something is missing.

Reference files back this up: a decision matrix, a separate note on updates and detached HEAD, guidance for CI and automation, and command packets per mode with hosted-platform limits. The toolset is Bash, Read, Write, Edit, Glob, Grep, so it inspects the repo and answers with concrete steps instead of a general Git lecture.

Rebases, conflict recovery and history repair belong to git-workflow; shipping a dependency as a registry package is another skill. A submodule points at a commit, never at a branch, so git submodule update can drop you into detached HEAD — the skill flags that before you commit anything.

What it helps with

  • judge whether an external dependency belongs in a submodule or a subtree
  • attach someone else's repo and pin it to a commit
  • clone a project whose submodules are still empty
  • restore a submodule to the commit recorded upstream
  • fetch submodules during CI, private ones included

Example prompts for the agent

  • Add this external repo as a submodule and pin the current commit
  • I cloned the project and the submodules are empty — initialize them recursively
  • The submodule is in detached HEAD, put it back on the recorded commit

How to install git-submodule

1Skills CLI (Vercel)

npx skills add akillness/jeo-skills --skill git-submodule -a claude-code

2Manually: put the files in place

~/.claude/skills/git-submodule/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/git-submodule/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about git-submodule

How do I install git-submodule in Claude Code?

Run npx skills add akillness/jeo-skills --skill git-submodule -a claude-code. The skill file lands at ~/.claude/skills/git-submodule/SKILL.md.

What does git-submodule do?

It narrows a submodule problem to one mode — adding and pinning, bootstrapping, syncing a pointer, CI checkout — and returns commands for that mode only.

How is it different from git-workflow?

git-workflow covers local branches, rebasing and history repair. This one deals with the repo boundary: choosing a submodule, initializing it, updating the pointer, detached HEAD and CI behaviour.

Similar skills

All skills for Git and GitHub →

From the same set29

bmad-idea Turns a rough idea into a single concept artifact and points to the next skill. Meant for the step before PRDs and sprint plans. CX Codex +1 366installs state-management A skill that classifies React state into packets and picks the narrowest owner, so you stop arguing about libraries before you know what the state is. CX Codex +1 365installs sprint-retrospective Runs a sprint or milestone retrospective and turns it into a few owned actions instead of another template ritual. CX Codex +1 364installs debugging A skill that walks the agent through a reproduce → isolate → verify loop for concrete bugs, regressions and flaky failures. Useful once you already have a failing test or request. CX Codex +1 361installs environment-setup A skill for app configuration: which values belong in .env, what gets committed, how to validate required variables, and where secrets stop being your problem. CX Codex +1 353installs system-environment-setup A skill that makes a repo runnable on any machine: pinned runtimes, local services, containers, bootstrap scripts and setup diagnosis. CX Codex +1 351installs npm-git-install Picks a safe delivery path for a Node package coming from a branch, commit, fork or private repo. Useful when the question is whether to pull from Git at all. CX Codex +1 350installs react-grab This skill lets an agent pull context for a React element you pick in a live browser: component name, file, line and HTML. Useful when a fix has to match the real DOM. CX Codex +1 344installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor