sandbox-supabase
БесплатноБез исполняемых скриптовНе проверенRead and write Supabase tables from a Code node or CodeAct action, with NodeTool's PostgREST request builder running on the host
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
Supabase in the sandbox
Specifier: @nodetool-ai/sandbox-supabase. Import it at the top of the body.
Supabase's REST surface is PostgREST: the whole query lives in the URL and the
write semantics live in a Prefer header. Both are easy to get subtly wrong —
an upsert without resolution=merge-duplicates is just a failed insert — so
this pack does the encoding.
Nothing here sends a request. Both exports build one; the guest's own
fetch sends it, under the run's fetch cap and SSRF guard.
from — one table
import { from } from "@nodetool-ai/sandbox-supabase";
const url = await nodetool.secrets.get("SUPABASE_URL");
const key = await nodetool.secrets.get("SUPABASE_KEY");
const req = await from({
url, key,
table: "issues",
select: "id,title,status",
filters: { status: "eq.open" },
order: "created_at.desc",
limit: 20
});
const res = await fetch(req.url, req);
if (!res.ok) throw new Error(`Supabase select failed: ${res.status}`);
return { rows: res.json };
method picks the operation:
| method | operation |
|---|---|
GET (default) |
select |
POST |
insert, or upsert with onConflict |
PATCH |
update the rows the filters match |
DELETE |
delete the rows the filters match |
Options: url and key (required), table (required), method, select,
filters, order, limit, offset, body, onConflict, count,
returning, query.
Filters take either form:
filters: { status: "eq.open", priority: "in.(high,urgent)" } // raw PostgREST
filters: { age: { gte: 18, lt: 65 } } // operator object
Insert
const req = await from({ url, key, table: "events", method: "POST", body: inputs.rows });
Update the matching rows
const req = await from({
url, key, table: "issues", method: "PATCH",
filters: { id: `eq.${inputs.id}` },
body: { status: "closed" }
});
Upsert — onConflict names the unique column and turns the insert into a
merge:
const req = await from({
url, key, table: "users", method: "POST",
onConflict: "email", body: inputs.users
});
A write returns the affected rows. Pass returning: "minimal" when you do not
want them back.
rpc — a Postgres function
import { rpc } from "@nodetool-ai/sandbox-supabase";
const req = await rpc({ url, key, fn: "search_issues", args: { term: inputs.term } });
return { rows: (await fetch(req.url, req)).json };
Gotchas
- Every export is async. A host call is a round trip.
- A
DELETEorPATCHwith no filters hits every row. PostgREST does not refuse it. Pass the filters. - The anon key obeys row-level security. A select that returns
[]against a table with rows usually means RLS, not an empty table. The service-role key bypasses it — and bypasses it for every row, so keep it out of anything a user's prompt can steer. - Errors arrive as JSON with a non-2xx status. Check
res.okand readres.json.message; PostgREST says exactly what it disliked. - Supabase caps a page at 1000 rows. Page with
limitandoffset.
Установить sandbox-supabase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sandbox-supabase?
Read and write Supabase tables from a Code node or CodeAct action, with NodeTool's PostgREST request builder running on the host
Как установить скилл sandbox-supabase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandbox-supabase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic