2nth-ai/skills/drive

Claude Code and agent skill by 2nth-ai/skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Google Drive API skill (stub). Use when: (1) creating, reading, or updating files/folders via Drive API v3, (2) managing permissions — per-file, per-folder, shared drives, link sharing, (3) exporting Google Docs/Sheets/Slides to PDF or Office formats, (4) watching a folder for changes via push notifications (Drive Activity API), (5) scoping access narrowly with drive.file (only files your app creates/opens).

Install

npx vskill@latest install 2nth-ai/skills/drive

SKILL.md

The same SKILL.md was published earlier as 2nth-ai/skills/drive.

Google Drive API (stub)

Status: stub. Production depth pending.

Scope choice

ScopeGrantsNotes
drive.fileOnly files your app creates or is opened withPrefer this — no verification audit
drive.readonlyRead all of user's DriveRestricted scope
drive.metadata.readonlyMetadata only, no contentRestricted scope
driveFull accessRestricted scope, avoid unless needed

Quick start

typescript
import { google } from 'googleapis';
const drive = google.drive({ version: 'v3', auth });
// Create a folder
const { data: folder } = await drive.files.create({
requestBody: { name: 'Client 2n-014 intake', mimeType: 'application/vnd.google-apps.folder' },
fields: 'id,name,webViewLink',
});
// Upload a file into it
const { data: file } = await drive.files.create({
requestBody: { name: 'contract.pdf', parents: [folder.id!] },
media: { mimeType: 'application/pdf', body: fs.createReadStream('./contract.pdf') },
fields: 'id,webViewLink',
});
// Grant someone view access
await drive.permissions.create({
fileId: file.id!,
requestBody: { role: 'reader', type: 'user', emailAddress: 'client@example.com' },
sendNotificationEmail: true,
});

Shared drives

Shared drives (formerly Team Drives) are owned by the organisation, not a person. Files survive employee offboarding. Always check supportsAllDrives: true on list/search calls.

typescript
const { data } = await drive.files.list({
q: "'DRIVE_ID' in parents",
supportsAllDrives: true,
includeItemsFromAllDrives: true,
driveId: 'DRIVE_ID',
corpora: 'drive',
});

Gotchas (high-level)

  • Without supportsAllDrives: true, shared-drive files are invisible.
  • drive.file scope hides files the app didn't create/open — including copies. Copy flows break silently.
  • Push notifications require domain verification in Search Console.
  • Exporting a large Google Doc to PDF has a 10MB size cap; chunk or use Docs API.

See Also

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/2nth-ai/skills/drive/badge)](https://verified-skill.com/skills/2nth-ai/skills/drive)

Something wrong with this skill or its page? Tell us.