How to Fix a Skill That Never Triggers or Over-Triggers: A Troubleshooting Order

1. Layer One: Confirm It Is Actually Loaded
All three hosts have self-check entry points: in Claude Code, ask "What skills are available?" directly in the session or check the /skills list; in Cursor, discovered Skills can be viewed on the Skills page under Customize in the sidebar, listed alongside rules in the Agent Decides section; in Codex, use /skills to view and select. If it is not in the list at all, the directory was placed in the wrong location rather than a triggering issue—the directories scanned by the three hosts differ from one another (see our cross-host comparison article on this site), and a Skill placed in the wrong directory does not exist to the host.
When it is in the list, but there is more than one with the same name, the one that actually runs may be another one: Claude Code's precedence for duplicate names is enterprise overriding personal and personal overriding project, while plugin Skills carry a plugin-name prefix and will not collide with local Skills of the same name; Codex does not merge them, so both duplicate-named entries appear in the selector. When troubleshooting "triggered, but behaved wrong," first confirm whether the triggered Skill is the one you think it is.

2. Layer Two: Verify via Manual Invocation, and Check YAML Along the Way
If manual invocation runs but automatic triggering fails, focus on checking frontmatter parsing. Claude Code's rule is strict: the opening delimiter of the YAML configuration block must be on the first line of the file—moving it to the second line causes the entire block to be skipped; when YAML has syntax errors, it does not halt, but instead loads with empty metadata—/name still works, yet description is empty, so automatic matching will never pick it. Starting with --debug shows parsing errors; for batch troubleshooting, running claude plugin validate scans the entire skills directory and catches every SKILL.md whose frontmatter fails to parse at once. Cursor follows the same standard: Skills with failed frontmatter parsing or a missing description trigger warnings, and those without a description are essentially never selected by the Agent on its own, though they can still be invoked by name.
Next, check two toggle fields. A Skill with disable-model-invocation set to true prohibits automatic triggering by design—both Claude Code and Cursor support this field, so before troubleshooting, verify it was not set intentionally. Claude Code's paths field restricts activation scope to matching files; when operating outside that restricted scope, it does not appear—that is by design, not a bug.

3. Layer Three: Rewrite the Description, Putting Trigger Words First
The basic structure of a description was covered in the packaging tutorial; here we only cover troubleshooting. There are three common ailments: writing it as a feature overview (no scenarios, no phrases a user would actually say, so it fails to match); making the scope too narrow (only writing one phrasing, so it misses whenever the user uses different words); and making the scope too broad (tangentially related to every request, causing false triggers). The fix is to write "when to use" using words the user will genuinely say, and clearly state boundaries: what it does, when to use it, and when not to use it.
Here is a comparison. Bad example: "Code review assistant, providing comprehensive code quality analysis and improvement suggestions."—Words like "comprehensive" and "quality" carry no signal for matching and will also attract every code-adjacent request. Revised: "Review changes on the current branch before committing: check for logic errors, security risks, and missing tests. Use when the user says 'review this,' 'pre-commit check,' or 'see if there are any issues with these changes'; do not use when only explaining concepts or asking about syntax."—Trigger words, scenario, and exclusions are all in one sentence.
Do not wrap up by gut feeling after editing: open a new session and test once each with three types of prompts—one that should trigger, one that should not trigger, and one synonymous request phrased differently. Only when all three behave properly is it fixed; if only the first one succeeds, you likely rewrote the description into a narrow one that only recognizes that exact sentence.

4. Layer Four: Too Many Installed, Descriptions Eaten by the List Budget
Because every Skill's description stays permanently in the context, hosts all set a budget for the skill list. Claude Code's list budget is 1% of the model's context window: once exceeded, descriptions are dropped starting from the least-invoked Skill—the name remains, the description disappears, effectively making it unmatchable; furthermore, the combined description and when_to_use of a single entry is truncated at 1536 characters in the list, so anything written longer will not get in. Codex's rule is that the initial list takes up at most 2% of the context (calculated as 8000 characters when the window size is unknown); when exceeding the limit, individual descriptions are shortened first, and if even more are installed, entire Skills are omitted with a warning.
Apply countermeasures in order. First, reduce quantity: run /skill-doctor in Claude Code to see each Skill's context cost and usage frequency, turn off ones unused for a long time, or set them to name-only in skillOverrides (keeping only the name without consuming description budget); in Codex, disable them individually in the configuration. Second, rewrite: move the trigger words of all descriptions to the very front, so even if shortened, the slice that enters the list still carries matching signal—Codex's official documentation gives authors this exact advice as well. Only as a last resort should you raise the budget (skillListingBudgetFraction in Claude Code, skills.max_context_tokens in Codex), which trades context for trigger rate and treats the symptom rather than the root cause.
5. Wrap-Up for Over-Triggering: Narrow Down and Lock Up
For over-triggering, work in the opposite direction: first narrow down the description, add exclusion clauses (such as "do not use when asking about concepts or checking syntax"), and clearly define the division of labor with adjacent Skills—having the same batch of trigger words appear in two Skills' descriptions is the root cause of collisions, and explicitly stating each one's boundaries works far better than both claiming "comprehensive support."
For anything that narrowing still cannot hold back, put a lock on it. For Skills meant only for manual use, set disable-model-invocation to true in Claude Code and Cursor; in Codex, the corresponding toggle is not in SKILL.md, but in agents/openai.yaml inside the skill directory by setting policy.allow_implicit_invocation to false. Actions with side effects such as publishing, deploying, and sending messages should be locked by default and triggered via manual invocation by name, rather than counting on the description being written restrained enough.
Tools mentioned
Sources
- Extend Claude with skills(Troubleshooting:Skill not triggering / triggers too often / descriptions are cut short)
- developers.openai.com
- cursor.com
- Agent Skills
This article is compiled from the public sources above and does not reproduce the originals in full; see the official sources for details.