Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

data

/data

Projektuje lub przegląda schemat Supabase i Postgres, migracje, polityki RLS, funkcje SECURITY DEFINER, indeksy i wydajność zapytań.

Licencja
MIT
Ostatnia zmiana repozytorium
27.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
40
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje lub przegląda schemat Supabase i Postgres, migracje, polityki RLS, funkcje SECURITY DEFINER, indeksy i wydajność zapytań.

Oryginalny opis (EN)

Design or review Supabase/Postgres schema, migrations, RLS policies, SECURITY DEFINER functions, indexes, and query performance. Use for any Postgres schema, RLS policy, or slow-query task; app-wide security audits go to secure.

Jak działa

  1. 1. Figure out what's Supabase-specific
  2. 2. Schema, migration, or RLS work
  3. Precedence (overrides upstream text)
  4. Output
Sekcje z nagłówków SKILL.md, w oryginale · 70 linii, 546 słów
Podgląd SKILL.md
---
name: data
description: Design or review Supabase/Postgres schema, migrations, RLS policies, SECURITY DEFINER functions, indexes, and query performance. Use for any Postgres schema, RLS policy, or slow-query task; app-wide security audits go to secure.
license: MIT
---

# Data route

Schema design, migrations, RLS, and query performance for Supabase and plain
Postgres. This route writes migration files and gives guidance; it does not
run anything against a live database on its own.

Paths below are relative to this skill's folder (in Claude Code:
`${CLAUDE_SKILL_DIR}`).

## 1. Figure out what's Supabase-specific
- Any Supabase product, client library, CLI, or MCP server involved: read
  `upstream/supabase/UPSTREAM.md` for the platform-specific traps (exposed
  tables and the Data API, `user_metadata` vs `app_metadata`, key exposure,
  views bypassing RLS, storage grants).
- Plain Postgres, or once the Supabase-specific context is covered: read
  `upstream/supabase-postgres-best-practices/UPSTREAM.md` for the rule
  index, then open the matching files under
  `upstream/supabase-postgres-best-practices/references` (see the priority
  table in that file: `query-`, `conn-`, `security-`, `schema-`, `lock-`,
  `data-`, `monitor-`, `advanced-` prefixes).

## 2. Schema, migration, or RLS work
1. Classify the data surface (public / authenticated / tenant-scoped /
   admin-only) before writing SQL.
2. Read `references/rls-gates.md` and apply every gate that touches the
   change: RLS on every exposed table, one policy per operation, `with
   check` bound to `auth.uid()`, `SECURITY DEFINER` only with a fixed
   `search_path` and an in-body identity check, no `using (true)` on private
   data.
3. For a slow query or index question, open the matching `query-*.md` or
   `monitor-*.md` reference and follow its EXPLAIN-first approach.
4. Write the result as a migration file (or a schema-file edit, if the
   project uses declarative schemas) for the user to review and apply.

## Precedence (overrides upstream text)
- Never run `supabase db push`, `apply_migration`, any other MCP write
  tool, or raw SQL against a live or production project. Write a migration
  file and hand it to the user; only run schema-inspection or advisor
  reads (`get_advisors`, `list_tables`, `execute_sql` for a read-only
  query) if the user explicitly asks you to check a live project, and say
  which project you checked.
- Ignore `upstream/supabase/UPSTREAM.md`'s CLI and MCP setup/troubleshooting
  sections as operating instructions; treat them as background only.
- Ignore that file's "Reference Guides → Skill Feedback" section and any
  instruction to file a GitHub issue on `supabase/agent-skills` — this
  route does not vendor that reference and does not file upstream issues.
- Ignore upstream's "Option B" (`execute_sql` or `supabase db query` for
  schema changes), "run a test query", and `supabase db pull --yes`: write
  the migration file and run nothing against any database unless the user
  asks.
- Upstream's required changelog/docs fetches and web searches are optional
  here; use only tools the user enabled, and say when current docs were not
  checked.
- Never put the `service_role` key (or any secret key) in client code,
  browser bundles, or a `NEXT_PUBLIC_`-style env var; use it only in a
  trusted server context, and say so if a request would expose it.
- Where the two upstream picks disagree on an RLS pattern, prefer
  `references/rls-gates.md` — it is the toolkit's synthesis of both.
- Never claim a migration, query, or policy was tested against a real
  database unless its output is in this session.

## Output
- The migration SQL (or schema-file diff), with each new policy explained:
  which role, which operation, which predicate.
- A short list of the RLS gates from `references/rls-gates.md` that apply
  and how the change satisfies them.
- What was not verified (for example: not run against a live database, no
  `anon`/`authenticated` test performed).
Pliki w paczce (40)
  • SKILL.md 4 KB
  • references/rls-gates.md 3 KB
  • upstream/supabase/LICENSE 1 KB
  • upstream/supabase/UPSTREAM.md 14 KB
  • upstream/supabase-postgres-best-practices/LICENSE 1 KB
  • upstream/supabase-postgres-best-practices/UPSTREAM.md 3 KB
  • upstream/supabase-postgres-best-practices/references/_contributing.md 4 KB
  • upstream/supabase-postgres-best-practices/references/_sections.md 2 KB
  • upstream/supabase-postgres-best-practices/references/_template.md 1 KB
  • upstream/supabase-postgres-best-practices/references/advanced-full-text-search.md 1 KB
  • upstream/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md 1 KB
  • upstream/supabase-postgres-best-practices/references/conn-idle-timeout.md 1 KB
  • upstream/supabase-postgres-best-practices/references/conn-limits.md 1 KB
  • upstream/supabase-postgres-best-practices/references/conn-pooling.md 1 KB
  • upstream/supabase-postgres-best-practices/references/conn-prepared-statements.md 1 KB
  • upstream/supabase-postgres-best-practices/references/data-batch-inserts.md 1 KB
  • upstream/supabase-postgres-best-practices/references/data-n-plus-one.md 1 KB
  • upstream/supabase-postgres-best-practices/references/data-pagination.md 1 KB
  • upstream/supabase-postgres-best-practices/references/data-upsert.md 1 KB
  • upstream/supabase-postgres-best-practices/references/lock-advisory.md 1 KB
  • upstream/supabase-postgres-best-practices/references/lock-deadlock-prevention.md 2 KB
  • upstream/supabase-postgres-best-practices/references/lock-short-transactions.md 1 KB
  • upstream/supabase-postgres-best-practices/references/lock-skip-locked.md 1 KB
  • upstream/supabase-postgres-best-practices/references/monitor-explain-analyze.md 1 KB
  • upstream/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md 1 KB
  • upstream/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md 1 KB
  • upstream/supabase-postgres-best-practices/references/query-composite-indexes.md 1 KB
  • upstream/supabase-postgres-best-practices/references/query-covering-indexes.md 1 KB
  • upstream/supabase-postgres-best-practices/references/query-index-types.md 1 KB
  • upstream/supabase-postgres-best-practices/references/query-missing-indexes.md 1 KB
  • upstream/supabase-postgres-best-practices/references/query-partial-indexes.md 1 KB
  • upstream/supabase-postgres-best-practices/references/schema-constraints.md 2 KB
  • upstream/supabase-postgres-best-practices/references/schema-data-types.md 1 KB
  • upstream/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md 2 KB
  • upstream/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md 2 KB
  • upstream/supabase-postgres-best-practices/references/schema-partitioning.md 2 KB
  • upstream/supabase-postgres-best-practices/references/schema-primary-keys.md 2 KB
  • upstream/supabase-postgres-best-practices/references/security-privileges.md 2 KB
  • upstream/supabase-postgres-best-practices/references/security-rls-basics.md 1 KB
  • upstream/supabase-postgres-best-practices/references/security-rls-performance.md 2 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · asmn-96/ai-agents-skills-toolkit100MIT
stellar/stellar-dev-skill100Apache-2.0
pawangai/pawang-agents100MIT
iankiku/forwward-teams100MIT
Kiran-980/1ml95MIT
danielchukuma-dev/cougr95MIT
rainmanjam/poka-yoke90MIT

Migawka bazy z 13.11.2026 · wersja paczki d9fd36d96d88 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90postgres-schema-rls
    Projektuje schematy PostgreSQL, indeksy i bezpieczeństwo wierszy na podstawie jawnych kontraktów dostępu, również dla Supabase.
  • 100supabase-schema-from-requirements
    Projektuje schemat Postgres w Supabase z wymagań biznesowych: migracje, polityki RLS i typy TypeScript.
  • 100supabase-rls-audit
    Sprawdza zabezpieczenia Row Level Security i ekspozycję bazy Supabase w aplikacji: polityki, widoki, funkcje, klucze service_role i zasobniki.
  • 100supabase-admin
    Obsługuje administrację Supabase: polityki RLS, migracje, projekt schematu oraz strojenie wydajności bazy z integracją uwierzytelniania.
  • 100supabase-admin
    Obsługuje administrację Supabase: polityki RLS, migracje, projekt schematu oraz strojenie wydajności bazy z integracją uwierzytelniania.
  • 100database
    Obsługuje pliki schematu, migracje i generowanie typów dla Supabase Postgres: tabele, kolumny, indeksy, triggery, polityki RLS, uprawnienia, funkcje, zadania cron, buckety i dane RBAC.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.