spanner-provisioning
Skill135 starsChanged 6 months agoApache-2.0View on GitHub
Guidelines and rules for provisioning Google Cloud Spanner instances, including selecting the correct edition (Enterprise vs Standard) and compute capacity based on schema features (e.g., graphs and vector search) and environment purpose.
In this repository20 other files it gives its agents.
- ad-copywritingSkill
- brand-strategySkill
- platform-specsSkill
- trend-analysisSkill
- video-storytellingSkill
- visual-directionSkill
- ad-copywritingSkill
- brand-strategySkill
- platform-specsSkill
- trend-analysisSkill
- video-storytellingSkill
- visual-directionSkill
- legacy-app-generatorSkill
- ingress2gatewaySkill
- bigframes-bqmlSkill
- model-evaluationSkill
- pipeline-generatorSkill
- spark-lightning-optimizationSkill
- unified-model-registrySkill
- zero-copy-ingestionSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use this skill when provisioning, configuring, or updating a Cloud Spanner instance in this repository.
- Distinctive: line 25
ENTERPRISE Edition: Must be selected if the database schema utilizes features such as:
- Distinctive: line 31
STANDARD Edition: Should be selected for basic relational workloads that do not use graph traversal or vector search.
- Distinctive: line 49
When applying DDL schemas to an existing Spanner database:
- Distinctive: line 54
Verification Check: Before applying the full DDL schema, verify if key objects (e.g., node tables) already exist in the database.
- Distinctive: line 58
If the database schema is already initialized, skip executing duplicate creation DDL statements.
- Distinctive: line 62
Recreation: If a complete schema reset is required, drop and recreate the database before applying the full schema.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spanner Instance Provisioning Guidelines
<!--
Disabling markdownlint MD029 to provide explicit ordering to avoid
confusing the LLM.
--><!-- markdownlint-disable MD029 -->Use this skill when provisioning, configuring, or updating a Cloud Spanner instance in this repository.
1. Edition Selection Rules
Spanner features are associated with specific database editions. To optimize costs while ensuring functionality:
- ENTERPRISE Edition: Must be selected if the database schema utilizes
features such as:
- Spanner Graph: Identified by the presence of
CREATE PROPERTY GRAPHin the DDL. - Vector Search Index: Identified by the presence of
CREATE VECTOR INDEXin the DDL.
- Spanner Graph: Identified by the presence of
- STANDARD Edition: Should be selected for basic relational workloads that do not use graph traversal or vector search.
2. Compute Capacity Rules
Compute capacity (processing units) must be chosen based on the environment's purpose:
- Development & Testing (
dev/test):- Enforce the minimum compute capacity of 100 processing units to minimize cloud expenditures.
- Production (
prod):- Minimum compute capacity should start at 1000 processing units (equivalent to 1 node) or higher as required by workload demands, unless autoscaling is configured.
3. Idempotency and Schema Application
When applying DDL schemas to an existing Spanner database:
- Avoid Duplication Errors: Standard Spanner DDL statements (like
CREATE TABLE,CREATE PROPERTY GRAPH, orCREATE VECTOR INDEX) will return errors if the object already exists. - Verification Check: Before applying the full DDL schema, verify if key
objects (e.g., node tables) already exist in the database.
- You can query
INFORMATION_SCHEMA.TABLES(e.g., checking if the primary table name is present) to determine if the schema has been initialized. - If the database schema is already initialized, skip executing duplicate creation DDL statements.
- You can query
- Schema Updates: For incremental updates, use compatible statements (such
as
ALTER TABLE) rather than running the full creation script. - Recreation: If a complete schema reset is required, drop and recreate the database before applying the full schema.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

