[BUG] Skills not detected when using print mode from project's child directory
Resolved 💬 5 comments Opened Nov 6, 2025 by mikelyndon Closed Jan 12, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When I try to use/query projects skills using claude -p from a child folder skills are not detected
What Should Happen?
Running claude -p from the root folder returns the skills available. I would expect the same behaviour from child folders.
A similar query to check for sub-agents from the tests folder will return the projects sub-agents.
Error Messages/Logs
Steps to Reproduce
Create a project folder with .claude/skills/weather-forecaster/SKILL.md
From the project folder.
mkdir testscd tests- `claude -p "Which skills are available?"
- Currently, there are no skills available in your environment
I have tried the following flags:
--allowedTools "Skill"--setting-sources project--add-dir path/to/project/root--settings ../.claude/settings.local.json
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.34
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.34
- Feedback ID: 00ca1842-e8b7-4959-b0db-462a78fd1059
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗