database-connection-pooling-strategies

database-connection-pooling-strategies is a skill for Claude Code from selvarajmurugesan90/ops-engineering-skills. It costs 119 tokens per session (4,085 once invoked), scanned A, original, Apache-2.0.

A guide to sharing a limited number of database connections among many application requests. It covers PostgreSQL, MySQL, and MariaDB using tools such as PgBouncer and ProxySQL.

In plain words
What is it for?
It helps size connection pools, choose how connections are shared, configure poolers, and route traffic during database failover.
Why use it?
Opening a database connection uses memory and processing resources, so letting every application process create its own connections can overload the database.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [postgresql-configuration-validation](../postgresql-configuration-validation/SKILL.md).

Part of the database-operations-skills plugin — 7 skills shipped together

Good fit It helps size connection pools, choose how connections are shared, configure poolers, and route traffic during database failover.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills
agentmods
npx agentmods add skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies

Made for: Claude Code.

Or install database-operations-skills, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-connection-pooling-strategies

README.md
[![agentmods](https://agentmods.dev/badge/skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies/github.svg)](https://agentmods.dev/skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies)
Your own site
<a href="https://agentmods.dev/skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies"><img src="https://agentmods.dev/badge/skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-connection-pooling-strategies

Your own site · 80×15
<a href="https://agentmods.dev/skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies"><img src="https://agentmods.dev/badge/skills/selvarajmurugesan90/ops-engineering-skills/database-connection-pooling-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.04085
Opus 5.5 $0.00048 $0.01634
Sonnet 5.5 $0.00024 $0.00817
Haiku 4.5 $0.00012 $0.00409

Measured 3mo ago against content hash a625ecab3645, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-connection-pooling-strategies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/database-operations/skills/database-connection-pooling-strategies/SKILL.md · 351 lines

How it starts

The opening of the file, as written. The whole thing — 351 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Connection Pooling Strategies

Purpose

Every relational database has a real, finite cost per open connection — memory, a backend process/thread, and context-switch overhead — which means "just let every application instance open its own connections" stops scaling long before the database's actual query-processing capacity is exhausted. A connection pooler sits between application and database specifically to decouple the number of client-facing connections (which can be very large — thousands of application threads) from the number of backend connections the database actually has to serve (which should stay well under the database's practical capacity). This skill covers the pooling-mode decision that generalizes across engines (transaction vs. session vs. statement pooling), and the two dominant tools that implement it for the two most common relational engines — PgBouncer for PostgreSQL and ProxySQL for MySQL/ MariaDB — plus the failover-aware routing patterns that make a pooler also useful as an application-transparent HA layer, not just a connection multiplexer.

When to use

  • Sizing a new connection pool for an application ahead of launch, or re-sizing one after "too many connections"/"connection exhausted" errors.
  • Choosing a pooling mode (transaction, session, or statement) for a specific workload, and understanding what application behavior each mode breaks.
  • Diagnosing prepared statements, session-level SET variables, or advisory locks behaving unexpectedly under a pooled connection.
  • Setting up ProxySQL in front of a MySQL/MariaDB replication or Galera topology for read/write splitting or failover-aware routing.
  • Deciding whether to add a pooler at all for a given workload/database engine, versus relying on the database's own native connection handling (e.g. PostgreSQL's process-per-connection model vs. MySQL's thread-per-connection model have different practical connection ceilings before a pooler becomes necessary).

Read the full file on GitHub · 351 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 351 lines · 119 tokens per session scan A a625ecab3645

Subscribe to this mod's changes

database-connection-pooling-strategies is a skill published in the GitHub repository selvarajmurugesan90/ops-engineering-skills (48 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 119 tokens to every session and 4,085 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

database-connection-pooling-strategies compared with skills from other repositories

database-connection-pooling-strategies next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-connection-pooling-strategiesselvarajmurugesan90/ops-engineering-skillsSkill484mo agoApache-2.0A119Claude Code
alloydb-basicsgoogle/skillsSkill25ktodayApache-2.0A72Claude Code, Codex
postgresql-table-designwshobson/agentsSkill43kyesterdayMITA37Claude Code
db-repairgarrytan/gbrainSkill34ktodayMITA96Claude Code
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill496yesterdayApache-2.0A63Claude Code, Codex
postgresdbericrisco/rsc-harnessSkill701yesterdayMITA91Claude Code, Codex
dsqlawslabs/agent-pluginsSkill957yesterdayApache-2.0A247Claude Code