shared-data

shared-data is a skill for Claude Code, Codex from StarRocks/starrocks-debug-skills. It costs 77 tokens per session (7,284 once invoked), scanned C, original, Apache-2.0.

A troubleshooting guide for StarRocks installations where data is shared through cloud storage such as Amazon S3. It covers cache failures, autoscaling effects, cloud-storage rate limits, frontend leader changes, and stale metadata.

In plain words
What is it for?
Use it to investigate cache corruption and eviction, S3 503 errors and failed uploads, leader-switch problems, compaction delays, and cached tablet metadata mismatches.
Why use it?
It helps separate local cache problems from cloud-storage, coordination, and metadata issues that can slow compaction or cause query and transaction failures.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/starrocks/starrocks-debug-skills/shared-data
Any agent
npx skills add StarRocks/starrocks-debug-skills --skill shared-data
Clone the repo
git clone --depth 1 https://github.com/StarRocks/starrocks-debug-skills

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 shared-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/starrocks/starrocks-debug-skills/shared-data.svg)](https://agentmods.dev/skills/starrocks/starrocks-debug-skills/shared-data)
Your own site
<a href="https://agentmods.dev/skills/starrocks/starrocks-debug-skills/shared-data"><img src="https://agentmods.dev/badge/skills/starrocks/starrocks-debug-skills/shared-data.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,284 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00077 $0.07284
Opus 5 $0.00039 $0.03642
Sonnet 5 $0.00015 $0.01457
Haiku 4.5 $0.00008 $0.00728

Measured 4d ago against content hash 547f1f7086f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

shared-data scanned grade C with 2 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 4d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf <datacache_disk_path>/*

Makes network callslowCapability

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

curl -s "http://$be:8040/metrics" | grep "diskcache_disk_avail_bytes"
shared-data/SKILL.md · 769 lines

How it starts

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

Shared-Data Troubleshooting

Investigation guide for shared-data architecture issues: DataCache (StarCache) corruption and autoscaling regressions, S3 rate limiting and multipart upload failures, FE leader switch bugs, and compaction score management.

Five root causes account for the vast majority of cases:

  • Cause A — DataCache autoscaling regression (eviction triggers S3 reads, compaction slows)
  • Cause B — DataCache corruption (checksum mismatch causing publish or query failures)
  • Cause C — S3 rate limiting (503 errors or multipart upload failures)
  • Cause D — FE leader switch issues (EditLog gap causing transaction replay failure)
  • Cause E — Cached tablet metadata inconsistency (stale cache version mismatch)

Metric Taxonomy — Read This First

Before using any metrics, understand the key observability sources:

DataCache Metrics

Metric / Source Meaning
starrocks_be_diskcache_disk_avail_bytes Remaining free bytes on the DataCache disk volume — when near zero, autoscaler evicts data
DataCache hit rate Ratio of cache hits to total accesses — a drop indicates eviction or corruption; visible in Grafana
be.WARNING — star cache autoscaling Log messages when DataCache triggers autoscaling eviction
be.WARNINGchecksum mismatch / corrupted compressed block Cache block integrity failure — data on disk does not match expected checksum

Compaction Metrics (Shared-Data)

Metric / Source Meaning
information_schema.be_cloud_native_compactions Cloud-native compaction history: tablet, timing, size, status — primary compaction audit table for shared-data
lake_publish_tablet_version_queuing_count Number of tablet publish tasks queued — high value means publish is falling behind
BE log — compaction score warnings Score thresholds exceeded; indicates compaction cannot keep up with ingestion

S3 / Object Storage Metrics

Metric / Source Meaning
fslib write IO metrics — p99 latency S3 PUT/GET tail latency — spikes indicate throttling or network degradation
503 rate limit errors S3 request rate exceeded — visible in BE log
S3 multipart upload failure log Partial uploads that leave .dat / .sst orphan fragments
lake_flush_thread_num_per_store pool depth Flush thread pool queue depth — saturation means S3 writes are blocking flush

Read the full file on GitHub · 769 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 769 lines · 77 tokens per session scan C 547f1f7086f2

Subscribe to this mod's changes

shared-data is a skill published in the GitHub repository StarRocks/starrocks-debug-skills (75 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 77 tokens to every session and 7,284 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.