Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

rename-files-date-prefix

Skill by pnp

Renames files in a SharePoint document library, including subfolders, to add a yyMMdd prefix based on each file's created date. It shows a preview table and waits for confirmation before changing anything. Built for SharePoint users who want date-prefixed filenames.

  • Score 61
  • 169 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install rename-files-date-prefix

Built from the published package, never by AI.

git clone --depth 1 https://github.com/pnp/sharepoint-skills /tmp/sharepoint-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sharepoint-skills/Skills/rename-files-date-prefix/rename-files-date-prefix ~/.claude/skills/rename-files-date-prefix

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install rename-files-date-prefix in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill renames every file in a SharePoint document library, including files in subfolders, so each name starts with its created date in yyMMdd format, for example 251203-Status Report.pdf. It uses the Created field rather than Modified, and it never renames folders.

The skill first builds a preview table showing the current name, the new name, the folder and a status for each file. It makes no changes until the user confirms. Files that already start with six digits and a hyphen are skipped, and files whose new name would collide with an existing file are left alone rather than given a numeric suffix. The skill is written for SharePoint users who want to add date prefixes to filenames in bulk.

Written from the project's SKILL.md and checked against it.

What it can do

  • Library lookupFinds the current document library, or uses the one the user names, and reads its schema.
  • Recursive file retrievalRetrieves files from all subfolders, filtered to files only using a CAML query.
  • Preview before changesShows a markdown table of current and new names with a summary, and asks for confirmation.
  • Date prefix renamingRenames each confirmed file to a yyMMdd prefix from its Created date, one file at a time.
  • Skip and collision handlingSkips files already prefixed and files whose new name already exists in the same folder.
  • Results reportLists renamed, skipped and errored files so the user can decide whether to run again.

What you need

  • Access to a SharePoint document library
  • SharePoint tools that provide library, schema and list item update actions

Try asking

  • Prefix all files in this library with their created date
  • Add date prefixes to the files in the Finance subfolder
  • Preview which files would be renamed with a yyMMdd prefix

Good to know

  • Skips files that already start with six digits and a hyphen.
  • Never renames folders and never adds numeric suffixes to resolve name collisions.
  • SharePoint returns Created in UTC. If the site time zone cannot be found, dates fall back to UTC.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: Skills/rename-files-date-prefix/rename-files-date-prefix/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to rename-files-date-prefix

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

rename-files-date-prefix: common questions

Does it rename files without asking first?

No. The skill always shows a preview table and waits for the user to confirm before renaming any file.

What happens if a file with the new name already exists?

The file is marked as skipped for name collision and is not overwritten. The user must resolve the conflict manually.

Which date is used for the prefix?

It uses the file's Created date, not the Modified date, formatted as yyMMdd.

How do I install rename-files-date-prefix?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is rename-files-date-prefix free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is rename-files-date-prefix safe to use?

It scores 61 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to rename-files-date-prefix?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

rename-files-date-prefix Install

Add to stack

Loading.