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

Status Fixed / completed
Reported on v2.1.76
Maintainer reply None cached
Activity 4 comments · opened Mar 16, 2026 · 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 ↗

4 Comments

github-actions[bot] · 7 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/30387
  2. https://github.com/anthropics/claude-code/issues/9716

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

MikeSpreitzer · 7 months ago

Here is the skill file.

SKILL.md

MikeSpreitzer · 7 months ago

Closing this one because I suspect that it is a duplicate of #30387

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.