Claude Skill

file-management

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

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download byronxlg-skillfold-library_skills_file-management-e2a80db.zip · 1 KB
Part of byronxlg/skillfold — 12 skills

Install

skills CLI npx skills add https://github.com/byronxlg/skillfold/tree/main/library/skills/file-management
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install byronxlg-skillfold@llmmart
Git git clone https://github.com/byronxlg/skillfold.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole byronxlg/skillfold collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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.

Files (skillfold)
  • SKILL.md 1.9 KB
    ---
    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.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related