Skip to content
Back to skills

File Management

ASecurity

Read, create, edit, and organize files and directories.

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
ai-agents

Security analysis

A100/100

Scanned October 9, 2026

npx -y skills add byronxlg/skillfold --skill file-management --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Management?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for File Management
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/byronxlg-file-management/badge)](https://www.skillsdirectory.com/skills/byronxlg-file-management)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: file-management
description: Read, create, edit, and organize files and directories.
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.