Set up, download, verify, and seed the optional Grida Library developer corpus into local Supabase. Use when Library browse/search, Desktop reference picking, or agent Library tools need realistic local assets and Gemini embeddings; also use when changing the gridaco/grida consumer for gridaco/library developer-corpus releases.
71
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
opt-library is the setup and seeding skill for Grida's optional local
Library service fixture. Use it to add a realistic corpus to an already-running
local Grida stack. Keep it separate from the canonical migrations and base
seed.
The standard local database is complete without Library content. Its base seed creates only the categories required by ordinary development; an empty public corpus is valid.
The developer corpus is an additional product-development fixture: the current
Home prerelease
contains 631 images and is about 137 MiB compressed. Making it part of
supabase db reset would impose download, storage, and reset costs on every
contributor, including those not working on Library discovery. A reset
therefore removes this optional data; rerun this skill when it is needed.
Seeding does not call an AI provider. The approved archive already contains the matching image and text representations. Runtime semantic queries still need Grida's configured query-embedding provider; cold browse works without it.
The Library deliberately spans two repositories:
gridaco/grida owns the data plane:
Supabase schema and migration history, the public library storage bucket,
product retrieval surfaces, and this local importer.gridaco/library owns content
operations: curation, batch producers, enrichment, and bounded developer
corpus releases.Do not move schema ownership or production credentials into the operations repository. Do not turn this importer into a production connector. The handoff between repositories is the versioned, sanitized archive contract.
Read the canonical Grida Library working-group
document before changing this
boundary. The operations-side archive contract is documented in
fixture_release/README.md.
The product surfaces are the Library and its
licensing page.
GRIDA-SEC-009 — local-destination boundary.
seedaccepts only the exact127.0.0.1API and database ports declared by this checkout'ssupabase/config.toml. It rejectslocalhost, IPv6 and alternate loopback hosts, remote/lookalike hosts, wrong ports or URL shapes, and all caller-provided destination URLs and keys before downloading or writing. Local service-role HTTP requests bypass system proxies and reject redirects; direct SQL strips inherited libpqPG*connection overrides.
Run from the gridaco/grida repository root:
supabase start
python .agents/skills/opt-library/scripts/seed.py seedUse the normal local Supabase prerequisites plus Python 3.12 and psql.
The command:
.tmp/opt-library/;supabase status;127.0.0.1 API and database endpoints on the ports declared
by this checkout's supabase/config.toml;It is idempotent by content hash. Use --limit for a quick smoke seed:
python .agents/skills/opt-library/scripts/seed.py seed --limit 12Inspect or prefetch the release without touching the database:
python .agents/skills/opt-library/scripts/seed.py download
python .agents/skills/opt-library/scripts/seed.py verifyPass --archive /path/to/archive.zip to verify or seed a maintainer-built
archive. Treat that as an explicit local override; the default release remains
pinned and must never silently follow latest.
supabase/seed.sql or
supabase/config.toml storage seeding.127.0.0.1 endpoints.<sha256>.<extension> and use the local Storage object ID as catalog identity.supabase db reset --local before database-test suites that expect the
canonical empty corpus. The reset intentionally removes this optional seed.03fb751
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.