Upload File to Google Drive

VerifiedSafe

Uploads a local file to Google Drive using OAuth2 authentication. Supports optional folder ID.

Sby Skills Guide Bot
ProductivityBeginner
7/24/2026
Claude Code
#google-drive#file-upload#cloud-storage#file-management

Recommended for

Automated summary

Uploads a local file to Google Drive using a pre-configured OAuth2 token.

Strengths

  • Simple, direct integration with Google Drive.
  • Supports optional target folder ID.
  • Clearly reports the shareable link of the uploaded file.

Limitations

  • Requires prior OAuth2 authentication via gdrive-auth.
  • Does not handle large files or entire directories.
  • No file format conversion or metadata support.
When to use it

Use this skill when you need to quickly save a specific local file to Google Drive.

When not to use it

Do not use for bulk transfers or recurring backups, as each upload requires a separate invocation.

Security analysis

Safe
Quality score90/100

The skill uses Bash only to check file existence and invokes a known project script for upload. No destructive or obfuscated actions are present, and the operation is explicitly requested by the user.

No concerns found

How this analysis is made

Examples

Upload file to root
Upload my report.txt to Google Drive.
Upload file to specific folder
Save notes.txt to my Google Drive folder with ID 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs.

name: gdrive-save description: Uploads a local file to Google Drive using the OAuth2 token from gdrive-auth/. Auto-invoke when user asks to upload, save, or push a local file to Google Drive. argument-hint: "<file-path> [--folder <gdrive-folder-id>]"

Required Tools

  • Bash
  • AskUserQuestion

Input Parsing

Parse $ARGUMENTS for:

  • file-path: required positional argument — path to the local file to upload
  • --folder <gdrive-folder-id>: optional — Google Drive folder ID to upload into; defaults to Drive root

If file-path is missing, ask:

AskUserQuestion: "Please provide the path to the local file you want to upload to Google Drive."

If --folder flag is present but no ID follows, ask:

AskUserQuestion: "Please provide the Google Drive folder ID to upload into."

Resolve the file path relative to the current working directory if it is not absolute.

Step 1 — Verify File Exists

Use Bash to check the file exists:

test -f "<file-path>" && echo "ok" || echo "not found"

If the file is not found, report an error and stop:

Error: File not found — <file-path>

Step 2 — Run Upload Script

Run the upload script from the project root. Include --folder if it was provided:

node gdrive-save.js "<file-path>" [--folder "<folder-id>"]

Example with folder:

node gdrive-save.js "notes.txt" --folder "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs"

The script outputs three lines on success:

Uploaded: <filename>
ID: <google-drive-file-id>
Link: <webViewLink>

If the script exits with a non-zero code or prints "Upload failed:", report the error and stop:

Error: Upload failed — <error message from script>

Step 3 — Report

Output a single confirmation block:

Uploaded "<filename>" → Google Drive
ID: <file-id>
Link: <webViewLink>

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/upload-file-to-google-drive-mrwaketj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/upload-file-to-google-drive-mrwaketj/download' --output '.skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md.part' && mv '.skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md.part' '.skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md' && test -s '.skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gdrive-save' && cp -R '.skill-downloads/upload-file-to-google-drive-mrwaketj' '.claude/skills/gdrive-save'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/upload-file-to-google-drive-mrwaketj'

openskills read 'upload-file-to-google-drive-mrwaketj'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/upload-file-to-google-drive-mrwaketj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills