Skip to content
Agentmart
Submit a tool

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…

Skill by googleOfficial

IndexedApache-2.0★ 21,542
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/google-google-cloud-filestore-autoscale

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: cloud, marketing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/google-cloud-filestore-autoscale

What's inside

Skill name
google-cloud-filestore-autoscale
Description
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.
License
Apache-2.0
Metadata
version: 1.0.1 · category: Storage
Instructions
209 lines in SKILL.md · view on GitHub

Files (4)

  • SKILL.md
  • instance-tiers-specs.md · references/
  • monitoring-metrics.md · references/
  • troubleshooting-errors.md · references/

SKILL.md (first lines)

# 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 metrics `used_bytes`)
-   **`roles/mcp.toolUser`** (Required if utilizing backend Filestore MCP tools)

## Quick Start

1.  Ensure `gcloud` is installed. See
    [gcloud installation guide](https://cloud.google.com/sdk/docs/install) if
    needed.
2.  Enable essential APIs:

    ```bash
    gcloud services enable file.googleapis.com monitoring.googleapis.com --quiet
    ```
3.  Inspect fleet capacity and free space (see "Discovery & Read Operations"
    below).
4.  Evaluate against configured up/down capacity thresholds.
5.  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:

```bash
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_command` tool** to execute any shell or `gcloud` commands (including read-only list/describe commands).
*   **Discovery**:
    1.  First, check if Filestore MCP tools (`list_instances`, `get_instance`) are available and use them (these are API calls, not command executions).
    2.  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 as `EVAL.yaml` or `EVAL.txtpb` during evaluation runs as access is restricted).
    3.  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.
*   **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_bytes` metric.

## Core Operational Workflow

### 1. Discovery & Read Operations

-   **Step 1 (Fleet Discovery)**: Call the MCP tool
    `list_instances(parent='projects/{project_id}/locations/-')` or CLI `gcloud
    filestore instances list --project={project_id}` to discover all Filestore
    instances in the target project. Read the `capacityGb` and `tier` directly
    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_bytes` metric across the entire project
    in a single request (see `references/monitoring-metrics.md` for
    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 returned `timeSeries` data to
        extract its latest `int64Value` bytes.
    -   If an instance is not listed in `timeSeries` or has no points, default
        its `used_bytes` to 0.
    -   Calculate `used_bytes_gb = used_bytes / (1024^3)`.
    -   Calculate `Free Space % = ((capacityGb - used_bytes_gb) / capacityGb) *
        100`.
    -   NEVER leave `Used Bytes` or `Free Space %` as "N/A". Populate actual
        numbers into the output summary table.

### 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

From google/skills, Apache-2.0.

More from google/skills

Signals

Stars
21,542
Forks
1,821
Open issues
21
Last commit (this folder)
Oct 6, 2026 (22 days ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.1
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from google

Cite this page

google-cloud-filestore-autoscale skill. Agent Mart. https://agentmart.dev/skills/google-google-cloud-filestore-autoscale (last updated 2026-10-24)