Agent skill

Replication Guide

by chmonitor in chmonitor/chmonitor

ReplicatedMergeTree operations, failover procedures, lag diagnosis, quorum writes, and Keeper management.

GPL-3.0Auto-check passedDatabases

Install Replication Guide

skills CLI
$ npx skills add chmonitor/chmonitor --skill replication-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install chmonitor/chmonitor replication-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/chmonitor/chmonitor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/replication-guide .claude/skills/replication-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
replication-guide
GitHub stars
299
Token cost
~555 tokens
SKILL.md length
230 words
Files
1
Skills in repo
53
Repo updated
First seen
Licence
GPL-3.0

At a glance

ReplicatedMergeTree operations, failover procedures, lag diagnosis, quorum writes, and Keeper management.

  • Works in 5 steps: Check replica status: SELECT * FROM… → Verify Keeper connectivity: SELECT *… → If replica is readonly due to Keeper… → …
  • Tasks that involve Backup and disaster recovery
  • SKILL.md covers ReplicatedMergeTree Basics, Monitoring Replication, Failover Procedures and Quorum Writes, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Replication Guide is an agent skill from chmonitor/chmonitor. ReplicatedMergeTree operations, failover procedures, lag diagnosis, quorum writes, and Keeper management.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Backup and disaster recovery and Database administration. It works with ClickHouse. The repository describes itself as: Open-source operational advisor for ClickHouse — real-time monitoring plus AI-driven index/partition/materialized-view recommendations. The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve Backup and disaster recovery
  • Tasks that involve Database administration

Example prompts

  • “/replication-guide”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Check replica status: SELECT * FROM system.replicas WHERE is_readonly = 1
  2. Verify Keeper connectivity: SELECT * FROM system.zookeeper WHERE path = '/'
  3. If replica is readonly due to Keeper disconnect, it auto-recovers when connection restores
  4. For permanent failures: SYSTEM DROP REPLICA 'replica_name' FROM TABLE db.table
  5. Corrupted metadata: SYSTEM RESTORE REPLICA db.table

What it can do on your machine

Read from SKILL.md and the folder at commit fc39ef0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Replication Guide loads about 555 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 230 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~555

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from chmonitor/chmonitor at commit fc39ef0, republished under its GPL-3.0 licence (© chmonitor). 230 words, ~555 tokens.

Download SKILL.mdSave it as .claude/skills/replication-guide/SKILL.md (or your agent's skills folder).
name
replication-guide
description
ReplicatedMergeTree operations, failover procedures, lag diagnosis, quorum writes, and Keeper management.

Replication Guide

ReplicatedMergeTree Basics

  • Engine: ReplicatedMergeTree('/clickhouse/tables/{shard}/{database}/{table}', '{replica}')
  • Requires ZooKeeper or ClickHouse Keeper
  • All replicas are equal — any replica can accept writes
  • Replication is asynchronous by default

Monitoring Replication

  • system.replicas — per-table status: absolute_delay, queue_size, is_leader, is_readonly
  • system.replication_queue — pending operations: fetches, merges, mutations
  • Key health indicators:
    • absolute_delay = 0 — fully caught up
    • is_readonly = 0 — accepting writes
    • queue_size < 10 — healthy queue
    • active_replicas = total_replicas — all replicas online

Failover Procedures

  1. Check replica status: SELECT * FROM system.replicas WHERE is_readonly = 1
  2. Verify Keeper connectivity: SELECT * FROM system.zookeeper WHERE path = '/'
  3. If replica is readonly due to Keeper disconnect, it auto-recovers when connection restores
  4. For permanent failures: SYSTEM DROP REPLICA 'replica_name' FROM TABLE db.table
  5. Corrupted metadata: SYSTEM RESTORE REPLICA db.table

Quorum Writes

  • SET insert_quorum = 2 — wait for N replicas to confirm
  • SET insert_quorum_parallel = 1 — parallel quorum inserts (v21.8+)
  • SET insert_quorum_timeout = 60000 — timeout in ms
  • Use for critical data that must survive node failures

Keeper Management

  • ClickHouse Keeper is the recommended replacement for ZooKeeper
  • Monitor: system.zookeeper table for browsing ZK tree
  • Key paths: /clickhouse/tables/ for table metadata
  • Check Keeper health: SELECT * FROM system.asynchronous_metrics WHERE metric LIKE '%Keeper%'

Common Issues

  • Split brain: Multiple leaders — usually Keeper issue, restart Keeper
  • Readonly replica: Lost Keeper session — check network, Keeper logs
  • Queue buildup: Slow fetches — check network bandwidth, disk I/O
  • Diverged replicas: SYSTEM SYNC REPLICA db.table to force sync
  • Load the troubleshooting skill for OOM-related replica failures and disk-full scenarios.

© chmonitor, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/replication-guide of chmonitor/chmonitor.

Open the folder on GitHubat commit fc39ef0

Compare with similar skills

Replication Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Replication Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Replication Guide this skillchmonitor/chmonitor299—~555Automated safety check: PassGPL-3.0
DB AdminEliasOulkadi/shokunin114—~2kAutomated safety check: NotesMIT
Mongodbsickn33/agentic-awesome-skills47k2 repos~2.7kAutomated safety check: NotesMIT
Database Backupssickn33/agentic-awesome-skills47k2 repos~3.1kAutomated safety check: NotesMIT
Alloydb Basicsgoogle/skills21k—~1.7kAutomated safety check: PassApache-2.0
Alloydb Basicsdavila7/claude-code-templates32k—~611Automated safety check: PassMIT

Similar skills

  • DB Admin

    EliasOulkadi/shokunin

    PostgreSQL database administration — backup/restore (pgdump, PITR, WAL archiving), health monitoring (connections, bloat, cache hit ratio, dead tuples), connection pooling (PgBouncer), replication…

    114 GitHub stars~2k tokensUpdated 3 days ago
    DatabasesAuto-check: notes
  • Mongodb

    sickn33/agentic-awesome-skills

    Administer MongoDB databases. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~2.7k tokens
    DatabasesAuto-check: notes
  • Database Backups

    sickn33/agentic-awesome-skills

    Implement database backup strategies. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~3.1k tokens
    DatabasesAuto-check: notes
  • Alloydb Basics

    google/skills

    Official

    Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations.

    21k GitHub stars~1.7k tokensUpdated today
    DatabasesAuto-check passed
  • Alloydb Basics

    davila7/claude-code-templates

    Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB MCP tools for automated database operations including AI-powered search and vector capabilities.

    32k GitHub stars~611 tokensUpdated today
    DatabasesAuto-check passed
  • AWS Cloudformation Elasticache

    giuseppe-trisciuoglio/developer-kit

    Provides AWS CloudFormation patterns for ElastiCache Redis or Memcached infrastructure, including subnet groups, parameter groups, security controls, and cross-stack outputs.

    355 GitHub stars~1.5k tokensUpdated 28 days ago
    DatabasesAuto-check: notes

More from chmonitor/chmonitor

All 53 skills in this repo
  • Hyperframes Creative

    chmonitor/chmonitor

    Non-animation creative direction for HyperFrames videos. An agent skill from chmonitor/chmonitor.

    299 GitHub starsUsed in 5 repos~1.3k tokens
    Auto-check passed
  • Hyperframes Media

    chmonitor/chmonitor

    Audio and media assets for HyperFrames compositions, produced by one shared audio engine (scripts/audio.mjs) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound…

    299 GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check: notes
  • Remotion To Hyperframes

    chmonitor/chmonitor

    Port an existing Remotion (React) composition to HyperFrames HTML.

    299 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Music To Video

    chmonitor/chmonitor

    A skill your agent uses when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting.

    299 GitHub starsUsed in 1 repo~4k tokens
    Auto-check: notes
  • Hyperframes Animation

    chmonitor/chmonitor

    All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus…

    299 GitHub starsUsed in 2 repos~1.8k tokens
    Auto-check passed
  • Faceless Explainer

    chmonitor/chmonitor

    turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video, up to ~3 min (sweet spot 30-90s), where every visual is invented (typography, abstract graphics…

    299 GitHub stars~4.5k tokensUpdated 2 days ago
    Auto-check: notes

Works with

Categories

Questions about Replication Guide

What does Replication Guide do?

ReplicatedMergeTree operations, failover procedures, lag diagnosis, quorum writes, and Keeper management. Replication Guide is an agent skill from chmonitor/chmonitor. ReplicatedMergeTree operations, failover procedures, lag diagnosis, quorum writes, and Keeper management.

When should I use Replication Guide?

Replication Guide fits situations like: tasks that involve Backup and disaster recovery; tasks that involve Database administration.

How do I install Replication Guide in Claude Code?

Run `npx skills add chmonitor/chmonitor --skill replication-guide -a claude-code`. Or copy the skill folder (.agents/skills/replication-guide in chmonitor/chmonitor) into .claude/skills/replication-guide in your project. Claude Code loads it when a task matches its description.

How do I install Replication Guide in Codex?

Run `npx skills add chmonitor/chmonitor --skill replication-guide -a codex`. Or copy the skill folder (.agents/skills/replication-guide in chmonitor/chmonitor) into .agents/skills/replication-guide in your project. Codex loads it when a task matches its description.

Can I use Replication Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add chmonitor/chmonitor --skill replication-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/replication-guide, .gemini/skills/replication-guide, .github/skills/replication-guide and .opencode/skills/replication-guide in your project.

What does Replication Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Replication Guide is instructions for the agent only.

Does Replication Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Replication Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Replication Guide use?

Replication Guide is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Replication Guide use?

About 555 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Replication Guide?

Skills that share tags, products or a category with Replication Guide: DB Admin (EliasOulkadi/shokunin, 114 stars), Mongodb (sickn33/agentic-awesome-skills, 47k stars), Database Backups (sickn33/agentic-awesome-skills, 47k stars) and Alloydb Basics (google/skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Replication Guide?

chmonitor (a GitHub organization) maintains it in chmonitor/chmonitor, which has 299 GitHub stars. The repository holds 53 skills in this directory. The repository was last updated on October 5, 2026.

Source: chmonitor/chmonitor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.