Read file and multiply

From cas-bigdatalab/piflow · View interactive version

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

How to use this skill

Skill file

Multiply Numbers by 10

Multiply 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_multiply input.txt output.txt

Parameters:

Method 2: Interactive Input

Call skill without parameters, then follow prompts:

/read_file_and_multiply

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:

10,20,30,40,50

Example 2: Space Separated

Input file content:

1.5 2.3 3.7

Output file content:

15.0 23.0 37.0

Example 3: Newline Separated

Input file content:

10
20
30

Output file content:

100
200
300

Example 4: Mixed Format

Input file content:

1,2 3
4,5

Output file content:

10,20 30
40,50

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.