agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/google-cloud-storage/SKILL.md

google-cloud-storage

Skill13 starsChanged 26 days agoMITView on GitHub

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never pass file buffers through your Node.js application.

    line 12
  2. Distinctive:

    Use Workload Identity Federation instead of downloading static JSON Service Account keys.

    line 22
  3. Distinctive:

    If you are serving thousands of small images globally, place Cloud CDN in front of your GCS bucket.

    line 25
  4. Very specific:

    Use the Google Cloud Storage emulator (fs-test-server) to mock GCS APIs locally during CI without incurring egress charges.

    line 28
  5. Very specific:

    If Signed URLs fail with 'SignatureDoesNotMatch', ensure the Content-Type header sent by the browser exactly matches the contentType …

    line 31
  6. Distinctive:

    Use this when your agent works with google-cloud-storage — structured patterns beat pasted docs and prevent common hallucinations.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Google Cloud Storage API Skill

Quick Start

Google Cloud Storage (GCS) is the GCP equivalent of S3, optimized for high durability and tight integration with Google's ML and BigQuery ecosystems.

npm install @google-cloud/storage

Common Workflows

Signed URLs for Client Uploads

Never pass file buffers through your Node.js application. Generate a V4 Signed URL using @google-cloud/storage, send it to the frontend, and have the browser PUT the file directly into GCS.

Production Patterns

Resumable Uploads

For files exceeding 5MB, always utilize resumable uploads. The SDK handles this automatically via bucket.file().createWriteStream({ resumable: true }).

Error Recovery

Handle intermittent network failures during massive downloads by wrapping stream pipes in error handlers and relying on GCS's native retry capabilities built into the Node.js SDK.

Security Notes

Use Workload Identity Federation instead of downloading static JSON Service Account keys. Enforce Uniform Bucket-Level Access to prevent accidental public exposure via individual object ACLs.

Performance Considerations

If you are serving thousands of small images globally, place Cloud CDN in front of your GCS bucket. Do not serve highly-trafficked public assets directly from GCS storage nodes.

Testing Guidance

Use the Google Cloud Storage emulator (fs-test-server) to mock GCS APIs locally during CI without incurring egress charges.

Troubleshooting

If Signed URLs fail with 'SignatureDoesNotMatch', ensure the Content-Type header sent by the browser exactly matches the contentType specified when generating the URL.

References

Related Skills

  • [AWS S3](/skills/aws s3)
  • Firebase

Why use this skill

Use this when your agent works with google-cloud-storage — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • [aws s3](../aws s3/SKILL.md) — related to
  • firebase — related to

Last Verified: 2026-07-02

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.