File Operations (file analysis)
A read-only skill that reports file metadata and statistics — size, modification time, line counts, function/class counts — without touching your files.
Dev & CodingBeginner★ 666⑂ 96AI score 8/10Last updated: Jul 25, 2026
What it does
- Pulls size and modification time via
stat,ls -lh, anddu. - Counts lines per file or across a whole directory with
wc -landfind | xargs wc -l. - Combines Claude's Read / Grep / Glob tools to count functions, classes, imports, and TODO/FIXME markers.
- Ships ready-made workflows: full single-file analysis, size comparison, code-quality metrics, and a "largest files" scan.
- Strictly non-destructive — it never edits anything.
Who it's for
- Developers sizing up an unfamiliar codebase.
- Teams hunting bloated files or leftover TODOs before a refactor.
- Beginners who'd rather not memorize shell one-liners.
Examples
- "How many lines of Python are in src?" → runs
find src -name "*.py" | xargs wc -land summarizes. - "Analyze main.py" → size, mtime, line count, then function and class counts.
- "Show the 20 largest files, skipping node_modules" →
find ... | sort -rh | head -20.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/mhattingpete/claude-skills-marketplace/HEAD/code-operations-plugin/skills/file-operations/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the code-operations-plugin/skills/file-operations folder from the GitHub repo mhattingpete/claude-skills-marketplace into my ~/.claude/skills/file-operations/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/mhattingpete/claude-skills-marketplace.git && mkdir -p ~/.claude/skills && cp -r claude-skills-marketplace/code-operations-plugin/skills/file-operations ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/mhattingpete/claude-skills-marketplace.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r claude-skills-marketplace/code-operations-plugin/skills/file-operations ~/.claude/skills/ - Restart Claude Code and try "analyze this file" — the skill triggers automatically.
- On Linux, tell Claude to use
stat -c "%s bytes, modified %y"instead of the macOS-onlystat -fform.
View source on GitHub ↗License: Apache-2.0