skill-search-optimizer
Optimize agent skills for discoverability on ClawdHub/MoltHub. Use when improving search ranking, writing descriptions for semantic search, understanding how the registry indexes skills, testing search visibility, or analyzing why a skill isn't being found.
What this skill does
# Skill Search Optimizer
Optimize skills for discoverability on the ClawdHub registry. Covers how search works, how to write descriptions that rank well, content strategies for semantic matching, testing visibility, and competitive positioning.
## When to Use
- A published skill isn't appearing in relevant searches
- Writing a skill description for maximum discoverability
- Understanding how ClawdHub's search indexes and ranks skills
- Comparing your skill's visibility against competitors
- Improving an existing skill's search performance
## How ClawdHub Search Works
### Architecture
ClawdHub uses **vector-based semantic search**, not keyword matching:
```
User query → OpenAI embedding → Vector similarity search → Ranked results
(text-embedding-*) (Convex vector index)
```
Key implications:
1. **Meaning matters more than exact keywords** — "container debugging" matches "Docker troubleshooting"
2. **But keywords still help** — the embedding model encodes specific terms with high signal
3. **Description is the primary indexed field** — content may contribute but description is dominant
4. **Short queries match broad descriptions** — "docker" matches skills about containers generally
5. **Specific queries match specific descriptions** — "debug crashed Docker container" favors skills that mention debugging and crashes
### What Gets Indexed
```
PRIMARY: description field (frontmatter)
SECONDARY: name/slug field
TERTIARY: skill content (body markdown) — likely summarized or truncated before embedding
The description field is your search ranking. Everything else is secondary.
```
### Search API
```bash
# How search is called internally
# POST https://clawdhub.com/api/cli/search
# Body: { "query": "user search terms", "limit": 10 }
# Returns: ranked list of skills with similarity scores
# CLI search
npx molthub@latest search "your query"
```
## Description Optimization
### The anatomy of a high-ranking description
```yaml
# Pattern:
# [Action verb] + [specific scope]. Use when [trigger 1], [trigger 2], [trigger 3].
# Also covers [related topic].
# Example (strong):
description: >-
Schedule and manage recurring tasks with cron and systemd timers.
Use when setting up cron jobs, writing systemd timer units,
handling timezone-aware scheduling, monitoring failed jobs,
implementing retry patterns, or debugging why a scheduled task didn't run.
# Why it works:
# - "Schedule and manage recurring tasks" → broad match for scheduling queries
# - "cron and systemd timers" → exact match for specific tool queries
# - "Use when..." triggers → matches natural-language questions
# - "debugging why a scheduled task didn't run" → matches troubleshooting queries
```
### Description formulas
#### Formula 1: Tool-focused skill
```yaml
description: >-
[Verb] with [tool/technology]. Use when [task 1], [task 2], [task 3].
Covers [sub-topic 1], [sub-topic 2], and [sub-topic 3].
```
Example:
```yaml
description: >-
Debug Docker containers and Compose stacks. Use when inspecting
container logs, diagnosing networking issues, troubleshooting
build failures, or investigating resource usage. Covers exec,
health checks, multi-stage builds, and distroless containers.
```
#### Formula 2: Pattern/reference skill
```yaml
description: >-
[Topic] patterns for [scope]. Use when [task 1], [task 2], [task 3].
Also covers [related scope].
```
Example:
```yaml
description: >-
Regex patterns for validation, parsing, and text extraction across
JavaScript, Python, Go, and grep. Use when writing regex for emails,
URLs, IPs, dates, or custom formats. Also covers lookahead,
lookbehind, and search-and-replace for code refactoring.
```
#### Formula 3: Workflow/process skill
```yaml
description: >-
[Process description] from [start] to [end]. Use when [scenario 1],
[scenario 2], [scenario 3].
```
Example:
```yaml
description: >-
CI/CD pipeline configuration from commit to deployment. Use when
setting up GitHub Actions, creating matrix builds, caching
dependencies, building Docker images, or managing deployment secrets.
```
### Keyword strategy
Semantic search understands synonyms, but being explicit helps:
```yaml
# Include both the formal term AND common synonyms
description: >-
SSH tunneling and port forwarding for remote access.
Use when creating SSH tunnels, setting up port forwards,
connecting through jump hosts (bastion hosts), managing
SSH keys, or transferring files with scp and rsync.
# "tunneling" and "port forwarding" are related but distinct queries
# "jump hosts" and "bastion hosts" are synonyms — include both
# "scp and rsync" catches file transfer queries
```
Terms to include:
- **Primary tool names**: `docker`, `git`, `curl`, `make`
- **Action verbs**: `debug`, `test`, `deploy`, `monitor`, `parse`
- **Common synonyms**: `container` / `Docker`, `CI/CD` / `pipeline` / `GitHub Actions`
- **Problem descriptions**: `debugging why X doesn't work`, `troubleshooting Y`
### Description length
```
TOO SHORT (< 50 chars):
"Make things with Makefiles"
→ Not enough semantic surface for the embedding model
SWEET SPOT (80-200 chars):
"Write Makefiles for any project type. Use when setting up build
automation, defining multi-target builds, or using Make for Go,
Python, Docker, and Node.js. Also covers Just and Task."
→ Rich semantic content, multiple match angles
TOO LONG (> 250 chars):
[Long paragraph trying to list everything]
→ Gets truncated in search results display
→ Dilutes the embedding with low-signal words
→ Harder to read in listings
```
## Content Optimization
### How body content affects search
The skill body (markdown content after frontmatter) likely contributes to search in two ways:
1. **Skill preview/summary**: The registry may extract or summarize content for display
2. **Secondary embedding signal**: Full content may be embedded separately or appended to description
Optimization strategy:
- **Front-load important terms** in the first paragraph after the title
- **Use headings that match search queries** — "## Encode and Decode" matches better than "## Section 2"
- **Repeat key terms naturally** throughout the document (don't stuff, but don't avoid them either)
```markdown
# GOOD: Heading matches likely search query
## Port Forwarding
## Key Management
## Connection Debugging
# BAD: Generic headings with no search value
## Getting Started
## Advanced Usage
## Miscellaneous
```
### First paragraph optimization
The first paragraph after the title is prime search real estate:
```markdown
# GOOD
# SSH Tunnel
Create and manage SSH tunnels for secure remote access. Covers local,
remote, and dynamic port forwarding, jump hosts, key management,
agent forwarding, and file transfers with scp and rsync.
# BAD
# SSH Tunnel
This skill provides information about SSH.
```
## Testing Search Visibility
### Manual testing
```bash
# Test with the exact queries users would type
# Broad query (should your skill appear?)
npx molthub@latest search "docker"
npx molthub@latest search "testing"
npx molthub@latest search "build automation"
# Specific query (should your skill rank #1?)
npx molthub@latest search "debug docker container"
npx molthub@latest search "write makefile for go project"
npx molthub@latest search "cron job not running"
# Problem-oriented query (does your skill match troubleshooting?)
npx molthub@latest search "container networking not working"
npx molthub@latest search "why is my cron job not executing"
# Synonym query (does your skill match alternative terms?)
npx molthub@latest search "bastion host" # should match ssh-tunnel
npx molthub@latest search "scheduled task" # should match cron-scheduling
```
### Test matrix
Build a test matrix for your skill:
```
SEARCH VISIBILITY MATRIX
Skill: [your-skill-slug]
Query | Appears? | Rank | Competitor
─────────────────────────────────────────────────────────────────
[broad tRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.