More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Skill Description Optimizer

    2

    Find out why your skill never triggers: inspect, rewrite and test the SKILL.md description with trigger phrases and a token budget, using a local script.

    Free

    5 uses5.0 (1 review)
    skill-description-optimizer

    skill-description-optimizer

    Example session with this skill installed

    "My SQL query reviewer skill never triggers. Here's the description: 'Provides comprehensive database analysis and SQL optimization utilities.'"

    • Read your context and instructions
    • Compiled the -description-optimizer
    {
      "inspect": {
        "description_est_tokens": 142,
        "token_budget_soft": 250,
        "desc_within_soft": true,
        "trigger_issues": [
    
      "R1.3: Description is topic-shaped, not trigger-shaped",
      "R1.4: No trigger keywords matching user task phrasing"
    
        ]
      },
      "optimize": {
    
    "new_description": "Use when you need to review SQL queries for injection, N+1 patterns, missing indexes, or ORM-generated SQL performance issues. Provides comprehensive database analysis and SQL optimization utilities.",
    "body_preserved": true
    
      },
      "evaluate": {
        "results": [
          {"phrase": "optimize a slow sql query", "score": 0.61, "label": "should-trigger"},
          {"phrase": "review a pull request for security", "score": 0.22, "label": "should-not-trigger"},
          {"phrase": "plan a vacation itinerary", "score": 0.04, "label": "should-not-trigger"}
        ],
        "summary": {"positive_cases
    

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The Problem

    You published a skill on Agensi. It's installed 12 times. It's triggered exactly once. You ask the agent to use your skill and it picks a different one instead — or no skill at all. The problem is your description: "Provides utilities for code analysis and improvement tasks." That's a 512-token description that tells the agent what the skill is instead of when to use it. The retrieval surface — the first 40-90 characters of your description — contains filler words and self-referential phrasing instead of task-specific trigger keywords. Meanwhile, a competing skill with a terse, trigger-first description ("Use when reviewing SQL queries for injection, performance, or N+1 problems") activates every time because its first 90 characters are dense with matching tokens.

    What You Get

    • inspect command that parses SKILL.md frontmatter, estimates token usage against soft (250) and hard (512) budgets, and reports specific trigger-quality issues: missing WHEN-first wording, filler words, topic-shaped vs. trigger-shaped descriptions, and frontmatter structure problems
    • optimize command that rewrites the description into WHEN-first trigger form ("Use when you need to [action]") while preserving the original wording and entire body text — no information loss, just restructured for retrieval
    • evaluate command that scores a set of should-trigger and should-not-trigger phrases against the description using Jaccard token overlap plus verbatim-phrase bonuses, producing a JSON report proving (not guessing) that positive cases outscore near-miss negatives
    • Overlap detection across your skill catalogue — identifies descriptions that are >60% token-identical and blur each other's activation space, with guidance on differentiating by naming concrete tasks and output artifacts
    • Preflight proxy scoring using deterministic lexical heuristics (no API keys, no vendor dependencies) — designed as a fast check before real harness testing, not a replacement for it
    • Stdlib-only CLI — runs anywhere Python runs, no PyYAML dependency, never executes dynamic code, and only writes to files you explicitly name with -o

    Why This Beats Prompting It Yourself

    When you try to rewrite your skill description by hand, you're guessing. You add more keywords hoping to cast a wider net, but you dilute the trigger signal. You write "comprehensive" and "powerful" and "all-in-one" because they sound good to humans — but the retrieval matcher cares about token overlap with the user's task description, not adjectives. This skill gives you a measurement loop: inspect → optimize → evaluate → verify. You can prove that your rewritten description out-scores the old one on real trigger phrases before shipping. No other tool provides this kind of evidence-based description QA.

    Example Session

    You: "My SQL query reviewer skill never triggers. Here's the description: 'Provides comprehensive database analysis and SQL optimization utilities.'"

    Agent output:

    {
      "inspect": {
        "description_est_tokens": 142,
        "token_budget_soft": 250,
        "desc_within_soft": true,
        "trigger_issues": [
          "R1.3: Description is topic-shaped, not trigger-shaped",
          "R1.4: No trigger keywords matching user task phrasing"
        ]
      },
      "optimize": {
        "new_description": "Use when you need to review SQL queries for injection, N+1 patterns, missing indexes, or ORM-generated SQL performance issues. Provides comprehensive database analysis and SQL optimization utilities.",
        "body_preserved": true
      },
      "evaluate": {
        "results": [
          {"phrase": "optimize a slow sql query", "score": 0.61, "label": "should-trigger"},
          {"phrase": "review a pull request for security", "score": 0.22, "label": "should-not-trigger"},
          {"phrase": "plan a vacation itinerary", "score": 0.04, "label": "should-not-trigger"}
        ],
        "summary": {"positive_cases_outscore_negatives": true}
      }
    }
    

    Use Cases

    • Debugging why an installed skill never activates in Claude Code, Codex CLI, or Cursor
    • Writing the frontmatter description for a new skill before publishing to any marketplace
    • Auditing a skill catalogue of 10+ skills for uniform trigger quality and token budget compliance
    • After AI-generated SKILL.md creation — AI-written descriptions tend to be topic-shaped rather than trigger-shaped
    • Quality assurance for marketplace submissions that enforce description standards

    Known Limitations

    The evaluate scoring uses lexical overlap heuristics (Jaccard + verbatim bonus) as a preflight proxy — it cannot see inside any specific agent's embedding model or classifier. Always validate the final skill in your target harness before shipping. The optimizer only modifies the frontmatter description field; it does not rewrite the skill body. Description drift can occur after batch edits — rerun inspect across the full catalogue after any catalog-wide pass to ensure sibling skills don't blur each other's trigger space.

    The evaluate scoring uses lexical overlap heuristics (Jaccard + verbatim bonus) as a preflight proxy — it cannot see inside any specific agent's embedding model or classifier. Always validate the final skill in your target harness before shipping. The optimizer only modifies the frontmatter description field; it does not rewrite the skill body. Description drift can occur after batch edits — rer

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    This skill has been used 5 times.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    • Free with an Agensi account

    Requires

    Python

    Permissions

    Terminal / Shell

    File Scopes

    **/SKILL.md

    Reads a SKILL.md you point it at, runs a local Python script to inspect, rewrite and evaluate its description, and writes the result to a new file you name; no network calls.

    Listed1 month ago
    Updated14 days ago

    What's inside

    Frequently Asked Questions

    This skill audits and rewrites your SKILL.md frontmatter to ensure your custom tools trigger reliably. It fixes common issues like vague descriptions, overlapping trigger phrases, and excessive token usage that prevent AI agents from recognizing when to use your skill.

    It is optimized for all SKILL.md-compatible environments, including Claude Code, Codex CLI, and Cursor. The optimizer ensures your metadata follows the specific conventions required by these harnesses for deterministic auto-invocation.

    The skill provides a 'preflight heuristic score' that evaluates your description against typical LLM context windows. It helps you trim 'token-hungry' descriptions so your skill remains active even in long, complex chat sessions.

    Yes, it specifically analyzes your 'should-trigger' and 'should-not-trigger' prompts to resolve conflicts. It detects if your skill's scope is too broad or if it competes with other installed skills, providing a rewritten version that carves out a clear, unique activation niche.

    You receive the full skill-description-optimizer package ready for installation in your preferred harness. This includes the logic for metadata auditing, description rewriting, and the scoring system for trigger reliability.