home / skills / christopheryeo / claude-skills / work-day-files

work-day-files skill

/work-day-files

This skill retrieves and lists all files from a specified work-day folder in Google Drive, delegating formatting to the list-files tool.

npx playbooks add skill christopheryeo/claude-skills --skill work-day-files

Review the files below or copy the command above to add this skill to your agents.

Files (1)
skill.md
4.2 KB
---
name: work-day-files
description: Lists files contained in a work-day folder while delegating formatting to the list-files skill. Uses the work-day skill to locate the appropriate folder structure (YYYY-MM Work/YYYY-MM-DD) in Google Drive, then passes the target folder to list-files for table generation. Accepts dates in various formats and automatically detects the correct folder level.
---

# Work Day Files

## Overview

Retrieve and summarize all files stored in a specific work-day folder within the SNMG18 Working Docs directory structure. This skill leverages the work-day skill to navigate the proper folder hierarchy and delegates presentation entirely to the list-files skill, ensuring consistent catalog formatting.

## Target Directory Structure

```
Google Drive Root
└── SNMG00 Management/
    └── SNMG18 Working Docs/
        └── YYYY-MM Work/     (e.g., 2025-10 Work for October 2025)
            └── YYYY-MM-DD/   (e.g., 2025-10-25 for October 25, 2025)
                └── [FILES]   ← Files are listed and summarized from here
```

## Usage

- Accept a date parameter if provided; otherwise default to today.
- Parse relative terms ("today", "next Monday"), natural language dates ("October 30"), ISO strings ("2025-11-15"), or other common formats, then normalize to **YYYY-MM-DD**.
- Translate the normalized date into the folder names `YYYY-MM Work` (month) and `YYYY-MM-DD` (day).

## Workflow

1. **Determine the target date.** Convert the user's input—or today's date if omitted—to ISO format. Reject only unparseable strings.
2. **Walk the folder hierarchy with `google_drive_search`.**
   - Locate `SNMG00 Management` at the Drive root, then `SNMG18 Working Docs` beneath it.
   - Inside `SNMG18 Working Docs`, find the month folder (`YYYY-MM Work`).
   - Within the month folder, find the day folder (`YYYY-MM-DD`).
   - Report an error and stop at the first missing level.
3. **List files from the day folder.** If the folder is empty, respond "No files found in this work-day folder". Otherwise, pass the folder ID to `list-files` with its default formatting (non-recursive scope, detailed summaries, modifiedTime desc) unless the user requests overrides.

Embed the Markdown table returned by `list-files` directly in the response—no extra prose or reformatting.

## Tool Usage Notes

- Use `google_drive_search` for every folder lookup and to confirm the day folder's contents.
- Call `list-files` for the final table; adjust its parameters only when the requester specifies different limits, sorting, or filters.
- Fetch file contents with `google_drive_fetch` or `web_fetch` only if the user asks for document details.

## Example Usage

Requests such as "today," "October 30," or "2025-11-15" all follow the same pattern: parse the date, navigate to `SNMG18 Working Docs/YYYY-MM Work/YYYY-MM-DD/`, and return the `list-files` table for that folder.

## Error Handling

**Missing parent folders**: If "SNMG00 Management" or "SNMG18 Working Docs" folders don't exist, report error and stop.

**Missing work month folder**: If the YYYY-MM Work folder doesn't exist for the requested date, report that no work folders exist for that month.

**Missing work day folder**: If the YYYY-MM-DD folder doesn't exist for the requested date, report that no folder exists for that specific day.

**Empty folder**: If the day folder exists but contains no files, report that no files are present.

**File access issues**: If a file cannot be accessed or summarized, note the filename and indicate that the summary could not be generated due to access restrictions or file type limitations.

## Alignment with `list-files`

- Allow `list-files` to handle all summarization and metadata enrichment.
- Do not manually rewrite or extend the table output after `list-files` responds.
- If the caller needs adjustments (different limit, sort, or filters), reinvoke `list-files` with updated parameters instead of editing the table manually.

## Dependencies

This skill depends on:
- **work-day skill**: For understanding folder structure (reference only, not called directly)
- **Google Drive integration**: For searching and accessing files
- **Date parsing**: For converting user input to ISO format

Overview

This skill lists files contained in a work-day folder inside the SNMG18 Working Docs hierarchy on Google Drive and delegates formatting to the list-files skill. It accepts a wide range of date inputs, locates the correct YYYY-MM Work and YYYY-MM-DD folders, and returns the list-files table for that folder. Errors are reported when a required folder is missing or the folder is empty.

How this skill works

The skill parses the user's date input (natural language, relative terms, or ISO formats) and normalizes it to YYYY-MM-DD. It searches Google Drive for SNMG00 Management → SNMG18 Working Docs → YYYY-MM Work → YYYY-MM-DD using google_drive_search and stops if any level is missing. When the day folder is found, it calls list-files with the folder ID and default parameters to produce a table, embedding the returned table directly in the response.

When to use it

  • You need a catalog of files for a specific work day (today, a past date, or a future date).
  • You want consistent, preformatted tables produced by the list-files skill rather than a custom listing.
  • You have a date in natural language or ISO format and want the skill to locate the correct Drive folder.
  • You need a quick check whether a day folder exists or contains files.
  • You want to delegate summarization and metadata enrichment to list-files automatically.

Best practices

  • Provide a clear date string when possible (e.g., "2025-10-25" or "October 25") to avoid parsing ambiguity.
  • If you want non-default limits, sorting, or filters, specify them so the skill can reinvoke list-files with those parameters.
  • Request file content or deeper summaries only when necessary; those require additional fetch calls and permissions.
  • Expect an immediate error if any parent folder in the SNMG18 path is missing; create the missing folder first to proceed.
  • Allow list-files to control table formatting—do not ask the skill to reformat the returned table manually.

Example use cases

  • "List files for today" — returns the list-files table for the current YYYY-MM-DD folder.
  • "Show files for October 30" — parses the date, finds 2025-10 Work → 2025-10-30, and embeds the list-files table.
  • "2025-11-15" — direct ISO date lookup and listing of that day’s files.
  • "Next Monday" — resolves the relative date, locates month/day folders, and returns the table.
  • "List files for 2025-02" — reports that the month folder is missing if YYYY-MM Work does not exist.

FAQ

What date formats are accepted?

Natural language ("next Monday", "October 30"), relative terms ("today"), and ISO strings ("2025-11-15") are accepted and normalized to YYYY-MM-DD.

What happens if the day folder exists but has no files?

The skill responds with "No files found in this work-day folder" and does not call list-files for an empty folder.