Agent skill

Gcs S3 Compat Acl Rejection

by divinevideo in divinevideo/divine-mobile

Fix S3 "InvalidArgument" errors when using Google Cloud Storage S3-compatible API with ObjectCannedAcl::PublicRead or x-amz-acl headers.

MPL-2.0Auto-check passedBackend & APIs

Install Gcs S3 Compat Acl Rejection

skills CLI
$ npx skills add divinevideo/divine-mobile --skill gcs-s3-compat-acl-rejection -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install divinevideo/divine-mobile gcs-s3-compat-acl-rejection --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gcs-s3-compat-acl-rejection .claude/skills/gcs-s3-compat-acl-rejection && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gcs-s3-compat-acl-rejection
GitHub stars
266
Token cost
~655 tokens
SKILL.md length
158 words
Files
1
Skills in repo
103
Repo updated
First seen
Licence
MPL-2.0

At a glance

Fix S3 "InvalidArgument" errors when using Google Cloud Storage S3-compatible API with ObjectCannedAcl::PublicRead or x-amz-acl headers.

  • Uploadblob fails with InvalidArgument on GCS
  • SKILL.md covers Problem, Context / Trigger Conditions, Solution and Verification, plus 1 more section
  • Calls gsutil and curl; reaches storage.googleapis.com
  • Using aws-sdk-s3 Rust crate with GCS endpoint (storage.googleapis.com)

What it does

Gcs S3 Compat Acl Rejection is an agent skill from divinevideo/divine-mobile. Fix S3 "InvalidArgument" errors when using Google Cloud Storage S3-compatible API with ObjectCannedAcl::PublicRead or x-amz-acl headers. Use when: (1) putobject or uploadblob fails with InvalidArgument on GCS, (2) Using aws-sdk-s3 Rust crate with GCS endpoint (storage.googleapis.com), (3) Bucket has uniform bucket-level access enabled (GCS default since 2023), (4) S3 operations work on MinIO/AWS but fail on GCS. GCS rejects per-object ACLs when uniform bucket-level access is enabled.

Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering File uploads and storage. It works with Amazon Web Services, Google Cloud and Rust. The licence is MPL-2.0.

When your agent uses it

  • Uploadblob fails with InvalidArgument on GCS
  • Using aws-sdk-s3 Rust crate with GCS endpoint (storage.googleapis.com)
  • Bucket has uniform bucket-level access enabled (GCS default since 2023)
  • S3 operations work on MinIO/AWS but fail on GCS

Example prompts

  • “InvalidArgument”
  • “/gcs-s3-compat-acl-rejection”

What it can do on your machine

Read from SKILL.md and the folder at commit c3d6f7e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gsutil
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • storage.googleapis.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gcs S3 Compat Acl Rejection loads about 655 tokens when it runs. Until then it costs about 130 tokens; SKILL.md has 158 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~130
When it runs · the whole SKILL.md, loaded when a task matches
~655

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from divinevideo/divine-mobile at commit c3d6f7e, republished under its MPL-2.0 licence (© divinevideo). 158 words, ~655 tokens.

Download SKILL.mdSave it as .claude/skills/gcs-s3-compat-acl-rejection/SKILL.md (or your agent's skills folder).
name
gcs-s3-compat-acl-rejection
description
Fix S3 "InvalidArgument" errors when using Google Cloud Storage S3-compatible API with ObjectCannedAcl::PublicRead or x-amz-acl headers. Use when: (1) put_object or upload_blob fails with InvalidArgument on GCS, (2) Using aws-sdk-s3 Rust crate with GCS endpoint (storage.googleapis.com), (3) Bucket has uniform bucket-level access enabled (GCS default since 2023), (4) S3 operations work on MinIO/AWS but fail on GCS. GCS rejects per-object ACLs when uniform bucket-level access is enabled.
author
Claude Code
version
1.0.0
date
2026-03-21

GCS S3-Compatible API ACL Rejection

Problem

S3 put_object calls fail with InvalidArgument when targeting Google Cloud Storage via its S3-compatible API, despite working correctly with MinIO or AWS S3.

Context / Trigger Conditions

  • Using aws-sdk-s3 (Rust) or any S3 SDK with GCS endpoint
  • AWS_ENDPOINT=https://storage.googleapis.com
  • Error: Error { code: "InvalidArgument", message: "Invalid argument." }
  • Stack trace shows S3BlobStore::put_temp or similar S3 put operation
  • The GCS bucket has uniform bucket-level access enabled (GCS default)

Solution

Remove ObjectCannedAcl::PublicRead from put_object calls when using GCS:

rust
// BEFORE (fails on GCS with uniform bucket-level access)
self.client
    .put_object()
    .body(body)
    .bucket(&self.s3_bucket)
    .key(key)
    .acl(ObjectCannedAcl::PublicRead)  // This causes InvalidArgument
    .send()
    .await?;

// AFTER (works with GCS)
self.client
    .put_object()
    .body(body)
    .bucket(&self.s3_bucket)
    .key(key)
    // Remove .acl() — use bucket-level IAM instead
    .send()
    .await?;

For public read access, configure the bucket IAM policy instead:

bash
gsutil iam ch allUsers:objectViewer gs://YOUR_BUCKET

Or disable uniform bucket-level access (not recommended):

bash
gsutil ubla set off gs://YOUR_BUCKET

Verification

After removing the .acl() call, upload should succeed:

bash
curl -X POST "$PDS_URL/xrpc/com.atproto.repo.uploadBlob" \
  -H "Authorization: Bearer $JWT" \
  -H "Content-Type: video/mp4" \
  --data-binary @test.mp4

Notes

  • GCS uniform bucket-level access has been the default since 2023
  • The copy_object call in move_object() also uses .acl(PublicRead) and will fail
  • This affects rsky-pds blob storage: rsky-pds/src/actor_store/aws/s3.rs lines 69, 97, 212
  • MinIO doesn't enforce this restriction, so local dev works but production GCS fails
  • The same issue applies to put_permanent() and move_object() methods

© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/gcs-s3-compat-acl-rejection of divinevideo/divine-mobile.

Open the folder on GitHubat commit c3d6f7e

Compare with similar skills

Gcs S3 Compat Acl Rejection next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gcs S3 Compat Acl Rejection compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gcs S3 Compat Acl Rejection this skilldivinevideo/divine-mobile266—~655Automated safety check: PassMPL-2.0
Deploying Cloud Deception With Decoy Resourcesmukul975/Anthropic-Cybersecurity-Skills34k—~2.8kAutomated safety check: PassApache-2.0
FoundatioFoundatioFx/Foundatio2.1k—~3.9kAutomated safety check: PassApache-2.0
PhidownESA-PhiLab/phidown105—~1kAutomated safety check: PassApache-2.0
Fftiers Opsborisachen/fftiers202—~1.8kAutomated safety check: WarnNone
Processing S3 Uploads With Step Functionsaws/agent-toolkit-for-aws2.8k—~4kAutomated safety check: PassApache-2.0

Similar skills

  • Deploying Cloud Deception With Decoy Resources

    mukul975/Anthropic-Cybersecurity-Skills

    Deploy cloud-native deception across AWS, Azure, and GCP using decoy (honey) resources whose only purpose is to generate a high-fidelity alert the instant an attacker touches them: canary IAM access…

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Foundatio

    FoundatioFx/Foundatio

    A skill your agent uses when working with Foundatio infrastructure abstractions for .NET -- caching, queuing, messaging, file storage, distributed locking, or background jobs.

    2.1k GitHub stars~3.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Phidown

    ESA-PhiLab/phidown

    Search, filter, download, and analyze Copernicus Data Space products with the phidown project.

    105 GitHub stars~1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Fftiers Ops

    borisachen/fftiers

    Operate the borischen.co fftiers pipeline — season rollover, run main.R, S3 deploy from Workbench or EC2.

    202 GitHub stars~1.8k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: warnings
  • Official

    Deploy an event-driven workflow that routes S3 uploads to either Lambda or Fargate via Step Functions based on file size.

    2.8k GitHub stars~4k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Interactive Login

    yc-software/qm

    Log a CLI in with a browser/device-code flow (aws sso, gh, glab, gcloud, …) and save the result to the keychain so later commands can request it through execute.credentials.

    15k GitHub stars~635 tokensUpdated today
    Backend & APIsAuto-check passed

More from divinevideo/divine-mobile

All 103 skills in this repo
  • Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".

    266 GitHub stars~931 tokensUpdated today
    Auto-check passed
  • Art Direct

    divinevideo/divine-mobile

    Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.

    266 GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Async Await Null Race Condition

    divinevideo/divine-mobile

    Fix "Null check operator used on a null value" errors when an object is set to null during an async await.

    266 GitHub stars~881 tokensUpdated today
    Auto-check passed
  • AWS V4 Signing Custom Headers Gcs

    divinevideo/divine-mobile

    Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.

    266 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Bash Herestring Newline Secrets

    divinevideo/divine-mobile

    Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.

    266 GitHub stars~791 tokensUpdated today
    Auto-check passed
  • Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).

    266 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Categories

Questions about Gcs S3 Compat Acl Rejection

What does Gcs S3 Compat Acl Rejection do?

Fix S3 "InvalidArgument" errors when using Google Cloud Storage S3-compatible API with ObjectCannedAcl::PublicRead or x-amz-acl headers. Gcs S3 Compat Acl Rejection is an agent skill from divinevideo/divine-mobile. Fix S3 "InvalidArgument" errors when using Google Cloud Storage S3-compatible API with ObjectCannedAcl::PublicRead or x-amz-acl headers.

When should I use Gcs S3 Compat Acl Rejection?

Gcs S3 Compat Acl Rejection fits situations like: uploadblob fails with InvalidArgument on GCS; using aws-sdk-s3 Rust crate with GCS endpoint (storage.googleapis.com); bucket has uniform bucket-level access enabled (GCS default since 2023); S3 operations work on MinIO/AWS but fail on GCS.

How do I install Gcs S3 Compat Acl Rejection in Claude Code?

Run `npx skills add divinevideo/divine-mobile --skill gcs-s3-compat-acl-rejection -a claude-code`. Or copy the skill folder (.agents/skills/gcs-s3-compat-acl-rejection in divinevideo/divine-mobile) into .claude/skills/gcs-s3-compat-acl-rejection in your project. Claude Code loads it when a task matches its description.

How do I install Gcs S3 Compat Acl Rejection in Codex?

Run `npx skills add divinevideo/divine-mobile --skill gcs-s3-compat-acl-rejection -a codex`. Or copy the skill folder (.agents/skills/gcs-s3-compat-acl-rejection in divinevideo/divine-mobile) into .agents/skills/gcs-s3-compat-acl-rejection in your project. Codex loads it when a task matches its description.

Can I use Gcs S3 Compat Acl Rejection in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill gcs-s3-compat-acl-rejection -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gcs-s3-compat-acl-rejection, .gemini/skills/gcs-s3-compat-acl-rejection, .github/skills/gcs-s3-compat-acl-rejection and .opencode/skills/gcs-s3-compat-acl-rejection in your project.

What does Gcs S3 Compat Acl Rejection need to run?

Going by SKILL.md and its folder, Gcs S3 Compat Acl Rejection needs the command-line tools its instructions call (gsutil and curl).

Does Gcs S3 Compat Acl Rejection access the network?

SKILL.md names 1 domain. In commands or code: storage.googleapis.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Gcs S3 Compat Acl Rejection safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gcs S3 Compat Acl Rejection use?

Gcs S3 Compat Acl Rejection is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gcs S3 Compat Acl Rejection use?

About 655 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gcs S3 Compat Acl Rejection?

Skills that share tags, products or a category with Gcs S3 Compat Acl Rejection: Deploying Cloud Deception With Decoy Resources (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Foundatio (FoundatioFx/Foundatio, 2.1k stars), Phidown (ESA-PhiLab/phidown, 105 stars) and Fftiers Ops (borisachen/fftiers, 202 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gcs S3 Compat Acl Rejection?

divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 10, 2026.

Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.