[FEATURE] --bare mode needs a way to load project skills without --add-dir
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single feature request (please file separate requests for different features)
- [x] I am using the latest version of Claude Code
What Should Happen?
--bare mode should have a mechanism to discover and load project skills from .claude/skills/ directories without re-enabling global ~/.claude/CLAUDE.md discovery.
Currently, --bare mode has:
--plugin-dirfor loading plugin skills--append-system-prompt-filefor loading specific CLAUDE.md files--add-dirfor adding directories (but this is broken - see below)
It does not have a way to load project-scoped skills from .claude/skills/. The natural approach - --add-dir "$PWD/.claude" - triggers a bug where global ~/.claude/CLAUDE.md is loaded despite --bare (#52267).
Proposed Solution
Either:
- Fix
--add-dirso it doesn't re-enable global CLAUDE.md discovery in--baremode (#52267), which would make--add-dir "$PWD/.claude"work for both CLAUDE.md and skills discovery, or
- Add a
--skill-dirflag (analogous to--plugin-dir) that points at a directory containing askills/subdirectory, or accepts askills/directory directly:
``bash``
claude --bare --skill-dir "$PWD/.claude/skills"
Current Workaround
--plugin-dir happens to work for project skills if pointed at the parent of a skills/ directory:
claude --bare \
--append-system-prompt-file "$PWD/CLAUDE.md" \
--plugin-dir "$HOME/.claude/plugins" \
--plugin-dir "$PWD/.claude"
The second --plugin-dir discovers $PWD/.claude/skills/ and loads them. This works but is non-obvious - --plugin-dir is semantically for plugins, not project skills.
Context
This came up building a --bare mode launcher script that needs to load:
- A project-specific CLAUDE.md (solved via
--append-system-prompt-file) - Installed plugin skills like compound-engineering (solved via
--plugin-dir ~/.claude/plugins) - Project-scoped skills from
.claude/skills/(no clean solution ---add-dirtriggers #52267)
Related: #52267 (--bare --add-dir re-enables global CLAUDE.md discovery)
Claude Code Version
2.1.118
Platform
Amazon Bedrock
Operating System
macOS (Darwin 24.6.0)
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗