Branchwell

Skillfarm / website · skillfarm.ai

443f4fb7f176dfa237ca639945f31e22fbe94e8c

Latest: Apply black and white styling to Skillfarm pages by protomota, 49 min ago

migrations
public
scripts
src
test
.gitignore70 B
package-lock.json72.5 KB
package.json837 B
README.md3.6 KB
tsconfig.json395 B
wrangler.jsonc1.3 KB
wrangler.preview.jsonc1.4 KB

Skillfarm

Website: https://skillfarm.ai

The site at skillfarm.ai: a free, curated list of agent skills (SKILL.md bundles), grown by its community. Every shared skill is reviewed by a person before it goes live. Members earn Seeds, a status score, for sharing skills that others install, like, review and replant.

One Cloudflare Worker serves everything: the pages (server-rendered with Hono JSX), the sign-in flows, the admin review queue, and an MCP server.

How it fits together

PieceWhere
Pages and formssrc/routes/*.tsx, src/views/
Data rules (Seeds, likes, reviews, submissions)src/lib/skills.ts, src/lib/points.ts, src/lib/tiers.ts
Sign-in with GitHub and Googlesrc/routes/auth.tsx, src/lib/session.ts
Review of submissionssrc/lib/scan.ts (pattern scan), src/lib/ai.ts (Claude review), src/routes/admin.tsx
Email through Resendsrc/lib/email.ts
MCP serversrc/routes/mcp.ts at /mcp and /mcp/account
OAuth server for MCP clientssrc/routes/oauth.tsx, src/lib/tokens.ts
Schemamigrations/ (D1)
Styles, scripts, fonts, artworkpublic/, src/views/art.ts

Storage: D1 database skillfarm, R2 buckets skillfarm-skills (skill files) and skillfarm-avatars.

Every submission, from the site or over MCP, lands in the review queue. decideVersion in src/lib/skills.ts is the only code path that makes a skill public, and only an admin can call it.

Sprout's picks

Sprout (@sprout, users.is_agent = 1) is the site's own agent. It cannot sign in, earns no Seeds and is on no board. Its picks are skills made by other people: rows in skills with kind = 'link' that credit a maker and link to the maker's repo. Skillfarm stores no files for a pick, so there is nothing to download, review or replant. An admin adds, edits and removes picks in /admin under "Sprout's picks" (savePick in src/lib/skills.ts, admin only). The first picks are in migrations/0003_seed_sprout_picks.sql.

Run it locally

npm install
printf 'SESSION_SECRET=%s\nDEV_LOGIN=1\nSITE_URL=http://localhost:8787\nGITHUB_API_BASE=http://127.0.0.1:8789\nGITHUB_RAW_BASE=http://127.0.0.1:8789/raw\n' "$(openssl rand -base64 32)" > .dev.vars
npm run db:migrate:local
npm run dev          # http://127.0.0.1:8787
npm test             # end-to-end checks against the dev server

DEV_LOGIN=1 adds test sign-in links on /signin. They only work on localhost. The two GITHUB_ lines point repo reading at the stand-in for GitHub that npm test starts, so the tests never call GitHub. They are ignored unless DEV_LOGIN is set. Remove them to read real repos while you develop.

Deploy

npm run db:migrate   # applies migrations to the production D1 database
npm run deploy

Secrets, set with npx wrangler secret put NAME:

SecretUsed for
SESSION_SECRETSigning cookies. Any random string of 32 or more characters.
ANTHROPIC_API_KEYThe AI review of each submission
RESEND_API_KEYEmail notices. The EMAIL_FROM domain must be verified in Resend.

The site runs with any of these missing: the matching feature shows as "being set up" and /admin → System lists what is configured.

Sign-in is BioLock only: each device's own fingerprint or face reader (WebAuthn, built-in readers only, user verification required). No passwords and no outside sign-in providers. Admins are users with is_admin = 1. To add BioLock to an existing account that has no device yet (such as the site owner's Sprout account), run scripts/biolock-link.sh <handle> and open the one-time link it prints on that device.