[BUG] Skill triggers ignored even with non-huge context

Resolved 💬 4 comments Opened Mar 16, 2026 by MikeSpreitzer Closed Mar 16, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I have a personal skill (one in ~/.claude/skills/) with a trigger in its frontmatter, saying

trigger: When the user asks to commit changes, create a commit, make a git commit, amend a commit, revise a commit, reword a commit message, or any other action that results in running a `git commit` command

but when I told Claude code to "Commit these changes to a new branch", the skill did not get involved. When I enquired about why, I was ultimately told that Claude code was not seeing the triggers in my skill. I have attached a typescript of the session.

skill-fail-316.log

This is going through LiteLLM v.181.14 to Opus 4.6 and/or Haiku 4.5.

In other sessions, even today, the triggers of my skills were seen.

What Should Happen?

The triggers in my skills should be visible to Claude.

Error Messages/Logs

Steps to Reproduce

Discussed above.

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.76

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

This seems similar to #34648 but the context is not huge.

View original on GitHub ↗

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