This skill optimizes database connection pooling for enhanced performance and resource management. It is activated when the user requests assistance with connection pooling, database performance tuning, or connection lifecycle management. Use this skill to implement and configure connection pools in various programming languages, identify optimal pool settings, and troubleshoot common connection-related issues. The skill is triggered by phrases like "connection pooling," "optimize database connections," or "improve database performance with connection pool."
Install with Tessl CLI
npx tessl i github:jeremylongshore/claude-code-plugins-plus-skills --skill optimizing-database-connection-pooling80
Quality
55%
Does it follow best practices?
Impact
96%
1.01xAverage score across 6 eval scenarios
Optimize this skill with Tessl
npx tessl skill review --optimize ./backups/skills-migration-20251108-070147/plugins/database/database-connection-pooler/skills/database-connection-pooler/SKILL.mdPython PostgreSQL pool setup
Approved library used
100%
100%
Max pool size configured
100%
100%
Connection timeout set
100%
100%
Connection validation present
80%
53%
get_connection function
100%
100%
Workload-aware pool size
100%
66%
Configuration documented
100%
100%
Timeout rationale
100%
100%
Runnable script block
100%
100%
Without context: $0.2378 · 1m 15s · 17 turns · 17 in / 3,752 out tokens
With context: $0.4375 · 1m 44s · 27 turns · 27 in / 5,035 out tokens
HikariCP Java optimization
maximumPoolSize increased
100%
100%
minimumIdle adjusted
100%
100%
connectionTimeout addressed
100%
100%
Workload-based reasoning
100%
100%
Original config analyzed
100%
100%
All three key params changed
100%
100%
Parameter-by-parameter justification
100%
100%
Output files present
100%
100%
Without context: $0.1806 · 1m 9s · 10 turns · 11 in / 3,595 out tokens
With context: $0.3944 · 1m 50s · 22 turns · 154 in / 5,271 out tokens
Pool monitoring and validation
Connection usage tracked
100%
100%
Wait time metric present
41%
58%
Error rate tracking
100%
100%
Connection validation implemented
100%
100%
Stats reporting mechanism
100%
100%
SQLAlchemy retained
100%
100%
Three metrics in design doc
100%
100%
Validation mechanism explained
100%
100%
Output files present
100%
100%
Without context: $0.3089 · 1m 56s · 16 turns · 16 in / 6,144 out tokens
With context: $0.6147 · 2m 58s · 25 turns · 58 in / 10,447 out tokens
Workload-justified pool sizing
Approved library used
100%
100%
Max pool size configured
100%
100%
Pool size references workload
100%
100%
Connection timeout set
100%
100%
Timeout prevents indefinite waiting
100%
100%
Timeout behavior explained
100%
100%
Connection validation present
0%
66%
Acquire function exposed
100%
100%
Per-parameter justification
100%
100%
Without context: $0.2904 · 1m 44s · 16 turns · 16 in / 5,054 out tokens
With context: $0.4073 · 2m 13s · 24 turns · 24 in / 6,049 out tokens
Java HikariCP greenfield setup
HikariCP used
100%
100%
maximumPoolSize set
100%
100%
Pool size within allocation
100%
100%
minimumIdle configured
100%
100%
minimumIdle rationale present
100%
100%
connectionTimeout set
100%
100%
Timeout rationale in README
100%
100%
Workload-based sizing argument
100%
100%
JDBC URL present
100%
100%
Connection validation configured
100%
100%
Without context: $0.2032 · 1m 10s · 13 turns · 16 in / 3,614 out tokens
With context: $0.2488 · 1m 11s · 17 turns · 17 in / 3,555 out tokens
Stale connection handling and validation
psycopg2 retained
100%
100%
Connection validation added
100%
100%
Validation on acquire
100%
100%
Stale connection replaced
100%
100%
Root cause identified
100%
100%
Validation change explained
100%
100%
Timeout consideration present
60%
100%
Output files present
100%
100%
Without context: $0.2832 · 1m 12s · 18 turns · 19 in / 3,891 out tokens
With context: $0.3281 · 1m 32s · 22 turns · 52 in / 3,985 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.