Spanner Graph schema design
Designs Spanner Graph tables, keys and indexes on Google Cloud, so graph lookups run fast at scale.
Claude's review
7/10 Concrete Spanner Graph schema and key design rules with safety confirmations and DDL examples.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Designs, reviews, and optimizes physical table schemas, indexes, and graph topologies for Spanner Graph on Google Cloud. Use when creating a new Spanner Graph schema, selecting node and edge primary key types, optimizing forward, reverse, or per-node Top-K edge traversals, designing interleaved node or edge tables and covering indexes, configuring cascading deletes and row deletion policies (TTL), evaluating schematized versus schemaless dynamic label graphs, or folding 1:1 and N:1 edges into node tables. Don't use for tuning GQL query syntax or execution plans without schema changes (use spanner-graph-query-tuning), or when creating a zero-change graph overlay on existing relational tables (use spanner-relational-to-graph).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: spanner-graph-schema-best-practices
metadata:
version: "1.0.0"
category: Databases
description: >-
Designs, reviews, and optimizes physical table schemas, indexes, and graph
topologies for Spanner Graph on Google Cloud. Use when creating a new Spanner
Graph schema, selecting node and edge primary key types, optimizing forward,
reverse, or per-node Top-K edge traversals, designing interleaved node or edge
tables and covering indexes, configuring cascading deletes and row deletion
policies (TTL), evaluating schematized versus schemaless dynamic label graphs,
or folding 1:1 and N:1 edges into node tables. Don't use for tuning GQL query
syntax or execution plans without schema changes (use
spanner-graph-query-tuning), or when creating a zero-change graph overlay on
existing relational tables (use spanner-relational-to-graph).
---
# Spanner Graph Schema Design & Topology Best Practices
Design and optimize physical table layouts, primary keys, secondary indexes, and
graph topologies for **Spanner Graph** (`CREATE PROPERTY GRAPH`) to maximize
performance.
## Usage Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read and follow the instructions in
[Usage Attribution](references/attribution.md).
## Safety & Verification Rules
- **Obtain Confirmation Before Mutating Remote Databases**: Do not execute
`gcloud spanner databases ddl update`, `create`, or `delete` against a remote
Spanner instance without explicit user confirmation, because DDL mutations on
live databases can trigger long-running schema backfills or break production
queries. Always validate candidate DDL on the local Spanner Emulator first or
output the DDL commands for user approval.
- **Obtain Confirmation Before Changing the Cloud Environment**: Ask the user
before running `gcloud services enable`, changing the active project or
...From google's repository, Apache-2.0 licence.
Related skills
-
Checked
Supabase auth and database
Builds with Supabase auth, database, storage and edge functions while avoiding common security traps.
8/101 credit -
Checked
AWS schema conversion
Runs AWS DMS Schema Conversion projects to move database schemas between engines and convert SQL to match.
7/101 credit -
Checked
Firebase Done Right
Builds Firebase apps with safe security rules, data models that scale and reliable Cloud Functions.
7/101 credit -
Checked
Google Workspace API Setup
Connects your server code to Gmail, Drive, Calendar and Sheets with safe service accounts and fewer quota errors.
7/101 credit -
Checked
Supabase Backend Security
Wires up Supabase auth, row level security, storage and realtime so your data stays private and queries stay fast.
8/101 credit -
Checked
NestJS API endpoints
Adds NestJS endpoints with proper validation, status codes and the traps that break startup fixed.
8/101 credit