AgentStack
SKILL verified Apache-2.0 Self-run

Db Replication Sharding

skill-kentoshimizu-sw-agent-skills-db-replication-sharding · by KentoShimizu

Replication and sharding workflow for scaling read/write throughput while managing consistency, failover, and data distribution risk. Use when single-node limits are reached or resilience requires topology changes; do not use for local query tuning only.

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-kentoshimizu-sw-agent-skills-db-replication-sharding

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Db Replication Sharding? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

DB Replication Sharding

Overview

Use this skill to design data topology that scales safely without hiding consistency and operability costs.

Scope Boundaries

  • Throughput, storage, or availability limits exceed single-instance capacity.
  • Read/write scaling requires replication or partitioning.
  • Regional or tenant growth pressures topology redesign.

Core Judgments

  • Replication mode and consistency expectations for read paths.
  • Shard key strategy and future rebalancing feasibility.
  • Cross-shard query/transaction requirements.
  • Failover behavior and recovery-time expectations.

Practitioner Heuristics

  • Choose shard keys by access locality and growth distribution, not by convenience.
  • Read replicas are eventually consistent systems; classify which reads can tolerate lag.
  • Cross-shard joins and transactions should be exceptions with explicit ownership.
  • Topology decisions must include operational playbooks for failover and rebalancing.

Workflow

  1. Profile read/write distribution and growth projections.
  2. Select replication topology by availability and consistency needs.
  3. Evaluate shard key candidates and hotspot risk.
  4. Design routing, rebalancing, and failover behavior.
  5. Define application-level behaviors for lag, split-brain prevention, and retries.
  6. Document expansion path and de-risking milestones.

Common Failure Modes

  • Shard key creates unbounded hotspots as tenants grow.
  • Replica lag assumptions leak into business-critical reads.
  • Rebalancing is planned as manual emergency work only.

Failure Conditions

  • Stop when shard key cannot support projected growth distribution.
  • Stop when consistency expectations contradict selected topology.
  • Escalate when failover and rebalancing are operationally infeasible.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.