/folder-tree-templates:sort-by-datefrom Folder Tree Templates
Files loose files into a dated folder template using each file's metadata date (EXIF/QuickTime/PDF creation date via exiftool), falling back to modified time. Plans, applies, undoable. Use on "sort these by date", "file photos into month folders".
Ships in Folder Tree Templates. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run ${CLAUDE_PLUGIN_ROOT}/scripts/ftt.py where (needs uv). It reports the overlay folder and profile.env (DEFAULT_TEMPLATE, DATE_SOURCE). Use those as defaults. Every ftt.py command prints JSON.
seed-tree. If the files span several years, steer away from month-only templates (months-*): the plan's warning flags this.--source auto (default: metadata, then mtime), exif (metadata only; files without it stay put and are listed as undated), or mtime. Honour DATE_SOURCE from the profile. Metadata tried, in order: DateTimeOriginal, CreateDate, MediaCreateDate, CreationDate. Without exiftool installed, auto falls back to mtime for everything; say so.ftt.py sort <src> --template <name> [--into <dir>] [--source ...] [--recursive]. Default is the loose files at the top of <src>, sorted in place. --into sends them to another tree. --recursive also takes files in subfolders, but skips ones already sitting in a matching date folder.date_sources (how many dated from metadata vs mtime), years, the sample and any warning. A high mtime share on photos usually means copied files with reset times: say so. Confirm before applying.--apply. Report moved and undo_log. Undo with ftt.py undo <log>.Date inside another split ("by type, then by month"), or on cloud storage via rclone: use compose-structure with date:<template> as a facet, e.g. type/date:year-month.
${CLAUDE_PLUGIN_ROOT}/templates/, the user's own in <overlay>/templates/. A user template with the same name wins..folder-tree.json marker at its root: template, pattern, current_year.${CLAUDE_PLUGIN_DATA}/logs/ (fallback <overlay>/cache/logs/).What SKILL.md sets; muted values are Claude Code's defaults
folder-tree-templates@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin folder-tree-templates10 skills in this plugin
/add-templateAdds a new dated folder-tree template (a pattern such as {yyyy}/{mm}-{mon} or {yy}/Q-{mm}) to the user's private template store, validated and ready for seed, restructure and sort. Use on "add a folder template", "save this layout as a template"./compose-structureOrganise a folder by combined facets, e.g. by file type then year/month, or video by resolution then aspect ratio. Local, mounted or rclone./drafts-and-finalsRecurse through project folders and split versioned files into drafts/ and final/ subfolders by production state. Media, blogs, graphics.Other plugins' skills for the same job