Read file and add

From cas-bigdatalab/piflow · View interactive version

Read file and add is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. add all numbers in a text file by 10 and save to a new file. Use when user mentions read a file add numbers by 10, process number file, batch calculation.

How to use this skill

Skill file

Add Numbers by 10

Add all numbers in a text file by 10 and save to a new file.

Features

Usage

Method 1: Command Line Arguments (Recommended)

Call skill directly with input and output file paths:

/read_file_and_add input.txt output.txt

Parameters:

Method 2: Interactive Input

Call skill without parameters, then follow prompts:

/read_file_and_add

Then enter:

  1. Input file path
  2. Output file path

Supported Delimiters

Automatically detects:

Examples

Example 1: Comma Separated

Input file content:

1,2,3,4,5

Output file content:

11,12,13,14,15

Example 2: Space Separated

Input file content:

1.5 2.3 3.7

Output file content:

10.5 12.3 13.7

Example 3: Newline Separated

Input file content:

10
20
30

Output file content:

20
30
40

Example 4: Mixed Format

Input file content:

1,2 3
4,5

Output file content:

11,12 13
14,15

Output Format

Output file preserves same format as input:

Error Handling

Errors and stops on:

Technical Implementation

Uses Python script scripts/process_numbers.py to process file content, automatically detect delimiter type and maintain format consistency.

use command python scripts/process_numbers.py <input_file_path> <output_file_path>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.