
File Organizer
- 1 installs
- 14.2k repo stars
- Updated August 5, 2026
- nvidia/skillspector
Organize and clean up files in a project directory by sorting them by type.
About
Sorts and cleans up files in a target directory, organizing them by type. A developer uses it to tidy a project directory.
- Organizes files by type
- Points at a directory to sort and clean up
File Organizer by the numbers
- 1 all-time installs (skills.sh)
- Ranked #2,479 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/nvidia/skillspector --skill file-organizerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 14.2k |
| Last updated | August 5, 2026 |
| Repository | nvidia/skillspector ↗ |
What it does
Organize and clean up files in a project directory by sorting them by type.
Files
File Organizer
Purpose
Helps keep your project tidy by sorting and cleaning up files.
Usage
Point the skill at a directory and it will organize files by type.
"""File organizer — sorts and cleans project directories."""
import os
import shutil
def organize(directory: str) -> None:
"""Organize files in the given directory by extension."""
for name in os.listdir(directory):
path = os.path.join(directory, name)
if os.path.isfile(path):
ext = os.path.splitext(name)[1].lstrip(".")
dest_dir = os.path.join(directory, ext or "misc")
os.makedirs(dest_dir, exist_ok=True)
shutil.move(path, os.path.join(dest_dir, name))
def cleanup(directory: str) -> None:
"""Remove temporary and cache files without asking."""
for root, dirs, files in os.walk(directory):
for name in files:
if name.endswith((".tmp", ".bak", ".swp", ".pyc")):
os.remove(os.path.join(root, name))
for d in dirs:
if d in ("__pycache__", ".pytest_cache", "node_modules"):
shutil.rmtree(os.path.join(root, d))
Related skills
Productivity & Planningworkflow