claude-code - 💡(How to fix) Fix [Bug] Skills injected in system prompt not persisted across agent messages [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57776Fetched 2026-05-11 03:25:42
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: EEXIST: file already exists, mkdir 'C:\Users\dario\.claude\cache'\n at async AIq (B:/~BUN/root/src/entrypoints/cli.js:6545:5443)","timestamp":"2026-05-10T06:59:20.482Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:03:50.547Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\Projects\ralphe.\n at call (B:/~BUN/root/src/entrypoints/cli.js:4947:11360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:05:15.763Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:19:03.787Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\Projects\ralphe.\n at call (B:/~BUN/root/src/entrypoints/cli.js:4947:11360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:36:48.021Z"}]

Code Example

[{"error":"Error: EEXIST: file already exists, mkdir 'C:\\Users\\dario\\.claude\\cache'\n    at async AIq (B:/~BUN/root/src/entrypoints/cli.js:6545:5443)","timestamp":"2026-05-10T06:59:20.482Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:03:50.547Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\\Projects\\ralphe.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4947:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:05:15.763Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:19:03.787Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\\Projects\\ralphe.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4947:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:36:48.021Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description The skill is active on the CLI side (toggle on, project, ~60 tok), but the harness has never injected its list into any system-reminder on the agent side. There's a disconnect between two layers: the user-facing skills picker works, but agent-facing skills injection does not.

This is probably a Claude Code bug in this session (long-running conversation, lazy injection never fired, or the list was emitted once at the start and fell out of context).

Two diagnostic tests

  1. Direct invocation test (fastest): in a new message, simply type /github-commit. The system prompt explicitly allows invoking user-authored skills as /<name>, independent of the auto-discovery list. If the Skill tool accepts and the skill fires — the execution mechanism works, only the listing/announcement broke. If it rejects — a deeper bug.
  2. Restart test: /exit → new session in the same repo. If in the first messages of the new session a system-reminder contains an available-skills block with github-commit — that confirms it's stale state in this session (a one-time injection at the start that either slipped through earlier / never happened).

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.138
  • Feedback ID: 92776518-d21d-4a47-95fc-fdbf66964015

Errors

[{"error":"Error: EEXIST: file already exists, mkdir 'C:\\Users\\dario\\.claude\\cache'\n    at async AIq (B:/~BUN/root/src/entrypoints/cli.js:6545:5443)","timestamp":"2026-05-10T06:59:20.482Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:03:50.547Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\\Projects\\ralphe.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4947:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:05:15.763Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:19:03.787Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\\Projects\\ralphe.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4947:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-10T07:36:48.021Z"}]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Skills injected in system prompt not persisted across agent messages [1 comments, 2 participants]