[BUG] permissions.additionalDirectories does not load skills from added directories (--add-dir CLI flag does)
Status Fixed / completed
Reported on v2.1.63
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 6 comments · opened Mar 2, 2026 · closed Aug 19, 2026
Description
Skills defined in .claude/skills/ within additional directories are not loaded when configured via permissions.additionalDirectories in settings, but are loaded when using the --add-dir CLI flag.
The settings documentation states that permissions.additionalDirectories is functionally equivalent to --add-dir, and the skills documentation says:
Skills defined in.claude/skills/within directories added via--add-dirare loaded automatically
Steps to Reproduce
Setup
Additional directory structure:
.local_skill/
.claude/
skills/
my-skill/
SKILL.md # valid frontmatter + content
Case 1: settings file (FAILS)
.claude/settings.local.json:
{
"permissions": {
"additionalDirectories": ["../.local_skill"]
}
}
Launch: claude
- The directory IS recognized as an additional working directory (shown in environment info)
- Skills are NOT listed in the system message skill list
/my-skillreturns "Unknown skill"
Case 2: CLI flag (WORKS)
Launch: claude --add-dir ../.local_skill
- Skills ARE listed in the system message skill list
/my-skillworks correctly
Expected Behavior
Both methods should load skills identically, as documented.
Environment
- Claude Code version: 2.1.63
- OS: macOS (Darwin 23.6.0)
Showing cached comments. Read the full discussion on GitHub ↗
5 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This is not a duplicate. #22583 is about CLAUDE.md not loading, while this issue is about skills not loading from
additionalDirectories.They likely share a root cause —
permissions.additionalDirectoriesin settings is not treated equivalently to the--add-dirCLI flag — but the affected functionality is different:| Issue | What doesn't load |
|-------|-------------------|
| #22583 | CLAUDE.md |
| #30064 (this) |
.claude/skills/|Both work correctly with
--add-dirCLI flag, both fail withpermissions.additionalDirectoriesin settings.The same problem on windows: https://github.com/anthropics/claude-code/issues/33962
Is there any progress on this bug?
Reproduced on macOS (Darwin 25.3.0), today (2026-04-16).
Setup
~/.claude/settings.json→"permissions": {"additionalDirectories": ["/abs/path/to/workspace-repo"]}<workspace-repo>/.claude/skills/<name>/SKILL.md, valid hyphenated frontmatter (name,description,disable-model-invocation,user-invocable,allowed-tools) per skills.md frontmatter reference~/.claude/skills/deleted (backup retained)Result: Zero custom skills surfaced in the
/menu or in the session's initial available-skills list. Only bundled skills (/simplify,/loop, etc.) appear.Workaround: Restored
~/.claude/skills/— all 22 skills load fine via the personal-scope path.Confirming this is identical symptom to the Windows repro in #43267 (auto-closed as duplicate of this issue). Rolled back the vendor-native approach and will revisit once this ships a fix.