Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze files and get detailed metadata including size, line counts, modification times, and content statistics. Use when users request file information, statistics, or analysis without modifying files.
.claude/skills/mhattingpete-file-operations/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 19% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-21 | ✓→✗ | ▼ Worse | 181% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 6% | 0% |
Analyze files and retrieve metadata using Claude's native tools without modifying files.
bashstat -f "%z bytes, modified %Sm" [file_path] # Single file ls -lh [directory] # Multiple files du -h [file_path] # Human-readable size
bashwc -l [file_path] # Single file wc -l [file1] [file2] # Multiple files find [dir] -name "*.py" | xargs wc -l # Directory total
Use Read to analyze structure, then count functions/classes/imports.
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 importsGlob(pattern="**/*.py")stat -f "%z bytes, modified %Sm" file.pywc -l file.pyRead(file_path="file.py")Grep(pattern="^def ", output_mode="count")Grep(pattern="^class ", output_mode="count")Glob(pattern="src/**/*.py")ls -lh src/**/*.pydu -sh src/*.pyfind . -name "*.py" | xargs wc -lfind . -name "test_*.py" | wc -lGrep(pattern="TODO|FIXME|HACK", output_mode="count")bashfind . -type f -not -path "./node_modules/*" -exec du -h {} + | sort -rh | head -20
Works with:
Other measured skills in the registry, with their headline benchmark lift.