read_files_batch

Read multiple files concurrently and map each path to content or error status.

8|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/OpenAuthority/clawthority --skill read-files-batch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: read_files_batch
Source: https://github.com/OpenAuthority/clawthority/tree/main/examples/skills/read_files_batch
Command: npx skills add https://github.com/OpenAuthority/clawthority --skill read-files-batch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reads the UTF-8 text content of multiple files in a single concurrent operation, returning a mapping of paths to their content or error status.

Core Features & Use Cases

  • Concurrently reads all specified files using Promise.allSettled.
  • Returns a results object mapping each requested path to either a success or error entry.
  • A failure on one file does not prevent the remaining files from being read.
  • Does not modify any files.
  • Use cases include batch-reading source files, configurations, or text data in a single operation.

Quick Start

Read the specified files concurrently and obtain a mapping of each path to its content or error status.

Frequently Asked Questions about read_files_batch

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

FAQPage Schema
What is the best way to read multiple files concurrently in JavaScript?

Batch reading multiple files concurrently uses Promise.allSettled to execute parallel filesystem operations. It returns a mapping of each requested path to its content or error status, ensuring a single file failure does not block the remaining reads.

How do I read a list of configuration files in a single operation?

To read a list of configuration files in a single operation, you pass the file paths to a concurrent batch reader. It processes all specified files simultaneously and returns an object mapping each path to its UTF-8 text content or specific error details.

Does one unreadable file stop a concurrent batch read operation?

No, one unreadable file does not stop a concurrent batch read operation. By implementing Promise.allSettled, the process continues regardless of individual failures, returning per-file results with either content or error details for each path.

How does Promise.allSettled handle file read errors during bulk text retrieval?

Promise.allSettled handles file read errors during bulk text retrieval by capturing each failure individually. It maps the error status to the specific file path, allowing successful reads to return content while isolating issues without interrupting the batch.

Can I modify files while performing concurrent batch reads?

No, you cannot modify files during concurrent batch reads because the operation is strictly read-only. It solely retrieves UTF-8 text content and returns a mapping of paths to content or error status without modifying the filesystem.