AIToday
AI Coding AssistantsZenn AI/MLPublished: Nov 30, 2026, 22:01 JST

Claude Code finds parent .claude skills from subfolders, test finds

Send on LINE
Claude Code finds parent .claude skills from subfolders, test finds

3 Key Points

  1. What happened

    In tests on Claude Code 2.1.326 on Windows 11, skills and commands in a parent folder's .claude/skills and .claude/commands showed up in the init list and could be called with /name from subfolders.

  2. Why it matters

    Teams that keep shared .claude definitions above a subfolder can rely on that arrangement, unless the subfolder is its own git root, where the parent's definitions did not appear.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The test was run as a way to untangle a common frustration: people who keep shared Claude Code definitions in an upper folder sometimes feel those definitions disappear when they start Claude Code lower down. The author set up parent folders with a single skill, command, and agent, then launched Claude Code in non-interactive mode from the parent, a subfolder, and a subfolder two levels down. The init list showed all three kinds of definition, and calling by name worked for skills and commands.

The one condition that broke this was nesting git repositories. When both the parent and the subfolder were git roots, the parent's definitions did not appear at all, in either Claude Code 2.1.318 or 2.1.326. The author notes a similar report in a comment on GitHub issue #26489, a feature request for tracing skills, agents, and commands up to parent folders, but treats that comment as a single unverified report. The stated limit is that the test shows this condition did not surface definitions, not why.

On the official documentation, the author read that project skills are loaded from parent folders up to the repository root, and that commands were merged into skills with skills taking precedence. The test adds detail the docs did not cover in the portion read: that commands are also visible from the parent, that this holds outside git as well, and that a same-named skill in the subfolder wins. The measurements were done on Windows 11 with a limited number of runs, and other versions, operating systems, and the user-level ~/.claude folder were not tested.

FAQ
Can Claude Code call a parent folder's skill from a subfolder?
Yes. The author called /zz-probe-s for a skill and /zz-probe-c for a command from a subfolder, and both worked on Claude Code 2.1.326.
When do parent folder definitions stop showing up?
When the subfolder where Claude Code is launched has its own git repository root. In that case, the parent folder's skills, commands, and agents did not appear in the init list at all.
What happens if a parent and a subfolder have a skill with the same name?
Only one entry appeared in the init list, and calling it from the subfolder used the subfolder's own definition.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleG-MADA design keeps final approval from AI, taps Orca Bots