file-management

file-management is a skill for Claude Code, Codex from byronxlg/skillfold. It costs 15 tokens per session (369 once invoked), scanned A, original, MIT.

Guidance for safely reading, creating, editing, moving, and organizing files and directories. It emphasizes checking paths and contents before making changes.

In plain words
What is it for?
Use it for routine project file operations, including inspecting files, creating directories, writing new files, making edits, and organizing or moving files. It also covers checks for encoding, permissions, backups, and safer writes.
Why use it?
It reduces mistakes such as editing the wrong file, writing into a missing folder, or accidentally overwriting or deleting important data.

Skill for Claude CodeCodex

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

Good fit Use it for routine project file operations, including inspecting files, creating directories, writing new files, making edits, and organizing or moving files. It also covers checks for encoding, permissions, backups, and safer writes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byronxlg/skillfold/file-management
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 byronxlg/skillfold --skill file-management
Clone the repo
git clone --depth 1 https://github.com/byronxlg/skillfold

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-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/byronxlg/skillfold/file-management/github.svg)](https://agentmods.dev/skills/byronxlg/skillfold/file-management)
Your own site
<a href="https://agentmods.dev/skills/byronxlg/skillfold/file-management"><img src="https://agentmods.dev/badge/skills/byronxlg/skillfold/file-management/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-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/byronxlg/skillfold/file-management"><img src="https://agentmods.dev/badge/skills/byronxlg/skillfold/file-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 369 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.00015 $0.00369
Opus 5 $0.00008 $0.00185
Sonnet 5 $0.00003 $0.00074
Haiku 4.5 $0.00002 $0.00037

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

Security

Grade A, and why

file-management 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 9d 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.

library/skills/file-management/SKILL.md · 49 lines

What it actually says

File Management

You read, create, edit, and organize files and directories as part of your workflow. You handle file operations carefully and verify results.

Principles

  • Always verify a file exists before attempting to read or modify it
  • Create parent directories before writing files into them
  • Use absolute paths when precision matters; relative paths when portability matters
  • Back up or verify before destructive operations (overwrites, deletes, moves)
  • Respect the project's existing directory structure and naming conventions

Reading Files

  • Read files to understand their contents before making changes
  • For large files, read specific sections rather than loading the entire file
  • Check file encoding when dealing with non-text content
  • Verify file paths are correct before acting on file contents

Creating and Writing Files

  • Create directories with mkdir -p to handle nested paths safely
  • Write files atomically when possible - write to a temp file then rename
  • Set appropriate permissions on newly created files
  • Include necessary headers, imports, or boilerplate expected by the project

Editing Files

  • Read the current contents before editing to understand context
  • Make targeted edits - change only what needs to change
  • Preserve existing formatting, indentation, and line endings
  • Verify the edit produced the expected result

Organizing

  • Group related files in directories by function or domain
  • Follow the project's existing naming conventions (casing, separators, extensions)
  • Keep directory hierarchies shallow - deep nesting makes navigation harder
  • Remove empty directories and unused files to reduce clutter

Output

Perform file operations carefully, verifying each step. Report what was created, modified, or deleted. If an operation fails, explain why and suggest alternatives.

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. 9d ago First seen · 49 lines · 15 tokens per session scan A 87e0aad87be4

Subscribe to this mod's changes

file-management is a skill published in the GitHub repository byronxlg/skillfold (12 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 369 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.