All skills
google avatar

/bigtable-basics

@becc4b8
by googlegoogle/skills21k stars
1,698

Assists in provisioning instances/tables, designing performant schemas, and querying data in Bigtable. Use when designing Bigtable row keys, configuring column families, writing SQL queries or client library code (Java, Go, Python) for Bigtable, or diagnosing performance/hotspotting issues. Also use when provisioning Bigtable clusters using gcloud or cbt CLIs. Don't use for generic Cloud SQL administration.

Use this Skill: https://skilld.dev/gh/google/skills/bigtable-basics

This session only. Nothing lands on disk.

referencescli_data_access.md

≈410 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Bigtable CLI Data Access

This document provides patterns for reading and writing data in Bigtable using the cbt CLI. This is primarily used for debugging and quick data validation.

Configuring cbt for Data Access

echo project = ${BIGTABLE_PROJECT} > ~/.cbtrc
echo instance = ${BIGTABLE_INSTANCE} >> ~/.cbtrc

Reading Data

Read Single Row (Lookup)

Reads all columns and versions for a specific row.

cbt lookup {table_name} {row_key}

Note: cbt lookup is optimized for point reads and is significantly more efficient than using cbt read with a count or filter for retrieving a single known row.

Read N Rows

Reads the first N rows from the table.

cbt read {table_name} count={n}

Read Range

Reads rows between START_KEY (inclusive) and END_KEY (exclusive).

cbt read {table_name} start={start_key} end={end_key}

Read using SQL

For complex queries and aggregations use SQL via the cbt sql command

cbt sql "SELECT * FROM my_table WHERE _key = 'user#123'"

Row Count (Estimate)

Provides an estimate of the number of rows in the table.

gcloud bigtable instances tables describe {table_id}  --instance={instance_id} --view stats

Note: cbt count {table_name} would do a full table scan.

Writing Data

Write Cell (Set)

Writes a value to a specific cell (row, family, and column).

cbt set {table_name} {row_key} {family}:{column}={value}

Example: cbt set my-table user123 profile:email=user@example.com

Deleting Data

Delete Row

cbt deleterow {table_name} {row_key}

Source: SKILL.md on GitHub

No alerts9d3 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    This skill provides comprehensive documentation and command templates for managing Google Bigtable resources. It follows industry best practices by incorporating safety confirmation rules for database modifications and utilizing official tools and APIs. No security risks were identified.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

Signed by skilld at becc4b8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
metadata
{
  "version": "1.0.0",
  "category": "Databases"
}

README badge

README badge for google/skills/bigtable-basics