skillfed

file-operations

File Operations retrieves detailed file metadata and statistics—including size, line counts, modification times, and content analysis—using read-only operations. Ideal for understanding file structure and gathering code metrics across projects.

File Operations retrieves file metadata, line counts, and statistics without modifying content.

AI-generated summary based on this skill's SKILL.md

657 91 Apache-2.0 updated by mhattingpete

Install

mhattingpete/claude-skills-marketplace/file-operations · repository language: HTML

CLI (skillfed)coming soon
git clone https://github.com/mhattingpete/claude-skills-marketplace
cp -r claude-skills-marketplace/code-operations-plugin/skills/file-operations ~/.claude/skills/file-operations

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does File Operations analyze file metadata and statistics?

File Operations retrieves detailed file metadata and statistics—including size, line counts, modification times, and content analysis—using read-only operations. The skill examines files without modifying their content, making it safe for gathering comprehensive information about your project's structure and composition.

Can File Operations count functions, classes, and imports in code?

Yes. File Operations analyzes code structure to count functions, classes, imports, and other structural elements. This capability lets you understand your codebase's complexity and organization across Python files and other source code formats without altering any content.

How can I find the largest files in my project?

File Operations compares file sizes and identifies the largest files in your project directory. You can use this to spot oversized modules, locate potential refactoring candidates, or understand storage distribution across your codebase quickly and efficiently.

Does File Operations find TODO and FIXME comments?

File Operations finds and counts specific patterns like TODOs and FIXME code markers throughout your files. This helps you track technical debt and incomplete work items embedded in your source code without requiring manual searching.

What file information can File Operations provide?

File Operations provides file size, modification time, line counts, and detailed content statistics. It generates code quality metrics and structural analysis, giving you comprehensive insights into individual files and entire directories for project assessment and planning.

SKILL.md

rendered from the published skill — quoted content, verbatim

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",

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
code-operations-plugin/skills/file-operations/SKILL.md

Related skills

Tags

read-only-analysis file-metadata-extraction code-metrics size-comparison non-destructive-inspection content-statistics codebase-auditing pattern-detection