Skip to content

The agent that grows with you

feat(catalog): open website installs in Hermes Desktop

brooklyn!b0e78e60fb1d
diff --git a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.test.tsx b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.test.tsx
index f6586c1fe16..dc8b1b9675d 100644
--- a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.test.tsx
+++ b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.test.tsx
@@ -1,8 +1,12 @@
-import { renderHook } from '@testing-library/react'
+import { act, renderHook, waitFor } from '@testing-library/react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import { setApiRequestConnection, setApiRequestProfile } from '@/hermes'
import { createClientSessionState } from '@/lib/chat-runtime'
+import { $confirmRequest, settleConfirm } from '@/store/confirm'
+import { $hubInstalledOverride } from '@/store/hub-actions'
import { requestMcpInstallFromDeepLink } from '@/store/mcp-deeplink-install'
+import { $pluginInstallRequest } from '@/store/plugin-install-request'
import { _resetLegacyDiscardForTests } from '@/store/session'
import { dropSessionState, publishSessionState } from '@/store/session-states'
import type * as WindowsStore from '@/store/windows'
@@ -571,6 +575,81 @@ describe('useDesktopIntegrations', () => {
})
})
+ describe('catalog install deep links', () => {
+ function listen() {
+ render({ profileReady: true, resumeLastSession: false })
+
+ return vi.mocked(window.hermesDesktop.onDeepLink).mock.calls[0]![0]
+ }
+
+ afterEach(() => {
+ settleConfirm(false)
+ $pluginInstallRequest.set(null)
+ $hubInstalledOverride.set({})
+ setApiRequestConnection(null)
+ setApiRequestProfile(null)
+ })
+
+ it('opens the existing plugin confirmation with catalog metadata intact', () => {
+ const deepLink = listen()
+ const params = { repo: 'owner/repo#plugin', catalog_name: 'catalog-plugin', sha: 'display-pin' }
+ deepLink({ kind: 'plugin', name: 'install', params })
+
+ expect($pluginInstallRequest.get()).toMatchObject({
+ repo: params.repo, catalogName: params.catalog_name, sha: params.sha, enable: true, force: false
+ })
+ expect(navigate).not.toHaveBeenCalled()
+ })
+
+ it('requires skill confirmation, preserves the request scope, and uses the hub pipeline', async () => {
+ const api = vi.fn(async (request: { path: string }) => {
+ if (request.path === '/api/skills/hub/install') return { name: 'skill-link-test' }
+ if (request.path.startsWith('/api/actions/skill-link-test/')) {
+ return { name: 'skill-link-test', running: false, exit_code: 0, lines: ['Installed'], pid: 123 }
+ }
+ return {}
+ })
+ desktopWindow.hermesDesktop = { ...desktopWindow.hermesDesktop, api } as unknown as Window['hermesDesktop']
+ const deepLink = listen()
+ const installs = () => api.mock.calls.filter(([r]) => r.path === '/api/skills/hub/install')
+ const identifier = 'skills-sh/owner/repo/skill'
+ const payload = { kind: 'skill', name: 'install', params: { identifier } }
+
+ for (const [connection, profile] of [['server-a', 'research'], ['server-b', 'work'], ['server-a', 'research']]) {
+ setApiRequestConnection(connection)
+ setApiRequestProfile(profile)
+ api.mockClear()
+ $hubInstalledOverride.set({})
+ act(() => deepLink(payload))
+ expect($confirmRequest.get()?.description).toContain(identifier)
+ expect($confirmRequest.get()?.description).toContain(profile)
+ expect(installs()).toHaveLength(0)
+ await act(async () => settleConfirm(false))
+ expect(installs()).toHaveLength(0)
+
+ act(() => deepLink(payload))
+ await act(async () => settleConfirm(true))
+ await waitFor(() => expect($hubInstalledOverride.get()[identifier]).toBe(true))
+ expect(installs()).toEqual([[{
+ connectionId: connection, profile, path: '/api/skills/hub/install', method: 'POST', body: { identifier }
+ }]])
+ expect(api).toHaveBeenCalledWith({
+ connectionId: connection, profile, path: '/api/actions/skill-link-test/status?lines=200'
+ })
+ }
+
+ api.mockClear()
+ act(() => deepLink(payload))
+ setApiRequestConnection('server-b')
+ setApiRequestProfile('work')
+ await act(async () => settleConfirm(true))
+ expect(installs()).toHaveLength(0)
+ act(() => deepLink({ kind: 'skill', name: 'install', params: {} }))
+ expect($confirmRequest.get()).toBeNull()
+ expect(navigate).not.toHaveBeenCalled()
+ })
+ })
+
describe('notification click -> focus-session id translation', () => {
function withFocusSession(): (sessionId: string) => void {
let handler: ((sessionId: string) => void) | undefined
diff --git a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts
index ebd479f368c..a39d7d30c93 100644
--- a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts
@@ -28,6 +28,7 @@ import {
} from '@/store/session'
import { $botChatScopes, $sessionTiles, storedSessionIdForRuntimeId } from '@/store/session-states'
import { onSessionsChanged } from '@/store/session-sync'
+import { requestSkillInstallFromDeepLink } from '@/store/skill-deeplink-install'
import { openUpdatesWindow, startUpdatePoller, stopUpdatePoller } from '@/store/updates'
import { isBrowserWindow, isHudWindow, isSecondaryWindow } from '@/store/windows'
import type { SessionInfo } from '@/types/hermes'
@@ -290,6 +291,7 @@ export function useDesktopIntegrations({
// - mcp/install?… → pending MCP install (explicit confirm, never auto-install)
// - plugin/install?… (and legacy plugin-agent/plugin-desktop) → plugin install
// modal awaiting explicit confirmation. Never auto-installs.
+ // - skill/install?identifier=… → confirmation, then the existing hub pipeline
// - blueprint/<name>?… → reviewable /blueprint command in the composer
// - <plugin>/<path>?… → in-app navigate (e.g. index-network/intent/1)
// - open/<path>?… → in-app navigate (generic)
@@ -328,12 +330,24 @@ export function useDesktopIntegrations({
repo: action.repo,
enable: action.enable,
force: action.force,
- legacyHint: action.legacyHint
+ legacyHint: action.legacyHint,
+ catalogName: action.catalogName,
+ sha: action.sha
})
return
}
+ if (action.type === 'skill-install') {
+ void requestSkillInstallFromDeepLink(action.identifier)
+
+ return
+ }
+
+ if (payload.kind === 'skill') {
+ return
+ }
+
// Not a core action — treat as a plugin-scoped or open/ navigation deep
// link (hermes://index-network/intent/1, hermes://open/…). The resolver
// rejects reserved kinds and unsafe paths.
diff --git a/apps/desktop/src/lib/catalog-install.test.ts b/apps/desktop/src/lib/catalog-install.test.ts
new file mode 100644
index 00000000000..62b3b76f002
--- /dev/null
+++ b/apps/desktop/src/lib/catalog-install.test.ts
@@ -0,0 +1,37 @@
+import { pluginCatalogInstallUrl, skillCatalogInstallIdentifier, skillCatalogInstallUrl } from '@hermes/shared'
+import { describe, expect, it } from 'vitest'
+
+import { resolveDeepLinkAction } from './deeplink-routes'
+
+function route(href: string) {
+ const url = new URL(href)
+
+ return resolveDeepLinkAction({ kind: url.hostname, name: url.pathname.slice(1), params: Object.fromEntries(url.searchParams) })
+}
+
+describe('public catalog install links', () => {
+ it.each([
+ [{ name: 'Apple Design', source: 'ClawHub', identifier: 'apple-design' }, 'clawhub/apple-design'],
+ [{ name: 'Apple Design', source: 'ClawHub', identifier: 'clawhub/apple-design' }, 'clawhub/apple-design'],
+ [{ name: 'pdf', source: 'Anthropic', identifier: 'anthropics/skills/skills/pdf' }, 'anthropics/skills/skills/pdf'],
+ [{ name: 'pdf', source: 'optional' }, 'official/pdf'],
+ [{ name: 'pdf', source: 'built-in', installIdentifier: 'NousResearch/hermes-agent/skills/productivity/pdf' }, 'NousResearch/hermes-agent/skills/productivity/pdf'],
+ [{ name: 'A name', source: 'future-source', identifier: 'provider/path?mode=one&two#readme' }, 'provider/path?mode=one&two#readme']
+ ])('preserves the source-specific target for %o', (entry, identifier) => {
+ expect(skillCatalogInstallIdentifier(entry)).toBe(identifier)
+ expect(route(skillCatalogInstallUrl(entry)!)).toEqual({ type: 'skill-install', identifier })
+ })
+
+ it('omits bundled install links when an older snapshot has no exact target', () => {
+ expect(skillCatalogInstallUrl({ name: 'pdf', source: 'built-in' })).toBeNull()
+ })
+
+ it('forwards catalog identity, display pin and encoded subdirectory to the plugin confirmation', () => {
+ const plugin = { name: 'weather', repo: 'https://github.com/owner/plugins', subdir: 'packages/weather', sha: 'a'.repeat(40) }
+
+ expect(route(pluginCatalogInstallUrl(plugin))).toEqual({
+ type: 'plugin-install', repo: `${plugin.repo}#${plugin.subdir}`, catalogName: plugin.name,
+ sha: plugin.sha, enable: true, force: false, legacyHint: null
+ })
+ })
+})
diff --git a/apps/desktop/src/lib/deeplink-routes.test.ts b/apps/desktop/src/lib/deeplink-routes.test.ts
index 76683577afc..24b61d610f9 100644
--- a/apps/desktop/src/lib/deeplink-routes.test.ts
+++ b/apps/desktop/src/lib/deeplink-routes.test.ts
@@ -19,6 +19,30 @@ describe('resolveDeepLinkAction', () => {
})
})
+ it('preserves catalog provenance without treating the display pin as an install target', () => {
+ const params = {
+ repo: 'https://github.com/owner/repo#plugins/example',
+ catalog_name: 'example',
+ sha: '0123456789abcdef0123456789abcdef01234567',
+ enable: '1'
+ }
+ const url = new URL(`hermes://plugin/install?${new URLSearchParams(params)}`)
+
+ expect(resolveDeepLinkAction({
+ kind: url.hostname,
+ name: url.pathname.slice(1),
+ params: Object.fromEntries(url.searchParams)
+ })).toEqual({
+ type: 'plugin-install',
+ repo: params.repo,
+ catalogName: params.catalog_name,
+ sha: params.sha,
+ enable: true,
+ force: false,
+ legacyHint: null
+ })
+ })
+
it('routes legacy plugin-agent alias', () => {
expect(
resolveDeepLinkAction({
@@ -29,6 +53,23 @@ describe('resolveDeepLinkAction', () => {
).toMatchObject({ type: 'plugin-install', legacyHint: 'agent' })
})
+ it('only routes skill installs with an explicit, unchanged identifier', () => {
+ const identifier = 'skills-sh/owner/repo/a skill?mode=one&two#readme'
+ const url = new URL(`hermes://skill/install?${new URLSearchParams({ identifier })}`)
+
+ expect(resolveDeepLinkAction({
+ kind: url.hostname,
+ name: url.pathname.slice(1),
+ params: Object.fromEntries(url.searchParams)
+ })).toEqual({ type: 'skill-install', identifier })
+
+ for (const params of [{}, { identifier: '' }, { identifier: ' ' }, { identifier: ' official/skill ' }]) {
+ expect(resolveDeepLinkAction({ kind: 'skill', name: 'install', params })).toEqual({ type: 'ignore' })
+ }
+ expect(resolveDeepLinkAction({ kind: 'skill', name: 'remove', params: { identifier } })).toEqual({ type: 'ignore' })
+ expect(resolveDeepLinkAction({ kind: 'plugin', name: 'install', params: {} })).toEqual({ type: 'ignore' })
+ })
+
it('routes blueprint composer inserts', () => {
expect(
resolveDeepLinkAction({
diff --git a/apps/desktop/src/lib/deeplink-routes.ts b/apps/desktop/src/lib/deeplink-routes.ts
index c943e234491..f291ab4014a 100644
--- a/apps/desktop/src/lib/deeplink-routes.ts
+++ b/apps/desktop/src/lib/deeplink-routes.ts
@@ -7,7 +7,16 @@ export interface DeepLinkPayload {
}
export type DeepLinkAction =
- | { type: 'plugin-install'; repo: string; enable: boolean; force: boolean; legacyHint: PluginInstallLegacyHint }
+ | {
+ type: 'plugin-install'
+ repo: string
+ enable: boolean
+ force: boolean
+ legacyHint: PluginInstallLegacyHint
+ catalogName?: string
+ sha?: string
+ }
+ | { type: 'skill-install'; identifier: string }
| { type: 'composer-blueprint'; name: string; params: Record<string, string> }
| { type: 'ignore' }
@@ -30,7 +39,17 @@ export function resolveDeepLinkAction(payload: DeepLinkPayload | null | undefine
return { type: 'composer-blueprint', name: payload.name, params: payload.params || {} }
}
- const repo = (payload.params?.repo || payload.params?.identifier || payload.name || '').trim()
+ if (payload.kind === 'skill') {
+ const identifier = payload.params?.identifier
+
+ return payload.name === 'install' && identifier && identifier === identifier.trim()
+ ? { type: 'skill-install', identifier }
+ : { type: 'ignore' }
+ }
+
+ const repo = (
+ payload.params?.repo || payload.params?.identifier || (payload.kind !== 'plugin' ? payload.name : '') || ''
+ ).trim()
if (payload.kind === 'plugin' && payload.name === 'install' && repo) {
return {
@@ -38,7 +57,9 @@ export function resolveDeepLinkAction(payload: DeepLinkPayload | null | undefine
repo,
enable: truthyParam(payload.params?.enable, true),
force: truthyParam(payload.params?.force, false),
- legacyHint: null
+ legacyHint: null,
+ catalogName: payload.params?.catalog_name || undefined,
+ sha: payload.params?.sha || undefined
}
}
diff --git a/apps/desktop/src/lib/hermes-open-target.test.ts b/apps/desktop/src/lib/hermes-open-target.test.ts
index 35f1c7439d5..59f8d3f4fef 100644
--- a/apps/desktop/src/lib/hermes-open-target.test.ts
+++ b/apps/desktop/src/lib/hermes-open-target.test.ts
@@ -59,5 +59,6 @@ describe('pathFromHermesDeepLink', () => {
it('ignores reserved kinds', () => {
expect(pathFromHermesDeepLink('blueprint', 'morning-brief')).toBeNull()
expect(pathFromHermesDeepLink('plugin', 'install')).toBeNull()
+ expect(pathFromHermesDeepLink('skill', 'install')).toBeNull()
})
})
diff --git a/apps/desktop/src/lib/hermes-open-target.ts b/apps/desktop/src/lib/hermes-open-target.ts
index a865486d1be..6c0f36bef01 100644
--- a/apps/desktop/src/lib/hermes-open-target.ts
+++ b/apps/desktop/src/lib/hermes-open-target.ts
@@ -26,7 +26,8 @@ const RESERVED_DEEP_LINK_KINDS = new Set([
'plugin',
'plugin-agent',
'plugin-desktop',
- 'settings'
+ 'settings',
+ 'skill'
])
function appendSearch(path: string, params: URLSearchParams | Record<string, string> | undefined): string {
diff --git a/apps/desktop/src/store/skill-deeplink-install.ts b/apps/desktop/src/store/skill-deeplink-install.ts
new file mode 100644
index 00000000000..23dcb1b2b05
--- /dev/null
+++ b/apps/desktop/src/store/skill-deeplink-install.ts
@@ -0,0 +1,35 @@
+import { getApiRequestConnection, getApiRequestProfile, type ProfileScope } from '@/hermes'
+import { translateNow } from '@/i18n'
+
+import { confirm } from './confirm'
+import { installHubSkill, notifyHubActionFailed } from './hub-actions'
+import { notify } from './notifications'
+
+/** The URL supplies only an identifier, never a destination profile or scan override. */
+export async function requestSkillInstallFromDeepLink(identifier: string): Promise<void> {
+ const connectionId = getApiRequestConnection()
+ const profile = getApiRequestProfile()
+ const scope: ProfileScope = { connectionId, profile }
+ const destination = [connectionId, profile || 'default'].filter(Boolean).join(' / ')
+ const confirmed = await confirm({
+ title: translateNow('skills.hub.policyAsk'),
+ description: `${identifier}
+${translateNow('skills.configuringProfile')} ${destination}
+${translateNow('skills.changesApplyNewSessions')}`,
+ confirmLabel: translateNow('skills.hub.install')
+ })
+
+ // A pending website request cannot follow the user to a different agent.
+ if (!confirmed || connectionId !== getApiRequestConnection() || profile !== getApiRequestProfile()) {
+ return
+ }
+
+ notify({
+ kind: 'success',
+ title: translateNow('skills.hub.installStarted', identifier),
+ message: translateNow('skills.hub.actionLog')
+ })
+ await installHubSkill(identifier, scope).catch(err =>
+ notifyHubActionFailed(err, translateNow('skills.hub.actionFailed'), identifier, scope)
+ )
+}
diff --git a/apps/shared/src/catalog-install.ts b/apps/shared/src/catalog-install.ts
new file mode 100644
index 00000000000..3f24e03c09c
--- /dev/null
+++ b/apps/shared/src/catalog-install.ts
@@ -0,0 +1,40 @@
+/** Install targets shared by the public docs galleries and native catalog. */
+export interface SkillCatalogTarget {
+ name: string
+ source: string
+ identifier?: string
+ installIdentifier?: string
+}
+
+export function skillCatalogInstallIdentifier(skill: SkillCatalogTarget): string | null {
+ if (skill.installIdentifier) {
+ return skill.installIdentifier
+ }
+
+ const identifier = skill.identifier
+
+ // Older snapshots omit identifiers for local skills. Optional skills have a
+ // source-qualified name lookup; bundled skills are not in that source.
+ if (!identifier) {
+ return skill.source === 'built-in' ? null : skill.source === 'optional' ? `official/${skill.name}` : skill.name
+ }
+
+ return skill.source.toLowerCase() === 'clawhub' && !identifier.startsWith('clawhub/')
+ ? `clawhub/${identifier}`
+ : identifier
+}
+
+export function skillCatalogInstallUrl(skill: SkillCatalogTarget): string | null {
+ const identifier = skillCatalogInstallIdentifier(skill)
+
+ return identifier ? `hermes://skill/install?${new URLSearchParams({ identifier })}` : null
+}
+
+export function pluginCatalogInstallUrl(plugin: { name: string; repo: string; subdir?: string; sha: string }): string {
+ return `hermes://plugin/install?${new URLSearchParams({
+ repo: plugin.subdir ? `${plugin.repo}#${plugin.subdir}` : plugin.repo,
+ catalog_name: plugin.name,
+ sha: plugin.sha,
+ enable: '1'
+ })}`
+}
diff --git a/apps/shared/src/index.ts b/apps/shared/src/index.ts
index 353b88b120d..546f8fe511e 100644
--- a/apps/shared/src/index.ts
+++ b/apps/shared/src/index.ts
@@ -58,6 +58,7 @@ export {
DATA_URL_READ_MAX_MAX_MB,
DATA_URL_READ_MIN_MAX_MB
} from './data-url-read-max'
+export { pluginCatalogInstallUrl, skillCatalogInstallIdentifier, skillCatalogInstallUrl } from './catalog-install'
export { compactNumber } from './format'
export { type FuzzyMatch, fuzzyRank, fuzzyScore, fuzzyScoreMulti, type RankedItem } from './fuzzy'
export * from './gateway-events'
diff --git a/tests/website/test_extract_skills.py b/tests/website/test_extract_skills.py
index 0cb2c202815..cbe13cc16b4 100644
--- a/tests/website/test_extract_skills.py
+++ b/tests/website/test_extract_skills.py
@@ -34,6 +34,21 @@ def mod():
return module
[email protected]("directory,source,prefix", [
+ ("skills", "built-in", "NousResearch/hermes-agent/skills"),
+ ("optional-skills", "optional", "official"),
+])
+def test_local_skills_publish_exact_install_target(mod, tmp_path, monkeypatch, directory, source, prefix):
+ skill = tmp_path / directory / "creative" / "nested" / "example"
+ skill.mkdir(parents=True)
+ (skill / "SKILL.md").write_text("---\nname: Different Display Name\n---\nExample.")
+ monkeypatch.setattr(mod, "REPO_ROOT", str(tmp_path))
+ [entry] = mod.extract_local_skills()
+ expected = f"{prefix}/creative/nested/example"
+ assert entry["installIdentifier"] == expected
+ assert entry["installCmd"] == f"hermes skills install {expected}"
+
+
# --------------------------------------------------------------------------
# _source_url
# --------------------------------------------------------------------------
diff --git a/website/scripts/extract-skills.py b/website/scripts/extract-skills.py
index a463d1e2583..bd554f3798e 100644
--- a/website/scripts/extract-skills.py
+++ b/website/scripts/extract-skills.py
@@ -311,6 +311,11 @@ def extract_local_skills():
elif isinstance(cmds, str) and cmds.strip():
commands = [cmds.strip()]
+ rel_id = rel.replace(os.sep, "/")
+ install_identifier = (
+ f"official/{rel_id}" if source_label == "optional"
+ else f"NousResearch/hermes-agent/skills/{rel_id}"
+ )
skills.append({
"name": fm.get("name", os.path.basename(root)),
"description": fm.get("description", ""),
@@ -326,6 +331,8 @@ def extract_local_skills():
"envVars": env_vars,
"commands": commands,
"docsPath": _docs_page_path(rel, source_label),
+ "installIdentifier": install_identifier,
+ "installCmd": f"hermes skills install {install_identifier}",
})
return skills
@@ -436,6 +443,7 @@ def extract_unified_index_skills():
"docsPath": "",
"identifier": identifier,
"installCmd": install_cmd,
+ "installIdentifier": install_cmd.removeprefix("hermes skills install "),
"sourceUrl": source_url,
})
diff --git a/website/src/pages/plugins/index.tsx b/website/src/pages/plugins/index.tsx
index 6690ff37160..94540b2d899 100644
--- a/website/src/pages/plugins/index.tsx
+++ b/website/src/pages/plugins/index.tsx
@@ -2,6 +2,7 @@ import React, { useState, useMemo, useCallback, useRef, useEffect } from "react"
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import styles from "./styles.module.css";
+import { pluginCatalogInstallUrl } from "../../../../apps/shared/src/catalog-install";
interface PluginCapabilities {
providesTools?: string[];
@@ -186,6 +187,7 @@ function PluginCard({
const hookCount = caps.providesHooks?.length || 0;
const middlewareCount = caps.providesMiddleware?.length || 0;
const pinUrl = `${plugin.repo.replace(/\.git$/, "").replace(/\/$/, "")}/tree/${plugin.sha}`;
+ const installUrl = pluginCatalogInstallUrl(plugin);
return (
<div
@@ -267,7 +269,7 @@ function PluginCard({
))}
</div>
- {onPick && (
+ {onPick ? (
<button
className={styles.pickBtn}
onClick={(e) => {
@@ -277,6 +279,14 @@ function PluginCard({
>
+ Add to this Agent
</button>
+ ) : (
+ <a
+ className={styles.pickBtn}
+ href={installUrl}
+ onClick={(e) => e.stopPropagation()}
+ >
+ Install in Hermes
+ </a>
)}
{expanded && (
@@ -553,7 +563,7 @@ export default function PluginCatalogPage() {
</span>
</nav>
<p className={styles.heroSub}>
- Reviewed, SHA-pinned plugins you can install with one command.
+ Reviewed, SHA-pinned plugins. Open in Hermes Desktop to review and install, or copy the CLI command.
{loadError && (
<span style={{ color: "#f87171", marginLeft: 8 }}>
· failed to load catalog ({loadError})
diff --git a/website/src/pages/plugins/styles.module.css b/website/src/pages/plugins/styles.module.css
index bbd52be0c9c..37e65af6afc 100644
--- a/website/src/pages/plugins/styles.module.css
+++ b/website/src/pages/plugins/styles.module.css
@@ -882,11 +882,19 @@
color: var(--ifm-color-primary);
font-size: 0.85rem;
font-weight: 600;
+ text-align: center;
+ text-decoration: none;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.pickBtn:hover {
background: var(--ifm-color-primary);
- color: #fff;
+ color: var(--ifm-color-emphasis-0);
+ text-decoration: none;
+}
+
+.pickBtn:focus-visible {
+ outline: 2px solid var(--ifm-color-primary);
+ outline-offset: 2px;
}
diff --git a/website/src/pages/skills/index.tsx b/website/src/pages/skills/index.tsx
index 8bc022524df..b143beec771 100644
--- a/website/src/pages/skills/index.tsx
+++ b/website/src/pages/skills/index.tsx
@@ -2,6 +2,7 @@ import React, { useState, useMemo, useCallback, useRef, useEffect } from "react"
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import styles from "./styles.module.css";
+import { skillCatalogInstallIdentifier, skillCatalogInstallUrl } from "../../../../apps/shared/src/catalog-install";
interface Skill {
name: string;
@@ -19,6 +20,7 @@ interface Skill {
commands?: string[];
docsPath?: string;
identifier?: string;
+ installIdentifier?: string;
installCmd?: string;
/** Clickable URL to the skill's origin (repo / detail page). Synthesized
* in extract-skills.py for community skills that have no generated docs
@@ -300,6 +302,7 @@ function SkillCard({
}) {
const src = SOURCE_CONFIG[skill.source] || SOURCE_CONFIG["optional"];
const icon = CATEGORY_ICONS[skill.category] || "\u{1F4E6}";
+ const installUrl = skillCatalogInstallUrl(skill);
return (
<div
@@ -351,6 +354,16 @@ function SkillCard({
))}
</div>
+ {!onPick && installUrl && (
+ <a
+ className={styles.pickBtn}
+ href={installUrl}
+ onClick={(e) => e.stopPropagation()}
+ >
+ Install in Hermes
+ </a>
+ )}
+
{expanded && (
<div className={styles.cardDetail}>
{skill.overview && (
@@ -419,9 +432,9 @@ function SkillCard({
</div>
)}
<div className={styles.installHint}>
- <code>{skill.installCmd || `hermes skills install ${skill.name}`}</code>
+ <code>{skill.installCmd || `hermes skills install ${skillCatalogInstallIdentifier(skill) || skill.name}`}</code>
<CopyButton
- text={skill.installCmd || `hermes skills install ${skill.name}`}
+ text={skill.installCmd || `hermes skills install ${skillCatalogInstallIdentifier(skill) || skill.name}`}
/>
</div>
{onPick ? (
@@ -521,8 +534,8 @@ export default function SkillsDashboard() {
{
type: "hermes-skill-pick",
name: skill.name,
- identifier: skill.identifier || skill.name,
- installCmd: skill.installCmd || `hermes skills install ${skill.name}`,
+ identifier: skillCatalogInstallIdentifier(skill) || skill.name,
+ installCmd: skill.installCmd || `hermes skills install ${skillCatalogInstallIdentifier(skill) || skill.name}`,
source: skill.source,
},
"*"
@@ -700,7 +713,7 @@ export default function SkillsDashboard() {
<strong className={styles.heroAccent}>
{data ? allSkillsLocal.length.toLocaleString() : "…"}
</strong>{" "}
- skills across {sources.length - 1} registries
+ skills across {sources.length - 1} registries. Open in Hermes Desktop to review and install, or copy the CLI command.
{loadError && (
<span style={{ color: "#f87171", marginLeft: 8 }}>
· failed to load catalog ({loadError})
diff --git a/website/src/pages/skills/styles.module.css b/website/src/pages/skills/styles.module.css
index 559089dc278..e0ada5625c1 100644
--- a/website/src/pages/skills/styles.module.css
+++ b/website/src/pages/skills/styles.module.css
@@ -1030,6 +1030,8 @@
color: var(--ifm-color-primary);
font-size: 0.85rem;
font-weight: 600;
+ text-align: center;
+ text-decoration: none;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
@@ -1038,4 +1040,10 @@
background: var(--ifm-color-primary);
/* --ifm-background-color is transparent in light mode (#91491). */
color: var(--ifm-color-emphasis-0, #f7f8fa);
+ text-decoration: none;
+}
+
+.pickBtn:focus-visible {
+ outline: 2px solid var(--ifm-color-primary);
+ outline-offset: 2px;
}