agentsclimarketplace

Alloydb postgres replication

Skill gemini-cli-extensions/alloydb/skills/alloydb-postgres-replication

Use these skills when you need to monitor replication health, manage sync states between nodes, and ensure the high availability and data distribution of your AlloyDB cluster.From its SKILL.md

Install
npx -y skills add gemini-cli-extensions/alloydb --skill alloydb-postgres-replication

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.3 KB, as published. Nobody here has run it

Usage

All scripts can be executed using Node.js. Replace <param_name> and <param_value> with actual values.

Bash: node <skill_dir>/scripts/<script_name>.js '{"<param_name>": "<param_value>"}'

PowerShell: node <skill_dir>/scripts/<script_name>.js '{\"<param_name>\": \"<param_value>\"}'

Note: The scripts automatically load the environment variables from various .env files. Do not ask the user to set vars unless skill executions fails due to env var absence.

Scripts

database_overview

Fetches the current state of the PostgreSQL server, returning the version, whether it's a replica, uptime duration, maximum connection limit, number of current connections, number of active connections, and the percentage of connections in use.


get_instance

Retrieves details about a specific AlloyDB instance.

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
locationstringThe location of the instance (e.g., 'us-central1').Yes
clusterstringThe ID of the cluster.Yes
instancestringThe ID of the instance.Yes

list_instances

Lists all AlloyDB instances in a given project, location and cluster.

Parameters

NameTypeDescriptionRequiredDefault
projectstringThe GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one.No
locationstringOptional: The location of the cluster (e.g., 'us-central1'). Use '-' to get results for all regions.(Default: '-')No-
clusterstringOptional: The ID of the cluster to list instances from. Use '-' to get results for all clusters.(Default: '-')No-

list_publication_tables

Parameters

NameTypeDescriptionRequiredDefault
table_namesstringOptional: Filters by a comma-separated list of table names.No``
publication_namesstringOptional: Filters by a comma-separated list of publication names.No``
schema_namesstringOptional: Filters by a comma-separated list of schema names.No``
limitintegerOptional: The maximum number of rows to return.No50

list_replication_slots

List key details for all PostgreSQL replication slots (e.g., type, database, active status) and calculates the size of the outstanding WAL that is being prevented from removal by the slot.


replication_stats

Lists each replica's process ID, user name, application name, backend_xmin (standby's xmin horizon reported by hot_standby_feedback), client IP address, connection state, and sync_state, along with lag sizes in bytes for sent_lag (primary to sent), write_lag (sent to written), flush_lag (written to flushed), replay_lag (flushed to replayed), and the overall total_lag (primary to replayed).


Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.