
File Operations
This is your go-to for non-destructive file analysis when you need metadata without touching the actual files. It wraps stat, wc, du, and grep commands to pull line counts, file sizes, modification times, and content patterns. Honestly the workflow examples are the most useful part here, showing you how to chain operations for things like comprehensive file analysis or finding your largest files. It's positioned as a complement to heavier skills like code-auditor, giving you quick stats before you decide whether deeper analysis is worth it. The pattern search stuff using Grep to count functions or find TODOs is solid for quick code quality checks without spinning up a full linter.
- skills.sh installs
- 417
- GitHub stars
- 693
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mhattingpete/claude-skills-marketplace --skill file-operations --agent claude-codeInstalls into .claude/skills of the current project.
Files
File Operations
Analyze files and retrieve metadata using Claude's native tools without modifying files.
When to Use
- "analyze [file]"
- "get file info for [file]"
- "how many lines in [file]"
- "compare [file1] and [file2]"
- "file statistics"
Core Operations
File Size & Metadata
stat -f "%z bytes, modified %Sm" [file_path] # Single file
ls -lh [directory] # Multiple files
du -h [file_path] # Human-readable size
Line Counts
wc -l [file_path] # Single file
wc -l [file1] [file2] # Multiple files
find [dir] -name "*.py" | xargs wc -l # Directory total
Content Analysis
Use Read to analyze structure, then count functions/classes/imports.
Pattern Search
Grep(pattern="^def ", output_mode="count", path="src/") # Count functions
Grep(pattern="TODO|FIXME", output_mode="content", -n=true) # Find TODOs
Grep(pattern="^import ", output_mode="count") # Count imports
Find Files
Glob(pattern="**/*.py")
Workflow Examples
Sponsors
Details
- Repository
- github.com/mhattingpete/claude-skills-marketplace
- Category
- Data Science & ML
- License
- Apache-2.0
- First seen
- Jun 3, 2026
More from mhattingpete/claude-skills-marketplace
All 18- Git Pushing411
- Test Fixing386
- Code Auditor341
- Timeline Creator335
- Dashboard Creator332
- Code Refactor301
- Feature Planning295
- Code Execution293
- Review Implementing256
- Conversation Analyzer248
- Technical Doc Creator221
- Ensemble Solving218
- Project Bootstrapper211
- Code Transfer173
- Flowchart Creator749
- Codebase Documenter594
- Architecture Diagram Creator500