feat(api_server): enrich /api/skills response for Hermes Workspace UI - #4
Merged
outsourc-e merged 1 commit intoApr 14, 2026
Merged
Conversation
The current /api/skills endpoint returns only {name, description,
category}, but outsourc-e/hermes-workspace frontend expects the
richer shape it uses for the Installed tab: installed, source,
trust_level, tags, triggers, author, version, license, path,
identifier, related_skills, repo, homepage, extra.
Without these fields the workspace Skills Browser silently renders
"No skills found" even though the backend has 78 installed skills.
Changes
- Rescan SKILL.md frontmatter to populate the workspace's expected
shape (~60 lines helper).
- Support query params: tab=installed|marketplace, q=<search>, limit.
- Add stub routes for /api/skills/hub-search, /install, /uninstall
(returning empty/501 with a hint) so the UI doesn't 404 when the
user clicks those actions. Actual clawhub CLI integration is a
separate change.
Implementation uses existing _parse_frontmatter / _parse_tags /
_get_category_from_path helpers from tools.skills_tool — no new
scanning logic, just richer mapping.
Verified locally with workspace v1.0.0+35 commits: Installed tab
now renders all 78 skills with categories, tags, author badges,
and trust level indicators (builtin/hub).
Related: fixes the UI side of outsourc-e/hermes-workspace#50.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
/api/skillsendpoint ingateway/platforms/api_server.pycurrently returns only{name, description, category}for each skill, delegating totools.skills_tool.skills_list().But the
outsourc-e/hermes-workspaceUI (as of v1.0.0+) expects a much richer shape for its Skills Browser → Installed tab:In particular, the frontend filters by
installed === true— since the backend never sets this flag, the Installed tab renders empty ("No skills found") even when 78 skills are actually available locally.Users hit this as soon as they connect hermes-workspace to a hermes gateway (upstream or this fork), and there's currently no combination of
hermes gateway+hermes-workspacein which the Installed tab works out of the box.Change
This PR enriches the
/api/skillshandler to return the shape hermes-workspace UI expects. It re-scansSKILL.mdfrontmatter using existing helpers (_parse_frontmatter,_parse_tags,_get_category_from_path— already exported fromtools.skills_tool), so there's no new parsing logic, just a richer mapping.It also adds stub routes so the Marketplace/install/uninstall buttons don't 404:
GET /api/skills/hub-search→ empty list with explanatory hint (real marketplace would requireclawhubCLI, separate change)POST /api/skills/install→ 501 with messagePOST /api/skills/uninstall→ 501 with messageNew fields exposed
Each skill in the
skills[]array now includes:installed: trueSKILLS_DIRtab=installedfilter worksource"builtin"or"hub"(path-based)trust_level"builtin"/"verified"/"local"tagsmetadata.hermes.tags+tagstriggerstriggersauthorauthorversion,licensepath$HOMEidentifier"<source>:<name>"related_skillsmetadata.hermes.related_skillsrepo,homepage,extraNew query params
?tab=installed— filters toinstalled=true(all local skills)?tab=marketplace— returns empty; real marketplace goes through/api/skills/hub-search?q=<term>— free-text search across name / description / tags?limit=N— page size (total count remains incountfield)Back-compat
?category=Xstill work (same behavior)success, skills, categories, count) preservedtabandhintfields to response (additive, ignored by old clients)/api/skills/categoriesand/api/skills/{name}endpoints untouchedHow it was verified
Tested locally on macOS with:
cd742aa8+ this patchoutsourc-e/hermes-workspaceatmain(includes Advanced Notion Intelligence (Smart Search & Schema Awareness) NousResearch/hermes-agent#52 Authorization fix)Before: "No skills found" on Installed tab.
After: 78 skills render with categories, author badges (
Hermes Agent,Orchestra Research, etc.), security pills, enable toggle, uninstall button (button returns 501 per stub).Direct curl:
Related
outsourc-e/hermes-workspace#50(open): "Memory & Skills panels not available — how to connect enhanced Hermes gateway" — this is the server-side half of that story; hermes-workspace#52 (merged) handled the client-side auth header.clawhubmarketplace integration is explicitly out of scope; stubs return clear hints.Notes
tests/gateway/test_api_server.py(if it exists) would be the right place if you want me to add them in a follow-up.