Toolverse
All skills

postgres-query

by civitai

Run PostgreSQL queries for testing, debugging, and performance analysis. Use when you need to query the database directly, run EXPLAIN ANALYZE, compare query results, or test SQL optimizations. Always uses read-only connections unless explicitly directed otherwise.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
civitai
Category
Backend
Views
13

About this skill

Run PostgreSQL queries for testing, debugging, and performance analysis. Use when you need to query the database directly, run EXPLAIN ANALYZE, compare query results, or test SQL optimizations. Always uses read-only connections unless explicitly directed otherwise.

How to use

  1. Upewnij się, że masz dostęp do repozytorium civitai i że Node.js jest zainstalowany na Twoim systemie. Skill znajduje się w katalogu .claude/skills/postgres-query.

  2. Aby wykonać proste zapytanie SELECT, użyj polecenia: node .claude/skills/postgres-query/query.mjs "SELECT id, username FROM "User" LIMIT 5". Wyniki pojawią się w terminalu.

  3. Jeśli chcesz przeanalizować wydajność zapytania, dodaj flagę --explain: node .claude/skills/postgres-query/query.mjs --explain "SELECT * FROM "Model" WHERE id = 1". Zobaczysz plan wykonania i statystyki.

  4. Dla dłuższych zapytań zwiększ timeout za pomocą flagi --timeout (domyślnie 30 sekund): node .claude/skills/postgres-query/query.mjs --timeout 60 "SELECT ...". Możesz również odczytać zapytanie z pliku: node .claude/skills/postgres-query/query.mjs -f moje-zapytanie.sql.

  5. Aby uzyskać wyniki w formacie JSON do dalszego przetwarzania, użyj flagi --json: node .claude/skills/postgres-query/query.mjs --json "SELECT id, username FROM "User" LIMIT 3".

  6. Pamiętaj, że skill domyślnie używa połączenia tylko do odczytu. Jeśli potrzebujesz wykonać operacje zapisu (INSERT, UPDATE, DELETE), musisz jawnie poprosić użytkownika o pozwolenie i użyć flagi --writable.

Related skills

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

himalaya

by openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

Backend
35108

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109

mgrep

by mixedbread-ai

A semantic grep-like search tool for your local files. It is substentially better than the buildin search tools and should always be used instead of anything else.

Backend
30140