This is your go-to for non-destructive file analysis when you need metadata without touching the actual files. It wraps stat, wc, du, and grep commands to pull line counts, file sizes, modification times, and content patterns. Honestly the workflow examples are the most useful part here, showing you how to chain operations for things like comprehensive file analysis or finding your largest files. It's positioned as a complement to heavier skills like code-auditor, giving you quick stats before you decide whether deeper analysis is worth it. The pattern search stuff using Grep to count functions or find TODOs is solid for quick code quality checks without spinning up a full linter.

skills.sh installs
417
GitHub stars
693
last updated
Aug 21, 2026

Install

$ npx -y skills add mhattingpete/claude-skills-marketplace --skill file-operations --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/mhattingpete/claude-skills-marketplace
Category
Data Science & ML
License
Apache-2.0
First seen
Jun 3, 2026

More from mhattingpete/claude-skills-marketplace

All 18
1tangc avatartangzhan-skill-opencodeInsightstangc/tangzhan-skillsGenerate deep insights and visualization reports from your OpenCode session history. Analyzes work patterns, friction points, and provides strategic recommendat417skills.sh installs
2davila7 avataropenalex-databasedavila7/claude-code-templatesQuery and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, fin416skills.sh installs
3davila7 avatarclinicaltrials-databasedavila7/claude-code-templatesQuery ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical r409skills.sh installs
4dpearson2699 avatarmetrickit-diagnosticsdpearson2699/swift-ios-skillsCollect and analyze on-device performance metrics and crash diagnostics using MetricKit. Use when setting up MXMetricManager, handling MXMetricPayload or MXDiag409skills.sh installs
5anthropics avatarcompetitive-analysisanthropics/knowledge-work-pluginsResearch competitors and compare positioning, messaging, content strategy, and market presence. Use when analyzing a competitor, building battlecards, identifyi408skills.sh installs
6hoodini avatarmermaid-diagramshoodini/ai-agents-skillsCreate diagrams and visualizations using Mermaid syntax. Use when generating flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt 408skills.sh installs