For Each Line

Processes every line of a file one by one, transforming or extracting information from each line

46 stars 56 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zocomputer/skills --skill for-each-line
Manual install
git clone --depth 1 https://github.com/zocomputer/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/Official/zo-for-each-line ~/.claude/skills/for-each-line

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

Process files line-by-line using `zo` to transform or extract data from each line.

#### Notes on zo

`zo` is a command-line program that gives Zo access to Zo itself, with all the same prompts, tools, and power. It's located at `/usr/local/bin/zo`.

```bash
➜  ~ zo -h
usage: zo [-h] [--output-format OUTPUT_FORMAT] input

Call Zo AI with optional structured output

positional arguments:
  input                 Input text to send to Zo

options:
  -h, --help            show this help message and exit
  --output-format OUTPUT_FORMAT
                        JSON schema for structured output (optional)

Examples:
  zo "hello"
  zo "what's 2+2?" --output-format '{"type": "object", "properties": {"answer": {"type": "number"}}, "required": ["answer"]}'

output_format uses OpenAI's structured output JSON schema format.
Keep schemas flat (max 1-2 levels) for best results.
```

# Protocol

## Step 1: Ask clarifying questions

Do NOT assume. Ask the user:

- What should be extracted/transformed from each line?
- What format should the output be?
- What happens if a line fails - halt everything or continue?

## Step 2: Create the processing script

Create a script in the conversation workspace.

Requirements:

- Flat schemas: Keep `output_format` max 1-2 levels deep
- Never swallow errors: Use `check=True`, no try/except hiding failures
- Sequential processing: Each line waits for the previous (70s timeout per line)
Read the full skill on GitHub

Details

Skill name
for-each-line
Path
Official/zo-for-each-line/SKILL.md
License
MIT
Repo updated
29 July 2026

FAQ

What does the For Each Line skill do?

Processes every line of a file one by one, transforming or extracting information from each line

How do I install the For Each Line skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zocomputer/skills --skill for-each-line. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is For Each Line popular?

It lives in zocomputer/skills, which has 46 GitHub stars and 56 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.