xata-postgres-platform
БесплатноБез исполняемых скриптовНе проверенExpert skill for Xata open-source cloud-native Postgres platform with copy-on-write branching, scale-to-zero, and Kubernetes deployment
от reason-machines★ 99 звёзд на GitHubОб этом скилле
Xata Postgres Platform
Skill by ara.so — Daily 2026 Skills collection.
Xata is an open-source, cloud-native Postgres platform built on Kubernetes that provides copy-on-write (CoW) branching, scale-to-zero, auto-scaling, high-availability, PITR backups, and a serverless SQL driver. It sits on top of CloudNativePG and OpenEBS.
Architecture Overview
┌─────────────────────────────────────────────────────┐
│ Xata Platform │
│ CLI ──► REST API (clusters/projects services) │
│ SQL Gateway (routing, scale-to-zero wakeup) │
│ Branch Operator (manages K8s resources per branch) │
│ Auth Service (Keycloak-based, RBAC API keys) │
├─────────────────────────────────────────────────────┤
│ CloudNativePG (HA, failover, backups, pooling) │
│ OpenEBS (local NVMe or Mayastor replicated storage) │
└─────────────────────────────────────────────────────┘
Prerequisites
Local Development Setup
Step 1: Create Kind Cluster
kind create cluster --wait 10m
Step 2: Deploy with Tilt
tilt up
Wait for all resources to become ready. First run downloads images and takes longer; subsequent runs are fast.
Step 3: Install and Authenticate the CLI
# Install Xata CLI
curl -fsSL https://xata.io/install.sh | bash
# Authenticate to local profile
# Default credentials: [email protected], password=Xata1234!
xata auth login --profile local --env local --force
# Switch to the local profile
xata auth switch local
Step 4: Create Project and Branch
# Create a new project
xata project create --name my-project
# Create the main branch (done automatically with project)
# Create a child branch (CoW copy of parent)
xata branch create
CLI Reference
Authentication
# Login to Xata Cloud
xata auth login
# Login to self-hosted local instance
xata auth login --profile local --env local --force
# Switch between profiles
xata auth switch local
xata auth switch default
# List profiles
xata auth list
Projects
# Create a project
xata project create --name my-project
# List projects
xata project list
# Get project details
xata project get <project-id>
# Delete a project
xata project delete <project-id>
Branches
# Create a branch (CoW snapshot of parent, completes in seconds even for TB of data)
xata branch create
# Create a named branch from a specific parent
xata branch create --name feature-xyz --from main
# List branches
xata branch list
# Get branch details
xata branch get <branch-id>
# Delete a branch
xata branch delete <branch-id>
Connecting to a Branch
# Get connection string for a branch
xata branch connection-string <branch-id>
# Connect via psql
psql "$(xata branch connection-string <branch-id>)"
Configuration
Environment Variables
# Xata API endpoint (for self-hosted)
export XATA_API_URL=http://localhost:8080
# API key for authentication
export XATA_API_KEY=your_api_key_here
# Default project ID
export XATA_PROJECT_ID=your_project_id
API Key Management (RBAC)
# Create an API key with specific permissions
xata apikey create --name ci-key --role branch:read,branch:write
# List API keys
xata apikey list
# Revoke an API key
xata apikey delete <key-id>
Serverless SQL Driver (SQL over HTTP/WebSockets)
Xata exposes a serverless driver for executing SQL over HTTP or WebSockets, useful for edge functions and environments without persistent TCP connections.
HTTP SQL Query (Go)
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
type SQLRequest struct {
Query string `json:"query"`
Params []any `json:"params,omitempty"`
}
type SQLResponse struct {
Records []map[string]any `json:"records"`
Error string `json:"error,omitempty"`
}
func queryXata(query string, params ...any) (*SQLResponse, error) {
apiURL := os.Getenv("XATA_API_URL")
apiKey := os.Getenv("XATA_API_KEY")
branchID := os.Getenv("XATA_BRANCH_ID")
reqBody := SQLRequest{Query: query, Params: params}
data, err := json.Marshal(reqBody)
if err != nil {
return nil, err
}
url := fmt.Sprintf("%s/branches/%s/sql", apiURL, branchID)
req, err := http.NewRequest("POST", url, bytes.NewReader(data))
if err != nil {
return nil, err
}
req.Header.Set("Authorization", "Bearer "+apiKey)
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
return nil, err
}
defer resp.Body.Close()
var sqlResp SQLResponse
if err := json.NewDecoder(resp.Body).Decode(&sqlResp); err != nil {
Установить xata-postgres-platform в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл xata-postgres-platform?
Expert skill for Xata open-source cloud-native Postgres platform with copy-on-write branching, scale-to-zero, and Kubernetes deployment
Как установить скилл xata-postgres-platform?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xata-postgres-platform запускает скрипты?
Нет, скилл состоит только из инструкций (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