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.
Analyzes files to retrieve metadata, line counts, and content statistics without modification. Triggered by requests for file information, statistics, or analysis like "analyze file.py" or "how many lines in src/".
/plugin marketplace add mhattingpete/claude-skills-marketplace/plugin install code-operations-skills@mhattingpete-claude-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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:
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.