Repository navigation
fix(skills): match skill hub searches word by word - #6445
Conversation
Skill hub search treated the whole query as one substring, so any
multi-word query ("summarize documents", "meeting notes", "email
triage") found nothing even when every word matched a published skill.
This broke both `gaia skill search` and the agent's search_skill_hub
tool, whose docstring already promised word matching.
The query is now split into words; a skill matches if any word appears
in its id, name, description or tool names, and results are ordered by
how many distinct words matched, ties in catalog order. One- and
two-letter words are dropped when a longer word is present, since "a"
appears in every description and otherwise pulled in the whole catalog.
An empty query still lists every skill.
|
Verdict: Approve with suggestions Multi-word skill hub searches like "meeting notes" or "rss feed summarize" used to return nothing. Now a skill matches when any word of the query matches, and skills that match more words come first. The logic is small and correct, the tests cover it well, and a real CLI run confirms the fix. Two non-blocking notes:
Real-world evidenceThe evidence stage served a five-skill catalog over real HTTP and ran the real CLI and the agent's search tool against it. Before and after, on the same hub: The agent tool 🔍 Technical details🟢 Minor
Strengths
|
Take main's word-by-word hub search (amd#6445) in place of this branch's ranking; the findability test now checks the intended skill is in the top 3, which main's search meets for all 35 queries. Read the summarize version in the stale-hub test instead of pinning 1.0.3.
Hub skills were checked for format and safety, but nothing checked that the agent could find and use them. Four of the 17 published skills had no eval, and nothing read the live hub back after a release. Now every one of the 28 skills in `hub/skills` is either covered by at least two eval scenarios (17) or listed as deferred with its reason (11, mostly ones that need audio, a calendar, a desktop pane or a file-opening rubric), and adding a skill without making that choice fails a test. A test checks plain requests find each hub skill through hub search (two queries per skill, all in the top 3, on top of amd#6445's word-by-word search), and each skills release installs every skill back from the hub to check its version and signature. The new evals also caught three real problems, fixed here: - **Compact models (Gemma-4-E4B) still had three email tools.** Asked to triage mail, Gemma read the mailbox and told the user it was empty. Main now withholds them too; this PR adds a test that keeps the list in step with the email mixin. - **The hub install scenarios couldn't pass.** The flagship bundles every `hub/skills` skill, so "install rss-digest" never needed an install. They now use fixture-only skills, cleared before each attempt so run order can't cause false failures, which explains the old baseline's failures there. - **On compact models, `list_skills` now says installing skills needs a larger model.** Still open: Gemma doesn't relay that limit. It ignores the hint and, with no email tools, presents GitHub notifications as the inbox. Two compact-tier scenarios record this. Fixing it needs prompt work measured across Gemma's full eval. Related: amd#5423 (suggest unloaded skills) is the kind of change the new `gaia_skills_selection` category measures. Checks only run when skill files change: unit guards ride `test_unit.yml`'s existing filter, the scenario coverage check runs in `test_eval.yml`, the skill audit lists the changed skill's scenarios, and the hub check runs after a real publish. Nothing new runs on unrelated PRs. ## Test plan - [x] `pytest tests/unit/eval/ tests/unit/test_skill_tier_matrix.py tests/unit/test_skill_hub_findability.py tests/unit/test_verify_published_skills.py tests/unit/agents/test_model_features.py` plus the existing skill suites — 2,640 passed after merging main. Three runner tests fail only while another eval holds the machine-wide eval lock and pass alone. - [x] `python util/verify_published_skills.py` against the production hub: 17/17 install, AMD-signed, at the repo's versions - [x] Local agent eval (Strix Halo, judge claude-sonnet-4-6). On Qwen3.6, every new or changed scenario passes after re-running one-off failures. On Gemma, 1 of 3 compact-tier scenarios passes. Details are in `docs/plans/skills-hub-validation.md`. - [x] `python util/lint.py --all`: clean apart from the two Windows-only Pylint errors already on main - [ ] Next RC eval: watch `gaia_skills_tasks`, `gaia_skills_selection` (new), `gaia_skills_lifecycle`, `gaia_email`; re-capture the skill-category baselines from that sweep <details> <summary>🔍 Technical details</summary> - Hub search itself is main's (amd#6445); this PR only adds `tests/unit/test_skill_hub_findability.py` over the real catalogue. - New runner tags `requires_sd`, `requires_music`, `requires_full_tier`, `requires_compact_tier` → `SKIPPED_NO_MODEL` with the reason. - `util/skill_eval_scenarios.py` maps skills → scenarios (shared by the coverage test and `skill_audit.yml`); `util/run_eval_lane.py --scenario` runs a subset locally. - `tests/unit/test_skill_tier_matrix.py` pins that compact cannot run `calendar`, `data-explore`, `image-gen`, `inbox-triage`, `send-email`. </details> --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
Searching the skill hub for more than one word found nothing. "summarize documents", "meeting notes", and "email triage" all came back empty, even though published skills match each word. So the agent told users no skill existed for things it could have installed, and
gaia skill search "web search", the example in the CLI docs, missed most of the matching skills. Now a skill matches when any word of the query matches, and skills that match more words come first.Results against the 17 real
hub/skills/skills:summarizesummarize documentsdocument summarymeeting notesemail triagesummarizationTest plan
python -m pytest tests/unit/test_skills*.py tests/unit/test_hub_artifact_filename.py tests/unit/test_hub_semver_precedence.py: 1011 passed, 1 skippedgaia skill search "meeting notes"lists transcribe-meeting firsteval_flagship.ymlforgaia_skills_lifecycle.search_skill_hubnow returns partial matches, soskills_misspelled_and_missing(the "pdf-forms" query) is worth a look.🔍 Technical details
search_skillssplits the query on whitespace and removes duplicate words. A skill's score is the number of distinct words found as case-insensitive substrings of its id, name, description, and tool names. The sort is stable, so skills with the same score stay in catalog order.summarize a pdfreturned all 17 skills, because "a" appears in every description; with it, the query returns 4. A query made only of short words, likeprorai, still searches.search_skill_hubtool docstring already said "Words to match", so the prompt is unchanged. Thesearch_skillsdocstring, thegaia skill searchhelp text, anddocs/reference/cli.mdxare updated to match.