aio-starrocks-best-practices

aio-starrocks-best-practices is a skill for Claude Code from aiocean/claude-plugins. It costs 103 tokens per session (3,972 once invoked), scanned A, original, MIT.

A guide to designing StarRocks tables for efficient storage and querying, covering partitions, sort keys, buckets, primary keys, permissions, and resource groups.

In plain words
What is it for?
It is for choosing StarRocks table structures, reviewing table definitions, planning data partitioning, sizing tablets, and configuring access or resource limits.
Why use it?
It helps prevent table layouts that waste storage or computing resources and make common queries harder to run efficiently.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aio-starrocks plugin — 2 skills shipped together

Good fit It is for choosing StarRocks table structures, reviewing table definitions, planning data partitioning, sizing tablets, and configuring access or resource limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-starrocks-best-practices
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.

Any agent
npx skills add aiocean/claude-plugins --skill aio-starrocks-best-practices
Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins

Made for: Claude Code.

Or install aio-starrocks, the plugin that ships this one along with the rest of its 2 skills.

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 aio-starrocks-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-starrocks-best-practices/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-starrocks-best-practices)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-starrocks-best-practices"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-starrocks-best-practices/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 aio-starrocks-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-starrocks-best-practices"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-starrocks-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00103 $0.03972
Opus 5 $0.00051 $0.01986
Sonnet 5 $0.00021 $0.00794
Haiku 4.5 $0.00010 $0.00397

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

Security

Grade A, and why

aio-starrocks-best-practices scanned grade A with 0 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aio-starrocks/skills/aio-starrocks-best-practices/SKILL.md · 438 lines

How it starts

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

StarRocks Best Practices

Official best practices from docs.starrocks.io/docs/best_practices/.

Core design philosophy: "Designing for efficiency does more than improve query speed — it decreases costs by reducing storage, CPU, and object storage API costs."

  • /aio-starrocks-query-tuning — Query performance tuning, EXPLAIN plans, operator metrics, hints
  • /starrocks — Query syntax, cluster connections, Grafana integration (external skill, not part of this plugin)
  • /starrocks-expert — General table types, data loading, query optimization (external skill, not part of this plugin)

1. Partitioning

Partitioning enables coarse-grain data pruning via partition elimination AND metadata-only lifecycle operations (TTL, GDPR deletes, tenant isolation).

Partition Key Selection

  1. Time-first — If 80%+ of queries filter by time, lead with date_trunc('day', dt)
  2. Tenant isolation — Include tenant_id when managing data per-tenant
  3. Retention alignment — Include columns you'll purge via DROP PARTITION
  4. Composite keys — Creates #tenants x #days partitions — keep total below ~100K to avoid FE memory strain

Granularity Decision

Granularity Best For Advantage Limitation
Daily BI/reporting 365 partitions/year; simple TTL Coarse for sub-day queries
Hourly IoT/burst workloads Hot-spot isolation 8,700 partitions/year
Weekly/Monthly Historical archive Minimal metadata Less precise pruning

Sizing Rule

  • Each partition <= 100GB
  • <= 20K tablets per partition (across replicas)
  • Total partitions < 100K (FE memory constraint)
  • Tablets per BE < 200K

DDL Templates

Single-tenant clickstream:

CREATE TABLE click_stream (
  user_id BIGINT, event_time DATETIME, url STRING, ...)
DUPLICATE KEY(user_id, event_time)
PARTITION BY date_trunc('day', event_time)
DISTRIBUTED BY HASH(user_id) BUCKETS xxx;

Read the full file on GitHub · 438 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. 5d ago First seen · 438 lines · 103 tokens per session scan A b07da821e19b

Subscribe to this mod's changes

aio-starrocks-best-practices is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 6d ago), licensed MIT. It adds 103 tokens to every session and 3,972 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

optimize

Analyze and suggest performance improvements for code, queries, or systems.

FlorianBruniaux/claude-code-ultimate-guide · 15 tokens

memstack-security-rls-checker

Use this skill when the user says 'check RLS', 'audit RLS', 'RLS policies', 'row level security', 'Supabase security audit', or needs to verify table-level access control. Audits Supabase Row Level Security policies across all tables. Do NOT use for non-Supabase projects or writing RLS policies from scratch.

cwinvestments/memstack · 80 tokens

memstack-security-rls-guardian

Use this skill when creating or altering database tables in Supabase or PostgreSQL projects. Triggers include: CREATE TABLE, ALTER TABLE, migration files, 'RLS', 'row level security', 'new table', 'database schema'. Enforces Row Level Security policies on every table to prevent unauthorized data access. Do NOT use for…

cwinvestments/memstack · 84 tokens

source-command-audit-whitepapers

Audit version freshness, FR/EN parity, and metadata quality of all whitepapers and recap cards.

FlorianBruniaux/claude-code-ultimate-guide · 26 tokens

audit-agents-skills

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

FlorianBruniaux/claude-code-ultimate-guide · 41 tokens

design-patterns

Detect, suggest, and evaluate GoF design patterns in TypeScript/JavaScript codebases. Use when refactoring code, applying singleton/factory/observer/strategy patterns, reviewing pattern quality, or finding stack-native alternatives for React, Angular, NestJS, and Vue.

FlorianBruniaux/claude-code-ultimate-guide · 59 tokens