postgresql-development-cloudbase

Manage CloudBase PostgreSQL schemas, migrations, and row-level security policies.

1.1k|133|Updated May 23, 2025
One-click install
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill postgresql-development-cloudbase-tencentcloudbase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-development-cloudbase
Source: https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills/postgresql-development-cloudbase
Command: npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill postgresql-development-cloudbase-tencentcloudbase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves the complexity of managing CloudBase PostgreSQL environments, bridging the gap between standard SQL operations and CloudBase-specific SDK patterns to prevent common integration errors.

Core Features & Use Cases

  • Schema & Migration Management: Provides a versioned workflow for DDL changes, ensuring database schema consistency across environments.
  • RLS & Auth Enforcement: Implements secure row-level security policies using CloudBase-native identity helpers like auth.uid().
  • Use Case: When building a multi-tenant CMS, use this skill to define user-specific access policies and manage relational data CRUD operations via the CloudBase JS SDK v3.

Quick Start

Use the postgresql-development-cloudbase skill to inspect the current database schema and verify that row-level security policies are correctly applied to the articles table.

Frequently Asked Questions about postgresql-development-cloudbase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage PostgreSQL database migrations in CloudBase?

Manage PostgreSQL database migrations in CloudBase using a versioned workflow for DDL changes. This ensures database schema consistency across environments by tracking and applying structural updates systematically rather than executing ad-hoc SQL commands.

How does row-level security work with CloudBase PostgreSQL?

Row-level security in CloudBase PostgreSQL works by implementing access policies using native identity helpers like auth.uid(). This enforces data ownership and access control by restricting CRUD operations to rows explicitly matching the authenticated user's identity.

How do I perform CRUD operations on CloudBase PostgreSQL using JS SDK v3?

Perform CRUD operations on CloudBase PostgreSQL using the JS SDK v3 through PostgREST-style query patterns. This bridges standard SQL operations with CloudBase-specific SDK patterns to prevent common integration errors during relational data manipulation.

Can I enforce user-specific data access policies for a multi-tenant app in CloudBase?

You can enforce user-specific data access policies for multi-tenant applications in CloudBase by defining row-level security policies. This restricts data visibility and manipulation to specific tenants, securing relational data CRUD operations via the JS SDK v3.

What is the best way to inspect a CloudBase PostgreSQL schema?

The best way to inspect a CloudBase PostgreSQL schema is to use dedicated management tooling to review current database structures. This allows you to verify table definitions and ensure row-level security policies are correctly applied to specific tables.