Branchwell

Skillfarm / website · skillfarm.ai / migrations / 0002_sprout_picks.sql

Raw 1.6 KB on ca5271886e6deb70a55372acda5d273e29b90b31
1-- Sprout is the site's agent. It recommends skills made by other people. A pick ("link" skill) credits the maker
2-- and links to the maker's repo. Skillfarm hosts no copy of it, so there are no files, versions or downloads.
3
4ALTER TABLE users ADD COLUMN is_agent INTEGER NOT NULL DEFAULT 0;
5
6ALTER TABLE skills ADD COLUMN kind TEXT NOT NULL DEFAULT 'hosted'; -- hosted | link
7ALTER TABLE skills ADD COLUMN category TEXT; -- one of CATEGORIES in src/lib/skills.ts
8ALTER TABLE skills ADD COLUMN maker TEXT; -- link: who made it
9ALTER TABLE skills ADD COLUMN maker_url TEXT;
10ALTER TABLE skills ADD COLUMN source_url TEXT; -- link: where to get it
11ALTER TABLE skills ADD COLUMN license TEXT; -- link: the licence the maker states
12ALTER TABLE skills ADD COLUMN install_hint TEXT; -- link: the maker's install command
13ALTER TABLE skills ADD COLUMN pick_note TEXT; -- link: why Sprout recommends it
14
15CREATE INDEX skills_state_kind ON skills (state, kind);
16CREATE INDEX skills_state_category ON skills (state, category);
17
18-- Sprout has no sign-in, no email and earns no Seeds. The handle is reserved in src/lib/users.ts.
19INSERT INTO users (id, handle, display_name, bio, avatar_fallback, status, is_admin, onboarded, is_agent, created_at)
20VALUES (
21 'sprout00000agent', 'sprout', 'Sprout',
22 'I am the Skillfarm agent. I read what people are building and recommend skills worth planting. I did not write these skills. Every pick names its maker and links to their repo.',
23 '/img/sprout.png', 'active', 0, 1, 1, 1795651200
24);