К основному содержанию
скилл Claude Code Gemini CLI CX Codex официальный · Google

google-cloud-storage-fuse — скилл Claude Code: установка

Скилл помогает решать, нужен ли gcsfuse, настраивать монтирование Cloud Storage и разбирать проблемы с производительностью и расходами.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add google/skills --skill google-cloud-storage-fuse -a claude-code
Открыть на GitHub

Что делает google-cloud-storage-fuse

google-cloud-storage-fuse работает с Cloud Storage FUSE и монтирует бакеты Google Cloud как POSIX-файловую систему. Он помогает выбрать между gcsfuse, чтением через gs:// и Filestore или Managed Lustre, если приложению нужны другие файловые семантики.

Скилл охватывает CLI и конфигурации gcsfuse, кэш файлов, метаданных и списков, флаг --implicit-dirs, а также развёртывание на GKE, Compute Engine и Cloud Run. Для GKE есть сценарии с CSI-драйвером, Workload Identity, StorageClasses и настройкой sidecar. Отдельно разобраны HNS, атомарность переименований, завершение записи при закрытии файла и конкурентные писатели.

Ставьте его, когда код требует POSIX-путей или нужно диагностировать медленное обучение, низкую пропускную способность и рост счёта. Для нативной работы с gs:// и для общей файловой системы с блокировками лучше выбрать другой путь.

Какие задачи решает

  • выбрать между gcsfuse, чтением через gs:// и Filestore
  • настроить кэши и флаги монтирования Cloud Storage
  • развернуть mount на GKE, Compute Engine или Cloud Run
  • проверить безопасность ML-чекпойнтов и переименований
  • найти причину медленной работы или роста счёта

Примеры запросов агенту

  • Определи, подходит ли gcsfuse для моего workload и какие данные нужны для решения.
  • Настрой mount Cloud Storage на GKE для обучения и подбери кэши.
  • Разбери, безопасна ли запись чекпойнтов при нескольких писателях.

Как установить google-cloud-storage-fuse

1Через Skills CLI (Vercel)

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

2Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/google-cloud-storage-fuse/

Из того же набора172

Весь набор →
bigquery-basics официальный google Управляет ресурсами BigQuery и запускает SQL-запросы. Подходит для создания датасетов, таблиц, представлений и базовой загрузки данных. Claude Code Gemini CLI CX Codex 17 678установок cloud-run-basics официальный google Скилл помогает управлять Cloud Run: разворачивать HTTP-сервисы, запускать задачи по событию или расписанию и вести фоновые worker pools. Claude Code Gemini CLI CX Codex 17 532установок gemini-api официальный google Подключает Gemini API из Agent Platform Google Cloud к агенту. Даёт доступ к моделям Gemini, мультимодальному вводу, вызову функций и кешированию контекста. Claude Code Gemini CLI CX Codex 17 116установок google-cloud-recipe-auth официальный Google LLC Скилл объясняет аутентификацию и права доступа в Google Cloud. Пригодится для настройки IAM, ADC и сервисных аккаунтов в разработке и продакшене. Claude Code Gemini CLI CX Codex 15 450установок google-cloud-recipe-onboarding официальный Google LLC Проводит разработчика через старт в Google Cloud: проверяет CLI, вход, проект и биллинг. Подходит для первого личного проекта. Claude Code Gemini CLI CX Codex 15 390установок cloud-sql-basics официальный google Скилл помогает создавать и объяснять Cloud SQL для MySQL, PostgreSQL и SQL Server. Пригодится при настройке базы в Google Cloud. Claude Code Gemini CLI CX Codex 14 679установок google-cloud-waf-security официальный google Скилл оценивает безопасность рабочих нагрузок в Google Cloud и предлагает меры для IAM, сетевой защиты, данных и операционной безопасности. Claude Code Gemini CLI CX Codex 14 620установок google-cloud-waf-cost-optimization официальный google Проверяет расходы Google Cloud по pillar Cost Optimization из Well-Architected Framework. Нужен для поиска простаивающих ресурсов, выбора скидок и правки размеров сервисов. Claude Code Gemini CLI CX Codex 14 266установок

Похожие

python-packaging Seth Hobson Скилл помогает собрать Python-библиотеку или CLI-инструмент в устанавливаемый пакет и подготовить публикацию в PyPI. Подходит для настройки структуры проекта. Claude Code CX Codex Cursor 12 915установок azure-pricing официальный anthonychu Скилл получает актуальные розничные цены Azure и считает примерные расходы. Подойдёт для сравнения SKU, регионов и моделей оплаты. GitHub Copilot 4 700установок just casey Справочник по just — инструменту для запуска команд и скриптов из justfile. Пригодится, если в проекте уже есть justfile или нужно быстро вспомнить синтаксис рецептов. Claude Code CX Codex Cursor +1 1 000установок context-mode mksglu Скилл направляет анализ больших файлов и выводов команд через инструменты context-mode вместо Bash. Пригодится для логов, тестов, данных и снимков страниц. Claude Code CX Codex Cursor +1 2 900установок wizard Matt Pocock Скилл создаёт интерактивный bash-скрипт для ручных шагов: настройки сервисов, секретов CI и разовых миграций. Claude Code 553 369установок hyperframes-cli heygen-com Управляет проектами HyperFrames через терминал: собирает таймлайн, проверяет контраст кадров, запускает предпросмотр и рендерит видео локально или в облаке. Claude Code CX Codex Cursor +1 1 200 000установок setup-pre-commit Matt Pocock Скилл настраивает pre-commit для JavaScript-репозитория: Husky запускает форматирование, проверку типов и тесты перед коммитом. Claude Code 489 289установок using-git-worktrees Jesse Vincent Готовит изолированное рабочее дерево перед доработкой или выполнением плана. Проверяет текущий репозиторий, выбирает нативные средства платформы либо Git. Claude Code CX Codex 217 153установок

Вопросы о google-cloud-storage-fuse

Как установить google-cloud-storage-fuse в Claude Code?

Выполните npx skills add google/skills --skill google-cloud-storage-fuse -a claude-code. Файл скилла появится по пути ~/.claude/skills/google-cloud-storage-fuse/SKILL.md.

Что делает google-cloud-storage-fuse?

Скилл помогает монтировать бакеты Cloud Storage через gcsfuse, выбирать подходящую модель доступа и настраивать mount под workload. Он также разбирает проблемы с производительностью и расходами.

Подходит ли gcsfuse для нескольких писателей и блокировок?

Для общей изменяемой записи с locking semantics, базами данных и кодом, который использует flock или fcntl, скилл рекомендует Filestore или Managed Lustre. Для ML-чекпойнтов отдельно учитываются HNS, атомарность rename и завершение записи при close.

Исходный текст

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

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой