Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

feat(ok): browse Open Knowledge skills inside Add skill (#3324)

tim-inkeepb96b06f6f033
diff --git a/.changeset/explore-openknowledge-skills.md b/.changeset/explore-openknowledge-skills.md
new file mode 100644
index 000000000..479b07e64
--- /dev/null
+++ b/.changeset/explore-openknowledge-skills.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Add skill now has an "Open Knowledge" filter that fills the Explore grid with the skills OpenKnowledge publishes, instead of making you search for them by name. The list is read from the skills repository, so it shows exactly what is published today, with descriptions, and a click opens the same preview and install flow as any other directory result. Search results now sort by install count by default, with Relevance one click away, and the retired open-knowledge-pack-* listings that skills.sh still carries alongside their renamed replacements no longer show up in search or the popular shelf.
diff --git a/packages/app/src/components/ExploreSkills.dom.test.tsx b/packages/app/src/components/ExploreSkills.dom.test.tsx
new file mode 100644
index 000000000..94a4651c2
--- /dev/null
+++ b/packages/app/src/components/ExploreSkills.dom.test.tsx
@@ -0,0 +1,154 @@
+/**
+ * The Explore tab's Open Knowledge toggle: it fills the SAME grid from our repo
+ * rather than linking out, and it is exclusive with the topic chips (they search
+ * the directory; this reads one publisher's repo, so the two can't stack).
+ *
+ * Runs under `pnpm run test:dom` (jsdom). `<Trans>` resolves against the global
+ * i18n activated by `tests/lingui-macro-preload.ts`.
+ */
+
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
+import { cleanup, render, screen, waitFor } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+
+const discoverSkillsInSource = vi.fn(async () => ({
+ ok: true as const,
+ skills: [
+ { name: 'knowledge-base', description: 'Starter pack.' },
+ { name: 'open-knowledge', description: 'The runtime contract.' },
+ ],
+}));
+const fetchPublisherSkills = vi.fn(async () => ({
+ ok: true as const,
+ results: [
+ {
+ id: 'x',
+ name: 'knowledge-base',
+ source: 'inkeep/open-knowledge-skills',
+ description: '',
+ installs: 21,
+ publisher: 'inkeep',
+ },
+ {
+ id: 'y',
+ name: 'open-knowledge',
+ source: 'inkeep/open-knowledge-skills',
+ description: '',
+ installs: 478,
+ publisher: 'inkeep',
+ },
+ ],
+ backend: 'skills.sh' as const,
+ degraded: false,
+}));
+const searchSkills = vi.fn(async () => ({
+ ok: true as const,
+ results: [] as Array<Record<string, unknown>>,
+ backend: 'skills.sh' as const,
+ degraded: false,
+}));
+vi.doMock('@/lib/skills-api', () => ({
+ discoverSkillsInSource,
+ fetchPublisherSkills,
+ searchSkills,
+}));
+vi.doMock('@/hooks/use-popular-skills', () => ({
+ usePopularSkills: () => ({ skills: [], isPending: false, failed: false }),
+}));
+vi.doMock('@/hooks/use-skill-directory', () => ({
+ useSkillDirectory: () => ({ importedEntry: () => undefined, openResult: () => {} }),
+}));
+
+const { ExploreSkills } = await import('./ExploreSkills.tsx');
+
+afterEach(cleanup);
+
+function renderExplore() {
+ const client = new QueryClient({ defaultOptions: { queries: { retry: false } } });
+ return render(
+ <QueryClientProvider client={client}>
+ <ExploreSkills />
+ </QueryClientProvider>,
+ );
+}
+
+describe('ExploreSkills — Open Knowledge toggle', () => {
+ test('fills the grid from our repo, ranked by installs, in place', async () => {
+ renderExplore();
+ await userEvent.click(screen.getByRole('button', { name: 'OpenKnowledge' }));
+ await waitFor(() => expect(screen.getByText('open-knowledge')).toBeTruthy());
+ expect(discoverSkillsInSource).toHaveBeenCalledWith('inkeep/open-knowledge-skills');
+ // The repo lists open-knowledge SECOND; the publisher page's counts (478 vs
+ // 21) are what puts it first, so this pins the merge, not the repo order.
+ const order = screen.getAllByRole('listitem').map((li) => li.textContent ?? '');
+ expect(order[0]).toContain('open-knowledge');
+ expect(order[1]).toContain('knowledge-base');
+ });
+
+ test('an unrankable list still renders, in repository order', async () => {
+ fetchPublisherSkills.mockResolvedValueOnce({ ok: false, error: 'upstream down' } as never);
+ renderExplore();
+ await userEvent.click(screen.getByRole('button', { name: 'OpenKnowledge' }));
+ await waitFor(() => expect(screen.getByText('knowledge-base')).toBeTruthy());
+ expect(screen.getByText('open-knowledge')).toBeTruthy();
+ });
+
+ test('a list that will not load says so, rather than rendering an empty grid', async () => {
+ // The ranking source failing is a different branch (covered above): that one
+ // still has a list. This is the list source itself failing, which leaves
+ // nothing to show — the only path to the error copy.
+ discoverSkillsInSource.mockResolvedValueOnce({ ok: false, error: 'clone failed' } as never);
+ renderExplore();
+ await userEvent.click(screen.getByRole('button', { name: 'OpenKnowledge' }));
+ await waitFor(() =>
+ expect(screen.getByText(/Couldn't load the OpenKnowledge skills/)).toBeTruthy(),
+ );
+ expect(screen.queryByRole('listitem')).toBeNull();
+ });
+
+ test('search results arrive install-ranked without touching the sort control', async () => {
+ // skills.sh answers in relevance order; the default sort is what reorders
+ // them. Asserting the rendered order (not the control's label) pins the
+ // behavior a user sees.
+ searchSkills.mockResolvedValueOnce({
+ ok: true,
+ results: [
+ {
+ id: 'a',
+ name: 'rarely-used',
+ source: 'o/r',
+ description: '',
+ installs: 3,
+ publisher: 'o',
+ },
+ {
+ id: 'b',
+ name: 'widely-used',
+ source: 'o/r',
+ description: '',
+ installs: 900,
+ publisher: 'o',
+ },
+ ],
+ backend: 'skills.sh',
+ degraded: false,
+ } as never);
+ renderExplore();
+ await userEvent.type(screen.getByLabelText('Search skills'), 'design');
+ await waitFor(() => expect(screen.getByText('widely-used')).toBeTruthy());
+ const order = screen.getAllByRole('listitem').map((li) => li.textContent ?? '');
+ expect(order[0]).toContain('widely-used');
+ expect(order[1]).toContain('rarely-used');
+ });
+
+ test('a topic chip turns it back off instead of stacking into the query', async () => {
+ renderExplore();
+ const ok = screen.getByRole('button', { name: 'OpenKnowledge' });
+ await userEvent.click(ok);
+ await waitFor(() => expect(ok.getAttribute('aria-pressed')).toBe('true'));
+ await userEvent.click(screen.getByRole('button', { name: 'Design' }));
+ expect(ok.getAttribute('aria-pressed')).toBe('false');
+ await waitFor(() => expect(screen.queryByText('open-knowledge')).toBeNull());
+ });
+});
diff --git a/packages/app/src/components/ExploreSkills.tsx b/packages/app/src/components/ExploreSkills.tsx
index 3b0d864aa..cf2c0ec9d 100644
--- a/packages/app/src/components/ExploreSkills.tsx
+++ b/packages/app/src/components/ExploreSkills.tsx
@@ -2,8 +2,8 @@ import type { SkillScope, SkillSearchResult } from '@inkeep/open-knowledge-core'
import { msg } from '@lingui/core/macro';
import { Trans, useLingui } from '@lingui/react/macro';
import { Search } from 'lucide-react';
-import { useEffect, useState } from 'react';
-import { SkillDirectoryResult } from '@/components/SkillDirectoryResult';
+import { type ComponentProps, useEffect, useState } from 'react';
+import { SkillDirectoryGrid } from '@/components/SkillDirectoryGrid';
import { Button } from '@/components/ui/button';
import { InputGroup, InputGroupAddon, InputGroupInput } from '@/components/ui/input-group';
import {
@@ -15,16 +15,10 @@ import {
SelectTrigger,
SelectValue,
} from '@/components/ui/select';
-import { Skeleton } from '@/components/ui/skeleton';
+import { useOpenKnowledgeSkills } from '@/hooks/use-openknowledge-skills';
import { usePopularSkills } from '@/hooks/use-popular-skills';
-import { useSkillDirectory } from '@/hooks/use-skill-directory';
import { searchSkills } from '@/lib/skills-api';
-// Stable keys for the fixed skeleton set (avoids array-index keys). Sized to
-// roughly fill the visible grid so the searching state holds the dialog's height
-// instead of collapsing from the taller popular/results grids.
-const SKELETON_KEYS = ['s1', 's2', 's3', 's4', 's5', 's6', 's7', 's8'];
-
// Suggested topics for the default (pre-search) state. skills.sh has no
// trending endpoint and rejects empty queries, so instead of a blank screen we
// offer one-click searches. Each chip just seeds the search box.
@@ -58,19 +52,28 @@ export function ExploreSkills({
onNavigate?: () => void;
}) {
const { t } = useLingui();
- // Already-imported detection + the click destination, shared with the Skills
- // home's popular grid so a card behaves identically on both surfaces.
- const { importedEntry, openResult } = useSkillDirectory({ scope, onNavigate });
const [query, setQuery] = useState('');
const [results, setResults] = useState<SkillSearchResult[]>([]);
const [degraded, setDegraded] = useState(false);
const [state, setState] = useState<'idle' | 'searching' | 'error'>('idle');
- const [sortBy, setSortBy] = useState<'relevance' | 'installs'>('relevance');
+ // Installs first: skills.sh relevance order interleaves near-dead listings with
+ // widely-used ones on the same fuzzy match, so the install count is the more
+ // useful default signal. Relevance stays one click away.
+ const [sortBy, setSortBy] = useState<'relevance' | 'installs'>('installs');
+ // Exclusive with searching, not a topic chip that stacks into the query: this
+ // list comes from a different upstream (our repo, not the directory search),
+ // so any search input takes the grid back to results.
+ const [showOurs, setShowOurs] = useState(false);
// Popular skills for the blank state, so Discover isn't an empty box before you
// type. Shared cache with the Skills home's shelf, so opening this modal from
// that page does not refetch. Best-effort — an empty result (fetch/parse
// failure) just falls back to the topic chips.
const { skills: popular } = usePopularSkills();
+ const {
+ skills: ours,
+ isPending: oursPending,
+ failed: oursFailed,
+ } = useOpenKnowledgeSkills(showOurs);
useEffect(() => {
const q = query.trim();
@@ -113,14 +116,10 @@ export function ExploreSkills({
? [...results].sort((a, b) => (b.installs ?? -1) - (a.installs ?? -1))
: results;
- // One card renderer shared by the search grid and the blank-state popular grid.
- const renderResult = (r: SkillSearchResult) => (
- <SkillDirectoryResult
- key={r.id}
- result={r}
- imported={importedEntry(r)}
- onOpen={() => openResult(r)}
- />
+ // Every grid below is the same component with a different list; only the label
+ // and the loading announcement change.
+ const grid = (props: Omit<ComponentProps<typeof SkillDirectoryGrid>, 'scope' | 'onNavigate'>) => (
+ <SkillDirectoryGrid scope={scope} onNavigate={onNavigate} {...props} />
);
return (
@@ -132,7 +131,10 @@ export function ExploreSkills({
</InputGroupAddon>
<InputGroupInput
value={query}
- onChange={(e) => setQuery(e.target.value)}
+ onChange={(e) => {
+ setQuery(e.target.value);
+ setShowOurs(false);
+ }}
placeholder={t`Search skills`}
aria-label={t`Search skills`}
/>
@@ -158,7 +160,27 @@ export function ExploreSkills({
query (`design git test`). The box stays the single source of truth,
so typing and chips compose. Active = the word is a token in the box.
Single line: overflow horizontally with the fade-mask, scrollbar hidden. */}
- <div className="flex shrink-0 gap-2 overflow-x-auto scroll-fade-mask-x [scrollbar-width:none]">
+ {/* biome-ignore lint/a11y/useSemanticElements: a filter-chip row is a
+ button cluster, not a form-control set; <fieldset>/<legend> would impose
+ form chrome. role="group" on a div is the shape the rest of the app uses. */}
+ <div
+ role="group"
+ aria-label={t`Filter skills`}
+ className="flex shrink-0 gap-2 overflow-x-auto scroll-fade-mask-x [scrollbar-width:none]"
+ >
+ <Button
+ variant={showOurs ? 'secondary' : 'outline'}
+ size="sm"
+ aria-pressed={showOurs}
+ className="h-6 shrink-0 rounded-full data-[active=true]:border-foreground/30"
+ data-active={showOurs}
+ onClick={() => {
+ setShowOurs((on) => !on);
+ setQuery('');
+ }}
+ >
+ <Trans>OpenKnowledge</Trans>
+ </Button>
{TOPICS.map((topic) => {
const tokens = query.trim().split(/\s+/).filter(Boolean);
const active = tokens.includes(topic.query);
@@ -170,14 +192,15 @@ export function ExploreSkills({
aria-pressed={active}
className="h-6 shrink-0 rounded-full data-[active=true]:border-foreground/30"
data-active={active}
- onClick={() =>
+ onClick={() => {
+ setShowOurs(false);
setQuery(
(active
? tokens.filter((x) => x !== topic.query)
: [...tokens, topic.query]
).join(' '),
- )
- }
+ );
+ }}
>
{t(topic.label)}
</Button>
@@ -190,42 +213,44 @@ export function ExploreSkills({
</p>
) : null}
<div className="min-h-0 flex-1 overflow-auto subtle-scrollbar scroll-fade-mask">
- {q.length < 2 ? (
+ {showOurs ? (
+ oursFailed ? (
+ <p className="text-sm text-muted-foreground">
+ <Trans>Couldn't load the OpenKnowledge skills. Try again.</Trans>
+ </p>
+ ) : (
+ grid({
+ results: ours,
+ pending: oursPending,
+ label: <Trans>OpenKnowledge</Trans>,
+ loadingLabel: t`Loading OpenKnowledge skills`,
+ testId: 'skills-openknowledge',
+ })
+ )
+ ) : q.length < 2 ? (
// Popular skills populate the blank state (best-effort; empty on a scrape
// failure, in which case the persistent topic chips above are the fallback).
popular.length > 0 ? (
- <div className="space-y-2">
- {/* Same element + classes as the Skills home's shelf label, which
- sits above the same card grid — a user sees both in one session. */}
- <h3 className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">
- <Trans>Popular</Trans>
- </h3>
- <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2">
- {popular.map(renderResult)}
- </ul>
- </div>
+ grid({
+ results: popular,
+ label: <Trans>Popular</Trans>,
+ loadingLabel: t`Loading popular skills`,
+ })
) : null
- ) : state === 'searching' ? (
- <div aria-busy="true">
- <span className="sr-only">
- <Trans>Searching</Trans>
- </span>
- <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" aria-hidden>
- {SKELETON_KEYS.map((k) => (
- <Skeleton key={k} className="h-[72px] rounded-xl" />
- ))}
- </ul>
- </div>
) : state === 'error' ? (
<p className="text-sm text-destructive">
<Trans>Search failed. Try again.</Trans>
</p>
- ) : results.length === 0 ? (
+ ) : state === 'idle' && results.length === 0 ? (
<p className="text-sm text-muted-foreground">
<Trans>No skills found.</Trans>
</p>
) : (
- <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2">{shown.map(renderResult)}</ul>
+ grid({
+ results: shown,
+ pending: state === 'searching',
+ loadingLabel: t`Searching`,
+ })
)}
</div>
{/* Credit the discovery API — results (and install counts) come from skills.sh.
diff --git a/packages/app/src/components/SkillDirectoryGrid.tsx b/packages/app/src/components/SkillDirectoryGrid.tsx
new file mode 100644
index 000000000..8a877a8c2
--- /dev/null
+++ b/packages/app/src/components/SkillDirectoryGrid.tsx
@@ -0,0 +1,82 @@
+import type { SkillScope, SkillSearchResult } from '@inkeep/open-knowledge-core';
+import type { ReactNode } from 'react';
+import { SkillDirectoryResult } from '@/components/SkillDirectoryResult';
+import { Skeleton } from '@/components/ui/skeleton';
+import { useSkillDirectory } from '@/hooks/use-skill-directory';
+
+// Stable keys for the skeleton set (no array-index keys). Sized to the largest
+// grid any caller asks for and sliced down per call.
+const SKELETON_KEYS = ['s1', 's2', 's3', 's4', 's5', 's6', 's7', 's8'];
+
+/**
+ * A grid of skills.sh-shaped discovery results, with its optional section label
+ * and its loading state. Every surface that lists results renders through this —
+ * the Explore modal's search / popular / Open Knowledge grids and the Skills
+ * home's shelf — so card behavior, column count, and skeleton height stay in
+ * lockstep instead of being re-typed per surface.
+ *
+ * Owns {@link useSkillDirectory}, so a caller supplies the list and the two
+ * coordinates a click needs (`scope`, `onNavigate`) and nothing else. `h-18`
+ * skeletons match a real row's resting height, so the grid doesn't jump when
+ * results land.
+ */
+export function SkillDirectoryGrid({
+ results,
+ pending = false,
+ skeletonCount = 8,
+ label,
+ action,
+ loadingLabel,
+ scope,
+ onNavigate,
+ testId,
+}: {
+ readonly results: readonly SkillSearchResult[];
+ readonly pending?: boolean;
+ readonly skeletonCount?: number;
+ /** Section heading; omitted for an unlabeled grid (search results). */
+ readonly label?: ReactNode;
+ /** Trailing control on the label's row (e.g. "Browse all"). */
+ readonly action?: ReactNode;
+ /** Screen-reader announcement while `pending` — say what is loading. */
+ readonly loadingLabel: string;
+ readonly scope?: SkillScope;
+ readonly onNavigate?: () => void;
+ readonly testId?: string;
+}) {
+ const { importedEntry, openResult } = useSkillDirectory({ scope, onNavigate });
+
+ return (
+ <section className="flex flex-col gap-3" data-testid={testId}>
+ {label === undefined ? null : (
+ <div className="flex items-center justify-between gap-3">
+ <h3 className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">
+ {label}
+ </h3>
+ {action}
+ </div>
+ )}
+ {pending ? (
+ <div aria-busy="true">
+ <span className="sr-only">{loadingLabel}</span>
+ <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" aria-hidden>
+ {SKELETON_KEYS.slice(0, skeletonCount).map((k) => (
+ <Skeleton key={k} className="h-18 rounded-xl" />
+ ))}
+ </ul>
+ </div>
+ ) : (
+ <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2">
+ {results.map((r) => (
+ <SkillDirectoryResult
+ key={r.id}
+ result={r}
+ imported={importedEntry(r)}
+ onOpen={() => openResult(r)}
+ />
+ ))}
+ </ul>
+ )}
+ </section>
+ );
+}
diff --git a/packages/app/src/components/SkillsBasePage.tsx b/packages/app/src/components/SkillsBasePage.tsx
index 5064a6793..4a64d059a 100644
--- a/packages/app/src/components/SkillsBasePage.tsx
+++ b/packages/app/src/components/SkillsBasePage.tsx
@@ -4,14 +4,12 @@ import { lazy, Suspense, useState } from 'react';
import { CreatePromptComposer } from '@/components/empty-state/CreatePromptComposer';
import { EmptyStateHeader } from '@/components/empty-state/EmptyStateHeader';
import type { AddSkillTab } from '@/components/ImportSkillDialog';
-import { SkillDirectoryResult } from '@/components/SkillDirectoryResult';
+import { SkillDirectoryGrid } from '@/components/SkillDirectoryGrid';
import { Button } from '@/components/ui/button';
-import { Skeleton } from '@/components/ui/skeleton';
import { useCreateBlankSkill } from '@/hooks/use-create-blank-skill';
import { useIsEmbedded } from '@/hooks/use-is-embedded';
import { useOpenSkill } from '@/hooks/use-open-skill';
import { usePopularSkills } from '@/hooks/use-popular-skills';
-import { useSkillDirectory } from '@/hooks/use-skill-directory';
// Lazy so the add-skill modal (skills.sh search, upload, and the new-skill form
// + their skills-api) stays out of the base-page bundle — it loads on first open.
@@ -23,8 +21,6 @@ const ImportSkillDialog = lazy(() =>
* rows of two at full width; `/api/skills/popular` returns more than this. */
const POPULAR_LIMIT = 6;
-const POPULAR_SKELETON_KEYS = ['p1', 'p2', 'p3', 'p4', 'p5', 'p6'];
-
interface SkillsBasePageProps {
/** Whether the sessions dock (in-app agent thread, agent CLI, or bare shell) is
* open. `EditorArea` derives it from the same `terminalVisible` flag that gates
@@ -69,7 +65,6 @@ export function SkillsBasePage({ sessionsDockOpen = false }: SkillsBasePageProps
const openSkill = useOpenSkill();
const { createBlank } = useCreateBlankSkill();
- const { importedEntry, openResult } = useSkillDirectory({ scope: 'project' });
// Shared with the Explore modal's blank state, so opening the modal over this
// page reuses the cached list instead of refetching.
@@ -145,19 +140,20 @@ export function SkillsBasePage({ sessionsDockOpen = false }: SkillsBasePageProps
</div>
{showPopular ? (
- <section className="flex flex-col gap-3" data-testid="skills-popular">
- {/* Section label matching the empty-state's starter-pack / template
- headers (mono, uppercase, muted), with Browse all trailing it on
- the same rule. Browse all renders only once the cards do: it is
- the one focusable control inside a section that disappears on a
- failed fetch, and a keyboard user sitting on it while that landed
- would have focus dropped to the body. The label holds the row's
- height either way, so nothing shifts when it arrives. */}
- <div className="flex items-center justify-between gap-3">
- <h3 className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">
- <Trans>Popular on skills.sh</Trans>
- </h3>
- {popularPending ? null : (
+ <SkillDirectoryGrid
+ scope="project"
+ results={popular}
+ pending={popularPending}
+ skeletonCount={POPULAR_LIMIT}
+ testId="skills-popular"
+ loadingLabel={t`Loading popular skills`}
+ label={<Trans>Popular on skills.sh</Trans>}
+ // Browse all renders only once the cards do: it is the one focusable
+ // control inside a section that disappears on a failed fetch, and a
+ // keyboard user sitting on it while that landed would have focus
+ // dropped to the body. The label holds the row's height either way.
+ action={
+ popularPending ? null : (
<Button
type="button"
variant="ghost"
@@ -169,34 +165,9 @@ export function SkillsBasePage({ sessionsDockOpen = false }: SkillsBasePageProps
<Trans>Browse all</Trans>
<ArrowRight aria-hidden="true" className="size-3" />
</Button>
- )}
- </div>
- {popularPending ? (
- <div aria-busy="true">
- <span className="sr-only">
- <Trans>Loading popular skills</Trans>
- </span>
- {/* `h-18` matches a real row's resting height (avatar + name +
- meta), so the grid doesn't jump when results land. */}
- <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" aria-hidden>
- {POPULAR_SKELETON_KEYS.map((k) => (
- <Skeleton key={k} className="h-18 rounded-xl" />
- ))}
- </ul>
- </div>
- ) : (
- <ul className="grid grid-cols-1 gap-2.5 sm:grid-cols-2">
- {popular.map((r) => (
- <SkillDirectoryResult
- key={r.id}
- result={r}
- imported={importedEntry(r)}
- onOpen={() => openResult(r)}
- />
- ))}
- </ul>
- )}
- </section>
+ )
+ }
+ />
) : null}
</div>
diff --git a/packages/app/src/hooks/use-openknowledge-skills.ts b/packages/app/src/hooks/use-openknowledge-skills.ts
new file mode 100644
index 000000000..0dc72eab8
--- /dev/null
+++ b/packages/app/src/hooks/use-openknowledge-skills.ts
@@ -0,0 +1,61 @@
+import type { SkillSearchResult } from '@inkeep/open-knowledge-core';
+import { OPENKNOWLEDGE_SKILLS_REPO } from '@inkeep/open-knowledge-core';
+import { useQuery } from '@tanstack/react-query';
+import { discoverSkillsInSource, fetchPublisherSkills } from '@/lib/skills-api';
+
+/**
+ * The skills OK itself publishes, most-installed first, shaped as discovery
+ * results so they render through the same card as any skills.sh row.
+ *
+ * Two sources, because neither alone is enough. The repository enumeration is
+ * the authority on WHAT we publish — it is what we ship today, with
+ * descriptions, and none of the retired listings skills.sh still carries — but
+ * it knows nothing about installs. The publisher page carries the counts. So
+ * the repo supplies the list and the page ranks it, and a skill the page
+ * doesn't mention keeps its place at the end rather than disappearing.
+ *
+ * The ranking half is best-effort by construction: if it fails, the list still
+ * renders, just in repository order. The list half is not — no list, nothing to
+ * show, which is what `failed` reports.
+ *
+ * Return shape mirrors {@link usePopularSkills} so a surface can swap one list
+ * for the other without reshaping anything. `enabled: false` leaves `isPending`
+ * true (nothing has resolved), so only read it on a surface showing this list.
+ */
+export function useOpenKnowledgeSkills(enabled = true): {
+ readonly skills: readonly SkillSearchResult[];
+ readonly isPending: boolean;
+ readonly failed: boolean;
+} {
+ const { data, isPending, isError } = useQuery({
+ queryKey: ['skills', 'openknowledge'],
+ enabled,
+ // Our published set moves on release cadence, and each run shallow-clones
+ // the repo. Matches the sibling catalog reads.
+ staleTime: 5 * 60 * 1000,
+ queryFn: async (): Promise<SkillSearchResult[]> => {
+ const [listed, ranked] = await Promise.all([
+ discoverSkillsInSource(OPENKNOWLEDGE_SKILLS_REPO),
+ fetchPublisherSkills(OPENKNOWLEDGE_SKILLS_REPO),
+ ]);
+ // `getJson` folds network and non-2xx failures into `ok: false`; rethrowing
+ // is what turns them into react-query's error state.
+ if (!listed.ok) throw new Error(listed.error);
+ const installsByName = new Map(
+ (ranked.ok ? ranked.results : []).map((r) => [r.name, r.installs]),
+ );
+ return (listed.skills ?? [])
+ .map((s) => ({
+ id: `${OPENKNOWLEDGE_SKILLS_REPO}/${s.name}`,
+ name: s.name,
+ source: OPENKNOWLEDGE_SKILLS_REPO,
+ description: s.description ?? '',
+ installs: installsByName.get(s.name) ?? null,
+ publisher: OPENKNOWLEDGE_SKILLS_REPO.split('/')[0] ?? null,
+ }))
+ .sort((a, b) => (b.installs ?? -1) - (a.installs ?? -1));
+ },
+ });
+
+ return { skills: data ?? [], isPending, failed: isError };
+}
diff --git a/packages/app/src/lib/skills-api.ts b/packages/app/src/lib/skills-api.ts
index 1193b952f..0042b7e94 100644
--- a/packages/app/src/lib/skills-api.ts
+++ b/packages/app/src/lib/skills-api.ts
@@ -178,6 +178,18 @@ export async function resolveSkillRef(
return getJson<SkillRefResolution>(`/api/skills/resolve-ref?${params.toString()}`, signal);
}
+/**
+ * GET `/api/skills/publisher?source=` — one publisher's skills.sh listing,
+ * most-installed first. The ranking source for a list assembled elsewhere: a
+ * non-`ok` or empty result means the caller shows its list unranked rather than
+ * showing nothing.
+ */
+export async function fetchPublisherSkills(
+ source: string,
+): Promise<WriteResult<SkillsSearchSuccess>> {
+ return getJson<SkillsSearchSuccess>(`/api/skills/publisher?source=${encodeURIComponent(source)}`);
+}
+
/**
* GET `/api/skills/discover?source=` — enumerate every skill in a remote/local
* import source so the Import modal can offer a picker of what to ingest instead
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 34c62aafa..4215716f3 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -173,6 +173,7 @@
"1njn7W": ["فاتح"],
"1nke1r": ["فتح ", ["0"], " على GitHub (يفتح في تبويب جديد)"],
"1oSHI0": ["تعذّر تثبيت ", ["skillName"], ": ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["رفض"],
"1u-mAI": ["تعذّر بدء المزامنة. تحقق من اتصالك، ثم أعد المحاولة."],
"1vn0CI": ["استجابة الخادم غير صالحة"],
@@ -1678,6 +1679,7 @@
],
"LvdLef": ["شكرًا على ملاحظاتك!"],
"LwMxXg": ["فشل فتح شجرة العمل."],
+ "LzM_ga": ["تصفية المهارات"],
"M-IF14": ["مرجع التقرير"],
"M0jOcG": ["العرض في مصدر Markdown"],
"M1OfV9": ["تشخيص المصدر التالي"],
@@ -1972,6 +1974,7 @@
"QAi7Q9": ["للفرع <0>", ["trimmed"], "</0> شجرة عمل بالفعل — سيُفتح في نافذته الخاصة."],
"QB-moX": ["ثبّتها في محرراتك الأخرى (Claude Code وCursor وCodex) لمشاركتها."],
"QDZbvN": ["قبل ", ["diffDays"], " يوم"],
+ "QGWzup": ["يجري تحميل مهارات OpenKnowledge"],
"QHCx0c": ["سجل تقارير العلل"],
"QIrBIx": ["توسيع كل الملفات"],
"QKgePK": ["تمت مواءمة ", ["editor"], " مع المصدر (نُسخت بايتاته احتياطيًا)"],
@@ -2106,6 +2109,7 @@
"SCoBBH": ["اقتراحات الوسوم"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["شارك بريدك الإلكتروني للمتابعة"],
+ "SFEWV6": ["تعذّر تحميل مهارات OpenKnowledge. أعد المحاولة."],
"SFN6dN": ["عنوان 3"],
"SInSnF": ["مرجع <0>", ["0"], "</0>"],
"SItQRc": ["ما رأيك في OpenKnowledge؟"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 01e999add..76df3be32 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -3293,6 +3293,10 @@ msgstr "تعذّر تحميل حزم البداية: {error}"
msgid "Couldn't load templates"
msgstr "تعذّر تحميل القوالب"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "تعذّر تحميل مهارات OpenKnowledge. أعد المحاولة."
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "تعذّر تحميل معاينة النسخة. لا يزال بإمكانك اختيار طريقة الحل أدناه."
@@ -5202,6 +5206,10 @@ msgstr "شريط أدوات الملفات"
msgid "Filter languages"
msgstr "تصفية اللغات"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "تصفية المهارات"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "يجري تحميل عناوين {pageTarget}"
msgid "Loading image"
msgstr "يجري تحميل الصورة"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "يجري تحميل مهارات OpenKnowledge"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "يجري تحميل الصفحات"
@@ -6667,6 +6679,7 @@ msgstr "يجري تحميل المسارات…"
msgid "Loading PDF"
msgstr "يجري تحميل ملف PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "يجري تحميل المهارات الشائعة"
@@ -8217,6 +8230,10 @@ msgstr "يجري فتح شجرة العمل"
msgid "Opening..."
msgstr "يجري الفتح..."
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "تحقق OpenKnowledge من {subject}"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 6340a2260..1a164751a 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -150,6 +150,7 @@
"1njn7W": ["হালকা"],
"1nke1r": [["0"], " GitHub-এ খুলুন (নতুন ট্যাবে খোলে)"],
"1oSHI0": [["skillName"], " ইনস্টল করা যায়নি: ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["প্রত্যাখ্যান করুন"],
"1u-mAI": ["সিঙ্ক শুরু করা যায়নি। আপনার সংযোগ দেখুন, তারপর আবার চেষ্টা করুন।"],
"1vn0CI": ["সার্ভারের প্রতিক্রিয়া অবৈধ"],
@@ -1411,6 +1412,7 @@
],
"LvdLef": ["মতামতের জন্য ধন্যবাদ!"],
"LwMxXg": ["ওয়ার্কট্রি খুলতে ব্যর্থ।"],
+ "LzM_ga": ["স্কিল ছাঁকুন"],
"M-IF14": ["রিপোর্ট রেফারেন্স"],
"M0jOcG": ["সোর্স markdown-এ দেখুন"],
"M1OfV9": ["পরবর্তী সোর্স নির্ণয়"],
@@ -1701,6 +1703,7 @@
],
"QB-moX": ["এটি ভাগ করতে আপনার অন্য সম্পাদকগুলোতে (Claude Code, Cursor, Codex) ইনস্টল করুন।"],
"QDZbvN": [["diffDays"], " দিন আগে"],
+ "QGWzup": ["OpenKnowledge স্কিল লোড হচ্ছে"],
"QHCx0c": ["বাগ রিপোর্টের ইতিহাস"],
"QIrBIx": ["সব ফাইল মেলে ধরুন"],
"QKgePK": [["editor"], "-কে উৎসের সঙ্গে মেলানো হয়েছে (এর বাইটের ব্যাকআপ নেওয়া আছে)"],
@@ -1821,6 +1824,7 @@
"SCoBBH": ["ট্যাগের পরামর্শ"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["পরবর্তী যোগাযোগের জন্য আপনার ইমেইল দিন"],
+ "SFEWV6": ["OpenKnowledge স্কিল লোড করা যায়নি। আবার চেষ্টা করুন।"],
"SFN6dN": ["শিরোনাম ৩"],
"SInSnF": ["রেফারেন্স <0>", ["0"], "</0>"],
"SItQRc": ["OpenKnowledge আপনার কেমন লাগছে?"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index 869a746d7..09ed1df8e 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -3289,6 +3289,10 @@ msgstr "স্টার্টার প্যাক লোড করা যা
msgid "Couldn't load templates"
msgstr "টেমপ্লেট লোড করা যায়নি"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "OpenKnowledge স্কিল লোড করা যায়নি। আবার চেষ্টা করুন।"
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "সংস্করণের প্রাকদর্শন লোড করা যায়নি। আপনি তবুও নিচে বেছে নিতে পারেন কীভাবে এটি মীমাংসা করবেন।"
@@ -5198,6 +5202,10 @@ msgstr "Files টুলবার"
msgid "Filter languages"
msgstr "ভাষা ছাঁকুন"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "স্কিল ছাঁকুন"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6651,6 +6659,10 @@ msgstr "{pageTarget}-এর শিরোনাম লোড হচ্ছে"
msgid "Loading image"
msgstr "ছবি লোড হচ্ছে"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "OpenKnowledge স্কিল লোড হচ্ছে"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "পাতা লোড হচ্ছে"
@@ -6663,6 +6675,7 @@ msgstr "পথ লোড হচ্ছে…"
msgid "Loading PDF"
msgstr "PDF লোড হচ্ছে"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "জনপ্রিয় স্কিল লোড হচ্ছে"
@@ -8213,6 +8226,10 @@ msgstr "ওয়ার্কট্রি খোলা হচ্ছে"
msgid "Opening..."
msgstr "খোলা হচ্ছে…"
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge {subject} পরীক্ষা করেছে"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index a53a66419..ac61d77a4 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -154,6 +154,7 @@
"1njn7W": ["Light"],
"1nke1r": ["Open ", ["0"], " on GitHub (opens in a new tab)"],
"1oSHI0": ["Couldn't install ", ["skillName"], ": ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Reject"],
"1u-mAI": ["Couldn't start the sync. Check your connection, then retry."],
"1vn0CI": ["Invalid server response"],
@@ -1464,6 +1465,7 @@
],
"LvdLef": ["Thanks for the feedback!"],
"LwMxXg": ["Failed to open worktree."],
+ "LzM_ga": ["Filter skills"],
"M-IF14": ["Report reference"],
"M0jOcG": ["View in source markdown"],
"M1OfV9": ["Next source diagnostic"],
@@ -1762,6 +1764,7 @@
],
"QB-moX": ["Install it to your other editors (Claude Code, Cursor, Codex) to share it."],
"QDZbvN": [["diffDays"], "d ago"],
+ "QGWzup": ["Loading OpenKnowledge skills"],
"QHCx0c": ["Bug report history"],
"QIrBIx": ["Expand all files"],
"QKgePK": ["Aligned ", ["editor"], " to the source (its bytes are backed up)"],
@@ -1881,6 +1884,7 @@
"SCoBBH": ["Tag suggestions"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["Share your email for followups"],
+ "SFEWV6": ["Couldn't load the OpenKnowledge skills. Try again."],
"SFN6dN": ["Heading 3"],
"SInSnF": ["Reference <0>", ["0"], "</0>"],
"SItQRc": ["How do you like OpenKnowledge?"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index f459accda..b2d9091cd 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -3293,6 +3293,10 @@ msgstr "Couldn't load starter packs: {error}"
msgid "Couldn't load templates"
msgstr "Couldn't load templates"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "Couldn't load the OpenKnowledge skills. Try again."
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Couldn't load the version preview. You can still choose how to resolve it below."
@@ -5202,6 +5206,10 @@ msgstr "Files toolbar"
msgid "Filter languages"
msgstr "Filter languages"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "Filter skills"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "Loading headings for {pageTarget}"
msgid "Loading image"
msgstr "Loading image"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "Loading OpenKnowledge skills"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "Loading pages"
@@ -6667,6 +6679,7 @@ msgstr "Loading paths…"
msgid "Loading PDF"
msgstr "Loading PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "Loading popular skills"
@@ -8217,6 +8230,10 @@ msgstr "Opening worktree"
msgid "Opening..."
msgstr "Opening..."
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge checked {subject}"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index fedf075dd..a3bf50411 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -174,6 +174,7 @@
"1njn7W": ["Claro"],
"1nke1r": ["Abrir ", ["0"], " en GitHub (se abre en una pestaña nueva)"],
"1oSHI0": ["No se pudo instalar ", ["skillName"], ": ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Rechazar"],
"1u-mAI": ["No se pudo iniciar la sincronización. Revisa tu conexión y vuelve a intentarlo."],
"1vn0CI": ["Respuesta del servidor no válida"],
@@ -1709,6 +1710,7 @@
],
"LvdLef": ["¡Gracias por tus comentarios!"],
"LwMxXg": ["No se pudo abrir el worktree."],
+ "LzM_ga": ["Filtrar habilidades"],
"M-IF14": ["Referencia del informe"],
"M0jOcG": ["Ver en el markdown de origen"],
"M1OfV9": ["Diagnóstico de código siguiente"],
@@ -2022,6 +2024,7 @@
],
"QB-moX": ["Instálala en tus otros editores (Claude Code, Cursor, Codex) para compartirla."],
"QDZbvN": ["hace ", ["diffDays"], " d"],
+ "QGWzup": ["Cargando las habilidades de OpenKnowledge"],
"QHCx0c": ["Historial de informes de error"],
"QIrBIx": ["Expandir todos los archivos"],
"QKgePK": [
@@ -2150,6 +2153,7 @@
"SCoBBH": ["Sugerencias de etiquetas"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["Comparte tu correo para que podamos hacer seguimiento"],
+ "SFEWV6": ["No se pudieron cargar las habilidades de OpenKnowledge. Inténtalo de nuevo."],
"SFN6dN": ["Encabezado 3"],
"SInSnF": ["Referencia <0>", ["0"], "</0>"],
"SItQRc": ["¿Qué te parece OpenKnowledge?"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index cdbf40e78..c6572db40 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -3293,6 +3293,10 @@ msgstr "No se pudieron cargar los paquetes iniciales: {error}"
msgid "Couldn't load templates"
msgstr "No se pudieron cargar las plantillas"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "No se pudieron cargar las habilidades de OpenKnowledge. Inténtalo de nuevo."
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "No se pudo cargar la vista previa de la versión. Aun así puedes elegir abajo cómo resolverlo."
@@ -5202,6 +5206,10 @@ msgstr "Barra de herramientas de Archivos"
msgid "Filter languages"
msgstr "Filtrar idiomas"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "Filtrar habilidades"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "Cargando los encabezados de {pageTarget}"
msgid "Loading image"
msgstr "Cargando la imagen"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "Cargando las habilidades de OpenKnowledge"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "Cargando páginas"
@@ -6667,6 +6679,7 @@ msgstr "Cargando rutas…"
msgid "Loading PDF"
msgstr "Cargando el PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "Cargando las habilidades populares"
@@ -8217,6 +8230,10 @@ msgstr "Abriendo el worktree"
msgid "Opening..."
msgstr "Abriendo..."
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge revisó {subject}"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index 311e884ce..5036be3c9 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -182,6 +182,7 @@
"1njn7W": ["Clair"],
"1nke1r": ["Ouvrir ", ["0"], " sur GitHub (s'ouvre dans un nouvel onglet)"],
"1oSHI0": ["Impossible d'installer ", ["skillName"], " : ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Rejeter"],
"1u-mAI": [
"Impossible de démarrer la synchronisation. Vérifiez votre connexion, puis réessayez."
@@ -1733,6 +1734,7 @@
],
"LvdLef": ["Merci pour votre retour !"],
"LwMxXg": ["Échec de l'ouverture du worktree."],
+ "LzM_ga": ["Filtrer les compétences"],
"M-IF14": ["Référence du rapport"],
"M0jOcG": ["Voir dans la source markdown"],
"M1OfV9": ["Diagnostic de source suivant"],
@@ -2050,6 +2052,7 @@
"Installez-la dans vos autres éditeurs (Claude Code, Cursor, Codex) pour la partager."
],
"QDZbvN": ["il y a ", ["diffDays"], " j"],
+ "QGWzup": ["Chargement des compétences OpenKnowledge"],
"QHCx0c": ["Historique des rapports de bug"],
"QIrBIx": ["Développer tous les fichiers"],
"QKgePK": [["editor"], " aligné sur la source (ses octets sont sauvegardés)"],
@@ -2180,6 +2183,7 @@
"SCoBBH": ["Suggestions d'étiquettes"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["Partagez votre e-mail pour le suivi"],
+ "SFEWV6": ["Impossible de charger les compétences OpenKnowledge. Réessayez."],
"SFN6dN": ["Titre 3"],
"SInSnF": ["Référence <0>", ["0"], "</0>"],
"SItQRc": ["Que pensez-vous d'OpenKnowledge ?"],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index f4934c795..4ec3a9a95 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -3293,6 +3293,10 @@ msgstr "Impossible de charger les packs de démarrage : {error}"
msgid "Couldn't load templates"
msgstr "Impossible de charger les modèles"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "Impossible de charger les compétences OpenKnowledge. Réessayez."
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Impossible de charger l'aperçu de la version. Vous pouvez tout de même choisir ci-dessous comment résoudre le conflit."
@@ -5202,6 +5206,10 @@ msgstr "Barre d'outils Fichiers"
msgid "Filter languages"
msgstr "Filtrer les langages"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "Filtrer les compétences"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "Chargement des titres de {pageTarget}"
msgid "Loading image"
msgstr "Chargement de l'image"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "Chargement des compétences OpenKnowledge"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "Chargement des pages"
@@ -6667,6 +6679,7 @@ msgstr "Chargement des chemins…"
msgid "Loading PDF"
msgstr "Chargement du PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "Chargement des compétences populaires"
@@ -8217,6 +8230,10 @@ msgstr "Ouverture du worktree"
msgid "Opening..."
msgstr "Ouverture…"
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge a vérifié {subject}"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 3e3bc0640..90c0d4ec6 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -152,6 +152,7 @@
"1njn7W": ["हल्का"],
"1nke1r": [["0"], " को GitHub पर खोलें (नए टैब में खुलता है)"],
"1oSHI0": [["skillName"], " इंस्टॉल नहीं की जा सकी: ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["अस्वीकारें"],
"1u-mAI": ["सिंक शुरू नहीं किया जा सका। अपना कनेक्शन जाँचें, फिर कोशिश करें।"],
"1vn0CI": ["सर्वर की प्रतिक्रिया अमान्य है"],
@@ -1408,6 +1409,7 @@
],
"LvdLef": ["प्रतिक्रिया के लिए धन्यवाद!"],
"LwMxXg": ["वर्कट्री खोलने में विफल।"],
+ "LzM_ga": ["स्किल फ़िल्टर करें"],
"M-IF14": ["रिपोर्ट संदर्भ"],
"M0jOcG": ["स्रोत markdown में देखें"],
"M1OfV9": ["अगला स्रोत निदान"],
@@ -1693,6 +1695,7 @@
"QAi7Q9": ["ब्रांच <0>", ["trimmed"], "</0> का पहले से एक वर्कट्री है — यह अपनी अलग विंडो में खुलेगा।"],
"QB-moX": ["इसे साझा करने के लिए अपने बाकी संपादकों (Claude Code, Cursor, Codex) में इंस्टॉल करें।"],
"QDZbvN": [["diffDays"], " दिन पहले"],
+ "QGWzup": ["OpenKnowledge स्किल लोड हो रही हैं"],
"QHCx0c": ["बग रिपोर्ट इतिहास"],
"QIrBIx": ["सभी फ़ाइलें फैलाएँ"],
"QKgePK": [["editor"], " को स्रोत के अनुरूप किया गया (इसके बाइट का बैकअप ले लिया गया है)"],
@@ -1813,6 +1816,7 @@
"SCoBBH": ["टैग सुझाव"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["आगे संपर्क के लिए अपना ईमेल साझा करें"],
+ "SFEWV6": ["OpenKnowledge स्किल लोड नहीं हो सकीं। फिर कोशिश करें।"],
"SFN6dN": ["शीर्षक 3"],
"SInSnF": ["संदर्भ <0>", ["0"], "</0>"],
"SItQRc": ["आपको OpenKnowledge कैसा लगा?"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index e126b2dcd..02b772a6d 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -3289,6 +3289,10 @@ msgstr "स्टार्टर पैक लोड नहीं हो सक
msgid "Couldn't load templates"
msgstr "टेम्पलेट लोड नहीं हो सके"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "OpenKnowledge स्किल लोड नहीं हो सकीं। फिर कोशिश करें।"
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "संस्करण पूर्वावलोकन लोड नहीं हो सका। आप फिर भी नीचे तय कर सकते हैं कि इसे कैसे सुलझाना है।"
@@ -5198,6 +5202,10 @@ msgstr "Files टूलबार"
msgid "Filter languages"
msgstr "भाषाएँ फ़िल्टर करें"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "स्किल फ़िल्टर करें"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6651,6 +6659,10 @@ msgstr "{pageTarget} के शीर्षक लोड हो रहे है
msgid "Loading image"
msgstr "छवि लोड हो रही है"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "OpenKnowledge स्किल लोड हो रही हैं"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "पेज लोड हो रहे हैं"
@@ -6663,6 +6675,7 @@ msgstr "पथ लोड हो रहे हैं…"
msgid "Loading PDF"
msgstr "PDF लोड हो रही है"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "लोकप्रिय स्किल लोड हो रही हैं"
@@ -8213,6 +8226,10 @@ msgstr "वर्कट्री खोला जा रहा है"
msgid "Opening..."
msgstr "खोला जा रहा है…"
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge ने {subject} की जाँच की"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 917d0d725..c756165b4 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -152,6 +152,7 @@
"1njn7W": ["Terang"],
"1nke1r": ["Buka ", ["0"], " di GitHub (terbuka di tab baru)"],
"1oSHI0": [["skillName"], " tidak bisa dipasang: ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Tolak"],
"1u-mAI": ["Sinkronisasinya tidak bisa dimulai. Periksa koneksi Anda, lalu coba lagi."],
"1vn0CI": ["Respons server tidak valid"],
@@ -1465,6 +1466,7 @@
],
"LvdLef": ["Terima kasih atas masukannya!"],
"LwMxXg": ["Gagal membuka worktree."],
+ "LzM_ga": ["Saring keterampilan"],
"M-IF14": ["Referensi laporan"],
"M0jOcG": ["Lihat di markdown sumber"],
"M1OfV9": ["Diagnostik sumber berikutnya"],
@@ -1764,6 +1766,7 @@
"Pasang di penyunting Anda yang lain (Claude Code, Cursor, Codex) untuk membagikannya."
],
"QDZbvN": [["diffDays"], " hr lalu"],
+ "QGWzup": ["Memuat keterampilan OpenKnowledge"],
"QHCx0c": ["Riwayat laporan bug"],
"QIrBIx": ["Bentangkan semua berkas"],
"QKgePK": [["editor"], " diselaraskan dengan sumbernya (bitanya sudah dicadangkan)"],
@@ -1875,6 +1878,7 @@
"SCoBBH": ["Saran tag"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["Bagikan surel Anda untuk tindak lanjut"],
+ "SFEWV6": ["Keterampilan OpenKnowledge tidak dapat dimuat. Coba lagi."],
"SFN6dN": ["Judul 3"],
"SInSnF": ["Referensi <0>", ["0"], "</0>"],
"SItQRc": ["Bagaimana pendapat Anda tentang OpenKnowledge?"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index 3273cb7cb..9ae2bf5f2 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -3289,6 +3289,10 @@ msgstr "Paket awal tidak bisa dimuat: {error}"
msgid "Couldn't load templates"
msgstr "Templat tidak bisa dimuat"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "Keterampilan OpenKnowledge tidak dapat dimuat. Coba lagi."
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Pratinjau versinya tidak bisa dimuat. Anda tetap bisa memilih cara menyelesaikannya di bawah."
@@ -5198,6 +5202,10 @@ msgstr "Bilah alat Berkas"
msgid "Filter languages"
msgstr "Saring bahasa"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "Saring keterampilan"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6651,6 +6659,10 @@ msgstr "Memuat judul untuk {pageTarget}"
msgid "Loading image"
msgstr "Memuat gambar"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "Memuat keterampilan OpenKnowledge"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "Memuat halaman"
@@ -6663,6 +6675,7 @@ msgstr "Memuat jalur…"
msgid "Loading PDF"
msgstr "Memuat PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "Memuat keterampilan populer"
@@ -8213,6 +8226,10 @@ msgstr "Membuka worktree"
msgid "Opening..."
msgstr "Membuka..."
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge memeriksa {subject}"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index ed1437e12..87dd54df8 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -154,6 +154,7 @@
"1njn7W": ["Ĺĩĝĥţ"],
"1nke1r": ["Ōƥēń ", ["0"], " ōń ĜĩţĤũƀ (ōƥēńś ĩń à ńēŵ ţàƀ)"],
"1oSHI0": ["Ćōũĺďń'ţ ĩńśţàĺĺ ", ["skillName"], ": ", ["0"]],
+ "1ruosn": ["ŌƥēńĶńōŵĺēďĝē"],
"1t_NnN": ["ŔēĴēćţ"],
"1u-mAI": ["Ćōũĺďń'ţ śţàŕţ ţĥē śŷńć. Ćĥēćķ ŷōũŕ ćōńńēćţĩōń, ţĥēń ŕēţŕŷ."],
"1vn0CI": ["Ĩńvàĺĩď śēŕvēŕ ŕēśƥōńśē"],
@@ -1464,6 +1465,7 @@
],
"LvdLef": ["Ţĥàńķś ƒōŕ ţĥē ƒēēďƀàćķ!"],
"LwMxXg": ["Ƒàĩĺēď ţō ōƥēń ŵōŕķţŕēē."],
+ "LzM_ga": ["Ƒĩĺţēŕ śķĩĺĺś"],
"M-IF14": ["Ŕēƥōŕţ ŕēƒēŕēńćē"],
"M0jOcG": ["Vĩēŵ ĩń śōũŕćē ḿàŕķďōŵń"],
"M1OfV9": ["Ńēxţ śōũŕćē ďĩàĝńōśţĩć"],
@@ -1762,6 +1764,7 @@
],
"QB-moX": ["Ĩńśţàĺĺ ĩţ ţō ŷōũŕ ōţĥēŕ ēďĩţōŕś (Ćĺàũďē Ćōďē, Ćũŕśōŕ, Ćōďēx) ţō śĥàŕē ĩţ."],
"QDZbvN": [["diffDays"], "ď àĝō"],
+ "QGWzup": ["Ĺōàďĩńĝ ŌƥēńĶńōŵĺēďĝē śķĩĺĺś"],
"QHCx0c": ["ßũĝ ŕēƥōŕţ ĥĩśţōŕŷ"],
"QIrBIx": ["Ēxƥàńď àĺĺ ƒĩĺēś"],
"QKgePK": ["Àĺĩĝńēď ", ["editor"], " ţō ţĥē śōũŕćē (ĩţś ƀŷţēś àŕē ƀàćķēď ũƥ)"],
@@ -1881,6 +1884,7 @@
"SCoBBH": ["Ţàĝ śũĝĝēśţĩōńś"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["Śĥàŕē ŷōũŕ ēḿàĩĺ ƒōŕ ƒōĺĺōŵũƥś"],
+ "SFEWV6": ["Ćōũĺďń'ţ ĺōàď ţĥē ŌƥēńĶńōŵĺēďĝē śķĩĺĺś. Ţŕŷ àĝàĩń."],
"SFN6dN": ["Ĥēàďĩńĝ 3"],
"SInSnF": ["Ŕēƒēŕēńćē <0>", ["0"], "</0>"],
"SItQRc": ["Ĥōŵ ďō ŷōũ ĺĩķē ŌƥēńĶńōŵĺēďĝē?"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index 277d519f5..add36a35c 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -3289,6 +3289,10 @@ msgstr ""
msgid "Couldn't load templates"
msgstr ""
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr ""
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr ""
@@ -5198,6 +5202,10 @@ msgstr ""
msgid "Filter languages"
msgstr ""
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr ""
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6651,6 +6659,10 @@ msgstr ""
msgid "Loading image"
msgstr ""
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr ""
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr ""
@@ -6663,6 +6675,7 @@ msgstr ""
msgid "Loading PDF"
msgstr ""
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr ""
@@ -8213,6 +8226,10 @@ msgstr ""
msgid "Opening..."
msgstr ""
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr ""
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index c3ace12e2..ca42c55e1 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -170,6 +170,7 @@
"1njn7W": ["Claro"],
"1nke1r": ["Abrir ", ["0"], " no GitHub (abre em uma nova aba)"],
"1oSHI0": ["Não deu para instalar ", ["skillName"], ": ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["Rejeitar"],
"1u-mAI": ["Não deu para iniciar a sincronização. Verifique sua conexão e tente de novo."],
"1vn0CI": ["Resposta do servidor inválida"],
@@ -1685,6 +1686,7 @@
],
"LvdLef": ["Obrigado pelo retorno!"],
"LwMxXg": ["Falha ao abrir o worktree."],
+ "LzM_ga": ["Filtrar habilidades"],
"M-IF14": ["Referência do relatório"],
"M0jOcG": ["Ver no markdown de origem"],
"M1OfV9": ["Próximo diagnóstico do código"],
@@ -2000,6 +2002,7 @@
"Instale-a nos seus outros editores (Claude Code, Cursor, Codex) para compartilhá-la."
],
"QDZbvN": ["há ", ["diffDays"], " d"],
+ "QGWzup": ["Carregando as habilidades do OpenKnowledge"],
"QHCx0c": ["Histórico de relatórios de erro"],
"QIrBIx": ["Expandir todos os arquivos"],
"QKgePK": [["editor"], " alinhado ao código fonte (os bytes dele têm backup)"],
@@ -2124,6 +2127,7 @@
"SCoBBH": ["Sugestões de tags"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["Compartilhe seu e-mail para retorno"],
+ "SFEWV6": ["Não foi possível carregar as habilidades do OpenKnowledge. Tente de novo."],
"SFN6dN": ["Título 3"],
"SInSnF": ["Referência <0>", ["0"], "</0>"],
"SItQRc": ["O que você acha do OpenKnowledge?"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 36b86fd62..27031550e 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -3289,6 +3289,10 @@ msgstr "Não deu para carregar os pacotes iniciais: {error}"
msgid "Couldn't load templates"
msgstr "Não foi possível carregar os modelos"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "Não foi possível carregar as habilidades do OpenKnowledge. Tente de novo."
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Não foi possível carregar a pré-visualização da versão. Você ainda pode escolher abaixo como resolver."
@@ -5198,6 +5202,10 @@ msgstr "Barra de ferramentas de Arquivos"
msgid "Filter languages"
msgstr "Filtrar idiomas"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "Filtrar habilidades"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6651,6 +6659,10 @@ msgstr "Carregando os títulos de {pageTarget}"
msgid "Loading image"
msgstr "Carregando a imagem"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "Carregando as habilidades do OpenKnowledge"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "Carregando páginas"
@@ -6663,6 +6675,7 @@ msgstr "Carregando caminhos…"
msgid "Loading PDF"
msgstr "Carregando o PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "Carregando as habilidades populares"
@@ -8213,6 +8226,10 @@ msgstr "Abrindo o worktree"
msgid "Opening..."
msgstr "Abrindo..."
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge verificou {subject}"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 6dbcee64d..ab59228d6 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -154,6 +154,7 @@
"1njn7W": ["روشن"],
"1nke1r": [["0"], " کو GitHub پر کھولیں (نئے ٹیب میں کھلتا ہے)"],
"1oSHI0": [["skillName"], " نصب نہیں ہو سکی: ", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["مسترد کریں"],
"1u-mAI": ["مطابقت پذیری شروع نہیں ہو سکی۔ اپنا کنکشن دیکھیں، پھر دوبارہ کوشش کریں۔"],
"1vn0CI": ["سرور کا جواب غیر درست ہے"],
@@ -1493,6 +1494,7 @@
],
"LvdLef": ["رائے دینے کا شکریہ!"],
"LwMxXg": ["ورک ٹری نہیں کھل سکا۔"],
+ "LzM_ga": ["مہارتیں چھانیں"],
"M-IF14": ["رپورٹ کا حوالہ"],
"M0jOcG": ["سورس Markdown میں دیکھیں"],
"M1OfV9": ["اگلی سورس تشخیص"],
@@ -1796,6 +1798,7 @@
],
"QB-moX": ["اسے شیئر کرنے کے لیے اپنے دیگر ایڈیٹرز (Claude Code، Cursor، Codex) میں نصب کریں۔"],
"QDZbvN": [["diffDays"], " دن پہلے"],
+ "QGWzup": ["OpenKnowledge مہارتیں لوڈ ہو رہی ہیں"],
"QHCx0c": ["بگ رپورٹ کی تاریخ"],
"QIrBIx": ["سب فائلیں پھیلائیں"],
"QKgePK": [["editor"], " کو ماخذ سے ہم آہنگ کر دیا گیا (اس کے بائٹس کا بیک اپ محفوظ ہے)"],
@@ -1918,6 +1921,7 @@
"SCoBBH": ["ٹیگ کی تجاویز"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["رابطے کے لیے اپنا ای میل شیئر کریں"],
+ "SFEWV6": ["OpenKnowledge مہارتیں لوڈ نہیں ہو سکیں۔ دوبارہ کوشش کریں۔"],
"SFN6dN": ["عنوان 3"],
"SInSnF": ["حوالہ <0>", ["0"], "</0>"],
"SItQRc": ["OpenKnowledge آپ کو کیسا لگا؟"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 368fb71f1..4444f74b7 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -3293,6 +3293,10 @@ msgstr "ابتدائی پیکس لوڈ نہیں ہو سکے: {error}"
msgid "Couldn't load templates"
msgstr "ٹیمپلیٹس لوڈ نہیں ہو سکے"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "OpenKnowledge مہارتیں لوڈ نہیں ہو سکیں۔ دوبارہ کوشش کریں۔"
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "ورژن کا پیش منظر لوڈ نہیں ہو سکا۔ آپ اب بھی نیچے سے حل کا طریقہ منتخب کر سکتے ہیں۔"
@@ -5202,6 +5206,10 @@ msgstr "فائلوں کا ٹول بار"
msgid "Filter languages"
msgstr "زبانیں چھانیں"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "مہارتیں چھانیں"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "{pageTarget} کے عنوانات لوڈ ہو رہے ہیں"
msgid "Loading image"
msgstr "تصویر لوڈ ہو رہی ہے"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "OpenKnowledge مہارتیں لوڈ ہو رہی ہیں"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "صفحات لوڈ ہو رہے ہیں"
@@ -6667,6 +6679,7 @@ msgstr "راستے لوڈ ہو رہے ہیں…"
msgid "Loading PDF"
msgstr "PDF لوڈ ہو رہی ہے"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "مقبول مہارتیں لوڈ ہو رہی ہیں"
@@ -8217,6 +8230,10 @@ msgstr "ورک ٹری کھولا جا رہا ہے"
msgid "Opening..."
msgstr "کھولا جا رہا ہے..."
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge نے {subject} کی جانچ کی"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index 9a5317976..5b3f4dfb6 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -141,6 +141,7 @@
"1njn7W": ["浅色"],
"1nke1r": ["在 GitHub 上打开 ", ["0"], "(在新标签页中打开)"],
"1oSHI0": ["无法安装 ", ["skillName"], ":", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["拒绝"],
"1u-mAI": ["无法开始同步。请检查你的网络连接,然后重试。"],
"1vn0CI": ["服务器响应无效"],
@@ -1273,6 +1274,7 @@
],
"LvdLef": ["感谢你的反馈!"],
"LwMxXg": ["打开 worktree 失败。"],
+ "LzM_ga": ["筛选技能"],
"M-IF14": ["报告编号"],
"M0jOcG": ["在 markdown 源码中查看"],
"M1OfV9": ["下一条源码诊断"],
@@ -1541,6 +1543,7 @@
"QAi7Q9": ["分支 <0>", ["trimmed"], "</0> 已有一个 worktree——它会在自己的窗口中打开。"],
"QB-moX": ["把它安装到你的其他编辑器(Claude Code、Cursor、Codex)中即可共享。"],
"QDZbvN": [["diffDays"], " 天前"],
+ "QGWzup": ["正在加载 OpenKnowledge 技能"],
"QHCx0c": ["错误报告历史"],
"QIrBIx": ["展开全部文件"],
"QKgePK": ["已将 ", ["editor"], " 对齐到源码(其字节已备份)"],
@@ -1647,6 +1650,7 @@
"SCoBBH": ["标签建议"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["留下你的邮箱以便我们跟进"],
+ "SFEWV6": ["无法加载 OpenKnowledge 技能。请重试。"],
"SFN6dN": ["三级标题"],
"SInSnF": ["参考 <0>", ["0"], "</0>"],
"SItQRc": ["你觉得 OpenKnowledge 怎么样?"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 49a64f92a..3296bfbc0 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -3293,6 +3293,10 @@ msgstr "无法加载入门包:{error}"
msgid "Couldn't load templates"
msgstr "无法加载模板"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "无法加载 OpenKnowledge 技能。请重试。"
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "无法加载该版本的预览。你仍然可以在下方选择如何解决。"
@@ -5202,6 +5206,10 @@ msgstr "「文件」工具栏"
msgid "Filter languages"
msgstr "筛选语言"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "筛选技能"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "正在加载 {pageTarget} 的标题"
msgid "Loading image"
msgstr "正在加载图片"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "正在加载 OpenKnowledge 技能"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "正在加载页面"
@@ -6667,6 +6679,7 @@ msgstr "正在加载路径…"
msgid "Loading PDF"
msgstr "正在加载 PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "正在加载热门技能"
@@ -8217,6 +8230,10 @@ msgstr "正在打开 worktree"
msgid "Opening..."
msgstr "正在打开…"
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge 检查了 {subject}"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 948e0c351..6e414ca49 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -141,6 +141,7 @@
"1njn7W": ["淺色"],
"1nke1r": ["在 GitHub 上開啟 ", ["0"], "(在新分頁中開啟)"],
"1oSHI0": ["無法安裝 ", ["skillName"], ":", ["0"]],
+ "1ruosn": ["OpenKnowledge"],
"1t_NnN": ["拒絕"],
"1u-mAI": ["無法開始同步。請檢查你的網路連線,然後再試一次。"],
"1vn0CI": ["伺服器回應無效"],
@@ -1293,6 +1294,7 @@
],
"LvdLef": ["謝謝你的意見回饋!"],
"LwMxXg": ["開啟 worktree 失敗。"],
+ "LzM_ga": ["篩選技能"],
"M-IF14": ["回報編號"],
"M0jOcG": ["在 markdown 原始碼中檢視"],
"M1OfV9": ["下一則原始碼診斷"],
@@ -1561,6 +1563,7 @@
"QAi7Q9": ["分支 <0>", ["trimmed"], "</0> 已經有一個 worktree——它會在自己的視窗中開啟。"],
"QB-moX": ["把它安裝到你的其他編輯器(Claude Code、Cursor、Codex)就能分享。"],
"QDZbvN": [["diffDays"], " 天前"],
+ "QGWzup": ["正在載入 OpenKnowledge 技能"],
"QHCx0c": ["錯誤回報記錄"],
"QIrBIx": ["展開全部檔案"],
"QKgePK": ["已把 ", ["editor"], " 對齊到原始碼(它的位元組已備份)"],
@@ -1667,6 +1670,7 @@
"SCoBBH": ["標籤建議"],
"SCzAbA": [["phase"], " — ", ["pct"], "%"],
"SF9qpO": ["留下你的電子郵件以便我們跟進"],
+ "SFEWV6": ["無法載入 OpenKnowledge 技能。請再試一次。"],
"SFN6dN": ["標題 3"],
"SInSnF": ["參考 <0>", ["0"], "</0>"],
"SItQRc": ["你覺得 OpenKnowledge 如何?"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index f7f672121..72eed422e 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -3293,6 +3293,10 @@ msgstr "無法載入入門套件:{error}"
msgid "Couldn't load templates"
msgstr "無法載入範本"
+#: src/components/ExploreSkills.tsx
+msgid "Couldn't load the OpenKnowledge skills. Try again."
+msgstr "無法載入 OpenKnowledge 技能。請再試一次。"
+
#: src/components/SkillForkDialog.tsx
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "無法載入這個版本的預覽。你仍然可以在下方選擇要怎麼解決。"
@@ -5202,6 +5206,10 @@ msgstr "「檔案」工具列"
msgid "Filter languages"
msgstr "篩選語言"
+#: src/components/ExploreSkills.tsx
+msgid "Filter skills"
+msgstr "篩選技能"
+
#: src/components/ProseFindBar.tsx
#: src/editor/find-replace/FindReplaceBar.tsx
#: src/lib/keyboard-shortcuts.ts
@@ -6655,6 +6663,10 @@ msgstr "正在載入 {pageTarget} 的標題"
msgid "Loading image"
msgstr "正在載入圖片"
+#: src/components/ExploreSkills.tsx
+msgid "Loading OpenKnowledge skills"
+msgstr "正在載入 OpenKnowledge 技能"
+
#: src/editor/wiki-link-suggestion/WikiLinkSuggestionMenu.tsx
msgid "Loading pages"
msgstr "正在載入頁面"
@@ -6667,6 +6679,7 @@ msgstr "正在載入路徑…"
msgid "Loading PDF"
msgstr "正在載入 PDF"
+#: src/components/ExploreSkills.tsx
#: src/components/SkillsBasePage.tsx
msgid "Loading popular skills"
msgstr "正在載入熱門技能"
@@ -8217,6 +8230,10 @@ msgstr "正在開啟 worktree"
msgid "Opening..."
msgstr "正在開啟…"
+#: src/components/ExploreSkills.tsx
+msgid "OpenKnowledge"
+msgstr "OpenKnowledge"
+
#: src/lib/acp/tool-call-display.ts
msgid "OpenKnowledge checked {subject}"
msgstr "OpenKnowledge 檢查了 {subject}"
diff --git a/packages/app/tests/integration/attribution-sweep-coverage.test.ts b/packages/app/tests/integration/attribution-sweep-coverage.test.ts
index d412a5edc..ef257aae7 100644
--- a/packages/app/tests/integration/attribution-sweep-coverage.test.ts
+++ b/packages/app/tests/integration/attribution-sweep-coverage.test.ts
@@ -245,6 +245,10 @@ const EXEMPT_HANDLERS = new Set([
// `/api/skills/popular` — read-only Discover blank-state list, scraped from the
// skills.sh front page + cached. Writes nothing to attribute.
'handleSkillsPopular',
+ // `/api/skills/publisher` — read-only per-publisher listing, scraped from that
+ // publisher's skills.sh page + cached, so a caller can rank a list it already
+ // has by install count. Writes nothing to attribute.
+ 'handleSkillsPublisher',
// `/api/skills/preview` — fetches an un-imported skill's SKILL.md text (via a
// throwaway shallow clone) so the Explore modal can render it before import.
// Read-only; writes nothing to attribute.
diff --git a/packages/app/tests/integration/conflict-gate-coverage.test.ts b/packages/app/tests/integration/conflict-gate-coverage.test.ts
index a724eacc5..31ed3bf1d 100644
--- a/packages/app/tests/integration/conflict-gate-coverage.test.ts
+++ b/packages/app/tests/integration/conflict-gate-coverage.test.ts
@@ -269,6 +269,7 @@ const EXEMPT_HANDLERS = new Set([
'handleSkillsPreview',
'handleSkillsResolveRef',
'handleSkillsPopular',
+ 'handleSkillsPublisher',
'handleSkillImport',
'handleSkillsImportBulk',
// `/api/skill/edit-external` — arms the external-skill registry only; authors
diff --git a/packages/core/src/constants/skills.ts b/packages/core/src/constants/skills.ts
index 6331f5586..466179d08 100644
--- a/packages/core/src/constants/skills.ts
+++ b/packages/core/src/constants/skills.ts
@@ -124,6 +124,19 @@ export const RENAMED_PACK_SKILLS: Readonly<Record<string, string>> = {
*/
export const OPENKNOWLEDGE_SKILLS_REPO = 'inkeep/open-knowledge-skills';
+/**
+ * Is this discovery row one of OUR listings under the retired pack-skill names?
+ * The 2026-07 rename left the old `open-knowledge-pack-*` listings live on
+ * skills.sh beside their renamed twins, so an unfiltered directory shows both
+ * and the stale one installs a bundle we no longer publish. Discovery hides
+ * them; {@link RENAMED_PACK_SKILLS} still resolves them for anyone who already
+ * installed one. Scoped to our own repo — a third party's `open-knowledge-pack-`
+ * skill is theirs to list.
+ */
+export function isRetiredPackListing(name: string, source: string): boolean {
+ return name.startsWith(PACK_SKILL_PREFIX) && isOpenKnowledgeSkillsSource(source);
+}
+
/**
* Standalone `/skill-name` reference token in skill-doc prose — the cross-agent
* invocation convention ("Load /structured-thinking"). Requires a word boundary
diff --git a/packages/core/src/skills-catalog/index.ts b/packages/core/src/skills-catalog/index.ts
index f0e3b6cce..ae45e69d8 100644
--- a/packages/core/src/skills-catalog/index.ts
+++ b/packages/core/src/skills-catalog/index.ts
@@ -91,6 +91,7 @@ export type {
PluginProviderId,
PluginSourceInspection,
} from './plugin-providers/types.ts';
+export { parseSkillsShPublisherPage } from './publisher.ts';
export { parseGitHubRepoSearch, parseOpenGraph, parseSkillsShSearch } from './search.ts';
export {
buildSkillRegistry,
diff --git a/packages/core/src/skills-catalog/leaderboard.test.ts b/packages/core/src/skills-catalog/leaderboard.test.ts
index aca1fcb01..fc42587a0 100644
--- a/packages/core/src/skills-catalog/leaderboard.test.ts
+++ b/packages/core/src/skills-catalog/leaderboard.test.ts
@@ -36,6 +36,13 @@ describe('parseSkillsShLeaderboard', () => {
}
});
+ test('drops our retired pack-prefixed listings', () => {
+ const flight =
+ '{"skillId":"open-knowledge-pack-knowledge-base","source":"inkeep/open-knowledge-skills","installs":900}' +
+ '{"skillId":"knowledge-base","source":"inkeep/open-knowledge-skills","installs":21}';
+ expect(parseSkillsShLeaderboard(flight).map((r) => r.name)).toEqual(['knowledge-base']);
+ });
+
test('parses the HTML-wrapped form (self.__next_f.push chunks)', () => {
const inner = '{"skillId":"a","source":"o/r","installs":9}';
const html = `<script>self.__next_f.push([1,${JSON.stringify(inner)}])</script>`;
diff --git a/packages/core/src/skills-catalog/leaderboard.ts b/packages/core/src/skills-catalog/leaderboard.ts
index 32cbe7a0d..c40f19159 100644
--- a/packages/core/src/skills-catalog/leaderboard.ts
+++ b/packages/core/src/skills-catalog/leaderboard.ts
@@ -14,6 +14,7 @@
* contract, and imposing the sort makes a reorder a non-event instead of a break.
*/
+import { isRetiredPackListing } from '../constants/skills.ts';
import type { SkillSearchResult } from './schema.ts';
import { ownerOf } from './source-fields.ts';
@@ -177,7 +178,7 @@ export function parseSkillsShLeaderboard(body: string): SkillSearchResult[] {
const byId = new Map<string, SkillSearchResult>();
for (const c of parseSkillsShLeaderboardCards(body)) {
const id = `${c.source}/${c.skillId}`;
- if (byId.has(id)) continue;
+ if (byId.has(id) || isRetiredPackListing(c.skillId, c.source)) continue;
byId.set(id, {
id,
name: c.skillId,
diff --git a/packages/core/src/skills-catalog/publisher.test.ts b/packages/core/src/skills-catalog/publisher.test.ts
new file mode 100644
index 000000000..16df96f5a
--- /dev/null
+++ b/packages/core/src/skills-catalog/publisher.test.ts
@@ -0,0 +1,77 @@
+import { describe, expect, test } from 'vitest';
+import { parseSkillsShPublisherPage } from './publisher.ts';
+
+const OURS = 'inkeep/open-knowledge-skills';
+
+/** Two listing rows in the page's real shape: anchor href, heading, count span. */
+function row(owner: string, skill: string, installs: string): string {
+ return (
+ `<a class="group grid" href="/${owner}/${skill}">` +
+ `<div class="min-w-0"><h3 class="font-semibold truncate">${skill.split('/').pop()}</h3></div>` +
+ `<div class="text-right"><span class="font-mono text-sm text-foreground">${installs}</span></div>` +
+ `</a>`
+ );
+}
+
+describe('parseSkillsShPublisherPage', () => {
+ test('ranks a publisher’s skills by installs, most first', () => {
+ const html =
+ row(OURS, 'knowledge-base', '21') +
+ row(OURS, 'open-knowledge-discovery', '478') +
+ row(OURS, 'note-taking', '3');
+
+ const ranked = parseSkillsShPublisherPage(html, OURS);
+ expect(ranked.map((r) => r.name)).toEqual([
+ 'open-knowledge-discovery',
+ 'knowledge-base',
+ 'note-taking',
+ ]);
+ expect(ranked[0]).toMatchObject({
+ id: `${OURS}/open-knowledge-discovery`,
+ source: OURS,
+ installs: 478,
+ publisher: 'inkeep',
+ description: '',
+ });
+ });
+
+ test('ignores rows belonging to another publisher', () => {
+ // A "related skills" module or footer link must not smuggle a foreign skill
+ // into a list the caller presents as one publisher's.
+ const html = row(OURS, 'knowledge-base', '21') + row('acme/repo', 'their-skill', '999');
+ expect(parseSkillsShPublisherPage(html, OURS).map((r) => r.name)).toEqual(['knowledge-base']);
+ });
+
+ test('drops our retired pack-prefixed listings', () => {
+ const html =
+ row(OURS, 'open-knowledge-pack-knowledge-base', '18') + row(OURS, 'knowledge-base', '21');
+ expect(parseSkillsShPublisherPage(html, OURS).map((r) => r.name)).toEqual(['knowledge-base']);
+ });
+
+ test('reads a thousands-separated count', () => {
+ expect(parseSkillsShPublisherPage(row(OURS, 'popular', '2,481'), OURS)[0]?.installs).toBe(2481);
+ });
+
+ test('a row with no count is skipped rather than borrowing the next row’s', () => {
+ // The failure this guards: a permissive gap match let a countless row take
+ // the following row's number, so every later skill reported its neighbor's
+ // installs — plausible-looking and undetectable downstream.
+ const html =
+ `<a class="group grid" href="/${OURS}/countless"><h3>countless</h3></a>` +
+ row(OURS, 'real', '42');
+ expect(parseSkillsShPublisherPage(html, OURS)).toEqual([
+ {
+ id: `${OURS}/real`,
+ name: 'real',
+ source: OURS,
+ description: '',
+ installs: 42,
+ publisher: 'inkeep',
+ },
+ ]);
+ });
+
+ test('returns [] on an unparseable page (caller degrades to an unranked list)', () => {
+ expect(parseSkillsShPublisherPage('<html>no listing here</html>', OURS)).toEqual([]);
+ });
+});
diff --git a/packages/core/src/skills-catalog/publisher.ts b/packages/core/src/skills-catalog/publisher.ts
new file mode 100644
index 000000000..4bacf0b53
--- /dev/null
+++ b/packages/core/src/skills-catalog/publisher.ts
@@ -0,0 +1,67 @@
+/**
+ * Parser for a skills.sh publisher page (`skills.sh/<owner>/<repo>`) — every
+ * skill one publisher lists, with its install count.
+ *
+ * Exists because neither discovery source answers "what has this publisher
+ * published, and how popular is each": `/api/search` is fuzzy and returns other
+ * publishers' skills interleaved while missing some of the named one's, and a
+ * repository enumeration knows nothing about installs. The publisher page is
+ * the only complete listing, and unlike the front page it carries no RSC card
+ * payload — the counts exist solely in rendered markup, so this reads the
+ * markup.
+ *
+ * Pure (no fetch) so it's unit-testable against a saved fixture. Defensive like
+ * the sibling `parseSkillsShLeaderboard`: a row that doesn't yield both a skill
+ * id and an integer count is skipped rather than throwing, and a wholesale
+ * format change parses to `[]` for the caller to degrade on.
+ */
+
+import { isRetiredPackListing } from '../constants/skills.ts';
+import type { SkillSearchResult } from './schema.ts';
+import { ownerOf } from './source-fields.ts';
+
+/**
+ * One listing row. Anchored on the row's own href (`/<owner>/<repo>/<skill>`)
+ * rather than on the heading text, because the href is the identifier the rest
+ * of the catalog keys on and it survives a heading restyle. `[^>]*?` between the
+ * two captures keeps the match inside a single anchor: `[\s\S]*?` would let a
+ * row with no count borrow the next row's number.
+ */
+const ROW = /href="\/([^"/]+)\/([^"/]+)\/([^"/?#]+)"([\s\S]*?)<\/a>/g;
+/** The install count inside a row: the first bare integer in a `font-mono` span. */
+const COUNT = /<span[^>]*font-mono[^>]*>\s*([\d,]+)\s*<\/span>/;
+
+/**
+ * Parse a publisher page into `SkillSearchResult`s ordered by install count
+ * (most first) — the same shape the search and leaderboard parsers return, so
+ * one card renders all three.
+ *
+ * `source` is the publisher being read (`owner/repo`); rows pointing at any
+ * other publisher are ignored, so a "related skills" module or a footer link
+ * can't smuggle a foreign skill into the list. Descriptions come back empty:
+ * the page doesn't carry them, and inventing one would be worse than the blank
+ * the card already handles.
+ */
+export function parseSkillsShPublisherPage(html: string, source: string): SkillSearchResult[] {
+ const byId = new Map<string, SkillSearchResult>();
+ ROW.lastIndex = 0;
+ for (let m = ROW.exec(html); m !== null; m = ROW.exec(html)) {
+ const [, owner, repo, skillId, rest] = m;
+ if (!owner || !repo || !skillId || !rest) continue;
+ if (`${owner}/${repo}` !== source) continue;
+ if (isRetiredPackListing(skillId, source)) continue;
+ const installs = Number.parseInt(COUNT.exec(rest)?.[1]?.replaceAll(',', '') ?? '', 10);
+ if (!Number.isInteger(installs) || installs < 0) continue;
+ const id = `${source}/${skillId}`;
+ if (byId.has(id)) continue;
+ byId.set(id, {
+ id,
+ name: skillId,
+ source,
+ description: '',
+ installs,
+ publisher: ownerOf(source),
+ });
+ }
+ return [...byId.values()].sort((a, b) => (b.installs ?? -1) - (a.installs ?? -1));
+}
diff --git a/packages/core/src/skills-catalog/search.test.ts b/packages/core/src/skills-catalog/search.test.ts
index b3681b1b2..1373f1ac8 100644
--- a/packages/core/src/skills-catalog/search.test.ts
+++ b/packages/core/src/skills-catalog/search.test.ts
@@ -36,6 +36,32 @@ describe('parseSkillsShSearch', () => {
).toBeNull();
});
+ test('drops our retired pack-prefixed listings, keeps a third party’s', () => {
+ const r = parseSkillsShSearch({
+ skills: [
+ {
+ id: 'inkeep/open-knowledge-skills/open-knowledge-pack-knowledge-base',
+ name: 'open-knowledge-pack-knowledge-base',
+ source: 'inkeep/open-knowledge-skills',
+ installs: 18,
+ },
+ {
+ id: 'inkeep/open-knowledge-skills/knowledge-base',
+ name: 'knowledge-base',
+ source: 'inkeep/open-knowledge-skills',
+ installs: 21,
+ },
+ {
+ id: 'acme/repo/open-knowledge-pack-theirs',
+ name: 'open-knowledge-pack-theirs',
+ source: 'acme/repo',
+ installs: 3,
+ },
+ ],
+ });
+ expect(r.map((x) => x.name)).toEqual(['knowledge-base', 'open-knowledge-pack-theirs']);
+ });
+
test('defaults installs to null and derives name from the id when absent', () => {
const r = parseSkillsShSearch({ skills: [{ source: 'a/b' }] });
expect(r[0].installs).toBeNull();
diff --git a/packages/core/src/skills-catalog/search.ts b/packages/core/src/skills-catalog/search.ts
index b6c802917..814788757 100644
--- a/packages/core/src/skills-catalog/search.ts
+++ b/packages/core/src/skills-catalog/search.ts
@@ -7,6 +7,7 @@
* makes the normalization unit-testable without a network round-trip.
*/
+import { isRetiredPackListing } from '../constants/skills.ts';
import type { SkillSearchResult } from './schema.ts';
import { ownerOf, slug } from './source-fields.ts';
@@ -22,9 +23,11 @@ export function parseSkillsShSearch(json: unknown): SkillSearchResult[] {
const id = typeof r.id === 'string' && r.id ? r.id : source;
// A row without both a usable id and source cannot be represented in the catalog.
if (!id || !source) continue;
+ const name = typeof r.name === 'string' && r.name ? r.name : slug(id);
+ if (isRetiredPackListing(name, source)) continue;
out.push({
id,
- name: typeof r.name === 'string' && r.name ? r.name : slug(id),
+ name,
source,
description: typeof r.description === 'string' ? r.description : '',
installs:
diff --git a/packages/server/src/api-extension.ts b/packages/server/src/api-extension.ts
index be14e04d8..e7f8d02a3 100644
--- a/packages/server/src/api-extension.ts
+++ b/packages/server/src/api-extension.ts
@@ -21267,6 +21267,7 @@ export function createApiExtension(
const {
handleSkillsSearch,
handleSkillsPopular,
+ handleSkillsPublisher,
handleSkillsDetail,
handleSkillsPreview,
handleSkillsDiscover,
@@ -21293,6 +21294,7 @@ export function createApiExtension(
'/api/skills/installed': handleSkillsInstalled,
'/api/skills/search': handleSkillsSearch,
'/api/skills/popular': handleSkillsPopular,
+ '/api/skills/publisher': handleSkillsPublisher,
'/api/skills/detail': handleSkillsDetail,
'/api/skills/preview': handleSkillsPreview,
'/api/skills/discover': handleSkillsDiscover,
diff --git a/packages/server/src/skills-leaderboard.test.ts b/packages/server/src/skills-leaderboard.test.ts
index 3f1de9f31..2c73f4949 100644
--- a/packages/server/src/skills-leaderboard.test.ts
+++ b/packages/server/src/skills-leaderboard.test.ts
@@ -1,5 +1,10 @@
import { afterEach, describe, expect, test } from 'vitest';
-import { __resetPopularSkillsCache, getPopularSkills } from './skills-leaderboard.ts';
+import {
+ __resetPopularSkillsCache,
+ __resetPublisherSkillsCache,
+ getPopularSkills,
+ getPublisherSkills,
+} from './skills-leaderboard.ts';
// Build a minimal raw Flight payload from (source, skillId, installs) triples, in
// the field order the real skills.sh payload uses.
@@ -67,3 +72,57 @@ describe('getPopularSkills', () => {
expect(await getPopularSkills(2, { fetchImpl: fixtureFetch(body) })).toHaveLength(2);
});
});
+
+// One publisher-page listing row, in the markup shape the real page emits.
+const listing = (source: string, skillId: string, installs: number): string =>
+ `<a class="group grid" href="/${source}/${skillId}">` +
+ `<h3 class="font-semibold">${skillId}</h3>` +
+ `<span class="font-mono text-sm">${installs}</span></a>`;
+
+describe('getPublisherSkills', () => {
+ afterEach(__resetPublisherSkillsCache);
+
+ test('install-sorts one publisher’s listing', async () => {
+ const body = listing('a/b', 'x', 10) + listing('a/b', 'y', 99);
+ const rows = await getPublisherSkills('a/b', { fetchImpl: fixtureFetch(body) });
+ expect(rows.map((r) => r.id)).toEqual(['a/b/y', 'a/b/x']);
+ expect(rows[0]).toMatchObject({ name: 'y', source: 'a/b', installs: 99, publisher: 'a' });
+ });
+
+ test('best-effort: [] on a non-OK response, so the caller keeps its unranked list', async () => {
+ expect(await getPublisherSkills('a/b', { fetchImpl: fixtureFetch('x', 500) })).toEqual([]);
+ });
+
+ test('best-effort: [] on an unparseable page', async () => {
+ expect(
+ await getPublisherSkills('a/b', { fetchImpl: fixtureFetch('<html>no rows</html>') }),
+ ).toEqual([]);
+ });
+
+ test('caches per publisher within the TTL', async () => {
+ let calls = 0;
+ const counting = (async () => {
+ calls++;
+ return new Response(listing('a/b', 'x', 1), { status: 200 });
+ }) as unknown as typeof fetch;
+ await getPublisherSkills('a/b', { fetchImpl: counting, now: 1000 });
+ await getPublisherSkills('a/b', { fetchImpl: counting, now: 1000 + 60_000 }); // < TTL
+ expect(calls).toBe(1);
+ // A DIFFERENT publisher is a different cache entry, not a hit on the first.
+ await getPublisherSkills('c/d', { fetchImpl: counting, now: 1000 + 60_000 });
+ expect(calls).toBe(2);
+ });
+
+ test('a stale entry answers a failed refetch rather than emptying the list', async () => {
+ let calls = 0;
+ const flaky = (async () => {
+ calls++;
+ return calls === 1
+ ? new Response(listing('a/b', 'x', 7), { status: 200 })
+ : new Response('boom', { status: 503 });
+ }) as unknown as typeof fetch;
+ await getPublisherSkills('a/b', { fetchImpl: flaky, now: 1000 });
+ const afterTtl = await getPublisherSkills('a/b', { fetchImpl: flaky, now: 1000 + 11 * 60_000 });
+ expect(afterTtl.map((r) => r.name)).toEqual(['x']);
+ });
+});
diff --git a/packages/server/src/skills-leaderboard.ts b/packages/server/src/skills-leaderboard.ts
index 767d4d7c9..fca19e6fe 100644
--- a/packages/server/src/skills-leaderboard.ts
+++ b/packages/server/src/skills-leaderboard.ts
@@ -15,7 +15,10 @@
*/
import type { SkillSearchResult } from '@inkeep/open-knowledge-core';
-import { parseSkillsShLeaderboard } from '@inkeep/open-knowledge-core/skills-catalog';
+import {
+ parseSkillsShLeaderboard,
+ parseSkillsShPublisherPage,
+} from '@inkeep/open-knowledge-core/skills-catalog';
import { getLogger } from './logger.ts';
const log = getLogger('skills-leaderboard');
@@ -47,6 +50,11 @@ export async function getPopularSkills(
const res = await doFetch(FRONT_PAGE, {
headers: { 'user-agent': 'open-knowledge (+skills discovery)', RSC: '1' },
signal: AbortSignal.timeout(8000),
+ // Don't follow redirects: the host was decided here, and following would
+ // let the response come from somewhere this code never vetted. A 3xx is
+ // not `ok`, so it degrades like any other bad response. Same posture as
+ // `fetchWithinOrigin` in the website-skill fetcher.
+ redirect: 'manual',
});
if (!res.ok) throw new Error(`HTTP ${res.status} ${res.statusText}`);
const data = parseSkillsShLeaderboard(await res.text());
@@ -65,3 +73,49 @@ export async function getPopularSkills(
export function __resetPopularSkillsCache(): void {
cache = null;
}
+
+/**
+ * Every skill one publisher lists on skills.sh, most-installed first.
+ *
+ * Same posture as {@link getPopularSkills} — one warm fetch per publisher shared
+ * across clients, short TTL, and a failure returns the last good list (else
+ * `[]`) rather than throwing, because a caller that can't rank still has a list
+ * to show from its other source.
+ *
+ * Keyed per source: the map is bounded by the handful of publishers a build
+ * actually asks for (today, ours), not by user input.
+ */
+const publisherCache = new Map<string, { at: number; data: SkillSearchResult[] }>();
+
+export async function getPublisherSkills(
+ source: string,
+ opts: { now?: number; fetchImpl?: typeof fetch } = {},
+): Promise<SkillSearchResult[]> {
+ const now = opts.now ?? Date.now();
+ const doFetch = opts.fetchImpl ?? fetch;
+ const hit = publisherCache.get(source);
+ if (hit && now - hit.at < TTL_MS) return hit.data;
+ try {
+ // No RSC header here: the publisher page keeps its install counts in
+ // rendered markup, so the Flight stream the front page is read through
+ // would come back without the numbers this exists to get.
+ const res = await doFetch(`https://www.skills.sh/${source}`, {
+ headers: { 'user-agent': 'open-knowledge (+skills discovery)' },
+ signal: AbortSignal.timeout(8000),
+ redirect: 'manual',
+ });
+ if (!res.ok) throw new Error(`HTTP ${res.status} ${res.statusText}`);
+ const data = parseSkillsShPublisherPage(await res.text(), source);
+ if (data.length === 0) throw new Error('parsed 0 skills (page format may have changed)');
+ publisherCache.set(source, { at: now, data });
+ return data;
+ } catch (err) {
+ log.warn({ err, source }, 'skills.sh publisher page fetch failed — install counts unavailable');
+ return hit?.data ?? [];
+ }
+}
+
+/** Test seam: reset the per-publisher cache between cases. */
+export function __resetPublisherSkillsCache(): void {
+ publisherCache.clear();
+}
diff --git a/packages/server/src/skills-sh-handlers.ts b/packages/server/src/skills-sh-handlers.ts
index 8a0a2873a..8702777b8 100644
--- a/packages/server/src/skills-sh-handlers.ts
+++ b/packages/server/src/skills-sh-handlers.ts
@@ -48,7 +48,7 @@ import { successResponse } from './http/success-response.ts';
import { isAllowedGitUrl } from './local-op-security.ts';
import type { PinoLogger } from './logger.ts';
import { rejectDisallowedGitSpec } from './skill-git-spec-guard.ts';
-import { getPopularSkills } from './skills-leaderboard.ts';
+import { getPopularSkills, getPublisherSkills } from './skills-leaderboard.ts';
import { readSkillsLockFile } from './skills-lock-store.ts';
export interface SkillsShHandlerDeps {
@@ -66,6 +66,7 @@ export interface SkillsShHandlerDeps {
export type SkillsShHandlers = Record<
| 'handleSkillsSearch'
| 'handleSkillsPopular'
+ | 'handleSkillsPublisher'
| 'handleSkillsDetail'
| 'handleSkillsPreview'
| 'handleSkillsDiscover'
@@ -198,6 +199,54 @@ export function createSkillsShHandlers(deps: SkillsShHandlerDeps): SkillsShHandl
{ handler: 'skills-popular', method: 'GET', skipBodyParse: true },
);
+ // `GET /api/skills/publisher?source=<owner/repo>` — every skill one publisher
+ // lists, most-installed first. The only complete + ranked view of a single
+ // publisher: `/api/skills/search` is fuzzy (interleaves other publishers and
+ // misses some of the named one's skills) and `/api/skills/discover` reads the
+ // repository, which knows nothing about installs. Scraped + cached like the
+ // leaderboard, and best-effort for the same reason — a caller merges these
+ // counts into a list it already has, so an empty result costs ranking, not
+ // the list.
+ const handleSkillsPublisher = withValidation(
+ EmptyRequestSchema,
+ async (req, res) => {
+ const url = new URL(req.url ?? '', 'http://localhost');
+ const source = url.searchParams.get('source')?.trim() ?? '';
+ // `owner/repo` only. The value lands in a skills.sh URL path, so anything
+ // else — a git URL, a local path, a traversal — is refused rather than
+ // fetched, the same shape gate the install reporter applies.
+ if (!/^[\w.-]+\/[\w.-]+$/.test(source) || source.includes('..')) {
+ errorResponse(res, 400, 'urn:ok:error:invalid-request', 'source must be owner/repo.', {
+ handler: 'skills-publisher',
+ });
+ return;
+ }
+ // `getPublisherSkills` is best-effort (swallows fetch/parse failures and
+ // returns []), so this catch is defensive rather than live — same as the
+ // sibling `handleSkillsPopular`. It keeps the handler correct if the
+ // helper's contract ever changes to throw.
+ try {
+ const results = await getPublisherSkills(source);
+ successResponse(
+ res,
+ 200,
+ SkillsSearchSuccessSchema,
+ { results, backend: 'skills.sh', degraded: results.length === 0 },
+ { handler: 'skills-publisher' },
+ );
+ } catch (e) {
+ errorResponse(
+ res,
+ 502,
+ 'urn:ok:error:internal-server-error',
+ 'Publisher skills are temporarily unavailable.',
+ { handler: 'skills-publisher', cause: e },
+ );
+ }
+ },
+ { handler: 'skills-publisher', method: 'GET', skipBodyParse: true },
+ );
+
// `GET /api/skills/detail?source=&name=` — enrich one discovery result for the
// info modal. The shared catalog-source parser owns both GitHub and website
// route shapes. The rich preview comes from the skills.sh page's Open Graph
@@ -601,6 +650,7 @@ export function createSkillsShHandlers(deps: SkillsShHandlerDeps): SkillsShHandl
return {
handleSkillsSearch,
handleSkillsPopular,
+ handleSkillsPublisher,
handleSkillsDetail,
handleSkillsPreview,
handleSkillsDiscover,