gcs-rust-download-object-api

gcs-rust-download-object-api is a skill for Claude Code, Codex from divinevideo/divine-mobile. It costs 91 tokens per session (716 once invoked), scanned A, original, MPL-2.0.

A focused fix for downloading files from Google Cloud Storage in Rust. It explains which request type the Rust SDK expects when calling its download method.

In plain words
What is it for?
Use it when Rust code cannot find `DownloadObjectRequest` while downloading objects from Google Cloud Storage. It applies to full and partial object downloads.
Why use it?
It resolves a confusing compile error caused by looking for a `DownloadObjectRequest` type that does not exist. It also shows how to download a whole file or a selected byte range.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it when Rust code cannot find DownloadObjectRequest while downloading objects from Google Cloud Storage. It applies to full and partial object downloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/divinevideo/divine-mobile/gcs-rust-download-object-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add divinevideo/divine-mobile --skill gcs-rust-download-object-api
Clone the repo
git clone --depth 1 https://github.com/divinevideo/divine-mobile

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gcs-rust-download-object-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/divinevideo/divine-mobile/gcs-rust-download-object-api/github.svg)](https://agentmods.dev/skills/divinevideo/divine-mobile/gcs-rust-download-object-api)
Your own site
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/gcs-rust-download-object-api"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/gcs-rust-download-object-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gcs-rust-download-object-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/gcs-rust-download-object-api"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/gcs-rust-download-object-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.00716
Opus 5 $0.00046 $0.00358
Sonnet 5 $0.00018 $0.00143
Haiku 4.5 $0.00009 $0.00072

Measured 9d ago against content hash fd252cb67138, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

gcs-rust-download-object-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/gcs-rust-download-object-api/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GCS Rust SDK Download Object API

Problem

When using the google-cloud-storage Rust crate to download objects, developers often look for a DownloadObjectRequest type in the download module, expecting it to mirror the upload pattern. This type doesn't exist, causing confusing compile errors.

Context / Trigger Conditions

  • Using google-cloud-storage crate in Rust
  • Trying to call client.download_object()
  • Error: unresolved import google_cloud_storage::http::objects::download::DownloadObjectRequest
  • Looking in http::objects::download module for request types

Solution

The download_object method uses GetObjectRequest from the get module, combined with Range from the download module:

use google_cloud_storage::http::objects::{
    download::Range as DownloadRange,
    get::GetObjectRequest,
};

// Download full object
let data = client.download_object(
    &GetObjectRequest {
        bucket: "my-bucket".to_string(),
        object: "path/to/object".to_string(),
        ..Default::default()
    },
    &DownloadRange::default(),
).await?;

// Download partial object (bytes 0-1023)
let partial = client.download_object(
    &GetObjectRequest {
        bucket: "my-bucket".to_string(),
        object: "path/to/object".to_string(),
        ..Default::default()
    },
    &DownloadRange::Bounded(0, 1023),
).await?;

Verification

Code compiles and download_object returns Vec<u8> with the object contents.

Example

use google_cloud_storage::{
    client::{Client as GcsClient, ClientConfig},
    http::objects::{
        download::Range as DownloadRange,
        get::GetObjectRequest,
        upload::{Media, UploadObjectRequest, UploadType},
    },
};

async fn download_from_gcs(client: &GcsClient, bucket: &str, key: &str) -> Result<Vec<u8>> {
    let data = client.download_object(
        &GetObjectRequest {
            bucket: bucket.to_string(),
            object: key.to_string(),
            ..Default::default()
        },
        &DownloadRange::default(),
    ).await?;

    Ok(data)
}

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 96 lines · 91 tokens per session scan A fd252cb67138

Subscribe to this mod's changes

gcs-rust-download-object-api is a skill published in the GitHub repository divinevideo/divine-mobile (265 stars, last pushed today), licensed MPL-2.0. It adds 91 tokens to every session and 716 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories