file-operations

Extract file size, modification time, and basic metadata via non-destructive reads.

3|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/I-Onlabs/claude-code-skills --skill file-operations-i-onlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-operations
Source: https://github.com/I-Onlabs/claude-code-skills/tree/main/file-operations
Command: npx skills add https://github.com/I-Onlabs/claude-code-skills --skill file-operations-i-onlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzing files manually is tedious and error-prone when you need quick access to size, modification times, and basic statistics. This skill automates non-destructive file metadata retrieval to speed up audits, reviews, and diagnostics.

Core Features & Use Cases

  • Retrieve file size, last modified time, and permissions.
  • Count lines, words, and characters for quick quality checks.
  • Use cases: inventory of assets, auditing codebases, verifying file integrity without modification.

Quick Start

Ask Claude to analyze a target file to retrieve its size, line count, and basic metadata.

Frequently Asked Questions about file-operations

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

FAQPage Schema
How do I extract file metadata like size and modification time without altering the content?

You can extract file metadata by running non-destructive read operations using stat, wc, and ls/du commands. This method retrieves size, modification time, and basic statistics without modifying the original file content.

What is the best way to count lines, words, and characters in a target file for a quick audit?

The best way to count lines, words, and characters is using an automated file analysis tool that applies wc commands non-destructively. This returns structured statistics quickly for codebase auditing and quality checks.

Can I use this approach to verify file integrity and permissions for an asset inventory?

Yes, you can verify file integrity and inventory assets by retrieving permissions, size, and last modified time through non-destructive reads. This provides the exact metadata needed to audit files without modifying content.

Does this file analysis method require any specific dependencies or external libraries?

No, this file analysis method requires zero external dependencies or libraries. It relies solely on standard non-destructive system utilities like stat, wc, and ls/du to retrieve file metadata and statistics directly.

When should I use non-destructive file reads instead of loading the file into a text editor?

Use non-destructive file reads when you need quick metadata, statistics, or comparisons for downstream tooling without the overhead of loading content into an editor. It is ideal for automating audits and verifying integrity safely.