
google-cloud-filestore-autoscale
Inspects Filestore capacity and utilization on Google Cloud, evaluates storage scaling rules, and performs capacity autoscaling (scale UP for low free space or scale DOWN for cost optimization). Use when monitoring Filestore instance headroom, resizing instance shares, configuring automated growth/shrink thresholds (custom thresholds apply globally across projects in session memory), or preventing out-of-space outages. Don't use for Cloud Storage (GCS) buckets, Persistent Disk block storage, or NetApp Volumes.
- Installs
- 4.2K
- Last 24h
- +49
- Trending rank
- #3425
- Security
- Pass
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/google/skills --skill google-cloud-filestore-autoscale- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads google-cloud-filestore-autoscale automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
Security audits
Independent scans of the skill's instructions and bundled files.
SKILL.md
The instructions your agent reads when the skill is triggered.
Filestore Autoscale
This skill enables agents to inspect, evaluate, and modify Filestore instance capacities across Google Cloud projects based on configured thresholds.
Prerequisites / IAM Requirements
Before an agent or user can execute this skill, their runtime Service Account must possess the following IAM roles on the target project(s):
roles/file.editor(Required for listing instances and triggering scale up/down updates)roles/monitoring.viewer(Required for reading Cloud Monitoring capacity metricsused_bytes)roles/mcp.toolUser(Required if utilizing backend Filestore MCP tools)
Quick Start
-
Ensure
gcloudis installed. See gcloud installation guide if needed. -
Enable essential APIs:
gcloud services enable file.googleapis.com monitoring.googleapis.com --quiet -
Inspect fleet capacity and free space (see "Discovery & Read Operations" below).
-
Evaluate against configured up/down capacity thresholds.
-
Scale target instances and apply attribution tags.
Attribution
Tag every Cloud Filestore command or API request provided or executed.
Prefix gcloud commands with the correct metrics environment targeting this skill:
CLOUDSDK_METRICS_ENVIRONMENT="gcs-skills gcs-skills/1.0 (skill:google-cloud-filestore-autoscale)" \
gcloud filestore instances update ...
On direct HTTP calls to the REST API, append the User-Agent:
User-Agent: gcs-skills/1.0 (skill:google-cloud-filestore-autoscale)
Conceptual & Informational Queries (CRITICAL)
For purely conceptual, educational, or informational questions (e.g., "What are Filestore scaling limits?", "Can Basic instances scale down?", "Explain Filestore Tiers"):
- Rule: Answer immediately using your pre-trained knowledge and the matrix below.
- Constraint: Do not execute external tool calls or API requests for basic knowledge questions.
Handling "No-Command" Constraints (CRITICAL)
If the user prompt contains constraints like "Do not execute commands", "without executing", or "read-only":
- Rule: Strictly avoid calling the
run_commandtool to execute any shell orgcloudcommands (including read-only list/describe commands). - Discovery:
- First, check if Filestore MCP tools (
list_instances,get_instance) are available and use them (these are API calls, not command executions). - If MCP tools are not available, search local markdown documentation files (e.g.,
references/instance-tiers-specs.md) for any mock instance definitions or project details matching the request. (Do NOT attempt to read evaluation config files such asEVAL.yamlorEVAL.txtpbduring evaluation runs as access is restricted). - If no data can be found, explain the required steps and formulas, and output the exact commands the user should run, without executing them yourself.
- First, check if Filestore MCP tools (
- Mandatory User Confirmation Requirement: Even when the user prompt asks not to execute commands or asks only for command syntax/recommendations, your response MUST STILL end with a clear question prompting the user for confirmation before executing any capacity resizing commands (e.g., "Would you like me to proceed with scaling
[instance]from [A] TiB to [B] TiB? Please confirm to execute.").
Tier & Capacity Limits Matrix
Filestore tiers enforce specific boundaries and behaviors. The skill must accept both modern UI names (Basic, Zonal, Regional) and legacy API enums interchangeably.
See references/instance-tiers-specs.md for the full Tier & Capacity Limits Matrix (Min/Max capacities, step increments).
Critical Thresholds:
- Basic HDD / Basic SSD: Can scale up, but cannot scale down.
- Zonal / Regional: Can scale down, but cannot shrink below their minimum floor (1 TiB or 10 TiB depending on band) AND cannot shrink below the current
used_bytesmetric.
Core Operational Workflow
1. Discovery & Read Operations
-
Step 1 (Fleet Discovery): Call the MCP tool
list_instances(parent='projects/{project_id}/locations/-')or CLIgcloud filestore instances list --project={project_id}to discover all Filestore instances in the target project. Read thecapacityGbandtierdirectly from the instances returned. -
Step 2 (Single Bulk Utilization Metric Query): Immediately after discovering instances, query the Cloud Monitoring API for the
file.googleapis.com/nfs/server/used_bytesmetric across the entire project in a single request (seereferences/monitoring-metrics.mdfor runtime-specific options including GCP REST API,gcloud,curl, and MCP tools).CRITICAL: Make exactly ONE bulk metric request for the entire project. NEVER emit multiple per-instance queries or loops. Do NOT filter by zone or region.
-
Step 3 (Metric Extraction & Calculation):
- Match each instance's short name (or
resource.labels.instance_name/metric.labels.instance_name) in the returnedtimeSeriesdata to extract its latestint64Valuebytes. - If an instance is not listed in
timeSeriesor has no points, default itsused_bytesto 0. - Calculate
used_bytes_gb = used_bytes / (1024^3). - Calculate
Free Space % = ((capacityGb - used_bytes_gb) / capacityGb) * 100. - NEVER leave
Used BytesorFree Space %as "N/A". Populate actual numbers into the output summary table.
- Match each instance's short name (or
2. Autoscale Needed Matrix
The skill must categorize each evaluated instance into one of 5 definitive verdicts. On the initial analysis/fleet inspection run, the skill suggests the required scaling action with target capacity and update commands, and prompts for user confirmation before executing any autoscale modifications. State the value of the "Autoscale Needed" column clearly as one of the following:
- Yes (Scale Up): Triggered when free space percentage is below the
scale-up safety threshold (< 15% free space remaining). The evaluation
response MUST explicitly state that the current free space percentage is
below the 15% scale-up safety threshold. Capacity must be increased by 10%
(default) or step-size minimum, rounded to the tier's step increment (256
GiB for Small Band [1–9.75 TiB], 2.5 TiB for Large Band [10–100 TiB], as
specified in
references/instance-tiers-specs.md), not exceeding the maximum capacity. Suggest target capacity, provide the attributedgcloudupdate command, and MUST conclude the response with a clear question prompting the user for confirmation to execute (e.g., "Would you like me to proceed with scaling[instance]from [A] TiB to [B] TiB? Please confirm to execute."). - Yes (Scale Down): Triggered when free space exceeds the scale-down
threshold (> 30% free space remaining) and the instance is eligible for
downscaling (Zonal or Regional / Enterprise tiers). Apply the default step
reduction of -10% of current capacity, aligned to the tier's step increment
(256 GiB for Small Band [1–9.75 TiB], 2.5 TiB for Large Band [10–100 TiB],
as specified in
references/instance-tiers-specs.md). For example, for a 2 TiB (2048 GiB) Enterprise / Regional instance, rounding to the 256 GiB step yields a proposed target capacity of 1.75 TiB (1792 GiB, or 1.8 TiB). The response MUST explicitly verify that the proposed target capacity (e.g. 1.75 TiB / 1792 GiB or 1.8 TiB) remains strictly above both the tier's minimum capacity floor (e.g. 1 TiB for Enterprise / Small Band, 10 TiB for Large Band) and currently used space (e.g. 0.9 TiB). Do NOT reduce directly to the floor in a single step. Suggest target capacity, estimated cost savings, provide the attributedgcloudupdate command, and prompt the user for confirmation to execute. - No (Healthy): Triggered when the instance's free space is within the optimal operating range (15% – 30%). No action required.
- No (At min capacity limit): Triggered when free space is > 30%, but the instance is already at the minimum allowed tier capacity floor (e.g. 1 TiB for Small Band or 10 TiB for Large Band) or currently used space limit. No action can be taken.
- No (Tier cannot scale down): Triggered when free space is > 30%, but the instance is on a Basic tier (Basic HDD / Basic SSD) which does not support downscaling. The agent must explicitly inform the user that scale-down is not supported and suggest data migration instead. No action can be taken.
Output Format
Every status report, evaluation, or recommendation response MUST include a markdown table summarizing the evaluated instances. Even if evaluating a single instance, format it as a table. The table MUST contain the following columns:
InstanceService TierProvisioned CapacityUsed BytesFree Space %Autoscale Needed(MUST contain one of:Yes (Scale Up),Yes (Scale Down),No (Healthy),No (At min capacity limit), orNo (Tier cannot scale down))
Example standard output table:
| Instance | Service Tier | Provisioned Capacity | Used Bytes | Free Space % | Autoscale Needed | Proposed Action |
|---|---|---|---|---|---|---|
| `[instance-name]` | REGIONAL | 2048 GiB | 900 GiB | 56.05% | Yes (Scale Down) | Scale down to 1792 GiB. `CLOUDSDK_METRICS_ENVIRONMENT=... gcloud filestore instances update ...` |
3. Execution & Confirmation Workflow
- Analysis & Recommendation (First Run / Inspection):
- Calculate step-aligned target capacity adhering to tier ceilings, floors, and basic scale-up only rules.
- Present the summary table and proposed actions.
- MANDATORY USER CONFIRMATION PROMPT: Whenever recommending target capacity or providing a
gcloud filestore instances updatecommand, your response MUST explicitly include a clear question asking the user to confirm execution before any modifications are made (e.g. "Would you like me to proceed with scaling[instance]from [A] TiB to [B] TiB? Please confirm to execute.") to prevent accidental billing spikes or capacity exhaustion. - Do not execute autoscale commands without user confirmation.
- Execution upon Confirmation:
- Once the user confirms (e.g., "Yes, proceed with scaling", "Scale instance X"), execute the attributed
gcloud filestore instances updatecommand on the confirmed instance(s).
- Once the user confirms (e.g., "Yes, proceed with scaling", "Scale instance X"), execute the attributed
- Fallback:
- If execution fails due to Prod mutation restrictions, output the failure reason and provide the user with the exact attributed
gcloudcommand to run manually, reminding them to confirm before manual execution.
- If execution fails due to Prod mutation restrictions, output the failure reason and provide the user with the exact attributed
Custom Thresholds
When the user configures or passes custom threshold values in prompts (e.g. "Scale up if free space drops below 10% with a 20% step", or custom max_threshold / up_increment):
- Global Session Memory Confirmation: The response MUST accept and acknowledge the custom thresholds and MUST explicitly confirm that custom thresholds apply globally across projects in session memory, explicitly mentioning the target project IDs evaluated or active in session memory to prevent accidental cross-project misconfiguration.
- Configuration Summary: The response MUST display the updated active configuration summary showing all active thresholds and step increments.
- Preserve Overrides: The response MUST NOT revert to default thresholds (15% / 10%) when custom overrides are provided.
Reference Directory
For progressive disclosure of deeper topics, consult the references/ directory:
- Instance Tiers & Specs
- Monitoring Metrics Formulas
- Troubleshooting & Errors
FAQ
What does the google-cloud-filestore-autoscale skill do?
Inspects Filestore capacity and utilization on Google Cloud, evaluates storage scaling rules, and performs capacity autoscaling (scale UP for low free space or scale DOWN for cost optimization). Use when monitoring Filestore instance headroom, resizing instance shares, configuring automated growth/shrink thresholds (custom thresholds apply globally across projects in session memory), or preventing out-of-space outages. Don't use for Cloud Storage (GCS) buckets, Persistent Disk block storage, or NetApp Volumes.
How do I install google-cloud-filestore-autoscale?
Run npx skills add https://github.com/google/skills --skill google-cloud-filestore-autoscale in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/google-cloud-filestore-autoscale/ (personal) or .claude/skills/google-cloud-filestore-autoscale/ (project).
Which AI agents can use google-cloud-filestore-autoscale?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is google-cloud-filestore-autoscale safe to install?
Security partners have reviewed it: Gen Agent Trust Hub passed; Socket passed; Snyk passed. As with any skill, read the SKILL.md and bundled scripts before installing.
Who maintains google-cloud-filestore-autoscale?
It is published by google in google/skills. It has 4,194 recorded installs.
More from google/skills
bigquery-basics
google/skills
Manages datasets, tables, and jobs in BigQuery. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources (datasets, tables, views), or perform basic data ingestion and analysis.
cloud-run-basics
google/skills
Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).
gemini-api
google/skills
Use when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI, Google Cloud, or Agent Platform. Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK. Covers SDK usage (Python, JS/TS, Go, Java, C), capabilities like multimodal inputs, tools, media generation, caching, batch prediction, and Live API.
google-cloud-recipe-auth
google/skills
Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Credentials (ADC), and best practices for secure access.
google-cloud-recipe-onboarding
google/skills
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource. Use when a new developer wants to initialize their first Google Cloud project, configure billing, and verify deployment. Don't use for enterprise organization setup (use Google Cloud Setup guided flow for that instead). Don't use for complex multi-project architectures.
cloud-sql-basics
google/skills
This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source MySQL instance, the resulting resource is a Cloud SQL for MySQL instance that Google Cloud manages. Cloud SQL handles backups, high availability, and secure connectivity for relational database workloads.
Popular devops & cloud skills
microsoft-foundry
microsoft/azure-skills
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure
azure-diagnostics
microsoft/azure-skills
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.
azure-prepare
microsoft/azure-skills
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
azure-deploy
microsoft/azure-skills
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.
azure-validate
microsoft/azure-skills
Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.