Startup error: ENOENT scanning non-existent managed skills directory

Resolved 💬 1 comment Opened Jun 4, 2026 by PjotrPjotr Closed Jul 10, 2026

Description

On startup, Claude Code logs an error when trying to scan a managed skills directory that doesn't exist:

[ERROR] Error: Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'

Environment

  • OS: macOS (Darwin 24.6.0)
  • Claude Code version: Latest (installed via npm)

Steps to Reproduce

  1. Start Claude Code on macOS
  2. Check the debug log at ~/.claude/debug/

Expected Behavior

No error should be logged for a directory that is expected to potentially not exist.

Actual Behavior

An [ERROR] level log entry is created, even though Claude Code continues to function normally.

Suggested Fix

Either:

  1. Check if the directory exists before attempting to scan it
  2. Remove the path if it's outdated/unused
  3. Create the directory during installation if it's meant to exist

Debug Log Context

[DEBUG] Loading skills from: managed=/Library/Application Support/ClaudeCode/.claude/skills, user=/Users/.../.claude/skills, project=[]
[ERROR] Error: Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'

The startup continues successfully and user skills load fine - this is a non-critical error but should be cleaned up.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗