yiru-google-drive

yiru-google-drive is a skill for Claude Code, Codex from CHENyiru3/AI-Skills-Collections. It costs 48 tokens per session (632 once invoked), scanned A, original, MIT.

A guide for transferring files and folder trees between a local computer and Google Drive through an already configured command-line tool. It also covers exporting Google-native documents into ordinary file formats.

In plain words
What is it for?
Use it to upload or download files, copy folders, export native Google documents, and account for retries during transfers.
Why use it?
It prevents treating folders or Google Docs, Sheets, and Slides like ordinary binary files, and helps handle ambiguous destinations and retry results safely.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the platforms plugin — 10 skills shipped together

Good fit Use it to upload or download files, copy folders, export native Google documents, and account for retries during transfers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chenyiru3/ai-skills-collections/yiru-google-drive
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 CHENyiru3/AI-Skills-Collections --skill yiru-google-drive
Clone the repo
git clone --depth 1 https://github.com/CHENyiru3/AI-Skills-Collections

Made for: Claude Code, Codex.

Or install platforms, the plugin that ships this one along with the rest of its 10 skills.

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 yiru-google-drive

README.md
[![agentmods](https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/yiru-google-drive/github.svg)](https://agentmods.dev/skills/chenyiru3/ai-skills-collections/yiru-google-drive)
Your own site
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/yiru-google-drive"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/yiru-google-drive/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 yiru-google-drive

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/yiru-google-drive"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/yiru-google-drive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 632 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.
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.00048 $0.00632
Opus 5.5 $0.00019 $0.00253
Sonnet 5.5 $0.00010 $0.00126
Haiku 4.5 $0.00005 $0.00063

Measured yesterday against content hash db65a3187503, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yiru-google-drive 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 yesterday.

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.

skills-market/platforms/google-workspace/yiru-google-drive/SKILL.md · 60 lines

How it starts

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

Configured Google Drive Transfers

The historical skill ID is retained; account, OAuth project, credentials, and storage locations belong in the operator's private configuration, not this skill. Reuse configured access. Use gws-shared for CLI mechanics and gws-drive for API operations. Diagnose authentication only when it fails; a transfer does not authorize changing credentials or sharing.

Files and destinations

Use supplied Drive IDs/resource keys and the requested local destination. Resolve ambiguous destinations before writing. Inspect an unfamiliar method's schema and the installed CLI version before relying on its flags.

gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive files get --params '{"fileId":"FILE_ID","alt":"media"}' -o ./report.pdf
gws drive files export --params '{"fileId":"DOC_ID","mimeType":"application/pdf"}' -o ./document.pdf

Choose native-document export formats for the user's purpose. Do not treat a folder, shortcut, or Google-native document as an ordinary binary download. Where path validation requires it, use the actual source/destination directory as the working directory and paths beneath it; do not weaken path checks.

New uploads create items and may duplicate them on retry. Inspect an uncertain remote result before repeating it. Updating an existing item requires its ID and the requested overwrite scope.

Folder trees

Check whether the installed CLI provides the requested recursion. Otherwise use a task-scoped traversal with subprocess argument lists and JSON serialization.

  • Upload: enumerate the requested tree, create folders including empty ones, and retain relative-path-to-Drive-ID mappings plus completed file IDs. Do not follow symlinks outside the requested tree implicitly.
  • Download: list each folder with '<ID>' in parents and trashed = false; request nextPageToken and follow it until absent. Recreate folders, download binaries, export native documents, and resolve shortcuts deliberately without cycles. Report unsupported or skipped entries.
  • Treat remote names as untrusted path components: reject absolute/traversal paths, resolve duplicate names with stable ID suffixes, and preserve existing local files unless replacement is requested.
  • Check method-specific shared-drive options and local capacity. For a configured external storage mount, verify the intended mount is present and writable before creating destination directories.

Read the full file on GitHub · 60 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 60 lines · 48 tokens per session scan A db65a3187503

Subscribe to this mod's changes

yiru-google-drive is a skill published in the GitHub repository CHENyiru3/AI-Skills-Collections (2 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 632 once invoked, about $0.0002 per session on Opus 5.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-11-13.

Related

yiru-google-drive compared with skills from other repositories

yiru-google-drive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yiru-google-driveCHENyiru3/AI-Skills-CollectionsSkill23d agoMITA48Claude Code, Codex
orbit-notionnexu-io/open-designSkill108ktodayApache-2.0A117Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill36kyesterdayApache-2.0A123Claude Code
apify-youtube-transcript-scrapersickn33/agentic-awesome-skillsSkill50ktodayMITA48Claude Code
report-to-pdfasgeirtj/system_prompts_leaksSkill71ktodayCC0-1.0A17Claude Code, Codex
legal-holdanthropics/claude-for-legalSkill10ktodayApache-2.0A68Claude Code
artifact-template-minimal-letterheadasgeirtj/system_prompts_leaksSkill71ktodayCC0-1.0A54Claude Code, Codex