All skills
google avatar

/spanner-basics

@becc4b8
by googlegoogle/skills21k stars
1,698

Assists in provisioning instances and databases, designing performant schemas, and querying data in Spanner. Use when designing primary keys, writing SQL queries or client library code, or diagnosing performance issues.

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

This session only. Nothing lands on disk.

referencescli-usage.md

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

CLI Usage

Common gcloud commands for interacting with Spanner. For instructions on how to install the Google Cloud SDK, see Install the Google Cloud SDK.

Instances

List Instances

gcloud spanner instances list

Create Instance

# Fixed nodes
gcloud spanner instances create my-instance \
    --config=regional-us-central1 \
    --description="My Instance" \
    --nodes=1

# Autoscaler
gcloud spanner instances create my-autoscaled-instance \
    --config=regional-us-central1 \
    --description="My Autoscaled Instance" \
    --autoscaling-min-nodes=1 \
    --autoscaling-max-nodes=3

Databases

List Databases

gcloud spanner databases list --instance=my-instance

Create Database

gcloud spanner databases create my-database --instance=my-instance

Execute Query

gcloud spanner databases execute-sql my-database --instance=my-instance --sql="SELECT 1"

Backups

Create Backup

gcloud spanner backups create my-backup \
    --instance=my-instance \
    --database=my-database \
    --retention-period=7d

Operations

List Operations

gcloud spanner operations list --instance=my-instance

Source: SKILL.md on GitHub

No alerts10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    This skill is designed to assist with Google Cloud Spanner administration and development. It provides standard workflows for schema design, SQL querying, and resource management using official Google tools and libraries. It includes appropriate safety guardrails requiring user confirmation for destructive database operations.

  • Socket10d

    No alerts

  • Snyk10d

    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/spanner-basics