Agent skill

Gdcli

by badlogic in badlogic/pi-skills

Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.

MITAuto-check passed

Install Gdcli

skills CLI
$ npx skills add badlogic/pi-skills --skill gdcli -a claude-code

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

GitHub CLI
$ gh skill install badlogic/pi-skills gdcli --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/badlogic/pi-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/gdcli .claude/skills/gdcli && 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
gdcli
GitHub stars
2.6k
Used in
1 other repo
Token cost
~759 tokens
SKILL.md length
250 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.

  • Works in 5 steps: Create a new project (or select existing) → Enable the Google Drive API → Set app name in OAuth branding → …
  • SKILL.md covers Installation, Setup, Usage and Search, plus 2 more sections
  • Calls npm

What it does

Gdcli is an agent skill from badlogic/pi-skills. Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.

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

It works with Google Drive and Google Cloud. The repository describes itself as: Skills for pi coding agent (compatible with Claude Code and Codex CLI). The licence is MIT.

Example prompts

  • “/gdcli”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Create a new project (or select existing)
  2. Enable the Google Drive API
  3. Set app name in OAuth branding
  4. Add test users (all Gmail addresses you want to use)
  5. Create OAuth client

What it can do on your machine

Read from SKILL.md and the folder at commit 90bb51c. 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:

    • npm

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

  • Network

    Links to these hosts (documentation or services it may open):

    • console.cloud.google.com
    • developers.google.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

Gdcli loads about 759 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 250 words of instructions outside code blocks.

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

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 badlogic/pi-skills at commit 90bb51c, republished under its MIT licence (© badlogic). 250 words, ~759 tokens.

Download SKILL.mdSave it as .claude/skills/gdcli/SKILL.md (or your agent's skills folder).
name
gdcli
description
Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.

Google Drive CLI

Command-line interface for Google Drive operations.

Installation

bash
npm install -g @mariozechner/gdcli

Setup

Google Cloud Console (one-time)
  1. Create a new project (or select existing)
  2. Enable the Google Drive API
  3. Set app name in OAuth branding
  4. Add test users (all Gmail addresses you want to use)
  5. Create OAuth client:
    • Click "Create Client"
    • Application type: "Desktop app"
    • Download the JSON file
Configure gdcli

First check if already configured:

bash
gdcli accounts list

If no accounts, guide the user through setup:

  1. Ask if they have a Google Cloud project with Drive API enabled
  2. If not, walk them through the Google Cloud Console steps above
  3. Have them download the OAuth credentials JSON
  4. Run: gdcli accounts credentials ~/path/to/credentials.json
  5. Run: gdcli accounts add <email> (use --manual for browserless OAuth)

Usage

Run gdcli --help for full command reference.

Common operations:

  • gdcli <email> ls [folderId] - List files/folders
  • gdcli <email> ls --query "<query>" - List with Drive query filter
  • gdcli <email> search "<text>" - Full-text content search
  • gdcli <email> download <fileId> [destPath] - Download a file
  • gdcli <email> upload <localPath> [--folder <folderId>] - Upload a file
  • gdcli <email> mkdir <name> - Create a folder
  • gdcli <email> share <fileId> --anyone - Share publicly

Two different commands:

  • search "<text>" - Searches inside file contents (fullText)
  • ls --query "<query>" - Filters by metadata (name, type, date, etc.)

Use ls --query for filename searches!

Query Syntax (for ls --query)

Format: field operator value. Combine with and/or, group with ().

Operators: =, !=, contains, <, >, <=, >=

Examples:

bash
# By filename
ls --query "name = 'report.pdf'"           # exact match
ls --query "name contains 'IMG'"           # prefix match

# By type
ls --query "mimeType = 'application/pdf'"
ls --query "mimeType contains 'image/'"
ls --query "mimeType = 'application/vnd.google-apps.folder'"  # folders

# By date
ls --query "modifiedTime > '2024-01-01'"

# By owner/sharing
ls --query "'me' in owners"
ls --query "sharedWithMe"

# Exclude trash
ls --query "trashed = false"

# Combined
ls --query "name contains 'report' and mimeType = 'application/pdf'"

Ref: https://developers.google.com/drive/api/guides/ref-search-terms

Data Storage

  • ~/.gdcli/credentials.json - OAuth client credentials
  • ~/.gdcli/accounts.json - Account tokens
  • ~/.gdcli/downloads/ - Default download location

© badlogic, MIT. 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 gdcli of badlogic/pi-skills.

Open the folder on GitHubat commit 90bb51c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in badlogic/pi-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Gdcli 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.

Gdcli compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gdcli this skillbadlogic/pi-skills2.6k1 repos~759Automated safety check: PassMIT
Gwskv0906/pm-kit138—~1.6kAutomated safety check: PassMIT
GwsLeoYeAI/openclaw-master-skills2.2k—~4.9kAutomated safety check: PassMIT
Gmail Inbox Watchergoogleworkspace/cli31k1 repos~476Automated safety check: PassApache-2.0
Cloud Cost Optimizationwshobson/agents40k13 repos~1.7kAutomated safety check: PassMIT
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2596 repos~1.1kAutomated safety check: NotesCustom licence

Similar skills

  • Gws

    kv0906/pm-kit

    This skill should be used when the user asks to "set up gws", "install Google Workspace CLI", "connect Gmail to Claude", "manage Google Drive from terminal", "send email from CLI", "check my…

    138 GitHub stars~1.6k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed
  • Gws

    LeoYeAI/openclaw-master-skills

    Google Workspace CLI. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~4.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Gmail Inbox Watcher

    googleworkspace/cli

    Streams new Gmail messages as NDJSON from the gws command line tool using Google Pub/Sub, with label filters, batch settings and optional per-message files.

    31k GitHub starsUsed in 1 repo~476 tokens
    Productivity & AutomationAuto-check passed
  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 13 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    259 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • Terravision Cloud Diagrams

    patrickchugh/terravision

    Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.

    1.6k GitHub stars~5.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes

More from badlogic/pi-skills

  • Brave Search

    badlogic/pi-skills

    Web search and content extraction via Brave Search API. An agent skill from badlogic/pi-skills.

    2.6k GitHub starsUsed in 6 repos~592 tokens
    Auto-check passed
  • Gccli

    badlogic/pi-skills

    Google Calendar CLI for listing calendars, viewing/creating/updating events, and checking availability.

    2.6k GitHub stars~530 tokensUpdated 4 mo ago
    Auto-check passed
  • Gmcli

    badlogic/pi-skills

    Gmail CLI for searching emails, reading threads, sending messages, managing drafts, and handling labels/attachments.

    2.6k GitHub stars~470 tokensUpdated 4 mo ago
    Auto-check passed
  • Youtube Transcript

    badlogic/pi-skills

    Fetch transcripts from YouTube videos for summarization and analysis.

    2.6k GitHub starsUsed in 1 repo~179 tokens
    Auto-check passed
  • Transcribe

    badlogic/pi-skills

    Local speech-to-text transcription on Apple Silicon macOS. An agent skill from badlogic/pi-skills.

    2.6k GitHub stars~264 tokensUpdated 4 mo ago
    Auto-check passed

Questions about Gdcli

What does Gdcli do?

Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders. Gdcli is an agent skill from badlogic/pi-skills. Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.

How do I install Gdcli in Claude Code?

Run `npx skills add badlogic/pi-skills --skill gdcli -a claude-code`. Or copy the skill folder (gdcli in badlogic/pi-skills) into .claude/skills/gdcli in your project. Claude Code loads it when a task matches its description.

How do I install Gdcli in Codex?

Run `npx skills add badlogic/pi-skills --skill gdcli -a codex`. Or copy the skill folder (gdcli in badlogic/pi-skills) into .agents/skills/gdcli in your project. Codex loads it when a task matches its description.

Can I use Gdcli 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 badlogic/pi-skills --skill gdcli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gdcli, .gemini/skills/gdcli, .github/skills/gdcli and .opencode/skills/gdcli in your project.

What does Gdcli need to run?

Going by SKILL.md and its folder, Gdcli needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Gdcli access the network?

SKILL.md names 2 domains. As links in the text: console.cloud.google.com and developers.google.com. This is read from the text; nothing was executed.

Is Gdcli 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 Gdcli use?

Gdcli is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gdcli use?

About 759 tokens (SKILL.md is roughly 3k 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 Gdcli?

Skills that share tags, products or a category with Gdcli: Gws (kv0906/pm-kit, 138 stars), Gws (LeoYeAI/openclaw-master-skills, 2.2k stars), Gmail Inbox Watcher (googleworkspace/cli, 31k stars) and Cloud Cost Optimization (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gdcli?

badlogic (a GitHub user) maintains it in badlogic/pi-skills, which has 2,589 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 6, 2026.

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