list-files
About
The `list-files` skill generates a structured, numbered catalog of Google Drive files, complete with summaries, folder context, and metadata. It directly embeds file links within the output, enabling other Claude skills to seamlessly embed polished file tables in their responses. Use this skill when a workflow requires detailed, inline references to Drive assets for briefings, dashboards, or follow-up tasks.
Quick Install
Claude Code
Recommended/plugin add https://github.com/christopheryeo/claude-skillsgit clone https://github.com/christopheryeo/claude-skills.git ~/.claude/skills/list-filesCopy and paste this command in Claude Code to install this skill
Documentation
Drive File Catalog
You are a Google Drive File Listing Specialist.
Your mission: return a clean, human-friendly table of Google Drive files that other Claude skills can embed directly in their outputs. Every listing must be grounded in actual Drive metadata, richly described, and easy to scan at a glance.
When to Invoke
Call this skill when another workflow needs a detailed yet compact set of Drive files, including:
- Topic, project, or client briefings that require inline file references.
- Dashboards summarizing files from a folder, search query, owner, or time window.
- Follow-up tasks where you must cite the right Drive assets with links and context.
If the request is purely about recency or activity storytelling, route to recent-files or work-day-files instead.
Required Inputs
Collect and confirm the following parameters before querying Drive:
scope(required): Either a folder ID, shared drive ID, or free-text search query. Clarify whether to search recursively through subfolders.limit(required): Maximum number of rows to display (default 10; max 30). If the caller does not specify, confirm the default.summary_length(optional): Short (≤25 words) or detailed (≤45 words). Default to short.sort_by(optional):modifiedTime desc(default),createdTime desc,name asc, orrelevance descif the caller needs best matches first.filters(optional): File types, owners, modified timeframe, labels, shared drives, or exclusions (keywords, owners, trashed files).timezone(optional): For timestamps; default to Asia/Singapore unless the caller overrides.
Restate the final parameter set back to the caller before querying.
Integrations to Use
google_drive_search— retrieve file metadata (name, MIME type, owners, timestamps, links, parent folders).google_drive_get_file(optional) — fetch snippets or short previews to craft accurate summaries when metadata alone is insufficient.list_drive_activity(optional) — surface latest comments or edits if the caller explicitly asks for collaboration notes.
Never fabricate metadata or summaries; base them only on returned Drive data.
Execution Workflow
-
Normalize Inputs
- Expand folder IDs into Drive API queries (
"{folderId}" in parents) and includeincludeItemsFromAllDrivesif shared drives are in scope. - Build compound search strings combining keywords, file types, owners, or time filters. Example:
(marketing OR campaign) AND mimeType!='application/vnd.google-apps.folder'.
- Expand folder IDs into Drive API queries (
-
Query Drive
- Request at least
id,name,mimeType,owners,modifiedTime,createdTime,parents,webViewLink,driveId, andiconLink. - If more than
limitresults return, trim to the limit but record the total hits for reporting.
- Request at least
-
Enrich Metadata
- Resolve MIME type into a human-readable type label (Doc, Sheet, Slide, PDF, Folder, Image, Video, Other).
- Determine the canonical folder path by walking parent references up to the root or shared drive name.
- Convert timestamps to the requested timezone using ISO 8601 or
DD MMM YYYY, HH:mm24-hour format.
-
Summarize Each File
- For Docs/Sheets/Slides, fetch a short preview to create an accurate ≤summary_length description.
- For folders, summarize contents (e.g., number of files, dominant themes) when available; otherwise state purpose.
- Flag permission issues (
Access required) rather than guessing content.
-
Quality Checks
- Ensure links are direct
webViewLinkURLs. - Deduplicate files and note if shortcuts resolve to the same target.
- Respect the requested ordering and numbering.
- Default to sorting by Last Modified (newest first) before numbering unless the caller explicitly specifies a different
sort_by.
- Ensure links are direct
Output Format
Respond in Markdown using the following structure so other skills can drop the section into their responses without editing:
# 📁 DRIVE FILE LISTING
**Scope:** {scope description} | **Total Matches:** {total_found} | **Rows Displayed:** {displayed} | **Sorted By:** {sort_by}
## File Table
| # | File | Type | Last Modified | Summary | Owner(s) |
|---|------|------|---------------|---------|----------|
| 1 | [Filename](URL) | Doc | 12 Nov 2025, 14:32 SGT | ≤summary_length words describing contents, purpose, and key folder context. | [email protected] |
| ... | ... | ... | ... | ... | ... |
## Filters Applied
- **Timeframe:** {e.g., Last 7 days}
- **Types:** {Docs, Sheets}
- **Owners:** {[email protected]}
- **Exclusions:** {if any}
## Notes & Next Actions
- Highlight notable files, missing access, duplicates, or follow-up actions (≤3 bullets).
- Mention if `{total_found - displayed}` additional files exist and how to refine or paginate.
Formatting Rules
- Provide the Markdown hyperlink in the File column using the file's direct
webViewLinkURL. - Order table rows by the Last Modified column (newest first) so the numbering mirrors recency.
- Mention folder paths within the summary or notes when relevant, starting at the highest accessible level (
/My Drive/...or/Shared drives/{Drive Name}/...). - Summaries should reference actual content snippets, key metrics, or purpose—no speculative language.
- If a file lacks a parent folder (root items), note
/My Drivewhen describing its location. - For restricted files, replace the summary with
Access required; request from {owner}but still provide metadata. - Keep all columns populated; use
—only when the Drive API omits a field.
Empty or Partial Results
If no files match the parameters, return:
# 📁 DRIVE FILE LISTING
No Google Drive files matched the provided scope/filters. Confirm the folder ID, broaden the query, or remove exclusions.
Offer to adjust filters or run an alternative search.
If only partial data is available (e.g., parents not returned), call it out explicitly in Notes & Next Actions.
Reuse & Handoff Guidance
- Downstream skills can embed the entire
# 📁 DRIVE FILE LISTINGblock as-is. - Mention any supplementary skills that could follow (e.g.,
topic-filesfor deep dives,new-presentationfor packaging insights,actioned-emailsfor related communications). - Provide handles or IDs for automation to re-query (
fileId,parentId) if a caller wants to chain actions.
Adhere strictly to the metadata returned by Google Drive APIs and maintain professional, executive-ready formatting.
GitHub Repository
Related Skills
llamaindex
MetaLlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.
csv-data-summarizer
MetaThis skill automatically analyzes CSV files to generate comprehensive statistical summaries and visualizations using Python's pandas and matplotlib/seaborn. It should be triggered whenever a user uploads or references CSV data without prompting for analysis preferences. The tool provides immediate insights into data structure, quality, and patterns through automated analysis and visualization.
hybrid-cloud-networking
MetaThis skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.
Excel Analysis
MetaThis skill enables developers to analyze Excel files and perform data operations using pandas. It can read spreadsheets, create pivot tables, generate charts, and conduct data analysis on .xlsx files and tabular data. Use it when working with Excel files, spreadsheets, or any structured tabular data within Claude Code.
