Tool Description Optimizer logo

Tool Description Optimizer

Community
ArchieIndian
tool-description-optimizer

Analyzes skill descriptions for trigger quality — scores clarity, keyword density, and specificity, then suggests rewrites that improve discovery accuracy.

Overview

PublisherArchieIndian
Repositoryopenclaw-superpowers
Skill nametool-description-optimizer
Stars
74
Forks
14
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ArchieIndian on GitHub. Read the source before you install it.

Installation

Install the Tool Description Optimizer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ArchieIndian/openclaw-superpowers/tree/main/skills/openclaw-native/tool-description-optimizer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ArchieIndian/openclaw-superpowers.git /tmp/openclaw-superpowers
mkdir -p .claude/skills
cp -r /tmp/openclaw-superpowers/skills/openclaw-native/tool-description-optimizer .claude/skills/tool-description-optimizer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tool Description Optimizer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tool Description Optimizer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tool Description Optimizer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Tool Description Optimizer

What it does

A skill's description is its only discovery mechanism. If the description is vague, overlapping, or keyword-poor, the agent won't trigger it — or worse, will trigger the wrong skill. Tool Description Optimizer analyzes every installed skill's description for trigger quality and suggests concrete rewrites.

Inspired by OpenLobster's tool-description scoring layer, which penalizes vague descriptions and rewards keyword-rich, action-specific ones.

When to invoke

  • After installing new skills — check if descriptions are trigger-ready
  • When a skill isn't firing when expected — diagnose whether the description is the problem
  • Periodically to audit all descriptions for quality drift
  • Before publishing a skill — polish the description for discoverability

How it works

Scoring dimensions (5 metrics, 0–10 each)

MetricWhat it measuresWeight
ClaritySingle clear purpose, no ambiguity2x
SpecificityAction verbs, concrete nouns vs. vague terms2x
Keyword densityTrigger-relevant keywords per sentence1.5x
UniquenessLow overlap with other installed skill descriptions1.5x
LengthOptimal range (15–40 words) — too short = vague, too long = diluted1x

Quality grades

GradeScore rangeMeaning
A8.0–10.0Excellent — high trigger accuracy expected
B6.0–7.9Good — minor improvements possible
C4.0–5.9Fair — likely to miss triggers or overlap
D2.0–3.9Poor — needs rewrite
F0.0–1.9Failing — will not trigger reliably

How to use

bash
python3 optimize.py --scan                    # Score all installed skills
python3 optimize.py --scan --grade C          # Only show skills graded C or below
python3 optimize.py --skill <name>            # Deep analysis of a single skill
python3 optimize.py --suggest <name>          # Generate rewrite suggestions
python3 optimize.py --compare "desc A" "desc B"  # Compare two descriptions
python3 optimize.py --status                  # Last scan summary
python3 optimize.py --format json             # Machine-readable output

Procedure

Step 1 — Run a full scan

bash
python3 optimize.py --scan

Review the scorecard. Focus on skills graded C or below — these are the ones most likely to cause trigger failures.

Step 2 — Get rewrite suggestions for low-scoring skills

bash
python3 optimize.py --suggest <skill-name>

The optimizer generates 2–3 alternative descriptions with predicted score improvements.

Step 3 — Compare alternatives

bash
python3 optimize.py --compare "original description" "suggested rewrite"

Side-by-side scoring shows exactly which metrics improved.

Step 4 — Apply the best rewrite

Edit the skill's SKILL.md frontmatter description: field with the chosen rewrite.

Vague word penalties

These words score 0 on specificity — they say nothing actionable:

helps, manages, handles, deals with, works with, does stuff, various, things, general, misc, utility, tool for, assistant for

Strong trigger keywords (examples)

scans, detects, validates, generates, audits, monitors, checks, reports, fixes, migrates, syncs, schedules, blocks, scores, diagnoses

State

Scan results and per-skill scores stored in ~/.openclaw/skill-state/tool-description-optimizer/state.yaml.

Fields: last_scan_at, skill_scores list, scan_history.

Notes

  • Does not modify any skill files — analysis and suggestions only
  • Uniqueness scoring uses Jaccard similarity against all other installed descriptions
  • Length scoring uses a bell curve centered at 25 words (optimal)
  • Rewrite suggestions are heuristic-based, not LLM-generated — deterministic and fast

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tool Description Optimizer AI skill do?

Analyzes skill descriptions for trigger quality — scores clarity, keyword density, and specificity, then suggests rewrites that improve discovery accuracy.

Why use Tool Description Optimizer on TypingMind?

Because you install it once and use it with any model. Tool Description Optimizer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tool Description Optimizer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ArchieIndian/openclaw-superpowers/tree/main/skills/openclaw-native/tool-description-optimizer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tool Description Optimizer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tool Description Optimizer?

As many as you like. As long as a model supports skills, you can use Tool Description Optimizer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tool Description Optimizer AI skill free?

It is published on GitHub by ArchieIndian. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇