fleet-tidying-files

Sweep fleet repositories for junk files and stray temporary directories.

125|42|Updated May 19, 2025
One-click install
npx skills add https://github.com/SocketDev/socket-mcp --skill fleet-tidying-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fleet-tidying-files
Source: https://github.com/SocketDev/socket-mcp/tree/main/.agents/skills/fleet-tidying-files
Command: npx skills add https://github.com/SocketDev/socket-mcp --skill fleet-tidying-files

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sweep fleet repositories for junk files and stray temporary directories.

Core Features & Use Cases

  • Deletes only untracked junk patterns across repos
  • Safe, loopable maintenance that runs in dry-run by default and can be forced with a flag
  • Used for periodic cleanup before cascades or commits

Quick Start

Run the tidy-files.mts script across the fleet to identify junk with dry-run by default and apply fixes with --fix when ready.

Frequently Asked Questions about fleet-tidying-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up untracked junk files across multiple repositories?

To clean up untracked junk files across multiple repositories, run the tidy-files script to sweep fleet repositories for stray temporary directories and junk patterns. It operates in dry-run by default to safely identify targets before applying deletions.

Is there a safe way to delete temporary directories in a continuous maintenance workflow?

Continuous maintenance workflow cleanup is handled by sweeping fleet repositories for junk files using a guarded safeDelete mechanism. This ensures deletions are restricted to untracked paths outside submodules, preventing accidental loss of tracked project data.

How do I apply real deletions when cleaning up untracked files?

Real deletions of untracked junk files are applied using the optional --fix mode flag. The script defaults to a dry-run for safety, and appending --fix forces the actual removal of identified temporary directories across the repositories.

Does fleet cleanup remove files inside git submodules?

Fleet cleanup explicitly avoids removing files inside git submodules. The sweeping mechanism ensures safety by targeting only untracked junk patterns outside submodules, preventing any unintended modifications to nested repository dependencies.

What is the best way to run periodic cleanup before cascading commits?

Periodic cleanup before cascading commits is best executed by running the tidy-files script across the fleet. This loopable maintenance workflow removes untracked junk patterns from repositories in a dry-run state before finalizing your commit cascade.

When should I use a dry-run for junk file cleanup?

A dry-run for junk file cleanup should be used by default to verify identified untracked paths before executing real deletions. This guarded approach prevents accidental data loss when sweeping multiple repositories for temporary directories.