- Home
- Skills
- Mhattingpete
- Claude Skills Marketplace
- File Operations
file-operations_skill
- HTML
269
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill mhattingpete/claude-skills-marketplace --skill file-operations- SKILL.md2.5 KB
Overview
This skill analyzes files and returns detailed metadata and content statistics without modifying files. It extracts size, modification times, line counts, and pattern-based content metrics. Use it to get quick, non-destructive insights about individual files or entire directories.
How this skill works
The skill inspects file system metadata (size, modification timestamp) and computes line counts with lightweight scanning. For content analysis it reads files and runs pattern searches to count functions, imports, TODOs, or other regex matches. It favors efficient operations (stat, wc, grep-style scans, and globbing) and avoids any write operations.
When to use it
- Request file info or a summary for one or more files
- Count lines, functions, classes, imports, or TODOs in source files
- Compare file sizes or modification times across a project
- Find large files or unusual files that impact build or deploy time
- Audit codebase metrics without changing code or repository state
Best practices
- Always run non-destructive commands (stat, wc, read, grep) to avoid accidental changes
- Read small files fully for deeper analysis; use pattern searches for large files
- Limit scope with glob patterns or directory filters to improve performance
- Compare metrics against project averages to identify outliers
- Exclude common vendor directories (node_modules, .venv) when searching for largest files
Example use cases
- Get size and last-modified time for a specific source file before a code review
- Count total lines and number of test files to estimate test coverage effort
- Find all TODO/FIXME occurrences to prioritize technical-debt work
- Locate the top 20 largest files to reduce repository bloat or speed up CI
- Compare two file versions by line counts and key-pattern frequencies (functions/imports)
FAQ
No. All operations are read-only: metadata queries, line counts, pattern searches, and file reads only; no write or delete actions are performed.
How does it scale for large repositories?
Use scoped glob patterns and directory filters to narrow searches. For large files, prefer grep-style pattern counts rather than reading entire files to save time and memory.