[Bug] Agent fails to discover project-local skills when resolving slash commands
Bug Description
Agent fails to discover project-local skills when locating slash commands. Summary: When the operator referenced /check (a skill defined at
<project-root>/.claude/skills/check/SKILL.md), the agent searched only <project-root>/.claude/commands/
and <user-home>/.claude/commands/, found nothing, and escalated to the operator instead of checking
.claude/skills/. The agent had no available-skills list visible in its context for this session.
Steps to reproduce:
1. Project contains a skill at .claude/skills/<name>/SKILL.md.
2. Operator instructs the agent: "run / after the change".
3. Agent searches .claude/commands/ (slash-command location), finds nothing.
4. Agent asks the operator how to invoke it instead of checking .claude/skills/.
Expected: Either (a) the available-skills list surfaces in the system prompt at session start so /check
is recognised immediately, or (b) the agent's guidance explicitly directs it to check .claude/skills/ as
well as .claude/commands/ when resolving a /<name> reference. The system prompt for this session
referenced "skills listed in the user-invocable skills section" but no such section was present.
Actual: Agent did not locate the skill, paused work, asked the operator. Operator pointed out that the
agent should have checked its own skills directory.
Impact: Project-local skills are a core Claude Code feature; if the agent cannot locate them
autonomously, the operator must hand-hold each invocation, which defeats the workflow.
Environment: Claude Code on Windows 11, model claude-opus-4-7 (1M context).with xhigh effort
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.119
- Feedback ID: 171b751c-9d58-4957-baba-1c1fe6b91161
Errors
[{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T02:54:56.301Z"},{"error":"MaxFileReadTokenExceededError: File content (28551 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at yR_ (B:/~BUN/root/src/entrypoints/cli.js:4845:12722)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T02:56:53.783Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗