file

Read, write, and list local files and directories with pattern matching.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/uhvc7652/MyAISkills --skill file
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file
Source: https://github.com/uhvc7652/MyAISkills/tree/main/skills/file
Command: npx skills add https://github.com/uhvc7652/MyAISkills --skill file

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies common file system operations, allowing you to read, write, and list files and directories without complex command-line interactions.

Core Features & Use Cases

  • Read Files: Access the content of local files, supporting various encodings and line-based reading.
  • Write Files: Save data to files, with options to overwrite or append content, and automatic directory creation.
  • List Directories: Explore directory structures, filter files by pattern, and optionally list recursively.
  • Use Case: You need to save the output of a data analysis to a CSV file, or read a configuration file to set up a new service.

Quick Start

Use the file skill to read the first 10 lines of the file located at /home/user/config.yaml.

Frequently Asked Questions about file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read specific lines from a local configuration file?

You can read local files by retrieving text content with an optional line range specification, allowing you to target exact lines in a configuration file. This simplifies accessing local files without complex command-line interactions.

Can I append data to an existing file without overwriting it?

Yes, you can write data to local files using either overwrite or append modes. This ensures new data is added to an existing file without losing the original content, while also supporting automatic directory creation.

What is the best way to list directory contents recursively with pattern matching?

Listing directory contents recursively with pattern matching is the best way to explore directory structures. You can filter files by specific patterns during traversal to quickly locate targeted project files.

Does this file management approach support automatic directory creation when writing?

Yes, this file management approach supports automatic directory creation when writing data. It allows you to save data to files and automatically generate the required directory structure during the process.

Why use programmatic file system access instead of command-line interactions?

Programmatic file system access simplifies common operations like reading, writing, and listing files without complex command-line interactions. It is essential for automating tasks involving configuration management, log processing, and data persistence.