Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add latestaiagents/agent-skills/plugin install safetyWrote 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.
[](https://agentmods.dev/skills/latestaiagents/agent-skills/file-operation-safety)<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/file-operation-safety"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/file-operation-safety/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.
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/file-operation-safety"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/file-operation-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.02791 |
| Opus 5 | $0.00034 | $0.01396 |
| Sonnet 5 | $0.00014 | $0.00558 |
| Haiku 4.5 | $0.00007 | $0.00279 |
Grade C, and why
file-operation-safety scanned grade C with 1 finding 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 7d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
| ⛔ CRITICAL | `rm -rf`, recursive delete on directories | Full path verification + explicit confirmation | How it starts
The opening of the file, as written. The whole thing — 395 lines — stays where its author put it; the contents beside it link to each section on GitHub.
File Operation Safety
CRITICAL: File deletions can be permanent. This skill prevents irreversible file loss.
Danger Levels
| Level | Operations | Requires |
|---|---|---|
| ⛔ CRITICAL | rm -rf, recursive delete on directories |
Full path verification + explicit confirmation |
| 🔴 HIGH | rm multiple files, mv with overwrite |
List all files + confirmation |
| 🟠 MEDIUM | rm single file, cp with overwrite |
Verify file exists + confirm |
| 🟢 LOW | cp to new location, mkdir, touch |
Standard execution |
Pre-Operation Protocol
Before ANY Deletion
Step 1: Verify the path
# ALWAYS expand and verify the path first
realpath /path/to/target
ls -la /path/to/target
# Check what's inside (for directories)
find /path/to/target -type f | wc -l # Count files
du -sh /path/to/target # Check size
Step 2: Present impact to user
## File Deletion Impact Assessment
**Command:** rm -rf ./node_modules
**Resolved path:** /Users/dev/myproject/node_modules
**Contents:**
- Total files: 45,234
- Total directories: 8,901
- Total size: 234 MB
- Contains hidden files: Yes (.cache, .bin)
**Can be recreated:** Yes (via `npm install`)
Proceed with deletion? Type "yes, delete node_modules" to confirm.
For Critical Operations
rm -rf on Directory
⛔ **CRITICAL: RECURSIVE DELETE REQUESTED**
**Command:** rm -rf /var/www/myapp
**⚠️ FULL PATH CHECK:**
- Requested path: /var/www/myapp
- Resolved path: /var/www/myapp
- Parent directory: /var/www (contains 3 other directories)
- Is symlink: No
**Contents to be deleted:**
- Files: 1,234
- Directories: 89
- Size: 456 MB
- Includes:
- Source code (*.js, *.ts): 234 files
- Configuration (*.json, *.yml): 12 files
- Environment files (.env): 1 file ⚠️
- Uploaded files (uploads/): 567 files ⚠️
**Recovery:**
- Git repository: Yes (can recover source code)
- Uploads folder: NO GIT ⚠️ (not recoverable)
- .env file: NO GIT ⚠️ (not recoverable)
**Before deletion, I recommend:**
1. Backup uploads folder: `cp -r uploads /backup/uploads_$(date +%Y%m%d)`
2. Backup .env: `cp .env /backup/.env_$(date +%Y%m%d)`
Proceed with deletion after backup? Type "yes, delete /var/www/myapp after backup" to confirm.
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.
- 7d ago First seen · 395 lines · 68 tokens per session scan C 76e3fceda761
file-operation-safety is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 2,791 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
fw-review
Full Freshworks marketplace app review — iparams, frontend, serverless, FDK, security, and structured text report output — in one skill.
ai-account-research-sales-card
A sales-growth assistant for understanding why a customer is not moving a deal forward. It uses the information you provide to organize the situation and recommend actions.
ai-account-research
A customer-research assistant for breaking down a potential customer and deciding how to approach them. It uses the materials you provide to shape a sales plan.
ai-amazon-brand-analytics
An Amazon Brand Analytics assistant for working with Amazon brand-analysis tasks. The description does not provide enough detail about its exact data or outputs.
ai-amazon-international-listings
An Amazon localization assistant for checking whether a product listing is written correctly for an overseas market. Localization means adapting language and presentation to a specific country or region.
ai-amazon-inventory-management
An Amazon inventory-review assistant. Inventory means the products a seller has available to sell.