What problem does it solve?
Working with Google Cloud Spanner requires careful schema design to avoid hotspots, correct IAM configuration, and knowledge of multiple interfaces (gcloud CLI, client libraries, Terraform, MCP). This Skill provides the operational guidance and reference material needed to administer and develop against Spanner correctly.
Core Features & Use Cases
- Schema Design Guidance: Enforces primary key best practices (UUID v4, bit-reversed sequences, key hashing) to prevent hotspots, and recommends interleaved tables for parent-child data.
- Administration Workflows: Covers instance and database provisioning via gcloud CLI and Terraform, plus DDL updates for schema evolution.
- Performance Diagnostics: Uses SPANNER_SYS tables such as QUERY_STATS_TOP_HOUR to identify slow or CPU-intensive queries.
- Use Case: When designing a new orders table, the Skill warns against using a sequential timestamp as the leading primary key and instead recommends a UUID or bit-reversed sequence, then generates the DDL command for your approval.
Quick Start
Ask the agent to design a Spanner schema for a users and orders workload and generate the DDL commands to create it.