claude-code - 💡(How to fix) Fix PostToolUse hook: check-sql-files.py missing in anthropic-skills plugin RPM directory (Windows) [1 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#55546Fetched 2026-05-03 04:50:36
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

Every Write tool call triggers a PostToolUse hook that fails with:

PostToolUse hook blocking error from command:
"python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check-sql-files.py"":

C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\python.exe:
can't open file 'C:\Users\<user>\AppData\Roaming\Claude\local-agent-mode-sessions\<session-id>\<agent-id>\rpm\plugin_01J1ZUJcofzWJxiajSBsZ8US\scripts\check-sql-files.py':
[Errno 2] No such file or directory

Code Example

PostToolUse hook blocking error from command:
"python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check-sql-files.py"":

C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\python.exe:
can't open file 'C:\Users\<user>\AppData\Roaming\Claude\local-agent-mode-sessions\<session-id>\<agent-id>\rpm\plugin_01J1ZUJcofzWJxiajSBsZ8US\scripts\check-sql-files.py':
[Errno 2] No such file or directory

---

{
    "name": "anthropic-skills",
    "version": "1.0.0",
    "description": "Anthropic-managed skills for Claude Desktop"
  }
RAW_BUFFERClick to expand / collapse

Bug Report

Platform: Windows 11 Home 10.0.26200
Claude Code version: current
Plugin: anthropic-skills (Anthropic-managed)

Error

Every Write tool call triggers a PostToolUse hook that fails with:

PostToolUse hook blocking error from command:
"python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check-sql-files.py"":

C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\python.exe:
can't open file 'C:\Users\<user>\AppData\Roaming\Claude\local-agent-mode-sessions\<session-id>\<agent-id>\rpm\plugin_01J1ZUJcofzWJxiajSBsZ8US\scripts\check-sql-files.py':
[Errno 2] No such file or directory

Details

  • CLAUDE_PLUGIN_ROOT resolves to rpm/plugin_01J1ZUJcofzWJxiajSBsZ8US/ inside the agent session directory
  • The scripts/check-sql-files.py file does not exist at that path
  • Plugin identified via local-agent-mode-sessions/skills-plugin/.claude-plugin/plugin.json:
    {
      "name": "anthropic-skills",
      "version": "1.0.0",
      "description": "Anthropic-managed skills for Claude Desktop"
    }

Impact

Hook failure is non-fatal — Write operations succeed — but error appears in every tool response and blocks cleanly.

Steps to Reproduce

  1. Use Claude Code with anthropic-skills plugin active (Windows)
  2. Trigger any Write tool call
  3. See PostToolUse hook error in response

extent analysis

TL;DR

The most likely fix is to ensure the check-sql-files.py script exists at the expected path or modify the PostToolUse hook to handle its absence.

Guidance

  • Verify the CLAUDE_PLUGIN_ROOT environment variable is correctly set and points to the directory containing the scripts folder with check-sql-files.py.
  • Check the anthropic-skills plugin configuration for any misconfigurations that might prevent the check-sql-files.py script from being installed or referenced correctly.
  • Consider modifying the PostToolUse hook to check if check-sql-files.py exists before attempting to execute it, to prevent the error from blocking the tool response.
  • Review the plugin's plugin.json file to ensure it accurately reflects the plugin's structure and file locations.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The provided information suggests a potential issue with the plugin's installation or configuration, but without further details about the plugin's expected behavior or the check-sql-files.py script's purpose, the exact solution remains uncertain.

Recommendation

Apply a workaround by modifying the PostToolUse hook to handle the absence of check-sql-files.py, as this approach does not require modifying the plugin itself and can mitigate the error's impact on tool responses.

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