filesystem
Skill4 starsChanged 9 months agoMITView on GitHub
File system operations — advanced file manipulation, search, and management
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 199
Use find ... -exec ... + for better performance
- Very specific: line 200
Use rsync -n (dry-run) before real sync
- Very specific: line 201
Use shred for secure file deletion
- Very specific: line 202
Use lsof to find open files
- Very specific: line 203
Use fuser to find processes using files
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Filesystem
Advanced file system operations and management.
Search Files
# Find by name
find . -name "*.txt"
# Find by extension
find . -type f -name "*.py"
# Case insensitive
find . -iname "*.TXT"
# Find directories
find . -type d -name "node_modules"
# Find by size
find . -size +100M # Larger than 100MB
find . -size -1k # Smaller than 1KB
# Find by time
find . -mtime -7 # Modified in last 7 days
find . -mtime +30 # Not modified in 30+ days
find . -atime -1 # Accessed in last 24h
find . -newer file.txt # Newer than file.txt
# Find and execute
find . -name "*.log" -delete
find . -name "*.tmp" -exec rm {} \;
find . -name "*.py" -exec wc -l {} +
# Find with permissions
find . -perm 755
find . -executable -type fSearch Content (ripgrep/grep)
# Search in files
grep -r "pattern" .
# With ripgrep (faster)
rg "pattern" .
# Search specific files
rg "pattern" -g "*.py"
# Show context
rg "pattern" -C 3 # 3 lines before and after
rg "pattern" -A 2 # 2 lines after
rg "pattern" -B 2 # 2 lines before
# Count matches
rg -c "pattern" .
# Files with matches only
rg -l "pattern" .
# Case insensitive
rg -i "pattern" .Copy & Sync
# Sync directories with rsync
rsync -av source/ destination/
# Sync with progress
rsync -av --progress source/ destination/
# Sync with exclude
rsync -av --exclude 'node_modules' --exclude '.git' source/ destination/
# Sync to remote
rsync -avz -e ssh source/ user@host:/path/
# Delete files not in source
rsync -av --delete source/ destination/
# Dry run
rsync -av --dry-run source/ destination/Disk Usage
# Directory sizes
du -sh *
# Sort by size
du -sh * | sort -h
# Find largest files
du -ah /path | sort -rh | head -20
# Disk free space
df -h
# Inode usage
df -iFile Operations
# Create directory tree
mkdir -p path/to/deep/directory
# Copy with progress
cp -r source/ destination/ & progress -p $!
# Move with overwrite prompt
mv -i source dest
# Remove empty directories
find . -type d -empty -delete
# Remove files older than X days
find . -name "*.log" -mtime +30 -delete
# Batch rename
rename 's/.txt/.md/' *.txt
# Create tarball
tar -czvf archive.tar.gz directory/
# Extract tarball
tar -xzvf archive.tar.gzFile Permissions
# Change permissions
chmod 755 script.sh
chmod -R 644 *.txt
# Change ownership
chown user:group file.txt
chown -R user:group directory/
# Make executable
chmod +x script.sh
# Find world-writable files
find . -perm -0002 -type f
# Find files without owner
find . -nouser -o -nogroupSymbolic Links
# Create symlink
ln -s /path/to/target linkname
# Hard link
ln target linkname
# Remove symlink
rm linkname
# Find broken symlinks
find . -type l -! -exec test -e {} \; -print
# View link target
readlink -f linknameWatch for Changes
# Watch directory changes
inotifywait -m -r /path/to/watch
# Watch with incron (like cron for filesystem)
incrontab -e
# /path/to/watch IN_CLOSE_WRITE /script.sh $@/$#Tips
- Use
find ... -exec ... +for better performance - Use
rsync -n(dry-run) before real sync - Use
shredfor secure file deletion - Use
lsofto find open files - Use
fuserto find processes using files
Triggers
filesystem, find files, search files, file operations, rsync, disk usage, file management, file search
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Mathews-Tom/armory★ 340same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository83 other files it gives its agents.
- a11y-axeSkill
- airtableSkill
- asanaSkill
- audio-ttsSkill
- aws-cliSkill
- azure-cliSkill
- backupSkill
- bookmarksSkill
- browser-automationSkill
- bundler-analyzeSkill
- calculatorSkill
- calendarSkill
- cargoSkill
- changelog-genSkill
- claude-codeSkill
- clickupSkill
- color-contrastSkill
- crypto-walletSkill
- databaseSkill
- discordSkill
- docker-composeSkill
- dockerSkill
- dora-metricsSkill
- emailSkill
- ffmpegSkill
- gcloudSkill
- githubSkill
- gmailSkill
- gogSkill
- google-calendarSkill
- habitsSkill
- healthSkill
- hubspotSkill
- image-genSkill
- imagemagickSkill
- image-toolsSkill
- jiraSkill
- journalSkill
- kubernetesSkill
- lighthouseSkill
- linearSkill
- locationSkill
- media-configSkill
- meeting-notesSkill
- nginxSkill
- notesSkill
- notionSkill
- obsidianSkill
- ocrSkill
- pandocSkill
- paymentsSkill
- pdf-toolsSkill
- pip-poetrySkill
- pm2Skill
- pomodoroSkill
- project-managerSkill
- qr-codeSkill
- railway-deploySkill
- redis-cliSkill
- release-notesSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

