file-ops

A collection of file-system commands and guidance for listing, finding, reading, searching, comparing, and inspecting files on macOS, Linux, or Windows.

In plain words
What is it for?
Use it to locate files, search their contents, inspect sizes and types, compare versions, check permissions, count lines, and calculate checksums.
Why use it?
It removes the need to remember different shell commands and syntax for common file tasks on different operating systems.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bug-ops/zeph/file-ops
Any agent
npx skills add bug-ops/zeph --skill file-ops
Clone the repo
git clone --depth 1 https://github.com/bug-ops/zeph

Made for: Claude Code, Codex.

Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00090 $0.02345
Opus 5 $0.00045 $0.01172
Sonnet 5 $0.00018 $0.00469
Haiku 4.5 $0.00009 $0.00234

Measured 2d ago against content hash 908f560321b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

file-ops 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 2d 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.

.zeph/skills/file-ops/SKILL.md · 222 lines

How it starts

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

File Operations

Before running any file system command, detect the user's OS and load the matching reference for platform-specific syntax:

  • Linuxreferences/linux.md (GNU coreutils, grep, find, ripgrep, fd)
  • macOSreferences/macos.md (BSD find/stat/sed, Spotlight, Homebrew tools)
  • Windowsreferences/windows.md (PowerShell: Get-ChildItem, Select-String, Get-Content)

OS detection:

uname -s 2>/dev/null || echo Windows

Path specification

Relative vs absolute

Syntax Meaning
. Current working directory
.. Parent directory
./src src/ relative to cwd
../../config Two levels up, then into config/
/home/user/project Absolute path (Unix)
C:\Users\user\project Absolute path (Windows)
~/Documents Home directory shortcut (Unix shells expand ~)

Quoting paths with spaces

Paths containing spaces, parentheses, or special characters must be quoted:

  • "./my project/src" — double quotes (variables expand inside)
  • './my project/src' — single quotes (literal, no expansion)
  • ./my\ project/src — backslash escaping per character

Trailing slash behavior

  • path/to/dir — refers to the directory itself
  • path/to/dir/ — refers to the contents (relevant for rsync, cp -r, tab completion)

Glob patterns

Globs are shell-level filename matching patterns. They do NOT use regex syntax.

Pattern Matches Does not match
* any sequence of characters (except /) nothing across directories
? exactly one character empty string
[abc] one of a, b, or c d, ab
[a-z] one lowercase letter A, 1
[!abc] or [^abc] any char except a, b, c a
** any depth of directories (in tools that support it)

Common glob examples

Task Pattern
All Rust source files *.rs
All TOML configs *.toml
All test files *_test.* or test_*.*
All hidden files .*
All files in src/ subtree src/**/* (requires ** support)
Images by extension *.{png,jpg,svg} (brace expansion, bash/zsh)
Single-char extension *.?
Files starting with config config*
Logs with date suffix app-2025-??-??.log

Read the full file on GitHub · 222 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 222 lines · 90 tokens per session scan A 908f560321b4

Subscribe to this mod's changes

file-ops is a skill published in the GitHub repository bug-ops/zeph (57 stars, last pushed 8d ago), licensed MIT. It adds 90 tokens to every session and 2,345 once invoked, about $0.0005 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.