Token导航 LogoToken导航TokenDH.com
效率权限需确认clawhub未标认证来源可访问clear审计通过

cassandracassandra 数据库

Agent Skill

cassandra 用于处理数据库查询、表结构、迁移和数据维护任务,适合在 OpenClaw 中需要分析 schema、编写 SQL 或排查数据问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

26,421

周安装

1,112

GitHub Stars

2

下载量

9,252
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cassandra(cassandra 数据库)
来源仓库:https://github.com/ivangdavila/cassandra
安装命令:
openclaw skills install cassandra
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cassandra

简介

cassandra 用于 Cassandra 数据库的表结构设计、查询编写和性能优化。

  • 适用于分布式数据库开发、数据迁移和问题排查场景。
  • 使用 openclaw skills install cassandra 命令安装。
  • 注意确认数据库连接权限和敏感数据保护措施。
  • cassandra 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
Cassandra
description
Design Cassandra tables, write efficient queries, and avoid distributed database pitfalls.
metadata
{"clawdbot":{"emoji":"👁️","requires":{"anyBins":["cqlsh","nodetool"]},"os":["linux","darwin","win32"]}}

Data Modeling Mistakes

  • Design tables around queries, not entities—denormalization is mandatory, not optional
  • One table per query pattern—Cassandra has no JOINs; duplicate data across tables
  • Partition key determines data distribution—all rows with same partition key on same node
  • Wide partitions kill performance—keep under 100MB; add time bucket to partition key if growing

Primary Key Traps

  • PRIMARY KEY (a, b, c): a is partition key, b and c are clustering columns
  • PRIMARY KEY ((a, b), c): (a, b) together is partition key—compound partition key
  • Clustering columns define sort order within partition—query must respect this order
  • Can't query by clustering column without partition key—unlike SQL indexes

Query Restrictions

  • WHERE must include full partition key—partial partition key fails unless ALLOW FILTERING
  • ALLOW FILTERING scans all nodes—never use in production; redesign table instead
  • Range queries only on last clustering column used—WHERE a = ? AND b > ? works, WHERE a = ? AND c > ? doesn't
  • IN on partition key hits multiple nodes—expensive; prefer single partition queries

Consistency Levels

  • QUORUM for most operations—majority of replicas; balances consistency and availability
  • LOCAL_QUORUM for multi-datacenter—avoids cross-DC latency
  • ONE for pure availability—may read stale data; fine for caches, bad for critical reads
  • Write + read consistency must overlap for strong consistency—QUORUM + QUORUM safe

Tombstones (Silent Performance Killer)

  • DELETE creates a tombstone, not actual deletion—tombstones persist until compaction
  • Mass deletes destroy read performance—thousands of tombstones scanned per query
  • TTL also creates tombstones—don't use short TTLs with high write volume
  • Check with nodetool cfstats -H tableTombstone columns show problem

Batch Misuse

  • UNLOGGED BATCH is not faster—use only for atomic writes to same partition
  • LOGGED BATCH for multi-partition atomicity—adds coordination overhead
  • Don't batch unrelated writes—hurts coordinator; send individual async writes
  • Batch size limit ~50KB—larger batches fail or timeout

Anti-Patterns

  • Secondary indexes on high-cardinality columns—scatter-gather query, slow
  • Secondary indexes on frequently updated columns—creates tombstones
  • SELECT *—always list columns; schema changes break queries
  • UUID as partition key without time component—random distribution, hot spots during bulk loads

Lightweight Transactions

  • IF NOT EXISTS / IF column = ?—uses Paxos, 4x slower than normal write
  • Serial consistency for LWTs—SERIAL or LOCAL_SERIAL
  • Don't use for counters or high-frequency updates—contention kills throughput
  • Returns [applied] boolean—must check if operation succeeded

Collections and Counters

  • Sets/Lists/Maps stored with row—can't exceed 64KB, no pagination
  • List prepend is anti-pattern—creates tombstones; use append or Set
  • Counters require dedicated table—can't mix with regular columns
  • Counter increment is not idempotent—retry may double-count

Compaction Strategies

  • SizeTieredCompactionStrategy (default)—good for write-heavy, uses more disk space
  • LeveledCompactionStrategy—better read latency, higher write amplification
  • TimeWindowCompactionStrategy—for time-series with TTL; reduces tombstone overhead
  • Wrong strategy for workload = degraded performance over time

Operations

  • nodetool repair regularly—inconsistencies accumulate without repair
  • nodetool status shows cluster health—UN (Up Normal) is good, DN is down
  • Schema changes propagate eventually—wait for nodetool describecluster to show agreement
  • Rolling restarts: one node at a time, wait for UN status before next

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.05%
按下载量换算7,036

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills