Skip to content

The agent that grows with you

feat(catalog): curate featured picks once for the site and the app

Brooklyn Nicholsond8a4b51c3562
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-artwork.ts b/apps/desktop/src/app/capabilities/catalog/catalog-artwork.ts
deleted file mode 100644
index 44c9901ae89..00000000000
--- a/apps/desktop/src/app/capabilities/catalog/catalog-artwork.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import artwork from '../../../../../shared/src/catalog-artwork.json'
-
-const images = import.meta.glob<string>('../../../../../../website/static/img/catalog/*.jpg', {
- eager: true,
- import: 'default',
- query: '?url'
-})
-
-const artworkUrl = (filename: string | undefined) =>
- filename ? images[`../../../../../../website/static/img/catalog/${filename}`] ?? null : null
-
-/** Only first-party catalog identities receive editorial artwork. */
-export function officialCatalogArtwork(kind: 'skills' | 'plugins', row: {
- name?: string
- category?: string
- identifier?: string
- source?: string
- tier?: string
-}): string | null {
- const source = kind === 'skills' ? row.source : row.tier
-
- if (kind === 'skills') {
- if (!['built-in', 'bundled', 'optional', 'official'].includes(source ?? '')) {return null}
- const key = `${row.category}/${row.name}`
-
- return artworkUrl((artwork.skills as Record<string, string>)[key])
- }
-
- if (source !== 'bundled') {return null}
-
- return artworkUrl((artwork.plugins as Record<string, string>)[row.identifier ?? ''])
-}
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-curation.ts b/apps/desktop/src/app/capabilities/catalog/catalog-curation.ts
new file mode 100644
index 00000000000..64472e536b2
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-curation.ts
@@ -0,0 +1,48 @@
+import curation from '../../../../../shared/src/catalog-curation.json'
+
+const { artwork, featured } = curation
+
+const images = import.meta.glob<string>('../../../../../../website/static/img/catalog/*.jpg', {
+ eager: true,
+ import: 'default',
+ query: '?url'
+})
+
+const artworkUrl = (filename: string | undefined) =>
+ filename ? images[`../../../../../../website/static/img/catalog/${filename}`] ?? null : null
+
+const OFFICIAL_SKILL_SOURCES = ['built-in', 'bundled', 'optional', 'official']
+
+interface CurationRow {
+ name?: string
+ category?: string
+ identifier?: string
+ source?: string
+ tier?: string
+}
+
+/** Only first-party catalog identities receive editorial artwork. */
+export function officialCatalogArtwork(kind: 'skills' | 'plugins', row: CurationRow): string | null {
+ if (kind === 'skills') {
+ if (!OFFICIAL_SKILL_SOURCES.includes(row.source ?? '')) {return null}
+
+ return artworkUrl((artwork.skills as Record<string, string>)[`${row.category}/${row.name}`])
+ }
+
+ if (row.tier !== 'bundled') {return null}
+
+ return artworkUrl((artwork.plugins as Record<string, string>)[row.identifier ?? ''])
+}
+
+/** Curated hero rank from the bundled curation file, for feeds published before
+ * the extractors stamped `featured`. Same keys the extractors use, so the app
+ * and the site agree once the feed catches up. */
+export function curatedFeaturedRank(kind: 'skills' | 'plugins', row: CurationRow): number | undefined {
+ const key = kind === 'skills'
+ ? (OFFICIAL_SKILL_SOURCES.includes(row.source ?? '') ? `${row.category}/${row.name}` : '')
+ : (row.tier === 'official' ? row.name ?? '' : '')
+
+ const rank = (featured[kind] as string[]).indexOf(key) + 1
+
+ return key && rank ? rank : undefined
+}
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-data.ts b/apps/desktop/src/app/capabilities/catalog/catalog-data.ts
index b806c89d2c1..a3f17c923db 100644
--- a/apps/desktop/src/app/capabilities/catalog/catalog-data.ts
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-data.ts
@@ -3,7 +3,7 @@ import { queryOptions, useQuery } from '@tanstack/react-query'
import { queryClient } from '@/lib/query-client'
-import { officialCatalogArtwork } from './catalog-artwork'
+import { curatedFeaturedRank, officialCatalogArtwork } from './catalog-curation'
export type CatalogKind = 'skills' | 'plugins'
@@ -39,6 +39,8 @@ export interface CatalogEntry {
addedAt?: string
updatedAt?: string
stars: number | null
+ /** 1-based curated hero rank from the catalog feed (`catalog-curation.json`). */
+ featured?: number
search: string
}
@@ -154,6 +156,7 @@ export function parseCatalog(kind: CatalogKind, data: unknown): CatalogEntry[] {
addedAt: Number.isFinite(Date.parse(text(row.addedAt))) ? text(row.addedAt) : undefined,
updatedAt: Number.isFinite(Date.parse(text(row.updatedAt))) ? text(row.updatedAt) : undefined,
stars: typeof row.stars === 'number' && Number.isFinite(row.stars) ? row.stars : null,
+ featured: typeof row.featured === 'number' && row.featured > 0 ? row.featured : curatedFeaturedRank(kind, row),
search: [
name,
description,
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-discovery.tsx b/apps/desktop/src/app/capabilities/catalog/catalog-discovery.tsx
index ab50cf0bb3d..d2854161eac 100644
--- a/apps/desktop/src/app/capabilities/catalog/catalog-discovery.tsx
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-discovery.tsx
@@ -1,6 +1,6 @@
import './catalog-discovery.css'
-import { groupCatalogPlugins, PLUGIN_CATEGORIES } from '@hermes/shared'
+import { groupCatalogPlugins, pickFeatured, PLUGIN_CATEGORIES } from '@hermes/shared'
import { type ReactNode, useState } from 'react'
import { Button } from '@/components/ui/button'
@@ -13,12 +13,12 @@ import { type CatalogEntry, type CatalogKind, catalogLabel } from './catalog-dat
import { CatalogDeveloper } from './catalog-developer'
import { catalogCategories } from './catalog-query'
-// Reviewed catalog identifiers, not an inferred recommendation or download metric.
-const FEATURED = { plugins: 'hindsight', skills: 'claude-code' } as const
-
/** Fewest cards a category needs for its own shelf; smaller ones share "More to explore". */
const MIN_SHELF = 3
+/** First-party sources, per kind, for the hero's fallback when the feed curates nothing. */
+const OFFICIAL = { plugins: ['official'], skills: ['built-in', 'bundled', 'optional', 'official'] } as const
+
export function CatalogDiscovery({ entries, kind, card, onCategory, actions }: {
entries: CatalogEntry[]
kind: CatalogKind
@@ -31,8 +31,14 @@ export function CatalogDiscovery({ entries, kind, card, onCategory, actions }: {
const [looseRows, setLooseRows] = useState(3)
const title = kind === 'plugins' ? t.skills.tabPlugins : t.skills.tabSkills
- const featured = entries.find(entry => entry.identifier === FEATURED[kind])
- ?? entries.find(entry => entry.name === FEATURED[kind] && ['bundled', 'official', 'builtin'].includes(entry.source))
+ // Same pick as the website: curated ranks from the feed, rotated weekly.
+ const featured = pickFeatured(entries, entry => ({
+ featured: entry.featured,
+ official: (OFFICIAL[kind] as readonly string[]).includes(entry.source),
+ pictured: Boolean(entry.imageUrl),
+ addedAt: entry.addedAt,
+ stars: entry.stars
+ }))
const remaining = entries.filter(entry => entry !== featured)
diff --git a/apps/desktop/src/app/capabilities/index.test.tsx b/apps/desktop/src/app/capabilities/index.test.tsx
index f288c4bce83..e60d824f847 100644
--- a/apps/desktop/src/app/capabilities/index.test.tsx
+++ b/apps/desktop/src/app/capabilities/index.test.tsx
@@ -493,7 +493,18 @@ describe('CapabilitiesView toolset management', { timeout: 60_000 }, () => {
)
})
- const install = await screen.findByRole('switch', { name: 'Add gif-search' })
+ // The row settles once installed skills load (the discovery hero can change
+ // as they merge in), so act on the live, enabled switch.
+ await screen.findByRole('switch', { name: 'Add gif-search' })
+
+ const install = await waitFor(() => {
+ const row = screen.getByRole<HTMLButtonElement>('switch', { name: 'Add gif-search' })
+
+ expect(row.disabled).toBe(false)
+
+ return row
+ })
+
expect(screen.getByRole('switch', { name: 'web-research' })).toBeTruthy()
expect(screen.queryByRole('switch', { name: 'Add web-research' })).toBeNull()
expect(screen.getByRole<HTMLButtonElement>('switch', { name: 'Added ascii-art' }).disabled).toBe(true)
diff --git a/apps/shared/src/catalog-artwork.json b/apps/shared/src/catalog-artwork.json
deleted file mode 100644
index 166d4a5018b..00000000000
--- a/apps/shared/src/catalog-artwork.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "skills": {
- "autonomous-ai-agents/computer-use": "official-art-feature.jpg",
- "autonomous-ai-agents/claude-code": "official-art-card-one.jpg",
- "autonomous-ai-agents/codex": "official-art.jpg",
- "autonomous-ai-agents/hermes-agent": "official-art-hermes-hero.jpg"
- },
- "plugins": {
- "desktop:kanban": "official-art.jpg",
- "desktop:hermes-bots": "official-art-card-two.jpg",
- "desktop:hermes-radio": "official-art-card-one.jpg"
- }
-}
diff --git a/apps/shared/src/catalog-curation.json b/apps/shared/src/catalog-curation.json
new file mode 100644
index 00000000000..054b95fb555
--- /dev/null
+++ b/apps/shared/src/catalog-curation.json
@@ -0,0 +1,29 @@
+{
+ "artwork": {
+ "skills": {
+ "autonomous-ai-agents/computer-use": "official-art-feature.jpg",
+ "autonomous-ai-agents/claude-code": "official-art-card-one.jpg",
+ "autonomous-ai-agents/codex": "official-art.jpg",
+ "autonomous-ai-agents/hermes-agent": "official-art-hermes-hero.jpg"
+ },
+ "plugins": {
+ "desktop:kanban": "official-art.jpg",
+ "desktop:hermes-bots": "official-art-card-two.jpg",
+ "desktop:hermes-radio": "official-art-card-one.jpg"
+ }
+ },
+ "featured": {
+ "skills": [
+ "autonomous-ai-agents/hermes-agent",
+ "autonomous-ai-agents/computer-use",
+ "autonomous-ai-agents/codex",
+ "autonomous-ai-agents/claude-code"
+ ],
+ "plugins": [
+ "hermes-memory-wiki",
+ "blender",
+ "touchdesigner",
+ "hermes-telegram-business"
+ ]
+ }
+}
diff --git a/tests/website/test_extract_plugins.py b/tests/website/test_extract_plugins.py
index 9ac1aca9eb8..c8a6159f532 100644
--- a/tests/website/test_extract_plugins.py
+++ b/tests/website/test_extract_plugins.py
@@ -212,6 +212,29 @@ def test_main_writes_catalog_and_meta(mod, tmp_path):
assert live["removed"] == [{"name": "gone"}]
+def test_curated_featured_ranks_are_stamped_from_the_curation_file(mod, tmp_path, monkeypatch):
+ catalog = tmp_path / "plugin-catalog"
+ catalog.mkdir()
+ for name in ("alpha", "beta", "gamma"):
+ _write_entry(catalog, name)
+ curation = tmp_path / "apps" / "shared" / "src" / "catalog-curation.json"
+ curation.parent.mkdir(parents=True)
+ curation.write_text(json.dumps({"featured": {"plugins": ["gamma", "missing", "alpha"]}}), encoding="utf-8")
+ monkeypatch.setattr(mod, "REPO_ROOT", tmp_path)
+
+ assert mod.main(catalog_dir=catalog, output_dir=tmp_path / "api") == 0
+
+ plugins = {p["name"]: p for p in json.loads((tmp_path / "api" / "plugins.json").read_text(encoding="utf-8"))}
+ # Rank is the position in the curated list, so a pick missing from the catalog keeps its slot.
+ assert plugins["gamma"]["featured"] == 1
+ assert plugins["alpha"]["featured"] == 3
+ assert "featured" not in plugins["beta"]
+
+
+def test_missing_curation_file_features_nothing(mod, tmp_path):
+ assert mod.load_featured(tmp_path / "absent.json") == []
+
+
def test_missing_catalog_dir_degrades_to_empty_outputs_exit_zero(mod, tmp_path):
out_dir = tmp_path / "api"
diff --git a/tests/website/test_extract_skills.py b/tests/website/test_extract_skills.py
index c702c9a36ba..11babae4955 100644
--- a/tests/website/test_extract_skills.py
+++ b/tests/website/test_extract_skills.py
@@ -57,9 +57,12 @@ def test_local_skills_publish_mapped_artwork_only(mod, tmp_path, monkeypatch, di
skill = tmp_path / directory / "creative" / name
skill.mkdir(parents=True)
(skill / "SKILL.md").write_text(f"---\nname: {name}\n---\nExample.")
- manifest = tmp_path / "apps/shared/src/catalog-artwork.json"
+ manifest = tmp_path / "apps/shared/src/catalog-curation.json"
manifest.parent.mkdir(parents=True)
- manifest.write_text(json.dumps({"skills": {"creative/illustrated": "art.jpg"}}))
+ manifest.write_text(json.dumps({
+ "artwork": {"skills": {"creative/illustrated": "art.jpg"}},
+ "featured": {"skills": ["creative/plain", "creative/illustrated"]},
+ }))
monkeypatch.setattr(mod, "REPO_ROOT", str(tmp_path))
entries = {entry["name"]: entry for entry in mod.extract_local_skills()}
@@ -68,6 +71,9 @@ def test_local_skills_publish_mapped_artwork_only(mod, tmp_path, monkeypatch, di
"https://raw.githubusercontent.com/NousResearch/hermes-agent/main/website/static/img/catalog/art.jpg"
)
assert "image" not in entries["plain"]
+ # Curated hero ranks follow the manifest's order, 1-based.
+ assert entries["plain"]["featured"] == 1
+ assert entries["illustrated"]["featured"] == 2
def test_unified_skills_keep_source_identifiers_and_match_cli_install_targets(mod, tmp_path, monkeypatch):
diff --git a/website/scripts/extract-plugins.py b/website/scripts/extract-plugins.py
index 49bc6d311a3..d2c8030b242 100644
--- a/website/scripts/extract-plugins.py
+++ b/website/scripts/extract-plugins.py
@@ -319,6 +319,17 @@ def load_raw_entries(catalog_dir: Path) -> list[dict]:
return entries
+def load_featured(curation_file: Path | None = None) -> list[str]:
+ """Curated hero picks (plugin names, in rotation order); empty when the file is absent."""
+ try:
+ path = curation_file or REPO_ROOT / "apps" / "shared" / "src" / "catalog-curation.json"
+ data = json.loads(path.read_text(encoding="utf-8"))
+ except (OSError, ValueError):
+ return []
+ picks = data.get("featured", {}).get("plugins") if isinstance(data, dict) else None
+ return [p for p in picks if isinstance(p, str)] if isinstance(picks, list) else []
+
+
def main(catalog_dir: Path = DEFAULT_CATALOG_DIR, output_dir: Path = DEFAULT_OUTPUT_DIR,
stars_file: Path | None = None) -> int:
if not catalog_dir.is_dir():
@@ -330,6 +341,11 @@ def main(catalog_dir: Path = DEFAULT_CATALOG_DIR, output_dir: Path = DEFAULT_OUT
stars_path = stars_file if stars_file is not None else output_dir / "plugin-stars.json"
stars = load_stars(stars_path)
entries = load_catalog_entries(catalog_dir, stars, load_git_dates(catalog_dir))
+ featured = load_featured()
+ for entry in entries:
+ # 1-based curated hero rank; the site and the app rotate through these.
+ if entry["name"] in featured:
+ entry["featured"] = featured.index(entry["name"]) + 1
removed_count = count_removed(catalog_dir)
by_tier = Counter(e["tier"] for e in entries)
diff --git a/website/scripts/extract-skills.py b/website/scripts/extract-skills.py
index 7d2bc8f1741..8372d28da11 100644
--- a/website/scripts/extract-skills.py
+++ b/website/scripts/extract-skills.py
@@ -253,11 +253,13 @@ def _source_url(source: str, identifier: str, extra: dict) -> str:
def extract_local_skills():
skills = []
try:
- with open(os.path.join(REPO_ROOT, "apps/shared/src/catalog-artwork.json"), encoding="utf-8") as artwork_file:
- artwork = json.load(artwork_file)["skills"]
+ with open(os.path.join(REPO_ROOT, "apps/shared/src/catalog-curation.json"), encoding="utf-8") as curation_file:
+ curation = json.load(curation_file)
except FileNotFoundError:
- # Artwork is optional; a skills-only checkout still produces a catalog.
- artwork = {}
+ # Curation is optional; a skills-only checkout still produces a catalog.
+ curation = {}
+ artwork = curation.get("artwork", {}).get("skills", {})
+ featured = curation.get("featured", {}).get("skills", [])
for base_dir, source_label in LOCAL_SKILL_DIRS:
base_path = os.path.join(REPO_ROOT, base_dir)
@@ -340,6 +342,8 @@ def extract_local_skills():
"commands": commands,
"docsPath": _docs_page_path(rel, source_label),
**({"image": "https://raw.githubusercontent.com/NousResearch/hermes-agent/main/website/static/img/catalog/" + artwork[rel_id]} if rel_id in artwork else {}),
+ # 1-based curated hero rank; the site and the app rotate through these.
+ **({"featured": featured.index(rel_id) + 1} if rel_id in featured else {}),
"installIdentifier": install_identifier,
"installCmd": f"hermes skills install {install_identifier}",
})