divine-mobile: Skill for Claude Code

.agents/skills/clickhouse-cloud-multi-table-rename/SKILL.md

clickhouse-cloud-multi-table-rename is a skill for Claude Code, Codex from divinevideo/divine-mobile. It costs 117 tokens per session (1,312 once invoked), scanned A, original, MPL-2.0.

A migration guide for ClickHouse Cloud, a hosted database service, when a schema change tries to rename several tables in one SQL statement.

In plain words
What is it for?
Use it when migrations fail with the shared-database rename error, particularly during table-swap migrations run by golang-migrate or similar tools.
Why use it?
ClickHouse Cloud's shared database engine rejects multi-table RENAME statements even when the same migration works on a self-hosted database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

This is divinevideo/divine-mobile's own configuration. It tells Claude Code and Codex how to work on divine-mobile itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything divine-mobile configures →

Reuse

Borrowing it

Nothing to install: this file belongs to divinevideo/divine-mobile. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/divinevideo/divine-mobile/main/.agents/skills/clickhouse-cloud-multi-table-rename/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/divinevideo/divine-mobile

Made for: Claude Code, Codex.

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 clickhouse-cloud-multi-table-rename

README.md
[![agentmods](https://agentmods.dev/badge/skills/divinevideo/divine-mobile/clickhouse-cloud-multi-table-rename/github.svg)](https://agentmods.dev/skills/divinevideo/divine-mobile/clickhouse-cloud-multi-table-rename)
Your own site
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/clickhouse-cloud-multi-table-rename"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/clickhouse-cloud-multi-table-rename/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 clickhouse-cloud-multi-table-rename

Your own site · 80×15
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/clickhouse-cloud-multi-table-rename"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/clickhouse-cloud-multi-table-rename.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 112
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00117 $0.01312
Opus 5 $0.00059 $0.00656
Sonnet 5 $0.00023 $0.00262
Haiku 4.5 $0.00012 $0.00131

Measured 10d ago against content hash 8ca6fb638302, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

clickhouse-cloud-multi-table-rename scanned grade A with 1 finding 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 10d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Via HTTP API from a curl pod in the cluster:
.agents/skills/clickhouse-cloud-multi-table-rename/SKILL.md · 134 lines

How it starts

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

ClickHouse Cloud Multi-Table RENAME Limitation

Problem

ClickHouse Cloud (SharedMergeTree engine) does not support renaming multiple tables in a single RENAME TABLE statement, which is a common pattern for atomic table swaps in schema migrations. Self-hosted ClickHouse supports this, so migrations that work locally or on self-hosted instances will fail on ClickHouse Cloud.

Context / Trigger Conditions

  • Error message: "Database X is Shared, it does not support renaming of multiple tables in single query"
  • Error code: 48
  • Using golang-migrate (or similar) with ClickHouse Cloud
  • Migration SQL contains a pattern like:
    RENAME TABLE db.original TO db.original_old,
                 db.new_version TO db.original;
    
  • Migration works in staging (self-hosted ClickHouse) but fails in production (ClickHouse Cloud)

Solution

Prevention: Write ClickHouse Cloud-compatible migrations

Instead of multi-table RENAME:

-- BAD: This fails on ClickHouse Cloud
RENAME TABLE nostr.my_table TO nostr.my_table_old,
             nostr.my_table_v2 TO nostr.my_table;

Use separate RENAME statements:

-- GOOD: Split into individual operations
RENAME TABLE nostr.my_table TO nostr.my_table_old;
RENAME TABLE nostr.my_table_v2 TO nostr.my_table;

Note: This loses atomicity, but ClickHouse Cloud doesn't support the atomic version anyway.

Recovery: Fix a dirty migration that already failed

  1. Check the current state — identify which tables exist and what state they're in:

    SHOW TABLES LIKE '%my_table%';
    DESCRIBE TABLE nostr.my_table;       -- Check if it has old or new schema
    DESCRIBE TABLE nostr.my_table_v2;    -- Check if the new table was created
    
  2. Complete the migration manually with separate renames:

    -- If both original and v2 exist (RENAME never executed):
    RENAME TABLE nostr.my_table TO nostr.my_table_old;
    RENAME TABLE nostr.my_table_v2 TO nostr.my_table;
    DROP TABLE IF EXISTS nostr.my_table_old;
    -- Recreate any views that were dropped
    

Read the full file on GitHub · 134 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. 10d ago First seen · 134 lines · 117 tokens per session scan A 8ca6fb638302

Subscribe to this mod's changes

clickhouse-cloud-multi-table-rename is a skill published in the GitHub repository divinevideo/divine-mobile (265 stars, last pushed today), licensed MPL-2.0. It adds 117 tokens to every session and 1,312 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-pr

Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for prisma-next. Use when the user wants to create a pull request, open a PR, or submit changes for review.

prisma/orm · 47 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

supabase

Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…

PentesterFlow/agent · 120 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens

dsql

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…

awslabs/agent-plugins · 229 tokens