File Operations
Read-only file analysis that reports sizes, line counts, modification times, and pattern counts without changing files.
- CCM score
- 52 of 100
- skills.sh installs
- 420
- GitHub stars
- 697
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers size and metadata, line counts, content structure, pattern search, and file discovery for a given path
- Includes
stat,ls,du,wc, andfindshell recipes alongside Read, Grep, and Glob tool calls - Enforces a non-destructive rule so Read, stat, and wc run in place and no file is modified
- Designed for users asking for file statistics or code metrics, and pairs with code-auditor and codebase-documenter
Install
$ npx -y skills add mhattingpete/claude-skills-marketplace --skill file-operations -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/mhattingpete/claude-skills-marketplace
- Category
- CLI & Terminal
- License
- Apache-2.0
- First seen
- Jun 3, 2026
Questions
What does the file-operations skill do?
The file-operations skill analyzes files and reports metadata such as size, line counts, modification times and content statistics. It works without modifying any files, using Read, stat, wc and Grep.
How do I install the file-operations skill?
Run npx -y skills add mhattingpete/claude-skills-marketplace --skill file-operations -y inside your project. Once installed, file-operations lets the agent answer requests like counting lines or getting file info without changing your files.
Where does file-operations sit in the CLI & Terminal category?
file-operations is listed under CLI & Terminal on Claude Marketplaces, next to herdr, gws-shared, opentui, cf-cli and pnpm. Its focus on read-only file statistics is what sets it apart from those skills.
When should I ask an agent to use file-operations?
Use file-operations when you ask things like how many lines a file has, what its size is, or to compare file sizes, or ask for file statistics. It also covers counting functions, classes, imports and TODOs in code.
More from mhattingpete/claude-skills-marketplace
All 18- Git Pushing416
- Test Fixing391
- Code Auditor348
- Dashboard Creator341
- Timeline Creator340
- Code Refactor307
- Feature Planning301
- Code Execution296
- Review Implementing260
- Conversation Analyzer253
- Technical Doc Creator223
- Ensemble Solving220
- Project Bootstrapper214
- Code Transfer175
- Flowchart Creator774
- Codebase Documenter599
- Architecture Diagram Creator560
Similar to File Operations
More CLI & TerminalCode IndexMCP serverjohnhuang3161K starsIndex, search, and analyze code repositories through about 13 tools for an AI assistant.
Filesystem MCPMCP serverj0hanz36 starsSecure file access for AI assistants across chosen folders, with exact-match edits and undo.
filesystemSkilloimiragieo/agent-studio732 installsConcise guidance for reading, writing, searching, and navigating files with Claude Code's built-in tools.
analyze-projectSkilllllllllama/rigorpilot-skills370.9K installsRead-only analysis skill that maps deep learning repositories without modifying code or running heavy jobs.
code-auditorSkillmhattingpete/claude-skills-marketplace348 installsComprehensive codebase audit across architecture, quality, security, performance, testing, and maintainability.
repomix-explorerSkillyamadashy/repomix2.1K installsPacks remote or local repos with the Repomix CLI, then searches and summarizes the generated output for codebase overviews.