list-files
关于
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.
快速安装
Claude Code
推荐/plugin add https://github.com/christopheryeo/claude-skillsgit clone https://github.com/christopheryeo/claude-skills.git ~/.claude/skills/list-files在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
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 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
hybrid-cloud-networking
元这个Skill帮助开发者配置本地基础设施与云平台之间的安全高性能连接。它支持VPN和专用连接选项,适用于构建混合云架构、连接数据中心到云以及实现安全的跨地域网络。关键能力包括建立AWS、Azure、GCP的混合连接,满足合规要求并支持渐进式云迁移。
llamaindex
元LlamaIndex是一个专门构建RAG应用的开发框架,提供300多种数据连接器用于文档摄取、索引和查询。它具备向量索引、查询引擎和智能代理等核心功能,支持构建文档问答、知识检索和聊天机器人等数据密集型应用。开发者可用它快速搭建连接私有数据与LLM的RAG管道。
csv-data-summarizer
元该Skill能自动分析CSV文件,无需用户交互即可生成统计摘要和可视化图表。它专为处理表格数据请求而设计,内置pandas、matplotlib和seaborn依赖。开发者在上传CSV或提出数据分析需求时,系统会直接执行全量分析并输出结果。
