recipe-find-large-files

Lists the largest Google Drive files sorted by storage quota usage.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill recipe-find-large-files-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-find-large-files
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/recipe-find-large-files
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill recipe-find-large-files-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Google Drive storage fills up without visibility into which files consume the most quota, making cleanup guesswork. This recipe surfaces the largest files so you can decide what to archive or delete. ## Core Features & Use Cases - Quota-Sorted Listing: Queries the Drive API with files ordered by quotaBytesUsed descending to show the biggest consumers first. - Actionable Output: Returns file ID, name, size, MIME type, and owner in a table for quick review. - Use Case: Your Google Workspace account is nearing its storage limit. Run this recipe to list the top 20 largest files, then archive or move the ones you no longer need. ## Quick Start Ask the assistant to list the 20 largest files in my Google Drive by storage usage.

Frequently Asked Questions about recipe-find-large-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the largest files in Google Drive?

List Drive files sorted by quotaBytesUsed in descending order using the Drive API. This recipe runs gws drive files list with orderBy set to quotaBytesUsed desc and pageSize 20, returning the top 20 largest files in a table.

How to check which files use the most Google Drive storage?

Query the Drive API with the quotaBytesUsed field and sort descending to rank files by storage consumption. The output includes file ID, name, size, MIME type, and owners so you can decide what to archive or move.

What do I need to run this Google Drive storage recipe?

You need the gws CLI binary installed and the gws-drive skill loaded, as declared in the skill metadata. Without these prerequisites the Drive API query cannot execute.

Can I change how many large files are listed?

Yes, adjust the pageSize parameter in the gws drive files list command. The default recipe uses pageSize 20, but you can raise or lower it to see more or fewer results.

Does this recipe delete or move files automatically?

No, it only lists files sorted by size for review. You manually decide which files to archive or move after inspecting the output table.