file-operations

Analyze files and directories to extract size, line counts, and modification times.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/jr2804/prompts --skill file-operations-jr2804
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-operations
Source: https://github.com/jr2804/prompts/tree/main/skills/development/file-operations
Command: npx skills add https://github.com/jr2804/prompts --skill file-operations-jr2804

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes files and retrieves detailed metadata including size, line counts, modification times, and content statistics to expedite file understanding without modifying any data.

Core Features & Use Cases

  • Metadata extraction: Retrieve file size, last modification time, and human-friendly formats.
  • Line and content analysis: Count lines, read structure, and summarize content statistics across single files or whole directories.
  • Use Case: When you need a quick audit of a codebase or document collection to prioritize reviews or cleanups without altering files.

Quick Start

Use the file-operations skill to analyze a file named example.txt and retrieve its size, line count, and last modified date.

Frequently Asked Questions about file-operations

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

FAQPage Schema
How do I check file metadata like size and modification time without modifying the file?

To check file metadata without modifying the file, this Skill performs non-destructive reads using standard shell tools to extract file size, line counts, and last modification times in human-friendly formats.

Can I count lines and gather content statistics across an entire directory?

Yes, you can count lines and gather content statistics across a directory. The Skill analyzes both individual files and whole directories to summarize content structure and statistics for diverse file types.

What is the best way to audit a codebase for file sizes and line counts?

The best way to audit a codebase for sizes and line counts is using non-destructive file analysis. This approach retrieves detailed metadata and content statistics to expedite understanding without altering any data.

Does this file analysis approach work with diverse file types?

Yes, this file analysis approach works with diverse file types. The Skill applies lightweight operations to gather metadata and content statistics across single files or document collections regardless of format.

Do I need any special dependencies to extract file metadata and content insights?

No special dependencies are required to extract file metadata and content insights. The Skill relies on standard shell tools and lightweight operations to perform non-destructive reads for metadata retrieval.

When should I use non-destructive file reads for metadata extraction?

You should use non-destructive file reads for metadata extraction when you need a quick audit of a codebase or document collection to prioritize reviews and cleanups while ensuring no original data is altered.