[Bug] Custom skills and safety instructions not respected during task execution

Resolved 💬 3 comments Opened Jan 27, 2026 by yencorp Closed Jan 30, 2026

Bug Description
Claude Code ignores user-defined safety
mechanisms:

  1. Created a deploy skill

(.claude/skills/deploy/SKILL.md) with specific
CORS instructions - Claude ignored it and broke
production

  1. Asked Claude "Do you know the deploy skill?"

multiple times - Claude never answered, just kept
working

  1. Claude reported deployment as "complete" even

after seeing CORS errors in browser verification

  1. CLAUDE.md specifies "verify in browser before

reporting completion" - Claude ignored this

  1. Result: 1+ hour production downtime

Core problem: Custom instructions, skills, and
user questions don't effectively govern Claude's
behavior. Safety mechanisms I created are
bypassed.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.20
  • Feedback ID: cf004835-bf7a-4305-aa89-37cf6754c559

Errors

[{"error":"TypeError: Cannot read properties of undefined (reading 'safeParse')\n    at sF6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5217:25188)\n    at nn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5218:1314)\n    at Kv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5218:1754)\n    at q5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5218:1683)\n    at Object.Xb8 [as isPlatformInEnabledList] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:244:2532)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4750:21550\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4887:6400\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5137:913","timestamp":"2026-01-27T04:40:32.018Z"},{"error":"TypeError: Cannot read properties of undefined (reading 'safeParse')\n    at sF6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5217:25188)\n    at nn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5218:1314)\n    at Kv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5218:1754)\n    at q5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5218:1683)\n    at Object.Xb8 [as isPlatformInEnabledList] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:244:2532)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4750:21550\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4887:6400\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:848\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5137:913","timestamp":"2026-01-27T04:40:32.032Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at Module.readdirSync (node:fs:1569:26)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1909\n    at bX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:35313)\n    at Object.readdirSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1879)\n    at LZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1827:369)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1827:4509\n    at q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)\n    at Bi2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4887:4362)\n    …

Note: Content was truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗