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.
In this repository24 other files it gives its agents.
- aarSkill
- agent-cost-modelSkill
- banana-makerSkill
- bitter-lesson-scorecardSkill
- boot-tax-monitorSkill
- compensating-complexity-auditorSkill
- context-fork-guideSkill
- context-hygieneSkill
- counterargument-stress-testSkill
- dark-code-auditSkill
- executive-briefingSkill
- failure-asymmetrySkill
- failure-postmortemSkill
- file-intelSkill
- geopolitical-signal-enricherSkill
- get-api-docsSkill
- gh-reviewSkill
- model-routerSkill
- prompt-rewriterSkill
- skill-auditSkill
- skill-maintenanceSkill
- spec-gap-detectorSkill
- token-burn-auditorSkill
- what-am-i-forgettingSkill
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
- Distinctive: line 12
Use when the user says "optimize this skill's description", "fix my skill triggers", "why isn't this skill firing", "optimize description", …
- Very specific: line 21
Read the full SKILL.md. Extract:
- Distinctive: line 24
All phases and what the skill actually does
- Distinctive: line 86
Check for regression: does the new description accidentally exclude valid use cases the old one covered?
- Distinctive: line 90
Ask the user: "Apply this description to the skill file?"
- Very specific: line 92
If yes, update only the description: field in the YAML frontmatter of the SKILL.md.
≈ “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.
Files
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
descriptionfield 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.mdfor 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:
- Lead with the action verb -- "Rewrite", "Analyze", "Generate", "Convert", not "This skill..."
- Include 2-3 trigger phrases inline -- words/phrases an agent or user would naturally say
- State the input -- what the skill consumes
- State the output -- what the skill produces
- Disambiguate -- if similar skills exist, add a clause like "unlike X which does Y, this skill does Z"
- 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
- Re-score the new description on the same 5 criteria
- Show before/after comparison
- 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"
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
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.

