file-utils

Read, write, list, and search files using Node.js scripts.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/sahiixx/moltworker --skill file-utils
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-utils
Source: https://github.com/sahiixx/moltworker/tree/main/skills/file-utils
Command: npx skills add https://github.com/sahiixx/moltworker --skill file-utils

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a concise suite of file-system utilities to simplify reading, writing, listing, and searching files from the command line, reducing boilerplate and manual file-handling tasks.

Core Features & Use Cases

  • Read, write, list, and search files using lightweight Node.js scripts.
  • Recursive directory listing with optional tree view and JSON output to fit into automation pipelines.
  • Use case: quickly audit a project by listing files, reading a few lines, updating a config file, or locating a pattern across sources.

Quick Start

  • List Directory: node /path/to/skills/file-utils/scripts/list.js /path/to/directory
  • Read File: node /path/to/skills/file-utils/scripts/read.js /path/to/file.txt
  • Write File: node /path/to/skills/file-utils/scripts/write.js /path/to/file.txt "Content to write"
  • Search Files: node /path/to/skills/file-utils/scripts/search.js /path/to/dir "pattern" --content

Frequently Asked Questions about file-utils

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

FAQPage Schema
How do I automate reading, writing, and searching files from the command line using Node.js?

You can automate local file tasks using simple Node.js CLI scripts that read, write, list, and search files recursively. They run without external dependencies, utilizing built-in modules to reduce manual boilerplate in development and testing workflows.

What is the best way to recursively list a directory and output JSON for automation pipelines?

Recursively listing a directory with JSON output is handled by running a lightweight Node.js script. This provides an optional tree view and formats the filesystem structure directly for integration into automated data preparation pipelines.

Can I search for a specific text pattern across local source files without installing external dependencies?

Yes, you can search for specific text patterns across local source files without external dependencies. The search utility uses only Node.js built-in modules to locate matching content within directories, fitting dependency-free workflows.

Do I need to install any npm packages to use these command line file utilities?

No, you do not need to install npm packages to use these command line file utilities. They rely entirely on Node.js built-in modules, allowing you to execute file operations directly without adding external dependencies to your project.

How do I quickly audit a project by reading specific lines and updating config files via CLI?

To audit a project via CLI, run dedicated Node.js scripts to list files, read specific lines, and write updates to config files. This provides a fast, dependency-free method to review and modify local filesystem contents.