Why Your AI Coding Assistant Ignores Skills: From Metadata Mechanisms to Fixing Practices

    AI coding assistants rely on a "Skill" mechanism to load specific capabilities dynamically. However, triggering these skills often fails because the decision relies solely on the `name` and `description` fields in the frontmatter. This article explores why most skill descriptions fail to trigger, explains the exact role of the `description` field in the system's decision flow, and provides a practical methodology for writing effective descriptions and conducting regression testing to ensure skills are triggered reliably.

    1. The Core Problem: A 100-Token Decision Bottleneck

    In the “Skill” mechanism design of smart coding assistants, a core rule dictates that when the model decides whether to load a skill, it only references the skill’s metadata—specifically, the name and description fields in the frontmatter, which together account for roughly 100 tokens.

    This design is architecturally clean and elegant: all skill metadata is injected into the system prompt, and the model loads the body content on demand, avoiding context bloat. In practice, however, it creates a disastrous bottleneck—whether a skill is triggered depends almost entirely on the quality of these 100 tokens.

    Many documents claim that the model will “autonomously decide when to use a skill.” But the real-world experience is often different: you spend an hour refining the instructions inside the SKILL.md body, feeling fully prepared, and then the model completely ignores it. You end up having to manually type /skill-name to force the invocation every time.

    This is not an isolated case. A tester wrote a code review skill, carefully crafted the description, and then ran 20 different prompts that should obviously trigger it—“do a review,” “give me a pass/fail assessment,” “find the loopholes in this plan.” The trigger rate was zero. 20 queries, zero invocations.

    The problem almost always lies in the same place: the description.

    2. The True Role of description in the System

    Before discussing how to write it, we must precisely understand the position of the description field in the information flow. Many misunderstandings stem from a vague grasp of this concept.

    The skill system embeds an <available_skills> list within the tool definitions, which is constructed from the frontmatter of all skills. When the model faces a request, its decision chain looks roughly like this:

    1. You input a request
    2. ↓
    3. System prompt contains:
    4. ┌───────────────────────────────────────┐
    5. │ ... other system instructions ... │
    6. │ │
    7. │ <available_skills> │
    8. │ name: explain-code │
    9. │ description: Explains code with... │
    10. │ location: user │ ← Your description goes here
    11. │ │
    12. │ name: deploy │
    13. │ description: Deploy the app... │
    14. │ location: project │
    15. │ </available_skills> │
    16. │ │
    17. │ ... other tool definitions ... │
    18. └───────────────────────────────────────┘
    19. ↓
    20. The model makes a decision based on "request semantics + the list above":
    21. Should it invoke a specific skill?

    From this, we can extract three key conclusions:

    1. The description is the only “ad space.” No matter how perfectly the skill body is written, the model cannot see it during the decision phase. The quality of the body affects how well it executes after being triggered, while the quality of the description determines whether it triggers at all.
    2. Matching is a semantic retrieval comparison. The model compares your request against the descriptions of all candidate skills to judge semantic relevance, selecting the correct one from potentially 100+ skills. If the description doesn’t cover the expressions users actually use, the comparison fails.
    3. It’s a probabilistic game. Even with a well-written description, triggering is not a 100% deterministic event—but a terrible description will push the probability close to zero, while an excellent one can drive it toward reliable triggering.

    3. Why Most description Fields Fail

    Based on extensive experimental observation, ineffective descriptions typically fall into the following traps:

    Describing “What It Is” Instead of “When to Use It”

    The most common mistake is writing the description as a feature summary, for example:

    1. description: A code review assistant that checks quality issues.

    When the model reads this, it learns “there is a thing that does code reviews,” but it doesn’t learn “when the user asks for a review, an assessment, or to find flaws, I should invoke it.” Decision-making requires an enumeration of trigger conditions, not a noun definition.

    Trigger Signal Coverage is Too Narrow

    User expressions are highly diverse. “Do a review,” “give me a go/no-go assessment,” “find the loopholes in this strategy”—these three phrases point to the same skill semantically, but share almost no common vocabulary literally. If the description only uses “code review” as an anchor, the latter two expressions won’t match.

    Description is Too Short to Compete

    When there are dozens or hundreds of skills in the system, a dozen-word description occupies too small an area in the semantic space and is easily “overshadowed” by other skills’ descriptions. Within a limited token budget, the description needs to simultaneously answer: What does this skill do? When should it be used? What request characteristics indicate it should be used?

    Misalignment of Description and Body Responsibilities

    Some people stuff execution details into the description, making it verbose yet still lacking trigger phrases; others put trigger conditions in the first line of the body—which is the most wasteful location, because the body is not read at all during the decision phase.

    4. An Experiment-Verified Methodology for Writing description

    The following methodology is derived from iterating through hundreds of triggering experiments. The core principle is: Treat the description as a “trigger rule manual,” not a “feature tag.”

    Principle 1: Start with “When to Use”

    The first sentence of the description should directly answer “when to use me,” utilizing verbs and scenarios that the model easily aligns with:

    1. description: Use when the user asks to review code, evaluate a
    2. proposal, find flaws or risks in a plan, or make a go/no-go
    3. decision. Covers quality checks, risk assessment, and approval
    4. recommendations.

    Principle 2: Enumerate Synonymous Trigger Expressions

    Actively list the various phrases users might use to expand semantic coverage. Experiments show that enumerated descriptions have a significantly higher trigger rate than single-phrase descriptions. You can organize them by “intent clusters”:

    • Review intents: review, check, inspect, scrutinize
    • Evaluation intents: evaluate, assess, judge feasibility, go/no-go
    • Flaw-finding intents: find flaws, find loopholes, find risks, nitpick

    Principle 3: Define Boundaries to Reduce False Triggers

    Simultaneously explaining “when NOT to use” in the description helps the model route correctly between similar skills:

    1. description: Use for reviewing product or technical proposals.
    2. Do NOT use for implementing code changes or writing new
    3. features — those have dedicated skills.

    Principle 4: Control Length and Information Density

    It is recommended to keep the description to one to three sentences, about 50 to 100 tokens. Every sentence should carry decision information (trigger scenarios, synonymous expressions, boundary exclusions). Delete all decorative text.

    Principle 5: Conduct Regression Testing with Real Prompts

    After fixing the description, do not rely on intuition to judge the result. Establish a set of “obviously should trigger” test prompts (recommend 10 to 20, covering different phrasing styles), run them one by one, and record the trigger status. If the trigger rate is lower than expected, review the untriggered phrasing, add the missing expressions to the description, and retest. This cycle of “experiment—supplement—regression” is the only reliable tuning path.

    5. Conclusion

    When a skill isn’t triggered, it is rarely a problem with the model. Most of the time, the metadata has failed its only assigned mission: to let the model “see” and “select” the skill at the moment of decision. Upgrading your description from a brief feature summary into a decision manual that covers trigger scenarios, synonymous expressions, and usage boundaries, coupled with continuous regression testing using real prompts, will transform your skills from “lying dormant” to “ready on call.”