Skip to content

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
View on GitHub

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, and find shell 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 -y

Installs 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

Similar to File Operations

More CLI & Terminal