Retrieves file metadata like size, line counts, mod times, and content stats using bash (stat/wc/du/find) and Claude tools (Read/Grep/Glob). For file info without changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-operations-skills:file-operationsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze files and retrieve metadata using Claude's native tools without modifying files.
Analyze files and retrieve metadata using Claude's native tools without modifying files.
stat -f "%z bytes, modified %Sm" [file_path] # Single file
ls -lh [directory] # Multiple files
du -h [file_path] # Human-readable size
wc -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 imports
Glob(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")find . -type f -not -path "./node_modules/*" -exec du -h {} + | sort -rh | head -20
Works with:
npx claudepluginhub p/huonghamd9-code-operations-skills-code-operations-plugin4plugins reuse this skill
First indexed Jun 6, 2026
Replaces wasteful multi-Read loops with a single Bash pipeline for analyzing files, auditing codebases, scanning dependencies, counting lines, or listing files matching a pattern.
Counts lines of code, analyzes codebase size/composition, and compares code between versions using `cloc`. Supports 200+ languages and multiple output formats.
Provides file and directory operations using Claude Code's native Read, Write, Edit, Grep, Glob, and Bash tools, replacing the Filesystem MCP server. Useful for reading, writing, editing, searching, and navigating files.