file-operation-patterns
CommunityOperate files safely with proven patterns.
Software Engineering#file-operations#shell-scripts#safe-deletion#safe-patterns#robust-copy#atomic-writes
AuthorTibsfox
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Safe file system operation patterns help avoid data loss and errors during bulk file operations, directory management, and deployment tasks.
Core Features & Use Cases
- Directory Creation: Use mkdir -p and pre-checks to ensure idempotent creation.
- Copying: Preserve attributes or use rsync for large copies.
- Moving / Renaming: Atomic rename where possible; copy then remove across filesystems.
- Atomic Writes: Write to a temp file, then move to target to prevent partial reads.
- Safe Deletion: Dry-run before deleting, use trash when available, guard against dangerous rm.
- Anti-Patterns: Common mistakes to avoid during scripting.
Quick Start
Apply the safe file operation patterns to a bulk copy in a deployment script.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: file-operation-patterns Download link: https://github.com/Tibsfox/gsd-skill-creator/archive/main.zip#file-operation-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.