Skip to main content
skill Claude Code Gemini CLI CX Codex official · Google

google-cloud-storage-fuse — Claude Code skill: install

This skill helps decide when to use gcsfuse, tune Cloud Storage mounts, and diagnose slow workloads or rising costs.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add google/skills --skill google-cloud-storage-fuse -a claude-code
Open on GitHub

What google-cloud-storage-fuse does

google-cloud-storage-fuse covers Cloud Storage FUSE mounts that expose Google Cloud buckets as POSIX file systems. It helps compare gcsfuse with native gs:// reads and with Filestore or Managed Lustre when an application needs different file semantics.

The skill explains the gcsfuse CLI and config files, file, metadata, and list caches, the --implicit-dirs flag, and deployments on GKE, Compute Engine, and Cloud Run. GKE guidance includes the CSI driver, Workload Identity, StorageClasses, and sidecar sizing. It also covers HNS, rename atomicity, close-time finalization, and concurrent writers.

Install it when code depends on POSIX paths or when you need to investigate slow training, low throughput, or bill spikes. For native gs:// access or shared mutable files with locking, use the matching alternative instead.

What it helps with

  • choose between gcsfuse, native gs:// reads, and Filestore
  • tune Cloud Storage mount caches and flags
  • deploy a mount on GKE, Compute Engine, or Cloud Run
  • check ML checkpoint safety and rename behavior
  • trace slow mounts and unexpected Cloud Storage costs

Example prompts for the agent

  • Decide whether gcsfuse fits this workload and tell me what access details matter.
  • Tune a Cloud Storage mount for training on GKE.
  • Check whether this checkpoint write pattern is safe with concurrent writers.

How to install google-cloud-storage-fuse

1Skills CLI (Vercel)

npx skills add google/skills --skill google-cloud-storage-fuse -a claude-code

2Manually: put the files in place

~/.claude/skills/google-cloud-storage-fuse/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/google-cloud-storage-fuse/

From the same set172

The whole set →
bigquery-basics official google Manages BigQuery resources and runs SQL queries. Use it to create datasets, tables and views, or handle basic data ingestion and analysis. Claude Code Gemini CLI CX Codex 17,678installs cloud-run-basics official google This skill helps an agent manage Cloud Run services, jobs, and worker pools when a project needs HTTP deployment, scheduled work, or pull-based background processing. Claude Code Gemini CLI CX Codex 17,532installs gemini-api official google Connects Gemini API from Google Cloud Agent Platform to the agent. Gives access to Gemini models, multimodal input, function calling, and context caching. Claude Code Gemini CLI CX Codex 17,116installs google-cloud-recipe-auth official Google LLC This skill explains Google Cloud authentication and permissions. Use it when setting up IAM, ADC, or service accounts for local code and production workloads. Claude Code Gemini CLI CX Codex 15,450installs google-cloud-recipe-onboarding official Google LLC Guides a developer through a first Google Cloud project: CLI checks, sign-in, project setup and billing. It fits a personal first project. Claude Code Gemini CLI CX Codex 15,390installs cloud-sql-basics official google This skill helps create and explain Cloud SQL resources for MySQL, PostgreSQL, and SQL Server. Use it when setting up a database in Google Cloud. Claude Code Gemini CLI CX Codex 14,679installs google-cloud-waf-security official google This skill reviews Google Cloud workloads against the security pillar of the Well-Architected Framework and suggests actions for IAM, networks, data, and operations. Claude Code Gemini CLI CX Codex 14,620installs google-cloud-waf-cost-optimization official google Reviews Google Cloud workloads through the Well-Architected Cost Optimization pillar. Use it to inspect spending, resize resources, assess discounts, or find idle capacity. Claude Code Gemini CLI CX Codex 14,266installs

Similar

python-packaging Seth Hobson This skill turns Python libraries and CLI tools into installable packages and guides PyPI releases. Use it when a project needs a distributable structure. Claude Code CX Codex Cursor 12,915installs azure-pricing official anthonychu Fetches current Azure retail prices and estimates usage costs. Use it to compare SKUs, regions, billing models, and Copilot Studio credits. GitHub Copilot 4,700installs just casey Reference skill for just, a command runner that executes tasks from a justfile. Use when your project has a justfile or you need syntax help for recipes and commands. Claude Code CX Codex Cursor +1 1,000installs cmux-ghostty manaflow-ai Enforces workflow guidelines for the Ghostty submodule and GhosttyKit compilation in cmux. Useful when syncing the fork or committing submodule pointers. Claude Code CX Codex Cursor +1 4,700installs wizard Matt Pocock This skill creates an interactive bash wizard for manual setup steps, CI secrets, third-party dashboards, and one-off migrations. Claude Code 553,369installs hyperframes-cli heygen-com Controls HyperFrames video workflows from the CLI: audits layouts and contrast, edits timeline clips, captures snapshots, and renders locally or in cloud runtimes. Claude Code CX Codex Cursor +1 1,200,000installs setup-pre-commit Matt Pocock This skill configures pre-commit checks for a JavaScript repository, running Prettier, type checking, and tests before each commit. Claude Code 489,289installs using-git-worktrees Jesse Vincent Prepares an isolated workspace before feature work or plan execution. It checks the repository first, then uses native worktree support or Git. Claude Code CX Codex 217,153installs

Questions about google-cloud-storage-fuse

How do I install google-cloud-storage-fuse in Claude Code?

Run npx skills add google/skills --skill google-cloud-storage-fuse -a claude-code. The skill file is installed at ~/.claude/skills/google-cloud-storage-fuse/SKILL.md.

What does google-cloud-storage-fuse do?

It guides Cloud Storage FUSE mounts, workload fit decisions, mount tuning, and diagnosis of performance or cost problems. It covers gcsfuse, GKE CSI deployments, Compute Engine, and Cloud Run.

Is gcsfuse suitable for concurrent writers and file locking?

For shared mutable writes that depend on flock or fcntl, databases, or concurrent in-place editing, the skill points to Filestore or Managed Lustre. ML checkpointing also requires checking HNS, rename behavior, and close-time finalization.

Source text

SKILL.md · Apache-2.0
---
name: google-cloud-storage-fuse
description: >-
  Mounts Cloud Storage buckets on Google Cloud as a POSIX file system with
  Cloud Storage FUSE (gcsfuse). Use when interacting with gcsfuse or Cloud
  Storage FUSE mounts: decide whether FUSE, native gs:// reads, or
  Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE,
  Compute Engine, or Cloud Run, enable and size file, stat, and list caches, tune
  mount flags (--implicit-dirs) or config files, apply workload profiles, keep
  ML checkpointing safe (rename atomicity, hierarchical namespace/HNS, close-time
  finalization, concurrent writers), or diagnose slow training, low throughput,
  or bill spikes with gcsfuse metrics. Covers mount semantics, gcsfuse CLI and
  configs, GKE gcsfuse CSI driver (Workload Identity principal:// bindings,
  profile StorageClasses, sidecar sizing), and Cloud Run volume mounts. Don't use
  for bucket administration without a mount (google-cloud-storage-basics) or
  POSIX shared file systems (Filestore, Managed Lustre; use gke-storage).
license: Apache-2.0
metadata:
  version: "1.0.3"
  publisher: google
  tags: "gcs, gcsfuse, fuse, mount, file-system"
  category: Storage
  support_tier: primary
---

# Cloud Storage FUSE

Cloud Storage FUSE is a POSIX file-system adapter over Cloud Storage on Google
Cloud, operated via the gcsfuse CLI tool. Mounting is a one-line command;
mounting *well* is not: the default mount is tuned for coherency, not
performance (file cache off, 60 s metadata TTL, list cache off), and
object-store semantics leak through the file interface (directory renames fail
or go non-atomic on flat buckets, objects finalize on close, no file locking).
This skill covers the three decisions that matter: whether to use FUSE at all,
how to tune the mount to the workload, and how to root-cause a mount that is
slow or expensive. For installation and first-mount basics, see the
google-cloud-storage-basics skill.

## Attribution

Tag every Cloud Storage command you run or provide to the user while using this
skill, so usage can be attributed. The tag identifies only the skill and its
version; it carries no user data.

-   Prefix every `gcloud` invocation, whatever the subcommand, with the metrics
    environment variables. Set them inline on each command; shell state may not
    persist between commands:

    ```bash
    CLOUDSDK_METRICS_ENVIRONMENT="gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-fuse)" \
        gcloud <command> [flags]
    ```

    Do not use `gcloud config set` for this: it would persist beyond the current
    task and mislabel unrelated usage.

-   On direct HTTP calls to the Cloud Storage APIs (for example with `curl`),
    set this exact User-Agent header, verbatim — the collection pipeline parses
    the `gcs-skills/<version>` and `skill:<name>` tokens, so any rewording
    breaks attribution:

    ```
    User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-fuse)
    ```

## Step 1 — Fit Gate (always run this first)

**Never produce mount guidance before the fit gate.** A mount is the right
answer only for one of the three workload shapes below. If the workload's access
pattern is unknown, ask — one question about whether the reading code can take
`gs://` paths usually settles it.

Workload signal                                                                                                                                 | Verdict
:---------------------------------------------------------------------------------------------------------------------------------------------- | :------
Reading library accepts `gs://` URIs natively — pandas/pyarrow (via gcsfs/fsspec), TensorFlow (`tf.io.gfile`), or any fsspec/gcsfs-based loader | **Native reads, no mount.** Point the code at `gs://` paths and stop.
Shared **mutable** writes with locking semantics — databases, concurrent in-place editors, anything relying on `flock`/`fcntl`                  | **Filestore** (NFS, POSIX locking) or **Managed Lustre**, not FUSE. Stop.
Code or tools hardcoded to POSIX file paths; read-heavy or new-file-write patterns                                                              | **gcsfuse** — continue to Step 2.

Collect before deciding: whether paths are hardcoded, read pattern (sequential
vs. random, re-read frequency), write pattern (new files vs. edits vs. directory
renames). These same signals drive tuning later — record the answers.

## Step 2 — Route by intent

User intent (prompt shape)                                                               | Go to
:--------------------------------------------------------------------------------------- | :----
Provision: "mount my bucket for X", "get training data into my pods"                     | [GKE Training Deployment](references/gke-training-deployment.md)
Safety/semantics: "is this write pattern safe?", "can multiple writers share the mount?" | [Checkpoint & Write Safety](references/checkpoint-safety.md)
Regression: "training is slow", "the Cloud Storage bill spiked", "throughput dropped"    | [Performance & Cost Diagnosis](references/performance-diagnosis.md)

**Never diagnose a regression without telemetry.** If gcsfuse metrics are not
enabled on the mount, enabling them is the first remediation step — the
diagnosis reference starts there.

## Reference Directory

-   [GKE Training Deployment](references/gke-training-deployment.md): Fit-gated,
    performance-tuned mounts for training workloads — GKE CSI version gates,
    Workload Identity `principal://` IAM bindings, profile StorageClasses vs.
    static PVs, file cache sizing on Local SSD, sidecar resource annotations,
    complete KSA/PVC/Job manifests, and the Compute Engine and Cloud Run
    variants.

-   [Checkpoint & Write Safety](references/checkpoint-safety.md): Verdicts on
    write patterns — file vs. directory rename atomicity on flat vs.
    hierarchical namespace (HNS) buckets, close-vs-fsync finalization,
    concurrent-writer (`ESTALE`) semantics, streaming-write memory budgets, HNS
    migration, and the `aiml-checkpointing` profile.

-   [Performance & Cost Diagnosis](references/performance-diagnosis.md):
    Telemetry-first runbook for slow mounts and bill spikes — enabling and
    reading gcsfuse metrics, mapping cache-hit and request-mix signatures to
    misconfigurations, the coherency-tuned defaults, tuned config keys with
    their staleness caveats, and billing-line (Class A/B) attribution.

© google · Apache-2.0 · google/skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor