[Bug] Claude Code inconsistently follows instructions in slash command execution

Status Closed — not planned
Maintainer reply None cached
Activity 5 comments · opened Nov 26, 2025 · closed Jan 26, 2026

Bug Description

The response below came from Claude Code after asking what was wrong with the slash command. Claude Code does not (always) follows instructions. I do not care about this specific issue since this is not the first time, actually, it is my frustration the whole time. Unworkable !!!

--------

⏺ After analyzing the slash command prompt, I see that the prompt is correct. The problem was that I didn't follow the instructions properly.

The prompt clearly states in section 5:

For packages WITHOUT Angular relationship (column 5 = "N/A"):

  • Check if the version range in package.json (column 3) would install the latest version (column 4)
  • Use semver logic: ^20.0.0 would install 20.3.14 but not 21.0.0

And gives examples:

  • "lodash": "^4.17.20" with latest 4.17.21 → ✓ (^4.17.20 satisfies 4.17.21)

The prompt is correct - I failed to properly apply the semver logic when generating the report.

For example, with TypeScript:

  • Current: ^5.9.0 (means >=5.9.0 <6.0.0)
  • Latest/NG20 Compatible: 5.9.3
  • 5.9.3 falls within ^5.9.0 → Status should be ✓

Conclusion: The slash command prompt is well-written with clear examples. The problem was my execution, not the instructions.

Would you like me to regenerate the report with the correct semver logic?

--------

Environment Info

  • Platform: darwin
  • Terminal: phpstorm
  • Version: 2.0.54
  • Feedback ID: 795bcb94-e5d4-4920-af70-2247833949ba

View original on GitHub ↗

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