/folder-tree-templates:restructure-treefrom Folder Tree Templates
Reorganises an existing dated folder tree into another template, e.g. Jan/Feb folders into 25/01, or flat 010126 folders into year/month/day. Detects the current layout, plans moves, applies with undo. Use on "restructure these folders", "convert to year/month".
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.
ftt.py detect <target>. candidates ranks templates by folders that match. Names can be ambiguous (01 is a month and also the year 2001), so check examples and look at the tree yourself (find <target> -maxdepth 3 -type d | head -50) before trusting the top hit. If the folders fit no template (e.g. 2025-01, January 2025), write a source template for them with add-template first; the conversion needs one on each side.DEFAULT_TEMPLATE, else ask.Jan, 01, 01-Jan) carry no year. If the target needs one, pass --year Y, asking the user if the folder's name or contents don't settle it. Without it those folders come back in unresolved.ftt.py convert <target> --from <src> --to <dst> [--year Y]. It moves the contents of each matched date folder into the target path for that date, and leaves non-date folders and unmatched items alone. Where the target is coarser (day folders into month folders), contents merge; clashing names get (2). Where the target is finer than the source knows (month into day), items land at the deepest level the date allows.unresolved. Get a yes before applying: this moves the user's files.--apply. Empty source folders are removed and the marker is updated. Report moved and the undo_log path.ftt.py undo <log>.Loose files at the root with no date folder are not touched here; offer sort-by-date for them.
${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