for-each-line

Process each line of a file sequentially with AI transformation or extraction.

45|50|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/zocomputer/skills --skill for-each-line
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: for-each-line
Source: https://github.com/zocomputer/skills/tree/main/Official/zo-for-each-line
Command: npx skills add https://github.com/zocomputer/skills --skill for-each-line

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the processing of individual lines within a file, allowing for transformation or extraction of specific information from each line sequentially.

Core Features & Use Cases

  • Line-by-Line Transformation: Apply AI-driven changes to each line of a text file.
  • Data Extraction: Extract specific data points from every line in a file.
  • Error Handling: Provides options to halt on error or continue processing.
  • Use Case: You have a log file with thousands of entries. Use this Skill to extract the timestamp and error message from each line, saving them to a new file for analysis.

Quick Start

Use the for-each-line skill to extract the email address from each line in the file named 'contacts.txt' and save the results to 'emails.txt'.

Frequently Asked Questions about for-each-line

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

FAQPage Schema
How do I extract specific data from each line in a text file?

To extract data from each line in a text file, you can use automated line-by-line processing with AI to apply custom instructions and save targeted results to a new file. This approach sequentially reads entries to isolate specific information like timestamps or email addresses.

What is the best way to automate text processing for large log files?

Automating text processing for large log files is best handled by sequential line-by-line AI transformation, which provides incremental writes and error checking. This ensures robust batch processing by evaluating each entry individually rather than loading the entire file.

Can I apply AI-driven data transformation to every line in a file?

Yes, you can apply AI-driven data transformation to every line in a file by sequentially processing each entry with custom instructions. This allows targeted modifications or data extraction from text files while maintaining structured output formats.

Does line-by-line file processing stop when it encounters an error?

Line-by-line file processing includes error handling options that allow you to either halt on error or continue processing. This ensures robust batch processing by letting you decide whether to stop for critical failures or skip problematic entries.

How do I save extracted results incrementally during batch processing?

To save extracted results incrementally during batch processing, the line-by-line AI processing mechanism uses incremental writes as it evaluates each entry. This ensures data is preserved continuously throughout the text file transformation.