Directory Showcase

Turns any directory into a single, good-looking, browsable web page. The skill looks at what’s actually in the folder, asks the user a couple of framing questions so the result is tailored rather than generic, and then builds a self-contained HTML page where every item has a visual, a title, and a short description.

The same skill should produce a noticeably different page for a legal folder, a photo folder, and a research folder — because it adapts to both the contents and the user’s stated interest. That adaptiveness is the point; do not produce a one-size-fits-all template.

Step 1 — Survey the directory

Determine the target directory (the connected folder by default, or a path the user names).

  1. List the files and subfolders. Note count, types, and rough sizes.
  2. Sample contents to understand what the collection actually is. Read readable files (.md, .txt, .csv, code, .html) directly; extract text from .pdf/.docx; for images, note them as images (you’ll thumbnail them later). Cap reading at roughly the first 1–2 pages or ~1,500 characters per file — enough to summarize, not so much that it burns the session. If there are more than ~25 items, sample the most substantial ones and group the rest.
  3. Form a quick internal picture: What is this collection? What themes run across it? What’s the natural way someone would want to browse it (by topic, by type, by date, by project)?

Do not narrate the raw file listing back to the user. Move to the questions.

Step 2 — Ask two or three framing questions

Based on what you actually found (not generic boilerplate), ask two or three short questions that will shape the page. Make them specific to this directory. Cover:

Keep it to one round. The answers steer how descriptions are written, what leads, how items are grouped/sorted, and the one-line synthesis at the top.

Step 3 — Generate the showcase page

Build a single, self-contained HTML file (inline CSS and minimal inline JS; no build step; web fonts/icons from a CDN are fine but the page must work offline-ish). Save it in the target directory as showcase.html and tell the user the path so they can open it.

Page structure

Each card has

Styling

Make it genuinely attractive — something you’d be happy to present. Use a small, coherent palette and a CSS variable block at the top of the <style> so the whole look can be re-themed by changing a few values. Generous spacing, clear type hierarchy, subtle hover states, responsive grid. Avoid default-browser styling and avoid clutter.

Technical constraints

What good looks like

A non-technical person opens showcase.html, immediately understands what’s in the folder, can search and filter it, and can click into anything for more — and it looks like a designed page, not a directory dump. If you handed the same folder to this skill twice with different answers to Step 2, the two pages would lead with different things.