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.
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-prefixRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install rename-files-date-prefix in Claude Code
git clone --depth 1 https://github.com/pnp/sharepoint-skills /tmp/sharepoint-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sharepoint-skills/Skills/rename-files-date-prefix/rename-files-date-prefix ~/.gemini/antigravity-cli/skills/rename-files-date-prefixAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install rename-files-date-prefix in Antigravity CLI
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
ANo 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 →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
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.
