file-operations

file-operations is a skill for Claude Code, Codex from chaterm/terminal-skills. It costs 9 tokens per session (1,088 once invoked), scanned D, original, Apache-2.0.

A set of Linux commands and practices for finding, copying, moving, deleting, and managing files and folders.

In plain words
What is it for?
Use it to search files by name, type, age, or size; copy directories; and perform other file and directory operations.
Why use it?
It removes the need to remember separate shell commands for common file-system tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search files by name, type, age, or size; copy directories; and perform other file and directory operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaterm/terminal-skills/file-operations
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chaterm/terminal-skills --skill file-operations
Clone the repo
git clone --depth 1 https://github.com/chaterm/terminal-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for file-operations

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaterm/terminal-skills/file-operations/github.svg)](https://agentmods.dev/skills/chaterm/terminal-skills/file-operations)
Your own site
<a href="https://agentmods.dev/skills/chaterm/terminal-skills/file-operations"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/file-operations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for file-operations

Your own site · 80×15
<a href="https://agentmods.dev/skills/chaterm/terminal-skills/file-operations"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/file-operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,088 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.01088
Opus 5 $0.00005 $0.00544
Sonnet 5 $0.00002 $0.00218
Haiku 4.5 $0.00001 $0.00109

Measured 11d ago against content hash 890476b11c76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

file-operations scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 755 file # rwxr-xr-x

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf dir # Recursive force delete
linux/file-operations/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

File and Directory Operations

Overview

Linux file system operation skills, including file search, batch operations, permission management, etc.

find Command

# Search by name
find /path -name "*.log"
find /path -iname "*.LOG"           # Case insensitive

# Search by type
find /path -type f                  # Files
find /path -type d                  # Directories
find /path -type l                  # Symbolic links

# Search by time
find /path -mtime -7                # Modified within 7 days
find /path -mtime +30               # Modified more than 30 days ago
find /path -mmin -60                # Modified within 60 minutes

# Search by size
find /path -size +100M              # Larger than 100MB
find /path -size -1k                # Smaller than 1KB

# Combined conditions
find /path -name "*.log" -mtime +7 -size +10M

locate Command

# Quick search (requires database update)
locate filename
updatedb                            # Update database

# Case insensitive
locate -i filename

File Operations

Basic Operations

# Copy
cp file1 file2
cp -r dir1 dir2                     # Recursive copy directory
cp -p file1 file2                   # Preserve attributes

# Move/Rename
mv file1 file2
mv file1 /path/to/dest/

# Delete
rm file
rm -rf dir                          # Recursive force delete
rm -i file                          # Interactive confirmation

# Create
touch file                          # Create empty file
mkdir -p dir1/dir2/dir3             # Recursive create directories

Batch Operations

# Batch rename
rename 's/old/new/' *.txt
for f in *.txt; do mv "$f" "${f%.txt}.md"; done

# Batch delete
find /path -name "*.tmp" -delete
find /path -name "*.log" -mtime +30 -exec rm {} \;

# Batch copy
find /src -name "*.conf" -exec cp {} /dest/ \;

File Content

View Files

cat file                            # Full content
head -n 20 file                     # First 20 lines
tail -n 20 file                     # Last 20 lines
tail -f file                        # Real-time follow
less file                           # Paginated view

# Statistics
wc -l file                          # Line count
wc -w file                          # Word count
wc -c file                          # Byte count

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 182 lines · 9 tokens per session scan D 890476b11c76

Subscribe to this mod's changes

file-operations is a skill published in the GitHub repository chaterm/terminal-skills (59 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 9 tokens to every session and 1,088 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skillci-guardrails

Use this skill whenever you create, edit, or review a Claude Skill — any SKILL.md file, or the eval cases/config next to one. Most SKILL.md files today are written or edited by an agent, not typed by hand, so this closes the loop by having the agent that just wrote the skill also author it defensively and verify it…

kabirnarang39/skillci · 143 tokens

example-skill

Writes a single changelog entry summarizing a code change, given a short description of what changed.

kabirnarang39/skillci · 24 tokens

clean-skill

A skill with no lint issues, used as a starting point for the lint-on-type test.

kabirnarang39/skillci · 23 tokens

skill-with-referenced-issue

Has a clean SKILL.md but an unsafe referenced script.

kabirnarang39/skillci · 19 tokens

council

Run one request through several skills in parallel, isolated subagents, then merge their answers or judge the single best one. Use when the user invokes /council (or /council manage), or uses clear multi-skill-comparison language like "try this with a few different skills", "compare how different skills answer this"…

himanshufound/council · 135 tokens

council-lite

Run one request through several approaches or skills one at a time, keeping each pass as independent as possible, then merge the answers or pick the best one. The claude.ai-compatible version of Council. Use when the user says things like "try this a few different ways and compare", "run this through several of my…

himanshufound/council · 114 tokens