By juanre
Production-ready async PostgreSQL utilities with connection pooling, migrations, and testing support - skills for database patterns, migrations, testing, and architecture
Use when deciding which pgdbm pattern to use (standalone, dual-mode library, or shared pool) - provides decision tree based on deployment context without requiring doc exploration
Use before implementing pgdbm patterns to avoid common mistakes - provides rationalization table and red flags that prevent pool multiplication, schema errors, and template syntax violations
Use when implementing pgdbm database operations - provides complete AsyncDatabaseManager and DatabaseConfig API with all methods and parameters
Use when building reusable PyPI package with pgdbm - provides complete pattern for libraries that work standalone or embedded without needing examples
Use when working with database migrations in pgdbm - provides complete AsyncMigrationManager API with all methods and migration file format
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A PostgreSQL library for Python that provides high-level async database operations with built-in migration management, connection pooling, and testing utilities.
Choose your pattern based on your needs:
| If you have... | Use this pattern | See example |
|---|---|---|
| Single service | Single Database Manager | Quick Start below |
| Multiple services | Shared Pool Pattern | microservices/ |
| Multi-tenant SaaS | Schema Isolation | saas-app/ |
| Reusable library | Dual-Mode Pattern | Pattern Guide |
New to pgdbm? Start with our Production Patterns Guide to avoid common pitfalls and learn best practices from real-world experience.
pgdbm is designed so a module can either:
This keeps modules portable: the same code can run as a standalone service or as part of a larger app.
# Install using uv (recommended)
uv add pgdbm
# Or using pip
pip install pgdbm
# Install with CLI support (optional)
pip install pgdbm[cli]
pgdbm provides expert guidance skills for Claude Code that teach Claude how to work with the library effectively. When you use Claude Code with pgdbm, these skills automatically activate to provide:
No manual needed - just ask Claude naturally and the right skills load automatically!
# In Claude Code terminal, add the marketplace
/plugin marketplace add juanre/ai-tools
# Install all pgdbm skills (recommended)
/plugin install pgdbm@juanre-ai-tools
# Or install individual skills
/plugin install pgdbm-shared-pool@juanre-ai-tools
/plugin install pgdbm-testing@juanre-ai-tools
| Skill | Description | Install |
|---|---|---|
pgdbm | All pgdbm skills (recommended) | /plugin install pgdbm@juanre-ai-tools |
pgdbm-choosing-pattern | Choose the right pattern | /plugin install pgdbm-choosing-pattern@juanre-ai-tools |
pgdbm-shared-pool | Production connection pooling | /plugin install pgdbm-shared-pool@juanre-ai-tools |
pgdbm-dual-mode | Portable database libraries | /plugin install pgdbm-dual-mode@juanre-ai-tools |
pgdbm-standalone | Standalone service pattern | /plugin install pgdbm-standalone@juanre-ai-tools |
pgdbm-testing | Database testing patterns | /plugin install pgdbm-testing@juanre-ai-tools |
pgdbm-usage | Basic operations | /plugin install pgdbm-usage@juanre-ai-tools |
pgdbm-core-api | Complete API reference | /plugin install pgdbm-core-api@juanre-ai-tools |
pgdbm-migrations-api | Migrations API reference | /plugin install pgdbm-migrations-api@juanre-ai-tools |
pgdbm-common-mistakes | Common pitfalls to avoid | /plugin install pgdbm-common-mistakes@juanre-ai-tools |
Example: Setting up a FastAPI app
You ask:
"Help me build a FastAPI app with PostgreSQL connection pooling"
What happens:
pgdbm-shared-pool skillResult: Production-ready code following best practices, with proper pool management and schema isolation!
Example: Testing database code
You ask:
"Show me how to test my database code with fixtures"
What happens:
pgdbm-testing skilltest_db and test_db_with_schemanpx claudepluginhub juanre/ai-tools --plugin pgdbmHigh-performance document memory system with vector search capabilities - skills for RAG, hybrid search, multi-query, and multi-tenant applications
Unified Python interface for OpenAI, Anthropic, Google, and Ollama LLMs - skills for chat, streaming, structured output, tools, providers, and lockfiles
Database architecture and SQL optimization with PostgreSQL expertise
Manage database migrations with version control, rollback capabilities, and automated schema evolution tracking
Create, connect, and interact with a Cloud SQL for PostgreSQL database and data.
SQL optimization, query tuning, and database performance expert for production systems
Create, connect, and interact with an AlloyDB for PostgreSQL database and data.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.