agentleFS
Google CloudKnown publisherGoogleCloudPlatform/cloud-solutions/projects/agentic-coding-with-data-agent-kit-demo/support/.gemini/skills/spanner-provisioning/SKILL.md

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.

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
  1. Distinctive:

    Use this skill when provisioning, configuring, or updating a Cloud Spanner instance in this repository.

    line 17
  2. Distinctive:

    ENTERPRISE Edition: Must be selected if the database schema utilizes features such as:

    line 25
  3. Distinctive:

    STANDARD Edition: Should be selected for basic relational workloads that do not use graph traversal or vector search.

    line 31
  4. Distinctive:

    When applying DDL schemas to an existing Spanner database:

    line 49
  5. Distinctive:

    Verification Check: Before applying the full DDL schema, verify if key objects (e.g., node tables) already exist in the database.

    line 54
  6. Distinctive:

    If the database schema is already initialized, skip executing duplicate creation DDL statements.

    line 58
  7. Distinctive:

    Recreation: If a complete schema reset is required, drop and recreate the database before applying the full schema.

    line 62

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 GRAPH in the DDL.
    • Vector Search Index: Identified by the presence of CREATE VECTOR INDEX in the DDL.
  • 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, or CREATE 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.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.