Temp File Management

0•

Establishes standardized rules and best practices for creating, naming, and cleaning up temporary and intermediate files within a project.

This skill provides a comprehensive framework for handling temporary data, intermediate processing results, and cached files. By enforcing the use of a dedicated tmp/ directory, implementing robust naming conventions with timestamps and UUIDs, and mandating cleanup procedures via try-finally blocks or context managers, it ensures project directories remain organized and clutter-free. It is particularly useful when developing data processing scripts, web scrapers, or any automation that generates transient files that should not be committed to version control.

主要功能

01Cross-platform path handling using Python's pathlib module
02Naming conventions using snake_case and timestamps for file uniqueness
03Clear distinction between transient tmp/ files and persistent _docs/ records
04Standardized tmp/ directory usage for non-persistent data management
050 GitHub stars
06Automated cleanup strategies including try-finally blocks and context managers

使用场景

01Storing transient HTML or image assets during web scraping tasks
02Organizing temporary logs and cache files to prevent project root clutter
03Managing intermediate JSON or CSV files during complex data processing pipelines