Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

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★ 682⑂ 97AI score 8/10Last updated: Jul 25, 2026

What it does

  • Pulls size and modification time via stat, ls -lh, and du.
  • Counts lines per file or across a whole directory with wc -l and find | 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

  1. "How many lines of Python are in src?" → runs find src -name "*.py" | xargs wc -l and summarizes.
  2. "Analyze main.py" → size, mtime, line count, then function and class counts.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/mhattingpete/claude-skills-marketplace.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r claude-skills-marketplace/code-operations-plugin/skills/file-operations ~/.claude/skills/
  5. Restart Claude Code and try "analyze this file" — the skill triggers automatically.
  6. On Linux, tell Claude to use stat -c "%s bytes, modified %y" instead of the macOS-only stat -f form.
View source on GitHub ↗License: Apache-2.0