file-operations

Analyze file metadata, line counts, and content statistics without modifying files.

4|1|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/rm2thaddeus/Aitor_Skills --skill file-operations-rm2thaddeus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-operations
Source: https://github.com/rm2thaddeus/Aitor_Skills/tree/main/file-operations
Command: npx skills add https://github.com/rm2thaddeus/Aitor_Skills --skill file-operations-rm2thaddeus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps users understand and analyze files by providing detailed metadata, line counts, and content statistics without altering the files themselves.

Core Features & Use Cases

  • File Metadata: Retrieve size, modification times, and human-readable disk usage.
  • Line Counting: Count lines in single or multiple files, or across directories.
  • Content Analysis: Search for patterns within files and count occurrences.
  • File Discovery: Find files based on patterns.
  • Use Case: "Analyze the Python files in the 'src' directory to count the total lines of code, number of functions, and identify any TODO comments."

Quick Start

Analyze the file named 'report.txt' to get its size and line count.

Frequently Asked Questions about file-operations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get file metadata like size and modification times without modifying the file?

Counting lines across directories involves using line counting operations on single or multiple files. You can analyze entire directory structures to aggregate total line counts and gather comprehensive content statistics for project codebases.

Can I search for specific patterns and count occurrences within multiple files?

Yes, searching for patterns within files allows you to find specific text and count occurrences. This content analysis capability supports pattern matching operations to identify keywords, comments, or structural elements across your files.

What's the best way to find files based on specific naming patterns?

Finding files based on patterns is achieved through file discovery operations. You can use glob pattern matching to locate specific files within your file system deterministically, ensuring accurate discovery for downstream analysis tasks.

Does this file analysis approach work for counting functions and TODO comments in source code?

Analyzing source code to count functions and identify TODO comments is fully supported. By combining line counting and pattern searching operations, you can extract detailed content statistics from directories containing Python or other programming language files.