Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

postgresql-development-cloudbase

БесплатноБез исполняемых скриптовНе проверен

Use when building, debugging, or evaluating CloudBase PostgreSQL / CloudBase PG / PG mode apps, including Postgres schema setup…

infometaот infometa★ 475 звёзд на GitHub

Об этом скилле

Sibling skills (local only)

Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.

If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.

CloudBase PostgreSQL Development

Activation Contract

Use this first when

  • The task says CloudBase PG, PostgreSQL, Postgres, PG mode, RLS, JS SDK v3 PostgreSQL, app.rdb(), app.realtime(), queryPgDatabase, managePgDatabase, or a Realtime action (describeRealtime / enableRealtime / modifyRealtime).
  • A Web app or CMS must persist business data in CloudBase PostgreSQL.

Then also read

  • Access-pattern design or slow-query work -> ../postgresql-best-practices-cloudbase/SKILL.md
  • Web auth provider readiness -> ../auth-tool-cloudbase/SKILL.md
  • Web login implementation -> ../auth-web-cloudbase/SKILL.md
  • General Web implementation and verification -> ../web-development/SKILL.md
  • Browser storage upload -> ../cloud-storage-web/SKILL.md
  • Raw HTTP API details only when SDK coverage is blocked -> ../http-api-cloudbase/SKILL.md
  • PG reference index -> references/index.md
  • pgdoc (document API carried by PostgreSQL) -> references/pgdoc.md
  • PG mode overview -> references/pg-mode-overview.md
  • Auth / GRANT / RLS details -> references/auth-and-rls.md
  • End-to-end PG app closure -> references/app-workflow.md
  • PG storage details — MUST read before writing any bucket / upload / URL code -> references/storage-pg.md
  • Realtime (broadcast / presence / live table changes) -> references/realtime.md
  • HTTP API fallback -> references/http-api.md
  • Troubleshooting -> references/troubleshooting.md

Do NOT use first

  • relational-database-mcp-cloudbase / queryMysqlDatabase / manageMysqlDatabase for new relational work. Those skills are only for an environment that already has MySQL.
  • cloudbase-document-database-web-sdk / collection APIs for business data that must live in CloudBase PG.
    • Exception: moving an existing document-database app onto PG while keeping its SDK calls is pgdoc, not a PG rewrite — read references/pgdoc.md. The ban above covers NEW business tables only.

Required Flow

🚨 CRITICAL: PG mode API is NOT the same as NoSQL

CloudBase PG (app.rdb(), app.storage.from('bucket')) uses different API method names than CloudBase NoSQL (app.database(), app.uploadFile()). Low-capability models often paste legacy NoSQL/auth snippets from training; reject that path immediately. If this task is PG-backed, do not write app.database(), db.collection(...), app.uploadFile(), getLoginState(), or route guards based on auth.getUser(). Use app.rdb(), PG storage v3, and auth.getSession() instead. If you are used to writing .where(), .orderBy(), .count() from other ORMs or NoSQL — stop and read the table below.

❌ Do NOT use these (NoSQL / ORM habits) ✅ Use these in PG mode
.where({ field: value }) .match({ field: value }) or .eq("field", value)
.where("field", "ilike", "%v%") .ilike("field", "%v%")
.orderBy("field", { ascending: false }) .order("field", { ascending: false })
.count() .select("*", { count: "exact" }) — count is in response
.offset(n) .range(from, to)
app.uploadFile() (legacy NoSQL upload) app.storage.from('bucket').upload(key, file)
app.getTempFileURL() (legacy NoSQL URL) app.storage.from('bucket').createSignedUrl(key, expiresIn)
app.storage.from() (no bucket name) app.storage.from('bucket') — must pass bucket name

If you find yourself typing .where() or .orderBy() or .count() — stop and use the correct method from the right column.

pgdoc exception: when the task moves an existing document-database app onto PG without changing its SDK calls, the client keeps app.database() / db.collection(...). That is pgdoc, not a PG-mode rewrite — read references/pgdoc.md before reacting to those method names. This section's ban applies to NEW PG business tables that use app.rdb().

  1. First, confirm this environment actually has PostgreSQL provisioned. Call queryEnv(action="info", envId=...) and read the derived EnvInfo.RuntimeBackends block ({ postgresql, nosql, mysql }) along with EnvInfo.RuntimeMode. It is only safe to apply this skill's PG-specific guidance when RuntimeBackends.postgresql === true (equivalently, EnvInfo.PostgreSQL is non-empty AND/OR EnvInfo.Meta contains postgresql=enable).
    • PG mode is a new-environment mode selected when creating a CloudBase environment with PostgreSQL. Do not try to "upgrade" a legacy environment in place; create/select a PG-mode environment instead.
    • If `RuntimeBackends.postg
Полный SKILL.md на GitHub

Установить postgresql-development-cloudbase в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSE.mdreferences/app-workflow.mdreferences/auth-and-rls.mdreferences/http-api.mdreferences/index.mdreferences/pg-mode-overview.mdreferences/pgdoc.mdreferences/realtime.mdreferences/rls-patterns.mdreferences/storage-pg.mdreferences/troubleshooting.md

FAQ

Что делает скилл postgresql-development-cloudbase?

Use when building, debugging, or evaluating CloudBase PostgreSQL / CloudBase PG / PG mode apps, including Postgres schema setup, queryPgDatabase/managePgDatabase, JS SDK v3 app.rdb() CRUD/RPC, PG HTTP API fallback, RLS-style permissions, username-password auth, and Web CMS/admin CRUD flows backed by CloudBase PG.

Как установить скилл postgresql-development-cloudbase?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл postgresql-development-cloudbase запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить postgresql-development-cloudbase с