file_operations

file_operations is a skill for Claude Code, Codex from frontier-ai-next/mgarlbot. It costs 20 tokens per session (521 once invoked), scanned A, original, MIT.

Instructions for creating, reading, changing, moving, copying, and deleting files and folders from the command line.

In plain words
What is it for?
Managing project files and directories during coding or other command-line work.
Why use it?
They provide standard file-handling commands and safety checks for common workspace tasks.

Skill for Claude CodeCodex

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

Good fit Managing project files and directories during coding or other command-line work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frontier-ai-next/mgarlbot/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 frontier-ai-next/mgarlbot --skill file_operations
Clone the repo
git clone --depth 1 https://github.com/frontier-ai-next/mgarlbot

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/frontier-ai-next/mgarlbot/file_operations/github.svg)](https://agentmods.dev/skills/frontier-ai-next/mgarlbot/file_operations)
Your own site
<a href="https://agentmods.dev/skills/frontier-ai-next/mgarlbot/file_operations"><img src="https://agentmods.dev/badge/skills/frontier-ai-next/mgarlbot/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/frontier-ai-next/mgarlbot/file_operations"><img src="https://agentmods.dev/badge/skills/frontier-ai-next/mgarlbot/file_operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00020 $0.00521
Opus 5 $0.00010 $0.00260
Sonnet 5 $0.00004 $0.00104
Haiku 4.5 $0.00002 $0.00052

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

Security

Grade A, and why

file_operations scanned grade A with 0 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/file_operations/SKILL.md · 139 lines

What it actually says

File operations

Use shell commands for file and directory work.

Create

Single line:

echo "content" > /path/to/file.txt

Here-doc:

cat > /path/to/file.txt << 'EOF'
Line 1
Line 2
Line 3
EOF

Empty file:

touch /path/to/file.txt

Read

Whole file:

cat /path/to/file.txt

First N lines:

head -n 10 /path/to/file.txt

Last N lines:

tail -n 10 /path/to/file.txt

Write / append

Overwrite:

echo "new content" > /path/to/file.txt

Append:

echo "more content" >> /path/to/file.txt

Directories

Create:

mkdir -p /path/to/new/directory

List:

ls -la /path/to/directory

Copy / move / delete

Copy file:

cp /source/file.txt /destination/file.txt

Copy tree:

cp -r /source/dir /destination/dir

Move or rename:

mv /old/path/file.txt /new/path/file.txt

Delete file:

rm /path/to/file.txt

Delete directory:

rm -r /path/to/directory

Find

By name:

find /search/path -name "*.txt" -maxdepth 3

By content:

grep -r "search text" /search/path --include="*.txt"

Rules

  1. Use absolute paths or paths relative to the working directory.
  2. After creating files, verify with ls -la.
  3. Use mkdir -p for nested directories.
  4. Before deleting, confirm with the user what will be removed.
  5. Use cat for small files; head/tail for large ones.
  6. Prefer cat << 'EOF' (single-quoted EOF) to avoid accidental variable expansion.
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. 10d ago First seen · 139 lines · 20 tokens per session scan A 9d1068d08284

Subscribe to this mod's changes

file_operations is a skill published in the GitHub repository frontier-ai-next/mgarlbot (17 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.