From 90be1be50111ebc518a9838532350d7b81624a28 Mon Sep 17 00:00:00 2001 From: Kyle Jeong Date: Tue, 19 May 2026 06:41:34 +0000 Subject: [PATCH] fix: register browse-sh in per-source limits and --source choices - Add 'browse-sh' to _PER_SOURCE_LIMIT in both do_browse() and browse_skills() with limit=500 (covers full 171-skill catalog) - Add 'browse-sh' to --source argparse choices for both 'hermes skills browse' and 'hermes skills search' Without these, browse-sh fell back to the default cap of 50 results and was not filterable via --source. --- hermes_cli/main.py | 2 ++ hermes_cli/skills_hub.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hermes_cli/main.py b/hermes_cli/main.py index 5d0f57b20f0..4066b59910f 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -11534,6 +11534,7 @@ Examples: "github", "clawhub", "lobehub", + "browse-sh", ], help="Filter by source (default: all)", ) @@ -11553,6 +11554,7 @@ Examples: "github", "clawhub", "lobehub", + "browse-sh", ], ) skills_search.add_argument("--limit", type=int, default=10, help="Max results") diff --git a/hermes_cli/skills_hub.py b/hermes_cli/skills_hub.py index 96c02feb732..116dedb1c08 100644 --- a/hermes_cli/skills_hub.py +++ b/hermes_cli/skills_hub.py @@ -303,7 +303,7 @@ def do_browse(page: int = 1, page_size: int = 20, source: str = "all", _PER_SOURCE_LIMIT = { "official": 200, "skills-sh": 200, "well-known": 50, "github": 200, "clawhub": 500, "claude-marketplace": 100, - "lobehub": 500, + "lobehub": 500, "browse-sh": 500, } with c.status("[bold]Fetching skills from registries..."): @@ -684,7 +684,7 @@ def browse_skills(page: int = 1, page_size: int = 20, source: str = "all") -> di page_size = max(1, min(page_size, 100)) _TRUST_RANK = {"builtin": 3, "trusted": 2, "community": 1} _PER_SOURCE_LIMIT = {"official": 100, "skills-sh": 100, "well-known": 25, "github": 100, "clawhub": 50, - "claude-marketplace": 50, "lobehub": 50} + "claude-marketplace": 50, "lobehub": 50, "browse-sh": 500} auth = GitHubAuth() sources = create_source_router(auth) all_results: list = []