/folder-tree-templates:compose-structurefrom Folder Tree Templates
Organise a folder by combined facets, e.g. by file type then year/month, or video by resolution then aspect ratio. Local, mounted or rclone.
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.
Builds a folder tree from facets stacked outermost first, and files a folder's contents into it.
type/date:year-month gives Images/25/01/, Video/25/01/ and so on;
resolution/aspect on video gives 4K/16x9/, 1080p/9x16/.
${CLAUDE_PLUGIN_ROOT}/scripts/organise.py facets (needs uv; exiftool for dimensions and
metadata dates; rclone for remotes) lists the facets and their folder names.
organise.py structures lists saved structures, built-in and the user's.
| Facet | Folders |
|---|---|
type | Images, Video, Audio, Graphics, Documents, Project-Files, Archives, Code, Fonts, Other |
doctype | Documents only: PDF, Word-Processing, Spreadsheets, Presentations, Text, Ebooks |
ext | the extension |
resolution | video: 8K, 4K, 1440p, 1080p, 720p, 480p, below-480p; images: megapixel bands |
resolution:exact | 1920x1080 as displayed (rotation applied) |
aspect | 16x9, 9x16, 4x3, 1x1, 21x9, 3x2, 4x5 … within 3%, else other |
orientation | landscape, portrait, square |
date:<template> | any date template from ftt.py list (year-month, year-month-day, months-short …) |
A facet that doesn't apply to a file (resolution of a PDF) adds no level; one that applies but
can't be read gives unknown-<facet>.
SRC is a local path, a mounted volume (rclone mount, SMB/NFS, gvfs, any FUSE mount: treated as
local), or an rclone remote remote:path (rclone listremotes). On a remote, moves are
rclone moveto and dimensions/dates come from a 1 MB header read, plus a tail read for MP4/MOV
files whose index is at the end. Remote runs make one request per media file, so on a large
remote tree suggest a narrower SRC or --only.
Pick the spec. Map the user's words to facets ("by type, then by date inside each" ->
type/date:year-month). A saved structure that fits: --structure <name>.
Scope. Default is the loose files at the top of SRC. --recursive pulls in everything
below and flattens existing subfolders into the new tree, so say that plainly before using it.
--only Video,Images limits which kinds move; others stay put. --into <dir inside SRC> builds
the tree in a subfolder.
Plan: organise.py compose <SRC> --by <spec> [--only …] [--recursive] [--into …].
Show buckets (folder -> file count), date_sources, a few sample moves and any warning.
Many unknown-* files usually means exiftool is missing or a remote read failed.
Confirm, then apply: same command with --apply. Report moved, failed, undo_log.
Undo: organise.py undo <log>.
Offer to save a spec the user is likely to reuse as a structure: write
<overlay>/structures/<name>.yaml (overlay path from ftt.py where):
name: client-deliverables
description: "Kind of file, then year/month/day."
by: "type/date:year-month-day"
only: [Video, Images] # optional
<overlay>/type-map.yaml (and doctype-map.yaml) replace the built-in maps: folder name -> list
of extensions, e.g. Photos: [jpg, heic, dng]. Use it when the user wants different names.
(2). Re-running on an organised tree is a no-op.--meta none skips content reads (fast on slow remotes; dimension facets then give unknown-*).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"./drafts-and-finalsRecurse through project folders and split versioned files into drafts/ and final/ subfolders by production state. Media, blogs, graphics./keep-finals-onlyRemove draft versions across project folders and keep only the final of each piece of work. Moves drafts to _superseded/ or deletes them.Other plugins' skills for the same job