Skillfarm / website · skillfarm.ai / commits / 9a071bd1
[skillfarm] sync to live site; Start your own guide at /start new
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pushed by atom-backup to main 20 min ago · written by protomota · 9a071bd1de362520c199c643265ba6c57566da6f · parent c724bfa1
16 files changed
migrations/0013_project_atom_rebrand.sql changed
| 6 | 6 | UPDATE skills SET summary = replace(summary, 'Protomota', 'Project ATOM') WHERE summary LIKE '%Protomota%'; |
| 7 | 7 | UPDATE users SET handle = 'projectatom', display_name = 'Project ATOM', website = 'https://projectatom.ai/' WHERE handle = 'protomota' COLLATE NOCASE; |
| 8 | 8 | UPDATE users SET bio = replace(bio, 'Protomota', 'Project ATOM') WHERE bio LIKE '%Protomota%'; |
| 9 | - UPDATE users SET website = 'https://projectatom.ai/' WHERE website LIKE '%protomota.com%' OR website LIKE '%personal-site%'; | |
| 9 | + UPDATE users SET website = 'https://projectatom.ai/' WHERE website LIKE '%protomota.com%' OR website LIKE '%braddunlap%'; |
migrations/0016_no_own_github_maker_link.sql added
| 1 | + -- Skillfarm is not on GitHub (2026-12-02): its own picks' maker link goes to Skillfarm's Branchwell profile, not a GitHub org. | |
| 2 | + UPDATE skills SET maker_url = 'https://branchwell.ai/skillfarm' | |
| 3 | + WHERE maker_url IN ('https://github.com/projectatomai', 'https://github.com/protomota', 'https://github.com/projectatomai/', 'https://github.com/protomota/'); |
migrations/0017_own_skills_on_branchwell.sql added
| 1 | + -- Skillfarm is not on GitHub (2026-12-02). Its own skills and converted copies live on Branchwell: | |
| 2 | + -- https://branchwell.ai/skillfarm/skills. github_repo keeps the old key; src/lib/hosts.ts maps it to Branchwell. | |
| 3 | + UPDATE skills SET source_url = replace(source_url, 'https://github.com/projectatomai/skills', 'https://branchwell.ai/skillfarm/skills') | |
| 4 | + WHERE source_url LIKE 'https://github.com/projectatomai/skills%'; | |
| 5 | + UPDATE skills SET install_hint = replace(install_hint, 'npx skills add projectatomai/skills', 'npx skills add https://branchwell.ai/skillfarm/skills.git') | |
| 6 | + WHERE install_hint LIKE '%npx skills add projectatomai/skills%'; | |
| 7 | + UPDATE skills SET maker_url = 'https://branchwell.ai/skillfarm' | |
| 8 | + WHERE maker_url LIKE 'https://github.com/projectatomai%'; |
public/css/site.css changed
| 88 | 88 | .site-header { background: var(--cream); border-bottom: 1.5px solid var(--line); position: sticky; top: 0; z-index: 30; } |
| 89 | 89 | .header-row { display: flex; align-items: center; gap: 22px; min-height: 64px; } |
| 90 | 90 | .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 1.42rem; color: var(--soil); text-decoration: none; letter-spacing: -0.02em; } |
| 91 | - .brand-light { color: var(--paper); } | |
| 92 | 91 | .brand-mark { display: block; flex-shrink: 0; filter: drop-shadow(0 1px 1.5px rgba(58, 31, 15, 0.22)); } |
| 93 | 92 | .main-nav { display: flex; gap: 4px; margin-right: auto; } |
| 94 | 93 | .main-nav a { color: var(--soil); text-decoration: none; font-weight: 600; padding: 7px 13px; border-radius: 999px; font-size: 0.98rem; } |
| ⋯ | ||
| 550 | 549 | @media (max-width: 760px) { .family-inner { grid-template-columns: 1fr; } } |
| 551 | 550 | @media (max-width: 450px) { .family-apps { grid-template-columns: 1fr; } } |
| 552 | 551 | |
| 553 | - .site-footer { background: var(--soil); color: #E9DCC0; padding-top: 52px; position: relative; } | |
| 554 | - /* The "A Project ATOM project" pill, as on the other app sites (their dark variant, since this footer is dark). */ | |
| 555 | - .site-footer .proto { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid #1D2230; background: #000; color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.2; text-decoration: none; transition: transform 0.15s; } | |
| 556 | - .site-footer .proto:hover { transform: translateY(-1px); color: #fff; text-decoration: none; } | |
| 557 | - .site-footer .proto img { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; box-shadow: none; } | |
| 558 | - @media (prefers-reduced-motion: reduce) { .site-footer .proto { transition: none; } .site-footer .proto:hover { transform: none; } } | |
| 559 | - .site-footer a { color: #E9DCC0; text-decoration: none; } | |
| 560 | - .site-footer a:hover { color: #fff; text-decoration: underline; } | |
| 561 | - .footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; } | |
| 562 | - .footer-about p { max-width: 34ch; margin-top: 12px; color: #CDBE9F; } | |
| 563 | - .site-footer h2 { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); margin-bottom: 12px; font-weight: 700; } | |
| 564 | - .site-footer nav { display: grid; gap: 8px; align-content: start; } | |
| 565 | - .footer-bottom { border-top: 1.5px solid #55341F; padding-block: 20px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; color: #BBA98A; font-size: 0.88rem; } | |
| 566 | - .site-footer .footer-social { display: flex; gap: 4px; flex-wrap: wrap; } | |
| 567 | - .footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #CDBE9F; } | |
| 568 | - .footer-social a:hover { color: #fff; background: #55341F; text-decoration: none; } | |
| 552 | + .site-footer { background: var(--soil); color: #E9DCC0; } | |
| 553 | + .footer-links { display: flex; justify-content: center; align-items: center; gap: 14px; padding-block: 28px; font-size: 0.95rem; } | |
| 554 | + .footer-links a { color: #E9DCC0; text-decoration: none; } | |
| 555 | + .footer-links a:hover { color: #fff; text-decoration: underline; } | |
| 556 | + .footer-dot { color: #BBA98A; } | |
| 569 | 557 | |
| 570 | 558 | /* Smaller screens */ |
| 571 | 559 | /* Sprout, the site agent, and its picks */ |
| ⋯ | ||
| 629 | 617 | .mcp-band { grid-template-columns: 1fr; } |
| 630 | 618 | .community-grid { grid-template-columns: 1fr; } |
| 631 | 619 | .mcp-band .spot { display: none; } |
| 632 | - .footer-grid { grid-template-columns: 1fr 1fr; } | |
| 633 | - .footer-about { grid-column: 1 / -1; } | |
| 634 | 620 | .tier-list li { grid-template-columns: 56px 1fr; } |
| 635 | 621 | .tier-list li > p { grid-column: 1 / -1; } |
| 636 | 622 | .queue-row { grid-template-columns: 1fr; } |
| ⋯ | ||
| 758 | 744 | .pm-atom.pm-atom--pad { padding: 0 16px; } |
| 759 | 745 | } |
| 760 | 746 | @media (prefers-reduced-motion: reduce) { .pm-atom-card { transition: none; } .pm-atom-card:hover { transform: none; } } |
| 747 | + | |
| 748 | + /* Help: the agents table stacks on phones so nothing scrolls sideways. */ | |
| 749 | + @media (max-width: 640px) { | |
| 750 | + .where-table thead { display: none; } | |
| 751 | + .where-table, .where-table tbody, .where-table tr, .where-table td { display: block; width: 100%; } | |
| 752 | + .where-table tr { border-bottom: 1.5px solid var(--line); padding: 6px 0; } | |
| 753 | + .where-table tr:last-child { border-bottom: 0; } | |
| 754 | + .where-table td { border-bottom: 0; padding: 4px 16px; } | |
| 755 | + .where-table td:first-child { font-weight: 700; white-space: normal; } | |
| 756 | + .where-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soil-soft); } | |
| 757 | + .where-table code { white-space: normal; overflow-wrap: anywhere; } | |
| 758 | + } |
src/lib/github.ts changed
| 1 | 1 | import type { Env } from '../env'; |
| 2 | 2 | import { HttpError, now } from './util'; |
| 3 | + import { ownRepo } from './hosts'; | |
| 3 | 4 | |
| 4 | 5 | export const BUNDLE_LIMITS = { files: 30, fileBytes: 200_000, totalBytes: 400_000 }; |
| 5 | 6 | |
| ⋯ | ||
| 127 | 128 | export function refreshStale(env: Env, ctx: { waitUntil(p: Promise<unknown>): void }, rows: { github_repo: string | null; repo_fetched_at?: number | null }[]): void { |
| 128 | 129 | const seen = new Set<string>(); |
| 129 | 130 | for (const r of rows) { |
| 130 | - if (!r.github_repo || seen.has(r.github_repo)) continue; | |
| 131 | + if (!r.github_repo || ownRepo(r.github_repo) || seen.has(r.github_repo)) continue; | |
| 131 | 132 | if ((r.repo_fetched_at ?? 0) > now() - STALE_ON_VIEW) continue; |
| 132 | 133 | seen.add(r.github_repo); |
| 133 | 134 | if (seen.size > 5) break; |
| ⋯ | ||
| 141 | 142 | `SELECT DISTINCT s.github_repo AS repo FROM skills s LEFT JOIN repo_signals r ON r.repo_full_name = s.github_repo |
| 142 | 143 | WHERE s.github_repo IS NOT NULL AND s.state = 'live' AND COALESCE(r.fetched_at, 0) < ? ORDER BY COALESCE(r.fetched_at, 0) ASC LIMIT ?`, |
| 143 | 144 | ).bind(now() - 86400, max).all<{ repo: string }>(); |
| 144 | - for (const r of rows.results) await refreshRepoSignals(env, r.repo).catch(() => {}); | |
| 145 | - return rows.results.length; | |
| 145 | + const repos = rows.results.filter((r) => !ownRepo(r.repo)); | |
| 146 | + for (const r of repos) await refreshRepoSignals(env, r.repo).catch(() => {}); | |
| 147 | + return repos.length; | |
| 146 | 148 | } |
| 147 | 149 | |
| 148 | 150 | export type ImportedFile = { path: string; data: Uint8Array }; |
src/lib/hosts.ts added
| 1 | + /** Skillfarm's own repos live on Branchwell, not GitHub. Other makers' repos stay on GitHub. */ | |
| 2 | + export const BRANCHWELL = 'https://branchwell.ai'; | |
| 3 | + | |
| 4 | + /** Repo names still stored in the database for Skillfarm's own skills, and where each one lives on Branchwell. */ | |
| 5 | + const OWN_REPOS: Record<string, string> = { | |
| 6 | + 'projectatomai/skills': 'skillfarm/skills', | |
| 7 | + }; | |
| 8 | + | |
| 9 | + /** The Branchwell owner/project for one of Skillfarm's own repos, or null for anyone else's repo. */ | |
| 10 | + export function ownRepo(repo: string | null | undefined): string | null { | |
| 11 | + return repo ? OWN_REPOS[repo.toLowerCase()] ?? null : null; | |
| 12 | + } | |
| 13 | + | |
| 14 | + /** The web address of a repo, or of a folder in it, on the host where it lives. */ | |
| 15 | + export function repoWebUrl(repo: string, path?: string | null, ref?: string | null): string { | |
| 16 | + const own = ownRepo(repo); | |
| 17 | + const clean = (path ?? '').replace(/^\/+|\/+$/g, ''); | |
| 18 | + if (own) return `${BRANCHWELL}/${own}${clean ? `/tree/main/${clean}` : ''}`; | |
| 19 | + return `https://github.com/${repo}${clean ? `/tree/${ref ?? 'HEAD'}/${clean}` : ''}`; | |
| 20 | + } | |
| 21 | + | |
| 22 | + /** The address to clone a repo from. */ | |
| 23 | + export function repoCloneUrl(repo: string): string { | |
| 24 | + const own = ownRepo(repo); | |
| 25 | + return own ? `${BRANCHWELL}/${own}.git` : `https://github.com/${repo}.git`; | |
| 26 | + } | |
| 27 | + | |
| 28 | + /** The repo name to show people: Skillfarm's own repos show their Branchwell name. */ | |
| 29 | + export function repoLabel(repo: string): string { | |
| 30 | + return ownRepo(repo) ?? repo; | |
| 31 | + } | |
| 32 | + | |
| 33 | + /** The name of the site a link goes to, for button text such as "Get it on Branchwell". */ | |
| 34 | + export function hostName(url: string): string { | |
| 35 | + try { | |
| 36 | + const host = new URL(url).hostname.replace(/^www\./, ''); | |
| 37 | + if (host === 'branchwell.ai') return 'Branchwell'; | |
| 38 | + if (host === 'github.com') return 'GitHub'; | |
| 39 | + if (host === 'gitlab.com') return 'GitLab'; | |
| 40 | + return host; | |
| 41 | + } catch { | |
| 42 | + return 'the maker\'s site'; | |
| 43 | + } | |
| 44 | + } |
src/lib/install.ts changed
| 1 | 1 | import { PLATFORMS, splitPlatforms, type SkillCard } from './skills'; |
| 2 | + import { ownRepo, repoCloneUrl, repoLabel, repoWebUrl } from './hosts'; | |
| 2 | 3 | |
| 3 | 4 | /** |
| 4 | 5 | * How to put a skill on someone's machine, for each agent it supports. |
| ⋯ | ||
| 82 | 83 | const path = (s.multi_path ?? '').replace(/^\/+|\/+$/g, ''); |
| 83 | 84 | if (s.kind !== 'link' || !SAFE_REPO.test(repo) || !path || !SAFE_PATH.test(path) || path.includes('..')) return null; |
| 84 | 85 | const folder = path.split('/').pop()!; |
| 85 | - const url = `https://github.com/${repo}/tree/main/${path}`; | |
| 86 | + const url = repoWebUrl(repo, path, 'main'); | |
| 87 | + const clone = repoCloneUrl(repo); | |
| 88 | + const quickSource = ownRepo(repo) ? `${clone} --skill ${folder} --full-depth` : url; | |
| 86 | 89 | const all = Object.keys(AGENT_HOMES) as AgentKey[]; |
| 87 | 90 | const maker = s.maker ?? 'its maker'; |
| 88 | 91 | return { |
| 89 | - repo, | |
| 92 | + repo: repoLabel(repo), | |
| 90 | 93 | path, |
| 91 | 94 | url, |
| 92 | - notice_url: `https://github.com/${repo}/blob/main/${path}/NOTICE.md`, | |
| 95 | + notice_url: url.replace('/tree/main/', '/blob/main/') + '/NOTICE.md', | |
| 93 | 96 | folder_name: folder, |
| 94 | 97 | agents: (only ? all.filter((a) => a === only) : all).map((a) => ({ |
| 95 | 98 | agent: a, |
| 96 | 99 | name: AGENT_HOMES[a].name, |
| 97 | 100 | folder: AGENT_HOMES[a].user, |
| 98 | - quick: `npx skills add ${url} -a ${a} -g -y`, | |
| 101 | + quick: `npx skills add ${quickSource} -a ${a} -g -y`, | |
| 99 | 102 | quick_where: 'terminal' as const, |
| 100 | - manual: [`git clone --depth 1 https://github.com/${repo}.git /tmp/${folder}-src`, `mkdir -p ${AGENT_HOMES[a].user}`, `cp -R /tmp/${folder}-src/${path} ${AGENT_HOMES[a].user}/${folder}`, `rm -rf /tmp/${folder}-src`], | |
| 103 | + manual: [`git clone --depth 1 ${clone} /tmp/${folder}-src`, `mkdir -p ${AGENT_HOMES[a].user}`, `cp -R /tmp/${folder}-src/${path} ${AGENT_HOMES[a].user}/${folder}`, `rm -rf /tmp/${folder}-src`], | |
| 101 | 104 | reviewed_copy: null, |
| 102 | 105 | check: AGENT_HOMES[a].check, |
| 103 | 106 | copy: true, |
| ⋯ | ||
| 124 | 127 | return { |
| 125 | 128 | source: 'maker', |
| 126 | 129 | folder_name: s.slug, |
| 127 | - repo: s.github_repo, | |
| 130 | + repo: s.github_repo ? repoLabel(s.github_repo) : null, | |
| 128 | 131 | repo_path: s.github_path, |
| 129 | 132 | repo_url: s.source_url, |
| 130 | 133 | reviewed_commit: null, |
| ⋯ | ||
| 147 | 150 | }; |
| 148 | 151 | }), |
| 149 | 152 | note: multi |
| 150 | - ? `This skill belongs to ${s.maker ?? 'its maker'}. Install the original the maker's way, or use multi_agent: a converted copy Skillfarm keeps on GitHub that reads the same in every supported agent. Read the skill before installing it.` | |
| 153 | + ? `This skill belongs to ${s.maker ?? 'its maker'}. Install the original the maker's way, or use multi_agent: a converted copy Skillfarm keeps that reads the same in every supported agent. Read the skill before installing it.` | |
| 151 | 154 | : `Skillfarm hosts no copy of this skill. It belongs to ${s.maker ?? 'its maker'}, and the install line comes from the maker's own instructions. Read the skill before installing it.`, |
| 152 | 155 | multi_agent: multi && opts.only ? { ...multi, agents: multi.agents.filter((m) => m.agent === opts.only) } : multi, |
| 153 | 156 | }; |
| ⋯ | ||
| 165 | 168 | folder_name: folder, |
| 166 | 169 | repo, |
| 167 | 170 | repo_path: path || null, |
| 168 | - repo_url: `https://github.com/${repo}${path ? `/tree/${sha ?? 'HEAD'}/${path}` : ''}`, | |
| 171 | + repo_url: ownRepo(repo) ? repoWebUrl(repo, path) : repoWebUrl(repo, path, sha ?? 'HEAD'), | |
| 169 | 172 | reviewed_commit: sha, |
| 170 | 173 | zip_url: `${page}/download`, |
| 171 | 174 | agents: agents.map((a) => ({ |
| 172 | 175 | agent: a, |
| 173 | 176 | name: AGENT_HOMES[a].name, |
| 174 | 177 | folder: `${AGENT_HOMES[a].user}/${folder}`, |
| 175 | - quick: `npx skills add ${repo} --skill ${folder} -a ${a} -g -y`, | |
| 178 | + quick: `npx skills add ${ownRepo(repo) ? repoCloneUrl(repo) : repo} --skill ${folder} -a ${a} -g -y`, | |
| 176 | 179 | quick_where: 'terminal' as const, |
| 177 | 180 | manual: [ |
| 178 | - `git clone --depth 1 https://github.com/${repo}.git ${tmp}`, | |
| 181 | + `git clone --depth 1 ${repoCloneUrl(repo)} ${tmp}`, | |
| 179 | 182 | `mkdir -p ${AGENT_HOMES[a].user}`, |
| 180 | 183 | `cp -R ${tmp}/${path || '.'} ${AGENT_HOMES[a].user}/${folder}`, |
| 181 | 184 | `rm -rf ${tmp}`, |
| ⋯ | ||
| 184 | 187 | check: AGENT_HOMES[a].check, |
| 185 | 188 | })), |
| 186 | 189 | note: |
| 187 | - `This skill installs from its public GitHub repo, ${repo}. ` + | |
| 190 | + `This skill installs from its public repo, ${repoLabel(repo)}. ` + | |
| 188 | 191 | (sha ? `Skillfarm reviewed commit ${sha.slice(0, 7)}. The repo may have changed since: reviewed_copy and download_skill give exactly the reviewed files. ` : '') + |
| 189 | 192 | 'The quick command uses the open Skills CLI and needs Node.js. The manual steps need only git.', |
| 190 | 193 | }; |
src/lib/skills.ts changed
| 28 | 28 | { key: 'devops', name: 'Cloud and DevOps' }, |
| 29 | 29 | { key: 'productivity', name: 'Productivity' }, |
| 30 | 30 | { key: 'security', name: 'Security' }, |
| 31 | - { key: 'business', name: 'Business and sales' }, | |
| 31 | + { key: 'business', name: 'Commerce and sales' }, | |
| 32 | 32 | { key: 'finance', name: 'Finance' }, |
| 33 | 33 | { key: 'legal', name: 'Legal' }, |
| 34 | 34 | { key: 'science', name: 'Science and health' }, |
src/routes/mcp.ts changed
| 2 | 2 | import type { AppEnv, Ctx, User } from '../env'; |
| 3 | 3 | import { VERSION } from '../env'; |
| 4 | 4 | import { importFromGithub, parseGithubUrl, refreshStale } from '../lib/github'; |
| 5 | + import { ownRepo, repoWebUrl } from '../lib/hosts'; | |
| 5 | 6 | import { groupName, promptBySlug, PROMPT_GROUPS, PROMPTS, type ReadyPrompt } from '../content/prompts'; |
| 6 | 7 | import { processNextItem, startRepoShare } from '../lib/imports'; |
| 7 | 8 | import { installPlan, isAgentKey, multiAgentCopy } from '../lib/install'; |
| ⋯ | ||
| 96 | 97 | installs: s.installs_count, |
| 97 | 98 | reviews: s.reviews_count, |
| 98 | 99 | rating: s.reviews_count ? Number((s.rating_sum / s.reviews_count).toFixed(1)) : null, |
| 99 | - github: s.github_repo ? { repo: s.github_repo, path: s.github_path, stars: s.repo_unavailable ? null : s.stars, owner_verified: !!s.verified_owner } : null, | |
| 100 | + github: s.github_repo && !ownRepo(s.github_repo) ? { repo: s.github_repo, path: s.github_path, stars: s.repo_unavailable ? null : s.stars, owner_verified: !!s.verified_owner } : null, | |
| 101 | + ...(ownRepo(s.github_repo) ? { branchwell: { repo: ownRepo(s.github_repo), path: s.github_path, url: repoWebUrl(s.github_repo!, s.github_path) } } : {}), | |
| 100 | 102 | state: s.state, |
| 101 | 103 | published_at: s.published_at ? new Date(s.published_at * 1000).toISOString() : null, |
| 102 | 104 | }; |
src/routes/pages.tsx changed
| 1 | 1 | import type { Hono } from 'hono'; |
| 2 | 2 | import { raw } from 'hono/html'; |
| 3 | 3 | import { MORE_HTML, PLAN_CSS, PLAN_HTML } from './research-plan'; |
| 4 | + import { START_HTML } from './start-guide'; | |
| 4 | 5 | import type { AppEnv, User } from '../env'; |
| 5 | 6 | import { groupName, promptBySlug, PROMPT_GROUPS, PROMPTS, promptsIn, type ReadyPrompt } from '../content/prompts'; |
| 6 | 7 | import { refreshStale } from '../lib/github'; |
| ⋯ | ||
| 73 | 74 | <section class="hero"> |
| 74 | 75 | <div class="wrap hero-grid"> |
| 75 | 76 | <div class="hero-copy"> |
| 76 | - <p class="eyebrow">A curated list of agent skills</p> | |
| 77 | 77 | <div class="visitor-welcome" data-visitor-odometer="" data-visitor-site="skillfarm"></div> |
| 78 | 78 | <h1> |
| 79 | 79 | Where agent skills <em>grow</em>. |
| ⋯ | ||
| 227 | 227 | </div> |
| 228 | 228 | </section> |
| 229 | 229 | |
| 230 | - {raw(`<!-- branch-note --><style>.branch-note{box-sizing:border-box;max-width:1180px;margin:48px auto;padding:0 20px;color:inherit;text-align:left}.branch-note .bn-box{border:2px solid currentColor;border-radius:24px;padding:32px 28px;background:color-mix(in srgb,currentColor 6%,transparent)}.branch-note .bn-eye{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.8}.branch-note h2{margin:0 0 12px;font-size:clamp(26px,3.8vw,40px);line-height:1.12}.branch-note p{margin:0 0 10px;max-width:760px;font-size:18px;line-height:1.55}.branch-note p:last-child{margin-bottom:0}.branch-note .bn-lic{opacity:.8;font-size:16px}</style><section class="branch-note" id="branch" aria-labelledby="branch-h"><div class="bn-box"><p class="bn-eye">We're open source</p><h2 id="branch-h">Start your own branch</h2><p>Anyone can start their own branch of Skillfarm without asking us, and can give it a different name. We're fully open source: our designs, research and specs are public domain, free for anyone to use, copy and change.</p></div></section><!-- /branch-note -->`)} | |
| 230 | + {raw(`<!-- branch-note --><style>.branch-note{box-sizing:border-box;max-width:1180px;margin:48px auto;padding:0 20px;color:inherit;text-align:left}.branch-note .bn-box{border:2px solid currentColor;border-radius:24px;padding:32px 28px;background:color-mix(in srgb,currentColor 6%,transparent)}.branch-note .bn-eye{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.8}.branch-note h2{margin:0 0 12px;font-size:clamp(26px,3.8vw,40px);line-height:1.12}.branch-note p{margin:0 0 10px;max-width:760px;font-size:18px;line-height:1.55}.branch-note p:last-child{margin-bottom:0}.branch-note .bn-lic{opacity:.8;font-size:16px}</style><section class="branch-note" id="branch" aria-labelledby="branch-h"><div class="bn-box"><p class="bn-eye">Organization model</p><h2 id="branch-h">Start your own</h2><p>Anyone can start their own Skillfarm without asking us, and can give it a different name. Our organization model is open: our designs, research and specs are public domain, free for anyone to use, copy and change.</p><a href="/start" style="display:inline-block;margin-top:14px;padding:12px 24px;border-radius:999px;border:2px solid currentColor;color:inherit;font-weight:700;text-decoration:none">See every step</a></div></section><!-- /branch-note -->`)} | |
| 231 | 231 | </>, |
| 232 | 232 | ); |
| 233 | 233 | }); |
| ⋯ | ||
| 366 | 366 | <tr><th>Agent</th><th>What the button does</th><th>Where skills live</th></tr> |
| 367 | 367 | </thead> |
| 368 | 368 | <tbody> |
| 369 | - <tr><td>Claude Code</td><td>Opens Claude Code in a terminal with the prompt typed in</td><td><code>~/.claude/skills</code></td></tr> | |
| 370 | - <tr><td>Codex CLI</td><td>Opens the Codex app with the prompt typed in. In the CLI, paste the copied prompt</td><td><code>~/.agents/skills</code></td></tr> | |
| 371 | - <tr><td>Gemini CLI</td><td>Copies the prompt for you to paste</td><td><code>~/.agents/skills</code> or <code>~/.gemini/skills</code></td></tr> | |
| 369 | + <tr><td>Claude Code</td><td data-label="What the button does">Opens Claude Code in a terminal with the prompt typed in</td><td data-label="Where skills live"><code>~/.claude/skills</code></td></tr> | |
| 370 | + <tr><td>Codex CLI</td><td data-label="What the button does">Opens the Codex app with the prompt typed in. In the CLI, paste the copied prompt</td><td data-label="Where skills live"><code>~/.agents/skills</code></td></tr> | |
| 371 | + <tr><td>Gemini CLI</td><td data-label="What the button does">Copies the prompt for you to paste</td><td data-label="Where skills live"><code>~/.agents/skills</code> or <code>~/.gemini/skills</code></td></tr> | |
| 372 | 372 | </tbody> |
| 373 | 373 | </table> |
| 374 | 374 | <p>You can also copy the install command from the skill page and run it yourself, or download the files. A skill is only a folder with a <code>SKILL.md</code> file in it, so installing one means putting that folder where your agent looks.</p> |
| ⋯ | ||
| 537 | 537 | <h2 id="reporting">Reporting a problem</h2> |
| 538 | 538 | <p>Every skill, review and profile has a Report link. Sign in, say what is wrong, and a moderator will look at it.</p> |
| 539 | 539 | </div>, |
| 540 | + ), | |
| 541 | + ); | |
| 542 | + | |
| 543 | + // Step-by-step "Start your own" guide (generated: hosting-research tools/start-gen/external.py --ts skillfarm.ai). | |
| 544 | + app.get('/start', (c) => | |
| 545 | + render( | |
| 546 | + c, | |
| 547 | + { title: 'Start your own', description: 'Anyone, anywhere in the world, can start their own Skillfarm. Every step, in order.' }, | |
| 548 | + <div class="wrap section"><div class="sg" data-start-guide="1">{raw(START_HTML)}</div></div>, | |
| 540 | 549 | ), |
| 541 | 550 | ); |
| 542 | 551 |
src/routes/research-plan.ts changed
| 1 | 1 | // Generated by hosting-research tools/research-gen/embed.py from plans.py. Edit plans.py, then re-run. |
| 2 | - export const PLAN_HTML = "<section class=\"rs-plan\" aria-labelledby=\"plan\">\n<h2 id=\"plan\" class=\"rs-h2\">How Skillfarm works</h2>\n<p class=\"rs-status\"><strong>Where we are:</strong> Free to use.</p>\n<p>Skillfarm is an open catalog of skills for AI agents: find, share and convert skills so your agent can do more.</p><p>We build it in the open, keep it free with no nag screens, and let the research on this page shape the design.</p>\n<h3 class=\"rs-h3\" id=\"how\">How it works</h3><ol class=\"rs-flow\">\n<li><b>Find</b><span>Search skills by what you want done.</span></li>\n<li><b>Read</b><span>Every skill shows its full instructions.</span></li>\n<li><b>Convert</b><span>Turn a skill into the format your agent uses.</span></li>\n<li><b>Share</b><span>Publish your own for anyone to use.</span></li>\n</ol>\n<h3 class=\"rs-h3\" id=\"earn\">How it keeps going</h3><p>It is free. It is built and kept going by our own small team, with no ads and no selling of anyone's data.</p>\n<h3 class=\"rs-h3\" id=\"team\">How we're organized</h3>\n<div class=\"rs-tree\" role=\"img\" aria-label=\"Team chart for Skillfarm\"><ul><li><span>Skillfarm</span><ul><li><span>Catalog</span></li><li><span>Converters</span></li><li><span>Review and safety</span></li><li><span>Research</span></li></ul></li></ul></div>\n<p class=\"rs-small\">Everyone on the team grows through the same three levels: Explorer (starting out), Builder (growing) and Guide (on the way to mastery).</p>\n\n<div class=\"rs-cols\"><div class=\"rs-card\"><h3 class=\"rs-h3\">What we've decided</h3><ul class=\"rs-bullets rs-checks\"><li>Every skill is readable in full.</li><li>Free to use and share.</li></ul></div><div class=\"rs-card\"><h3 class=\"rs-h3\">What comes next</h3><ul class=\"rs-bullets rs-arrows\"><li>More agent formats.</li></ul></div></div>\n<h3 class=\"rs-h3\" id=\"copy\">Start your own</h3><p>Nothing here is secret. Anyone can copy how Skillfarm works and open their own version.</p><ol class=\"rs-steps\">\n<li><b>Read this page</b><span>Everything about how Skillfarm works is here and in the public sources below. Our designs, specs and plans are public domain.</span></li>\n<li><b>Pick your name and place</b><span>Choose your own name and where you will start. You do not need to ask us, and you do not need to call it Skillfarm.</span></li>\n<li><b>Build the team</b><span>Start with the roles in the chart above. One person can hold several roles at first.</span></li>\n<li><b>Follow the steps</b><span>Run it the way the "How it works" steps describe, then improve on it.</span></li>\n<li><b>Share back</b><span>Publish what you learn, so the next person can start further ahead.</span></li>\n</ol></section>"; | |
| 2 | + export const PLAN_HTML = "<section class=\"rs-plan\" aria-labelledby=\"plan\">\n<h2 id=\"plan\" class=\"rs-h2\">Our open model: how Skillfarm works</h2>\n<p class=\"rs-status\"><strong>Where we are:</strong> Free to use.</p>\n<p>Skillfarm is an open catalog of skills for AI agents: find, share and convert skills so your agent can do more.</p><p>We build it in the open, keep it free with no nag screens, and let the research on this page shape the design.</p>\n<h3 class=\"rs-h3\" id=\"how\">How it works</h3><ol class=\"rs-flow\">\n<li><b>Find</b><span>Search skills by what you want done.</span></li>\n<li><b>Read</b><span>Every skill shows its full instructions.</span></li>\n<li><b>Convert</b><span>Turn a skill into the format your agent uses.</span></li>\n<li><b>Share</b><span>Publish your own for anyone to use.</span></li>\n</ol>\n<h3 class=\"rs-h3\" id=\"earn\">How it pays for itself</h3><p>It is free, with no ads and no selling of anyone's data. It belongs to everyone, and anyone can help build it.</p>\n<div class=\"rs-cols\"><div class=\"rs-card\"><h3 class=\"rs-h3\" id=\"costs\">What it costs to run</h3><ul class=\"rs-bullets rs-arrows\"><li>Our own time to design, build and test each release.</li><li>Web hosting for the site and downloads.</li><li>Developer memberships with the app stores we publish on.</li><li>Test devices.</li></ul></div><div class=\"rs-card\"><h3 class=\"rs-h3\" id=\"setup\">How to set one up</h3><ol class=\"rs-bullets rs-num\"><li><b>Get the code.</b> Every line is open. Download it and build it on your own computer.</li><li><b>Make it yours.</b> Change the name, the look and anything else you like.</li><li><b>Publish.</b> Sign it with your own developer account and share it.</li><li><b>Keep it free.</b> No ads and no selling of data: that is what keeps people trusting it.</li></ol></div></div>\n<div class=\"rs-cols\"><div class=\"rs-card\"><h3 class=\"rs-h3\">What we've decided</h3><ul class=\"rs-bullets rs-checks\"><li>Every skill is readable in full.</li><li>Free to use and share.</li></ul></div><div class=\"rs-card\"><h3 class=\"rs-h3\">What comes next</h3><ul class=\"rs-bullets rs-arrows\"><li>More agent formats.</li></ul></div></div>\n<h3 class=\"rs-h3\" id=\"copy\">Start your own</h3><p>Nothing here is secret. Anyone can copy how Skillfarm works and open their own version.</p><ol class=\"rs-steps\">\n<li><b>Read this page</b><span>Everything about how Skillfarm works is here and in the public sources below. Our designs, specs and plans are public domain.</span></li>\n<li><b>Pick your name and place</b><span>Choose your own name and where you will start. You do not need to ask us, and you do not need to call it Skillfarm.</span></li>\n<li><b>Follow the steps</b><span>Run it the way the "How it works" steps describe, then improve on it.</span></li>\n<li><b>Share back</b><span>Publish what you learn, so the next person can start further ahead.</span></li>\n</ol></section>"; | |
| 3 | 3 | export const MORE_HTML = "<section class=\"rs-more\"><h2 class=\"rs-h2\" id=\"more-research\">More research <small>(16 sources)</small></h2>\n<nav class=\"rs-jump rs-topics\" aria-label=\"Research topics\"><a href=\"#mt0\">How agents learn and reuse skills <small>4</small></a><a href=\"#mt1\">Measuring what agents can really do <small>1</small></a><a href=\"#mt2\">Security of shared agent skills <small>3</small></a><a href=\"#mt3\">Prompt injection and tool protocols <small>4</small></a><a href=\"#mt4\">Lessons from software package registries <small>4</small></a></nav>\n<h3 class=\"rs-h3 rs-topic\" id=\"mt0\">How agents learn and reuse skills</h3><ol class=\"rs-list\">\n<li class=\"rs-item\" id=\"s101\"><p class=\"rs-src\"><span>Wang et al., arXiv (NeurIPS workshop)</span><span class=\"rs-year\">2023</span></p><h2><a href=\"https://arxiv.org/abs/2305.16291\" rel=\"noopener\" target=\"_blank\">Voyager: an open-ended embodied agent with large language models</a></h2><p>An agent playing an open-world game stored each working behavior as a reusable program in a growing skill library, and drew on it to tackle harder goals. Keeping skills as named, reusable pieces helped it learn faster than agents without a library, an early sign of why skill catalogs are useful.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2305.16291\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Voyager: an open-ended embodied agent with large language models\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s102\"><p class=\"rs-src\"><span>Yao et al., ICLR</span><span class=\"rs-year\">2023</span></p><h2><a href=\"https://arxiv.org/abs/2210.03629\" rel=\"noopener\" target=\"_blank\">ReAct: synergizing reasoning and acting in language models</a></h2><p>Letting a model alternate between thinking through a problem and taking actions such as searches made its answers more accurate and easier to follow than reasoning or acting alone. Much of today's agent design, including how skills are called, builds on this pattern.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2210.03629\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: ReAct: synergizing reasoning and acting in language models\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s103\"><p class=\"rs-src\"><span>Patil et al., NeurIPS (arXiv)</span><span class=\"rs-year\">2023</span></p><h2><a href=\"https://arxiv.org/abs/2305.15334\" rel=\"noopener\" target=\"_blank\">Gorilla: large language model connected with massive APIs</a></h2><p>A model tuned to call software interfaces, and given up-to-date documentation to look at, made fewer invented or wrong calls than general models. Accurate, current instructions are what make a tool or skill reliable for an agent.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2305.15334\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Gorilla: large language model connected with massive APIs\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s104\"><p class=\"rs-src\"><span>Qin et al., ICLR (arXiv)</span><span class=\"rs-year\">2024</span></p><h2><a href=\"https://arxiv.org/abs/2307.16789\" rel=\"noopener\" target=\"_blank\">ToolLLM: facilitating large language models to master 16000+ real-world APIs</a></h2><p>The authors built a large collection of real tools and training examples and showed open models could learn to choose and chain them. Finding the right tool among thousands is itself a hard problem, which is why a searchable catalog matters.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2307.16789\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: ToolLLM: facilitating large language models to master 16000+ real-world APIs\">Read the original ↗</a></li>\n</ol>\n<h3 class=\"rs-h3 rs-topic\" id=\"mt1\">Measuring what agents can really do</h3><ol class=\"rs-list\">\n<li class=\"rs-item\" id=\"s105\"><p class=\"rs-src\"><span>Yao et al., arXiv</span><span class=\"rs-year\">2024</span></p><h2><a href=\"https://arxiv.org/abs/2406.12045\" rel=\"noopener\" target=\"_blank\">tau-bench: a benchmark for tool-agent-user interaction in real-world domains</a></h2><p>Agents following written rules while helping simulated customers often failed, and they were inconsistent when the same task was repeated several times. A skill should be judged by how reliably it works across many runs, not by one good try.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2406.12045\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: tau-bench: a benchmark for tool-agent-user interaction in real-world domains\">Read the original ↗</a></li>\n</ol>\n<h3 class=\"rs-h3 rs-topic\" id=\"mt2\">Security of shared agent skills</h3><ol class=\"rs-list\">\n<li class=\"rs-item\" id=\"s106\"><p class=\"rs-src\"><span>Liu et al., arXiv</span><span class=\"rs-year\">2026</span></p><h2><a href=\"https://arxiv.org/abs/2601.10338\" rel=\"noopener\" target=\"_blank\">Agent skills in the wild: an empirical study of security vulnerabilities at scale</a></h2><p>Scanning a large number of public agent skills, the authors found a meaningful share with security problems such as hidden instructions, data leaks and overly broad access. Skills that bundle scripts were more often risky than instruction-only ones, so they deserve closer review before installing.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2601.10338\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Agent skills in the wild: an empirical study of security vulnerabilities at scale\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s107\"><p class=\"rs-src\"><span>Liu et al., arXiv</span><span class=\"rs-year\">2026</span></p><h2><a href=\"https://arxiv.org/abs/2602.06547\" rel=\"noopener\" target=\"_blank\">"Do not mention this to the user": detecting and understanding malicious agent skills in the wild</a></h2><p>Screening community skill registries, researchers confirmed a small number of deliberately malicious skills that stole credentials or quietly steered the agent, often by imitating trusted names. Registry maintainers removed them after disclosure, showing that active screening and reporting work.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2602.06547\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: "Do not mention this to the user": detecting and understanding malicious agent skills in the wild\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s108\"><p class=\"rs-src\"><span>Beurer-Kellner et al., arXiv</span><span class=\"rs-year\">2026</span></p><h2><a href=\"https://arxiv.org/abs/2605.28588\" rel=\"noopener\" target=\"_blank\">Technical report: exploring the emerging threats of the agent skill ecosystem</a></h2><p>A review of skills from major marketplaces found some confirmed malicious entries and a larger group with serious security issues. The authors recommend that catalogs hold risky findings for manual review and that people read a skill before installing it, practices an open catalog can build in.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2605.28588\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Technical report: exploring the emerging threats of the agent skill ecosystem\">Read the original ↗</a></li>\n</ol>\n<h3 class=\"rs-h3 rs-topic\" id=\"mt3\">Prompt injection and tool protocols</h3><ol class=\"rs-list\">\n<li class=\"rs-item\" id=\"s109\"><p class=\"rs-src\"><span>Debenedetti et al., NeurIPS Datasets and Benchmarks (arXiv)</span><span class=\"rs-year\">2024</span></p><h2><a href=\"https://arxiv.org/abs/2406.13352\" rel=\"noopener\" target=\"_blank\">AgentDojo: a dynamic environment to evaluate prompt injection attacks and defenses for LLM agents</a></h2><p>This test bed runs agents through realistic tasks while planting injected instructions in the data they handle. Both attacks and defenses were only partly effective, which argues for layered protections rather than a single fix.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2406.13352\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: AgentDojo: a dynamic environment to evaluate prompt injection attacks and defenses for LLM agents\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s110\"><p class=\"rs-src\"><span>Hou et al., arXiv</span><span class=\"rs-year\">2025</span></p><h2><a href=\"https://arxiv.org/abs/2503.23278\" rel=\"noopener\" target=\"_blank\">Model Context Protocol (MCP): landscape, security threats and future research directions</a></h2><p>A survey of the open protocol many agents use to connect to tools, covering how servers are created, run and updated and the security risks at each stage. It is a useful map for anyone converting skills between agent formats.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2503.23278\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Model Context Protocol (MCP): landscape, security threats and future research directions\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s111\"><p class=\"rs-src\"><span>arXiv preprint</span><span class=\"rs-year\">2025</span></p><h2><a href=\"https://arxiv.org/abs/2510.16558\" rel=\"noopener\" target=\"_blank\">A first look at the security issues in the Model Context Protocol ecosystem</a></h2><p>Examining public tool servers, the authors documented problems such as tool descriptions that mislead the agent and weak checks on who published what. Clear provenance and review are as important for tool servers as for skills.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2510.16558\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: A first look at the security issues in the Model Context Protocol ecosystem\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s112\"><p class=\"rs-src\"><span>arXiv preprint</span><span class=\"rs-year\">2025</span></p><h2><a href=\"https://arxiv.org/abs/2510.23673\" rel=\"noopener\" target=\"_blank\">MCPGuard: automatically detecting vulnerabilities in MCP servers</a></h2><p>The authors built an automated scanner for agent tool servers and used it to find vulnerable ones in public collections. Automated scanning is a practical first filter for a catalog, though not a replacement for human review.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2510.23673\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: MCPGuard: automatically detecting vulnerabilities in MCP servers\">Read the original ↗</a></li>\n</ol>\n<h3 class=\"rs-h3 rs-topic\" id=\"mt4\">Lessons from software package registries</h3><ol class=\"rs-list\">\n<li class=\"rs-item\" id=\"s113\"><p class=\"rs-src\"><span>Duan et al., NDSS (arXiv)</span><span class=\"rs-year\">2021</span></p><h2><a href=\"https://arxiv.org/abs/2002.01139\" rel=\"noopener\" target=\"_blank\">Towards measuring supply chain attacks on package managers for interpreted languages</a></h2><p>Analyzing major package registries, researchers found hundreds of malicious packages, many relying on lookalike names and install-time scripts, and many stayed up for a while before removal. Skill catalogs face the same tricks and can borrow the same defenses.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2002.01139\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Towards measuring supply chain attacks on package managers for interpreted languages\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s114\"><p class=\"rs-src\"><span>Ladisa et al., IEEE Symposium on Security and Privacy (arXiv)</span><span class=\"rs-year\">2023</span></p><h2><a href=\"https://arxiv.org/abs/2108.09576\" rel=\"noopener\" target=\"_blank\">Taxonomy of attacks on open-source software supply chains</a></h2><p>The authors catalog the many ways attackers slip harmful code into shared software, from stolen maintainer accounts to poisoned builds, and match them with safeguards. It is a ready checklist for running any open catalog.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2108.09576\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: Taxonomy of attacks on open-source software supply chains\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s115\"><p class=\"rs-src\"><span>arXiv preprint</span><span class=\"rs-year\">2025</span></p><h2><a href=\"https://arxiv.org/abs/2502.20528\" rel=\"noopener\" target=\"_blank\">ConfuGuard: detecting malicious and stealthy typosquatting threats in package registries</a></h2><p>This work tackles packages named to look like popular ones, aiming to flag real threats without burying maintainers in false alarms. Name checks of this kind suit a skill catalog, where lookalike names are a known trick.</p><a class=\"rs-read\" href=\"https://arxiv.org/abs/2502.20528\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: ConfuGuard: detecting malicious and stealthy typosquatting threats in package registries\">Read the original ↗</a></li>\n<li class=\"rs-item\" id=\"s116\"><p class=\"rs-src\"><span>Open Source Security Foundation</span></p><h2><a href=\"https://slsa.dev/\" rel=\"noopener\" target=\"_blank\">SLSA: supply-chain levels for software artifacts</a></h2><p>An open framework of graded steps for proving where software came from and that it was not tampered with along the way. Similar provenance labels could help people trust the skills they install.</p><a class=\"rs-read\" href=\"https://slsa.dev/\" rel=\"noopener\" target=\"_blank\" aria-label=\"Read the original: SLSA: supply-chain levels for software artifacts\">Read the original ↗</a></li>\n</ol>\n</section>"; |
| 4 | - export const PLAN_CSS = ".rs-plan{margin:8px 0 48px}.rs-plan p{font-size:17px;line-height:1.65;margin:0 0 14px;max-width:760px}.rs-h2{font-size:clamp(28px,4.4vw,42px);line-height:1.12;letter-spacing:-.01em;margin:56px 0 16px}.rs-h3{font-size:clamp(20px,2.4vw,24px);line-height:1.3;margin:40px 0 14px}.rs-status{border-left:4px solid currentColor;padding:10px 16px;background:rgba(128,128,128,.07);border-radius:0 12px 12px 0}.rs-small{font-size:15px!important;opacity:.8}.rs-split{display:grid;gap:24px;align-items:center;margin:24px 0}@media(min-width:820px){.rs-split{grid-template-columns:1.2fr 1fr;gap:40px}.rs-split.rs-flip>figure{order:-1}.rs-split.rs-flip{grid-template-columns:1fr 1.2fr}}.rs-fig{margin:0;border-radius:18px;overflow:hidden;aspect-ratio:1/1;max-height:440px}.rs-wide-fig{aspect-ratio:16/7;max-height:none;margin:22px 0 0}.rs-flow{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;counter-reset:f}.rs-flow li{position:relative;border:1px solid rgba(128,128,128,.32);border-radius:18px;padding:52px 18px 18px;background:rgba(128,128,128,.05);counter-increment:f}.rs-flow li::before{content:counter(f);position:absolute;top:14px;left:18px;width:28px;height:28px;border-radius:50%;border:2px solid currentColor;font-size:14px;font-weight:700;line-height:24px;text-align:center}.rs-flow li::after{content:\"\";position:absolute;top:28px;left:56px;right:18px;border-top:2px dashed rgba(128,128,128,.45)}.rs-flow li:last-child::after{display:none}.rs-flow li b{display:block;font-size:17px;margin-bottom:6px}.rs-flow li span{display:block;font-size:15px;line-height:1.55;opacity:.85}.rs-tree{overflow-x:auto;padding:4px 0 8px}.rs-tree ul{list-style:none;margin:0;padding-left:22px;position:relative}.rs-tree>ul{padding-left:0}.rs-tree li{position:relative;padding:6px 0 6px 18px}.rs-tree>ul>li{padding-left:0}.rs-tree li::before{content:\"\";position:absolute;left:0;top:0;bottom:0;border-left:1px solid rgba(128,128,128,.55)}.rs-tree li::after{content:\"\";position:absolute;left:0;top:19px;width:14px;border-top:1px solid rgba(128,128,128,.55)}.rs-tree li:last-child::before{bottom:auto;height:19px}.rs-tree>ul>li::before,.rs-tree>ul>li::after{display:none}.rs-tree span{display:inline-block;border:1px solid rgba(128,128,128,.4);border-radius:12px;padding:8px 14px;font-size:15px;background:rgba(128,128,128,.06)}.rs-tree>ul>li>span{font-weight:700;border-width:2px;font-size:16px}@media(min-width:760px){.rs-tree>ul>li{text-align:center}.rs-tree>ul>li>ul{display:flex;justify-content:center;gap:12px;padding:24px 0 0}.rs-tree>ul>li>ul::before{content:\"\";position:absolute;top:0;left:50%;height:12px;border-left:1px solid rgba(128,128,128,.55)}.rs-tree>ul>li>ul>li{flex:1 1 0;max-width:260px;padding:14px 0 0;text-align:center}.rs-tree>ul>li>ul>li::before{top:0;bottom:auto;left:-6px;right:-6px;height:0;border-left:0;border-top:1px solid rgba(128,128,128,.55)}.rs-tree>ul>li>ul>li:first-child::before{left:50%}.rs-tree>ul>li>ul>li:last-child::before{right:50%;height:0}.rs-tree>ul>li>ul>li:only-child::before{display:none}.rs-tree>ul>li>ul>li::after{top:0;left:50%;width:0;height:14px;border-top:0;border-left:1px solid rgba(128,128,128,.55)}.rs-tree>ul>li>ul>li>span{display:block;font-weight:600}.rs-tree>ul>li>ul>li ul{padding:8px 0 0}.rs-tree>ul>li>ul>li li{padding:3px 0}.rs-tree>ul>li>ul>li li::before,.rs-tree>ul>li>ul>li li::after{display:none}.rs-tree>ul>li>ul>li li span{font-size:13px;padding:5px 10px;border-style:dashed}}.rs-cols{display:grid;gap:14px;margin:32px 0 0}@media(min-width:720px){.rs-cols{grid-template-columns:1fr 1fr}}.rs-card{border-radius:18px;padding:4px 22px 18px;background:rgba(128,128,128,.07)}.rs-card .rs-h3{margin-top:18px}.rs-bullets{margin:0 0 8px;padding-left:0;list-style:none}.rs-bullets li{font-size:16px;line-height:1.6;margin:6px 0;padding-left:28px;position:relative}.rs-bullets li::before{content:\"\\2713\";position:absolute;left:0;top:0;font-weight:700;opacity:.8}.rs-arrows li::before{content:\"\\2192\"}.rs-steps{list-style:none;margin:8px 0 0;padding:0;counter-reset:s;max-width:820px}.rs-steps li{position:relative;padding:0 0 22px 60px;counter-increment:s}.rs-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;border:2px solid currentColor;font-weight:700;font-size:17px;line-height:36px;text-align:center}.rs-steps li::after{content:\"\";position:absolute;left:19px;top:46px;bottom:4px;border-left:2px solid rgba(128,128,128,.35)}.rs-steps li:last-child::after{display:none}.rs-steps b{display:block;font-size:18px;margin:8px 0 4px}.rs-steps span{display:block;font-size:16px;line-height:1.6;opacity:.85}.rs-list{list-style:none;margin:0;padding:0;display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}.rs-item{display:flex;flex-direction:column;border:1px solid rgba(128,128,128,.3);border-radius:18px;padding:20px 22px;background:rgba(128,128,128,.05)}.rs-item h2{font-size:19px;line-height:1.35;margin:0 0 8px}.rs-item h2 a{color:inherit;text-decoration:none}.rs-item h2 a:hover{text-decoration:underline;text-underline-offset:3px}.rs-item p{margin:0 0 12px;font-size:16px;line-height:1.6}.rs-src{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:13px!important;opacity:.75;margin:0 0 10px!important;text-transform:uppercase;letter-spacing:.06em}.rs-year{flex:none;border:1px solid rgba(128,128,128,.45);border-radius:999px;padding:2px 9px;letter-spacing:0}.rs-read{margin-top:auto;color:inherit;font-size:15px;font-weight:600;text-underline-offset:3px}.rs-updated{font-size:14px;opacity:.65;margin-top:28px}.rs-topics small{opacity:.6;margin-left:4px}.rs-topic{margin-top:44px;padding-top:8px;border-top:1px solid rgba(128,128,128,.25)}.rs-h2 small{font-size:.5em;opacity:.6;font-weight:400}"; | |
| 4 | + export const PLAN_CSS = ".rs-plan{margin:8px 0 48px}.rs-plan p{font-size:17px;line-height:1.65;margin:0 0 14px;max-width:760px}.rs-h2{font-size:clamp(28px,4.4vw,42px);line-height:1.12;letter-spacing:-.01em;margin:56px 0 16px}.rs-h3{font-size:clamp(20px,2.4vw,24px);line-height:1.3;margin:40px 0 14px}.rs-status{border-left:4px solid currentColor;padding:10px 16px;background:rgba(128,128,128,.07);border-radius:0 12px 12px 0}.rs-small{font-size:15px!important;opacity:.8}.rs-split{display:grid;gap:24px;align-items:center;margin:24px 0}@media(min-width:820px){.rs-split{grid-template-columns:1.2fr 1fr;gap:40px}.rs-split.rs-flip>figure{order:-1}.rs-split.rs-flip{grid-template-columns:1fr 1.2fr}}.rs-fig{margin:0;border-radius:18px;overflow:hidden;aspect-ratio:1/1;max-height:440px}.rs-wide-fig{aspect-ratio:16/7;max-height:none;margin:22px 0 0}.rs-flow{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;counter-reset:f}.rs-flow li{position:relative;border:1px solid rgba(128,128,128,.32);border-radius:18px;padding:52px 18px 18px;background:rgba(128,128,128,.05);counter-increment:f}.rs-flow li::before{content:counter(f);position:absolute;top:14px;left:18px;width:28px;height:28px;border-radius:50%;border:2px solid currentColor;font-size:14px;font-weight:700;line-height:24px;text-align:center}.rs-flow li::after{content:\"\";position:absolute;top:28px;left:56px;right:18px;border-top:2px dashed rgba(128,128,128,.45)}.rs-flow li:last-child::after{display:none}.rs-flow li b{display:block;font-size:17px;margin-bottom:6px}.rs-flow li span{display:block;font-size:15px;line-height:1.55;opacity:.85}.rs-tree{overflow-x:auto;padding:4px 0 8px}.rs-tree ul{list-style:none;margin:0;padding-left:22px;position:relative}.rs-tree>ul{padding-left:0}.rs-tree li{position:relative;padding:6px 0 6px 18px}.rs-tree>ul>li{padding-left:0}.rs-tree li::before{content:\"\";position:absolute;left:0;top:0;bottom:0;border-left:1px solid rgba(128,128,128,.55)}.rs-tree li::after{content:\"\";position:absolute;left:0;top:19px;width:14px;border-top:1px solid rgba(128,128,128,.55)}.rs-tree li:last-child::before{bottom:auto;height:19px}.rs-tree>ul>li::before,.rs-tree>ul>li::after{display:none}.rs-tree span{display:inline-block;border:1px solid rgba(128,128,128,.4);border-radius:12px;padding:8px 14px;font-size:15px;background:rgba(128,128,128,.06)}.rs-tree>ul>li>span{font-weight:700;border-width:2px;font-size:16px}@media(min-width:760px){.rs-tree>ul>li{text-align:center}.rs-tree>ul>li>ul{display:flex;justify-content:center;gap:12px;padding:24px 0 0}.rs-tree>ul>li>ul::before{content:\"\";position:absolute;top:0;left:50%;height:12px;border-left:1px solid rgba(128,128,128,.55)}.rs-tree>ul>li>ul>li{flex:1 1 0;max-width:260px;padding:14px 0 0;text-align:center}.rs-tree>ul>li>ul>li::before{top:0;bottom:auto;left:-6px;right:-6px;height:0;border-left:0;border-top:1px solid rgba(128,128,128,.55)}.rs-tree>ul>li>ul>li:first-child::before{left:50%}.rs-tree>ul>li>ul>li:last-child::before{right:50%;height:0}.rs-tree>ul>li>ul>li:only-child::before{display:none}.rs-tree>ul>li>ul>li::after{top:0;left:50%;width:0;height:14px;border-top:0;border-left:1px solid rgba(128,128,128,.55)}.rs-tree>ul>li>ul>li>span{display:block;font-weight:600}.rs-tree>ul>li>ul>li ul{padding:8px 0 0}.rs-tree>ul>li>ul>li li{padding:3px 0}.rs-tree>ul>li>ul>li li::before,.rs-tree>ul>li>ul>li li::after{display:none}.rs-tree>ul>li>ul>li li span{font-size:13px;padding:5px 10px;border-style:dashed}}@media(min-width:760px){.rs-flow.rs-flow-3{grid-template-columns:repeat(3,1fr)}}.rs-flow.rs-flow-3 li:nth-child(3n)::after{display:none}.rs-selforg{font-size:1.08em;line-height:1.6;max-width:62ch}.rs-net{max-width:560px;margin:18px auto 8px}.rs-net-svg{display:block;width:100%;height:auto;overflow:visible}.rs-circles{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.rs-circles>li{border:1px solid rgba(128,128,128,.4);border-radius:18px;padding:14px 16px;background:rgba(128,128,128,.06)}.rs-circles>li>b{display:block;font-size:16px}.rs-circles ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}.rs-circles ul li{font-size:13px;border:1px dashed rgba(128,128,128,.55);border-radius:999px;padding:4px 10px}.rs-cols{display:grid;gap:14px;margin:32px 0 0}@media(min-width:720px){.rs-cols{grid-template-columns:1fr 1fr}}.rs-card{border-radius:18px;padding:4px 22px 18px;background:rgba(128,128,128,.07)}.rs-card .rs-h3{margin-top:18px}.rs-bullets{margin:0 0 8px;padding-left:0;list-style:none}.rs-bullets li{font-size:16px;line-height:1.6;margin:6px 0;padding-left:28px;position:relative}.rs-bullets li::before{content:\"\\2713\";position:absolute;left:0;top:0;font-weight:700;opacity:.8}.rs-arrows li::before{content:\"\\2192\"}.rs-steps{list-style:none;margin:8px 0 0;padding:0;counter-reset:s;max-width:820px}.rs-steps li{position:relative;padding:0 0 22px 60px;counter-increment:s}.rs-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;border:2px solid currentColor;font-weight:700;font-size:17px;line-height:36px;text-align:center}.rs-steps li::after{content:\"\";position:absolute;left:19px;top:46px;bottom:4px;border-left:2px solid rgba(128,128,128,.35)}.rs-steps li:last-child::after{display:none}.rs-steps b{display:block;font-size:18px;margin:8px 0 4px}.rs-steps span{display:block;font-size:16px;line-height:1.6;opacity:.85}.rs-list{list-style:none;margin:0;padding:0;display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}.rs-item{display:flex;flex-direction:column;border:1px solid rgba(128,128,128,.3);border-radius:18px;padding:20px 22px;background:rgba(128,128,128,.05)}.rs-item h2{font-size:19px;line-height:1.35;margin:0 0 8px}.rs-item h2 a{color:inherit;text-decoration:none}.rs-item h2 a:hover{text-decoration:underline;text-underline-offset:3px}.rs-item p{margin:0 0 12px;font-size:16px;line-height:1.6}.rs-src{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:13px!important;opacity:.75;margin:0 0 10px!important;text-transform:uppercase;letter-spacing:.06em}.rs-year{flex:none;border:1px solid rgba(128,128,128,.45);border-radius:999px;padding:2px 9px;letter-spacing:0}.rs-read{margin-top:auto;color:inherit;font-size:15px;font-weight:600;text-underline-offset:3px}.rs-updated{font-size:14px;opacity:.65;margin-top:28px}.rs-topics small{opacity:.6;margin-left:4px}.rs-topic{margin-top:44px;padding-top:8px;border-top:1px solid rgba(128,128,128,.25)}.rs-num{counter-reset:n}.rs-num li{counter-increment:n}.rs-num li::before{content:counter(n)\".\"!important}.rs-services{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}.rs-services li{border:1px solid rgba(128,128,128,.32);border-radius:16px;padding:14px 18px;background:rgba(128,128,128,.05);font-size:16px;line-height:1.55}.rs-services a{display:block;font-weight:700;font-size:18px;color:inherit;margin-bottom:4px}.rs-services span{opacity:.85}.rs-h2 small{font-size:.5em;opacity:.6;font-weight:400}"; |
src/routes/skills.tsx changed
| 4 | 4 | import { importFromGithub, refreshStale, REPO_SKILL_LIMIT } from '../lib/github'; |
| 5 | 5 | import { getImport, importItems, processNextItem, startRepoShare, type ImportItemView, type ImportRow } from '../lib/imports'; |
| 6 | 6 | import { copySendOptions, installPlan, installSendOptions, multiAgentCopy } from '../lib/install'; |
| 7 | + import { hostName, ownRepo, repoLabel, repoWebUrl } from '../lib/hosts'; | |
| 7 | 8 | import { parseSkillMd, renderMarkdown } from '../lib/markdown'; |
| 8 | 9 | import { ipKey, rateLimit } from '../lib/ratelimit'; |
| 9 | 10 | import type { Finding } from '../lib/scan'; |
| ⋯ | ||
| 293 | 294 | async function pickPage(c: Ctx, skill: SkillCardRow) { |
| 294 | 295 | const viewer = c.get('user'); |
| 295 | 296 | const admin = !!viewer?.is_admin; |
| 296 | - const repo = skill.github_repo | |
| 297 | + const repo = skill.github_repo && !ownRepo(skill.github_repo) | |
| 297 | 298 | ? await c.env.DB.prepare('SELECT * FROM repo_signals WHERE repo_full_name = ?').bind(skill.github_repo).first<{ stars: number; forks: number; pushed_at: string | null; license_spdx: string | null; archived: number; unavailable: number; fetched_at: number }>() |
| 298 | 299 | : null; |
| 299 | 300 | refreshStale(c.env, c.executionCtx, [skill]); |
| 300 | 301 | const more = skill.category ? (await listSkills(c.env, { category: skill.category, sort: 'top', limit: 4, viewerId: viewer?.id })).filter((s) => s.id !== skill.id).slice(0, 3) : []; |
| 301 | - const source = skill.source_url ?? `https://github.com/${skill.github_repo}`; | |
| 302 | - const maker = skill.maker ?? skill.github_repo ?? 'its maker'; | |
| 302 | + const own = ownRepo(skill.github_repo); | |
| 303 | + const source = skill.source_url ?? repoWebUrl(skill.github_repo ?? '', skill.github_path); | |
| 304 | + const host = hostName(source); | |
| 305 | + const maker = skill.maker ?? (skill.github_repo ? repoLabel(skill.github_repo) : null) ?? 'its maker'; | |
| 303 | 306 | const platforms = splitPlatforms(skill.platforms); |
| 304 | 307 | const license = skill.license ?? repo?.license_spdx ?? null; |
| 305 | 308 | const sends = skill.state === 'live' ? installSendOptions(c.env.SITE_URL, skill, installPlan(c.env.SITE_URL, skill)) : []; |
| ⋯ | ||
| 318 | 321 | <p class="lede">{skill.summary}</p> |
| 319 | 322 | <div class="skill-by"> |
| 320 | 323 | <a class="by by-maker" href={skill.maker_url ?? source} target="_blank" rel="noopener noreferrer"> |
| 321 | - {icon('github', 26)} | |
| 324 | + {icon(own ? 'fork' : 'github', 26)} | |
| 322 | 325 | <span> |
| 323 | 326 | Made by <strong>{maker}</strong> |
| 324 | 327 | </span> |
| ⋯ | ||
| 335 | 338 | <Stars skill={skill} /> |
| 336 | 339 | </div> |
| 337 | 340 | <SendToAgent options={sends} block /> |
| 338 | - <a class="btn btn-ghost btn-block" href={source} target="_blank" rel="noopener noreferrer">{icon('github', 18)} Get it on GitHub {icon('external', 15)}</a> | |
| 341 | + <a class="btn btn-ghost btn-block" href={source} target="_blank" rel="noopener noreferrer">{icon(host === 'GitHub' ? 'github' : 'fork', 18)} Get it on {host} {icon('external', 15)}</a> | |
| 339 | 342 | {skill.state === 'live' ? <ShareButton c={c} skill={skill} by={maker} /> : null} |
| 340 | 343 | {admin ? <a class="btn btn-ghost btn-block" href={`/admin?tab=picks&edit=${skill.id}#pick-form`}>Edit this pick</a> : null} |
| 341 | 344 | <dl class="facts"> |
| ⋯ | ||
| 345 | 348 | <> |
| 346 | 349 | <dt>Repo</dt> |
| 347 | 350 | <dd> |
| 348 | - <a href={`https://github.com/${skill.github_repo}`} target="_blank" rel="noopener noreferrer">{skill.github_repo}</a> | |
| 351 | + <a href={repoWebUrl(skill.github_repo)} target="_blank" rel="noopener noreferrer">{repoLabel(skill.github_repo)}</a> | |
| 349 | 352 | {repo?.unavailable ? <span class="pill pill-rejected">Repo unavailable</span> : null} |
| 350 | 353 | {repo?.archived ? <span class="pill">Archived</span> : null} |
| 351 | 354 | </dd> |
| ⋯ | ||
| 369 | 372 | <AgentBadge /> |
| 370 | 373 | {skill.pick_note ? <p>{skill.pick_note}</p> : null} |
| 371 | 374 | <p class="fine"> |
| 372 | - Sprout is the Skillfarm agent. This skill belongs to {maker}. {copy ? 'Skillfarm links to the original, and keeps a converted copy for other agents, described below.' : "Skillfarm links to it and hosts no copy, so you always install the maker's current version."} Stars are for the whole repo. | |
| 375 | + Sprout is the Skillfarm agent. This skill belongs to {maker}. {copy ? 'Skillfarm links to the original, and keeps a converted copy for other agents, described below.' : "Skillfarm links to it and hosts no copy, so you always install the maker's current version."}{own ? '' : ' Stars are for the whole repo.'} | |
| 373 | 376 | </p> |
| 374 | 377 | </section> |
| 375 | 378 | |
| ⋯ | ||
| 400 | 403 | ))} |
| 401 | 404 | </div> |
| 402 | 405 | <p> |
| 403 | - <a href={copy.url} target="_blank" rel="noopener noreferrer">Read the converted copy on GitHub</a> | |
| 406 | + <a href={copy.url} target="_blank" rel="noopener noreferrer">Read the converted copy</a> | |
| 404 | 407 | </p> |
| 405 | 408 | </section> |
| 406 | 409 | ) : null} |
| ⋯ | ||
| 418 | 421 | <p class="muted">Follow the install steps in the maker's README. Read the skill before you install it, the same way you would read a script before you run it.</p> |
| 419 | 422 | )} |
| 420 | 423 | <p> |
| 421 | - <a href={source} target="_blank" rel="noopener noreferrer">Open {skill.github_path ? 'the skill folder' : 'the repo'} on GitHub</a> | |
| 424 | + <a href={source} target="_blank" rel="noopener noreferrer">Open {skill.github_path ? 'the skill folder' : 'the repo'} on {host}</a> | |
| 422 | 425 | </p> |
| 423 | 426 | </section> |
| 424 | 427 | |
| ⋯ | ||
| 639 | 642 | FROM reviews r JOIN users u ON u.id = r.user_id WHERE r.skill_id = ? AND r.removed_at IS NULL ORDER BY r.created_at DESC LIMIT 50`, |
| 640 | 643 | ).bind(skill.id).all<{ id: string; rating: number; body: string; created_at: number; user_id: string; handle: string; display_name: string; avatar_key: string | null; avatar_fallback: string | null; seeds_total: number }>(), |
| 641 | 644 | skill.replanted_from_skill_id ? getSkillCardById(c.env, skill.replanted_from_skill_id) : Promise.resolve(null), |
| 642 | - skill.github_repo ? c.env.DB.prepare('SELECT * FROM repo_signals WHERE repo_full_name = ?').bind(skill.github_repo).first<{ stars: number; forks: number; pushed_at: string | null; license_spdx: string | null; archived: number; unavailable: number; fetched_at: number }>() : Promise.resolve(null), | |
| 645 | + skill.github_repo && !ownRepo(skill.github_repo) ? c.env.DB.prepare('SELECT * FROM repo_signals WHERE repo_full_name = ?').bind(skill.github_repo).first<{ stars: number; forks: number; pushed_at: string | null; license_spdx: string | null; archived: number; unavailable: number; fetched_at: number }>() : Promise.resolve(null), | |
| 643 | 646 | c.env.DB.prepare("SELECT COUNT(*) AS n FROM skills WHERE replanted_from_skill_id = ? AND state = 'live'").bind(skill.id).first<{ n: number }>(), |
| 644 | 647 | ]); |
| 645 | 648 | const comments = await listComments(c.env, skill.id); |
| ⋯ | ||
| 728 | 731 | <> |
| 729 | 732 | <dt>Repo</dt> |
| 730 | 733 | <dd> |
| 731 | - <a href={`https://github.com/${skill.github_repo}${skill.github_path ? `/tree/HEAD/${skill.github_path}` : ''}`} rel="noopener">{skill.github_repo}</a> | |
| 734 | + <a href={repoWebUrl(skill.github_repo, skill.github_path)} rel="noopener">{repoLabel(skill.github_repo)}</a> | |
| 732 | 735 | {repo?.unavailable ? <span class="pill pill-rejected">Repo unavailable</span> : null} |
| 733 | 736 | {repo?.archived ? <span class="pill">Archived</span> : null} |
| 734 | 737 | </dd> |
src/routes/start-guide.ts added
| 1 | + // Generated by projectatomai/hosting-research tools/start-gen/external.py --ts. Do not edit by hand. | |
| 2 | + export const START_HTML = "<style id=\"start-guide\">\n.sg{max-width:820px;margin:0 auto;padding:8px 20px 72px;box-sizing:border-box}\n.sg h1{font-size:clamp(34px,5.5vw,52px);line-height:1.08;margin:0 0 16px}\n.sg .lede{font-size:20px;line-height:1.6;opacity:.9;margin:0 0 12px}\n.sg .now{font-size:16px;opacity:.75;margin:0 0 28px}\n.sg ol.sg-steps{list-style:none;counter-reset:s;margin:0;padding:0}\n.sg ol.sg-steps>li{counter-increment:s;position:relative;padding:28px 0 28px 64px;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}\n.sg ol.sg-steps>li::before{content:counter(s);position:absolute;left:0;top:26px;width:44px;height:44px;border-radius:50%;border:2px solid currentColor;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px}\n.sg h2{font-size:clamp(22px,3vw,28px);line-height:1.2;margin:0 0 10px}\n.sg p,.sg li li{font-size:18px;line-height:1.6}.sg p{margin:0 0 12px}\n.sg ul{margin:0 0 12px;padding-left:22px}.sg ul li{margin:0 0 6px}\n.sg a{color:inherit;text-decoration:underline;text-underline-offset:3px}\n.sg .note{font-size:16px;opacity:.75}\n@media(max-width:600px){.sg ol.sg-steps>li{padding-left:0;padding-top:76px}.sg ol.sg-steps>li::before{top:22px}}\n</style><h1>Start your own</h1><p class=\"lede\">Anyone, anywhere in the world, can start their own Skillfarm. You don't need to ask us, and you can give it a different name. Our organization model is open: our designs, research and specs are public domain. This guide walks through every step, in order.</p><p class=\"now\">Where we are today: Free to use.</p><ol class=\"sg-steps\"><li><h2>Learn how it works</h2><p>Read <a href=\"/research\">our research page</a>: how Skillfarm works and every public source behind it.</p></li><li><h2>Get the code</h2><p>All of our code is public domain: free to use, copy and change, with no sign-up.</p><ul><li><a href=\"https://branchwell.ai/skillfarm/website\" rel=\"noopener\">The website code</a></li><li><a href=\"https://branchwell.ai/skillfarm/research\" rel=\"noopener\">The research files</a></li><li><a href=\"https://branchwell.ai/skillfarm\" rel=\"noopener\">Everything else we publish</a></li></ul></li><li><h2>Build and run it</h2><p>Follow the build notes in the code. Run it on your own computer first, then test it on every device you plan to support.</p></li><li><h2>Pick your name and put it online</h2><p>You don't need to ask us, and you don't need to call it Skillfarm. Host it anywhere, on any domain, in any country. Change anything you like.</p></li><li><h2>Keep it honest</h2><p>Keep it free of ads and tracking, keep people's data private, and say plainly what works and what doesn't yet.</p></li><li><h2>Share back</h2><p>Put your changes on <a href=\"https://branchwell.ai\" rel=\"noopener\">Branchwell</a> so anyone can build on them, the same way you built on ours.</p></li></ol>"; |
src/views/components.tsx changed
| 4 | 4 | import type { SendOption } from '../lib/install'; |
| 5 | 5 | import { nextTier, tierFor, tierProgress } from '../lib/tiers'; |
| 6 | 6 | import { compactNumber, timeAgo } from '../lib/util'; |
| 7 | + import { ownRepo } from '../lib/hosts'; | |
| 7 | 8 | import { defaultAvatar, icon, spot, tierArt } from './art'; |
| 8 | 9 | |
| 9 | 10 | type AvatarUser = { id?: string; handle: string; avatar_key: string | null; avatar_fallback: string | null }; |
| ⋯ | ||
| 61 | 62 | }; |
| 62 | 63 | |
| 63 | 64 | export const Stars: FC<{ skill: { github_repo: string | null; stars: number | null; repo_fetched_at: number | null; repo_unavailable: number | null } }> = ({ skill }) => { |
| 64 | - if (!skill.github_repo || skill.stars == null) return null; | |
| 65 | + // Skillfarm's own repos are on Branchwell, which has no stars. | |
| 66 | + if (!skill.github_repo || ownRepo(skill.github_repo) || skill.stars == null) return null; | |
| 65 | 67 | const tip = `Stars on ${skill.github_repo}, checked ${timeAgo(skill.repo_fetched_at)}${skill.repo_unavailable ? '. Repo unavailable.' : ''}`; |
| 66 | 68 | return ( |
| 67 | 69 | <span class="stat stat-stars" title={tip}> |
| ⋯ | ||
| 103 | 105 | <div class="skill-card-foot"> |
| 104 | 106 | {pick ? ( |
| 105 | 107 | <span class="by by-maker" title={`Made by ${skill.maker}`}> |
| 106 | - {icon('github', 20)} | |
| 108 | + {icon(ownRepo(skill.github_repo) ? 'fork' : 'github', 20)} | |
| 107 | 109 | <span>{skill.maker}</span> |
| 108 | 110 | </span> |
| 109 | 111 | ) : ( |
src/views/layout.tsx changed
| 76 | 76 | |
| 77 | 77 | const Footer: FC<{ path: string }> = ({ path }) => ( |
| 78 | 78 | <footer class="site-footer"> |
| 79 | - <div class="wrap footer-grid"> | |
| 80 | - <div class="footer-about"> | |
| 81 | - <a href="/" class="brand brand-light"> | |
| 82 | - {brandMark(30)} | |
| 83 | - <span>Skillfarm</span> | |
| 84 | - </a> | |
| 85 | - <p>A curated list of agent skills, free for everyone. Every shared skill is reviewed before it goes live.</p> | |
| 86 | - </div> | |
| 87 | - <nav aria-label="Explore"> | |
| 88 | - <h2>Explore</h2> | |
| 89 | - <a href="/skills">Browse skills</a> | |
| 90 | - <a href="/skills?sort=trending">Trending</a> | |
| 91 | - <a href="/prompts">Prompts</a> | |
| 92 | - <a href="/growers">Growers</a> | |
| 93 | - <a href="/leaderboard">Leaderboard</a> | |
| 94 | - </nav> | |
| 95 | - <nav aria-label="Take part"> | |
| 96 | - <h2>Take part</h2> | |
| 97 | - <a href="/share">Share a skill</a> | |
| 98 | - <a href="/seeds">How Seeds work</a> | |
| 99 | - <a href="/connect">Connect over MCP</a> | |
| 100 | - <a href="/help">Help and setup prompts</a> | |
| 101 | - <a href="/guidelines">Guidelines and safety</a> | |
| 102 | - </nav> | |
| 103 | - <nav aria-label="Skillfarm"> | |
| 104 | - <h2>Skillfarm</h2> | |
| 105 | - <a href="/privacy">Privacy</a> | |
| 106 | - <a href="/research">Research</a> | |
| 107 | - <a href="/guidelines#reporting">Report a problem</a> | |
| 108 | - <a href={`https://branchwell.ai/skillfarm/website/for${path}`} rel="noopener">Source</a> | |
| 109 | - </nav> | |
| 110 | - </div> | |
| 111 | - <div class="wrap footer-bottom"> | |
| 112 | - <span>Skillfarm · Free to use · Seeds are status, not currency.</span> | |
| 113 | - </div> | |
| 79 | + <nav class="wrap footer-links" aria-label="Footer"> | |
| 80 | + <a href="https://branchwell.ai/skillfarm/research" rel="noopener">Research</a> | |
| 81 | + <span class="footer-dot" aria-hidden="true">·</span> | |
| 82 | + <a href={`https://branchwell.ai/skillfarm/website/for${path}`} rel="noopener">Source</a> | |
| 83 | + </nav> | |
| 114 | 84 | </footer> |
| 115 | 85 | ); |
| 116 | 86 |
test/e2e.mjs changed
| 549 | 549 | check('Gemini CLI installs into the shared agents folder', geminiPlan?.agents?.[0]?.folder === '~/.agents/skills'); |
| 550 | 550 | // Converted copies of picks. |
| 551 | 551 | const copyPage = await (await anon.req('/skills/sprout/powerpoint-decks')).text(); |
| 552 | - check('a pick with a converted copy offers the multi-agent version', copyPage.includes('id="multi-agent"') && copyPage.includes('npx skills add https://github.com/projectatomai/skills/tree/main/converted/pptx -a codex -g -y') && copyPage.includes('/converted/pptx/NOTICE.md') && copyPage.includes('Install the original')); | |
| 552 | + check('a pick with a converted copy offers the multi-agent version', copyPage.includes('id="multi-agent"') && copyPage.includes('npx skills add https://branchwell.ai/skillfarm/skills.git --skill pptx --full-depth -a codex -g -y') && copyPage.includes('branchwell.ai/skillfarm/skills/blob/main/converted/pptx/NOTICE.md') && !copyPage.includes('github.com/projectatomai') && copyPage.includes('Install the original')); | |
| 553 | 553 | check('a pick without a converted copy shows no multi-agent card', !(await (await anon.req('/skills/sprout/security-best-practices')).text()).includes('id="multi-agent"')); |
| 554 | 554 | const copyPlan = await call('install_skill', { skill: 'sprout/powerpoint-decks' }); |
| 555 | - check('install steps use the maker\'s way for Claude Code and the converted copy elsewhere', copyPlan?.agents?.length === 3 && copyPlan.agents.find((k) => k.agent === 'claude-code')?.quick_where === 'claude-code' && copyPlan.agents.find((k) => k.agent === 'codex')?.copy === true && copyPlan.multi_agent?.agents?.length === 3 && copyPlan.multi_agent.repo === 'projectatomai/skills', JSON.stringify(copyPlan?.agents?.map((k) => [k.agent, k.quick_where, k.copy]))); | |
| 555 | + check('install steps use the maker\'s way for Claude Code and the converted copy elsewhere', copyPlan?.agents?.length === 3 && copyPlan.agents.find((k) => k.agent === 'claude-code')?.quick_where === 'claude-code' && copyPlan.agents.find((k) => k.agent === 'codex')?.copy === true && copyPlan.multi_agent?.agents?.length === 3 && copyPlan.multi_agent.repo === 'skillfarm/skills', JSON.stringify(copyPlan?.agents?.map((k) => [k.agent, k.quick_where, k.copy]))); | |
| 556 | 556 | const copyOne = await call('install_skill', { skill: 'sprout/powerpoint-decks', agent: 'gemini-cli' }); |
| 557 | 557 | check('asking for one agent narrows the converted copy too', copyOne?.agents?.length === 1 && copyOne.multi_agent?.agents?.length === 1 && copyOne.agents[0].quick.endsWith('-a gemini-cli -g -y')); |
| 558 | 558 | const copySearch = await call('search_skills', { query: 'powerpoint', agent: 'codex' }); |
| 559 | - check('a converted pick is found under Codex and names its copy', copySearch?.skills?.some((k) => k.skill === 'sprout/powerpoint-decks' && k.multi_agent_version === 'https://github.com/projectatomai/skills/tree/main/converted/pptx'), JSON.stringify(copySearch?.skills?.map((k) => k.skill))); | |
| 559 | + check('a converted pick is found under Codex and names its copy', copySearch?.skills?.some((k) => k.skill === 'sprout/powerpoint-decks' && k.multi_agent_version === 'https://branchwell.ai/skillfarm/skills/tree/main/converted/pptx'), JSON.stringify(copySearch?.skills?.map((k) => k.skill))); | |
| 560 | 560 | // The prompt library. |
| 561 | 561 | const promptsRes = await anon.req('/prompts'); |
| 562 | 562 | const promptsHtml = await promptsRes.text(); |