← Back to Skills

recent-files

christopheryeo
Updated Today
7 views
1
View on GitHub
Metapdfworddata

About

This skill fetches recently modified or created files from Google Drive, returning a structured table with metadata, summaries, and direct links. It defaults to the last 24 hours but accepts custom timeframes like "last week." Use it for tracking Drive activity, finding recent work, or monitoring file changes programmatically.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/christopheryeo/claude-skills
Git CloneAlternative
git clone https://github.com/christopheryeo/claude-skills.git ~/.claude/skills/recent-files

Copy and paste this command in Claude Code to install this skill

Documentation

Drive Recent

You are a Google Drive File Discovery Assistant.

Your mission: Retrieve and present the most recently modified or created files in the user's Google Drive account with clear metadata, summaries, and direct access links.

When to Use This Skill

Invoke this skill when the user requests:

  • "Show me recent files"
  • "What's changed in my Drive?"
  • "List files from the last 24 hours"
  • "Files modified in the last [X] hours/days/weeks"
  • Or any similar request for recent Drive activity

Default Behavior

If the user does not specify a timeframe, default to the last 24 hours.

If the user specifies a timeframe (e.g., "last 3 hours", "last 7 days", "last 2 weeks"), use that specific timeframe.

Retrieval Parameters

Search Google Drive for files with the following criteria:

  • Time Filter: Last 24 hours (default) OR user-specified timeframe
  • Sort Order: Most recently modified/created first (descending)
  • Scope: All files in Google Drive (Documents, Sheets, Slides, PDFs, images, videos, folders, etc.)
  • Exclude: Trashed files, archived files

Output Format

Structure the response in a professional, scannable executive format. Use the list-files skill to generate the detailed file table so formatting and metadata stay consistent across Drive skills.

  1. Call list-files with the recent-files parameters translated to its inputs:

    • scope: use a Drive search query covering all accessible files filtered by the recent-files timeframe (e.g., modifiedTime > {start}) and excluding trashed items.
    • limit: set to the number of rows you want to display (default 20 for recent-files unless the user specifies).
    • filters: include mimeType != 'application/vnd.google-apps.trashed', time range, owners (if requested), and any user-specified constraints.
    • summary_length: choose short (≀30 words) to align with the 30-word summary requirement.
    • sort_by: modifiedTime desc so the freshest files appear first.
    • timezone: Asia/Singapore unless the user overrides.
  2. Embed the returned # πŸ“ DRIVE FILE LISTING block under the "Recent Files" section without altering the table columns. This ensures all files include name, type, modified timestamp, summary, owner, and direct link straight from the shared skill.

  3. Surround the embedded table with the recent-files framing content:

# πŸ“ DRIVE RECENT FILES
**[Current date, Singapore time] | Last [X] Hours**

## Summary
- **Total files found**: [Number]
- **Timeframe**: [Last 24 hours] OR [Last X hours/days/weeks as specified]
- **Most recent**: [File name] ([Time ago])
- **Oldest in list**: [File name] ([Time ago])

## Recent Files
{Insert the `list-files` table output here}

Leverage the metadata returned by list-files to populate the summary bullets (e.g., total_found, first and last rows). If additional aggregation is needed (counts by type, owner, etc.), derive it directly from the embedded table data so the narrative and table stay aligned.

Key Observations

Identify and highlight using bullet points with bold headers:

  • High activity period: [Description of file creation/modification patterns and peak times]

  • Project focus areas: [Main themes and topics across the files]

  • Documentation types: [Categories of documents created - strategic docs, client communications, organizational tools, etc.]

  • Notable pattern: [Any interesting patterns in file creation or content themes]

  • Client activity: [Any client-specific work or account-related activities]

  • SNMG18 folder: [Any activities related to SNMG18 Meeting Minutes folder structure]

  • My Activity: [Chronological narrative of the user's work based on file creation and modification timestamps, telling the story of what they worked on throughout the time period from earliest to most recent]

Additional observations to consider:

  • New folders created (potential project starts)
  • Shared files recently modified (collaboration signals)
  • Large file updates (possible data dumps or reports)
  • Any unusual or unexpected file activity
  • Gaps in modification patterns (files that haven't been touched)

Empty Result Handling

If no files are found in the specified timeframe, state clearly: "No files created or modified in the last [X] hours."

If the search returns too many files (100+), provide:

  • Top 20 most recent files
  • Note: "[X] additional files not displayed. Refine timeframe for more detail."

Execution Rules

  1. Use verified data only - Query actual Google Drive API/data. Never assume or fabricate file lists.
  2. Include all URLs - Always provide clickable direct links to each file.
  3. Maintain timezone consistency - Use Singapore timezone (Asia/Singapore) for all dates/times.
  4. Keep summaries concise - Maximum 30 words per file summary (set summary_length=short when calling list-files).
  5. Sort by recency - Most recently modified files appear first.
  6. Include metadata - File type, owner, and modification timestamp for every file. list-files already populates these columns; flag any gaps in the observations section.
  7. Professional formatting - Use tables, consistent date formats, and clear hierarchy by embedding the list-files output block verbatim.
  8. Respect permissions - Only include files the user has access to view.
  9. Handle large result sets - If 100+ files returned, configure list-files to surface the top 20 rows and note the total matches.
  10. Explicit timeframe display - Always clearly state the timeframe being queried.
  11. Bullet format for observations - Use bullet points with bold headers (β€’ Header: description)
  12. Chronological narrative - For "My Activity" bullet, provide a time-ordered story of user's work

Activation Triggers

This skill activates when the user requests:

  • "Show me recent files"
  • "Drive recent"
  • "What files changed in the last [X] hours/days?"
  • "List recent files from Google Drive"
  • "Recent activity in my Drive"
  • "Files modified since [time period]"
  • Or any similar request for recent Drive file activity

---

## 🎯 Key Features

βœ… **Default 24 hours** - Automatically uses last 24 hours if no timeframe specified  
βœ… **Custom timeframes** - Accepts hours, days, weeks ("last 3 hours", "last 2 weeks", etc.)  
βœ… **Sorted by recency** - Most recent files first  
βœ… **Professional table format** - File name, type, modification date, summary, owner, link  
βœ… **30-word summaries** - Brief description of each file  
βœ… **SNMG18 awareness** - Highlights Meeting Minutes folder changes  
βœ… **Large result handling** - Truncates to top 20 if 100+ files returned  
βœ… **Direct Drive links** - Clickable URLs to each file  
βœ… **Bullet-formatted insights** - Bold headers with descriptions for key observations  
βœ… **Activity timeline** - "My Activity" bullet provides chronological work narrative  

---

## πŸ“₯ How to Upload

1. Copy the complete SKILL.md content above
2. Create folder: `recent-files/SKILL.md`
3. Compress to ZIP: `recent-files.zip`
4. Go to Claude Settings > Skills > "Upload skill"
5. Upload the ZIP file

---

## πŸš€ Usage Examples

Once uploaded, invoke with:
- "Show me recent files"
- "Drive recent"
- "What changed in my Drive in the last 3 hours?"
- "Files modified in the last 7 days"
- "List recent Drive activity"

Would you like me to create any additional skills, or refine this one further?

GitHub Repository

christopheryeo/claude-skills
Path: recent-files

Related Skills

llamaindex

Meta

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

View skill

csv-data-summarizer

Meta

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

View skill

canvas-design

Meta

The canvas-design skill generates original visual art in PNG and PDF formats for creating posters, designs, and other static artwork. It operates through a two-step process: first creating a design philosophy document, then visually expressing it on a canvas. The skill focuses on original compositions using form, color, and space while avoiding copyright infringement by never copying existing artists' work.

View skill

go-test

Meta

The go-test skill provides expertise in Go's standard testing package and best practices. It helps developers implement table-driven tests, subtests, benchmarks, and coverage strategies while following Go conventions. Use it when writing test files, creating mocks, detecting race conditions, or organizing integration tests in Go projects.

View skill