agentleFS
m2ai-mcp-serversm2ai-mcp-servers/claude-skills/skills/optimize-description/SKILL.md

optimize-description

Skill0 starsChanged 7 months agoMITView on GitHub

Rewrite a skill's description field for maximum agent discoverability -- clear trigger conditions, explicit input/output contracts, and disambiguation from similar skills.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when the user says "optimize this skill's description", "fix my skill triggers", "why isn't this skill firing", "optimize description", …

    line 12
  2. Very specific:

    Read the full SKILL.md. Extract:

    line 21
  3. Distinctive:

    All phases and what the skill actually does

    line 24
  4. Distinctive:

    Check for regression: does the new description accidentally exclude valid use cases the old one covered?

    line 86
  5. Distinctive:

    Ask the user: "Apply this description to the skill file?"

    line 90
  6. Very specific:

    If yes, update only the description: field in the YAML frontmatter of the SKILL.md.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Description Optimizer

Takes an existing skill file and rewrites its description for maximum agent discoverability. Agents read description fields to decide when to invoke a skill -- a weak description means the skill never fires when it should, or fires when it shouldn't.

Trigger

Use when the user says "optimize this skill's description", "fix my skill triggers", "why isn't this skill firing", "optimize description", "improve skill discoverability", or when reviewing a skill that has vague or missing trigger language.

Phase 1: Intake

Accept the target skill. This can be:

  • A skill name (look it up in ~/.claude/skills/<name>/SKILL.md)
  • A file path to a SKILL.md
  • Pasted skill content

Read the full SKILL.md. Extract:

  • Current description field from YAML frontmatter
  • Current trigger section (if any)
  • All phases and what the skill actually does
  • Any input requirements and output format

Phase 2: Analyze Current Description

Score the current description on 5 criteria (1-5 each):

1. Trigger Clarity

  • Does the description contain explicit trigger phrases an agent would match on?
  • Are the trigger conditions specific enough to avoid false positives?

2. Disambiguation

  • Could this description be confused with another skill in the library?
  • Scan ~/.claude/skills/*/SKILL.md for skills with similar descriptions
  • Flag any pair with >60% semantic overlap

3. Input/Output Contract

  • Does the description specify what the skill needs to run?
  • Does it indicate what the skill produces?

4. Scope Boundaries

  • Is it clear what this skill does NOT do?
  • Are there explicit exclusions for adjacent use cases?

5. Agent Readability

  • Is the description a single coherent sentence (ideal) or fragmented?
  • Does it avoid jargon that only the skill author would understand?

Present scores:

Trigger Clarity:    [X/5]
Disambiguation:     [X/5]
Input/Output:       [X/5]
Scope Boundaries:   [X/5]
Agent Readability:  [X/5]
TOTAL:              [XX/25]

Phase 3: Rewrite

Generate an optimized description following these rules:

  1. Lead with the action verb -- "Rewrite", "Analyze", "Generate", "Convert", not "This skill..."
  2. Include 2-3 trigger phrases inline -- words/phrases an agent or user would naturally say
  3. State the input -- what the skill consumes
  4. State the output -- what the skill produces
  5. Disambiguate -- if similar skills exist, add a clause like "unlike X which does Y, this skill does Z"
  6. One to two sentences max -- agents parse descriptions quickly; verbose = ignored

Template

[Action verb] [input type] [to produce what] -- [trigger phrases]. [Disambiguation if needed].

Examples of Good Descriptions

  • "Stress-test any agent prompt or specification for ambiguity, missing constraints, and edge cases that would cause random behavior at scale."
  • "Generate images using the Gemini image generation API. Use when the user asks to generate, create, or make an image, picture, photo, illustration, or visual."

Phase 4: Verify

  1. Re-score the new description on the same 5 criteria
  2. Show before/after comparison
  3. Check for regression: does the new description accidentally exclude valid use cases the old one covered?

Phase 5: Apply (with confirmation)

Ask the user: "Apply this description to the skill file?"

If yes, update only the description: field in the YAML frontmatter of the SKILL.md. Do not modify any other content.

Source Attribution

Technique: Skill Description Field Optimization Source: Nate's Newsletter (natesnewsletter@substack.com), 2026-03-30 Post: "Your Best AI Work Vanishes Every Session. 4 Prompts That Make It Permanent"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.