本文へ移動
cccskills
無料GitHub で公開

read_file_and_add

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.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md2.8 KB
  • assets/icon.png26.5 KB
  • scripts/process_numbers.py4.5 KB
  • skill.json1.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Add Numbers by 10

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

Features

  • Auto-detect delimiters: Supports comma, space, newline, tab and other separators
  • Preserve original format: Automatically detect and maintain original separator format
  • Flexible input: Support command line arguments or interactive input
  • Error handling: Validate file existence and number format

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:

  • input.txt: Text file containing numbers (e.g., 1,2,3 or 1 2 3 or one number per line)
  • output.txt: Output file path for processed results

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:

  • Comma (,) - e.g., 1,2,3,4
  • Space ( ) - e.g., 1 2 3 4
  • Newline - one number per line
  • Tab (\t) - e.g., 1 2 3
  • Multiple spaces - automatically handled

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:

  • If input is single line with commas, output is single line with commas
  • If input is one number per line, output is one number per line
  • If input has mixed structure, output maintains same structure

Error Handling

Errors and stops on:

  • Input file does not exist
  • Input file is empty
  • File contains non-numeric characters (letters, special symbols)

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>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

领域缩略语展开 Skill:按内置或外部词典将独立缩略语替换为全称,可选在全称后保留原缩写。 适用于技术文本、论文摘要和业务记录中的缩写清洗;不负责模糊缩写消歧或大小写无关替换。

日本語の概要は準備中です。原文の説明を表示しています。

cas-bigdatalab/piflow5412026年9月22日 更新

字母数字比例过滤器。过滤文本中字母/数字比例不在指定范围内的样本。 当用户提到文本过滤、比例筛选、字母比例、数字比例、清理乱码文本等需求时使用此skill。 即使用户没有明确说出"过滤",只要任务涉及根据文本中字母或数字的比例来筛选数据, 就应该使用此skill。

日本語の概要は準備中です。原文の説明を表示しています。

cas-bigdatalab/piflow5412026年9月22日 更新

平均行长度过滤器。过滤文本平均行长度不在指定范围内的样本。 当用户提到行长度过滤、平均行长度、文本行长度筛选、按行筛选等需求时使用此skill。 即使用户没有明确说出"平均行长度",只要任务涉及根据文本中每行的平均长度来筛选数据, 就应该使用此skill。

日本語の概要は準備中です。原文の説明を表示しています。

cas-bigdatalab/piflow5412026年9月22日 更新

批量文件清单采集器。扫描一个或多个本地文件/目录,或从任务列表加载路径, 按支持的扩展名生成文件元信息清单,供后续文本、表格、文档、图像等采集流程继续处理。 当用户需要批量盘点待采集文件、生成本地文件 manifest、统计输入文件类型或为后续采集算子准备文件清单时使用此 skill。

日本語の概要は準備中です。原文の説明を表示しています。

cas-bigdatalab/piflow5412026年9月22日 更新

批量数据均匀分片工具。读取json/jsonl/csv输入,按份数或固定条数切成多个子文件,输出一个清单JSON供下游节点消费。 当用户提到数据分割、批量拆分、数据分片、均匀分块等需求时使用此skill。 即使用户没有明确说出"分片",只要任务是把整份批量数据均匀拆成多个文件,就应该使用此skill。 不负责按字段分组导出或随机采样。

日本語の概要は準備中です。原文の説明を表示しています。

cas-bigdatalab/piflow5412026年9月22日 更新

本skill是用于单细胞测序数据分析的专用技能,首先需要用户上传需要处理的单细胞测序数据,再对经过预处理的单细胞表达数据进行自动化细胞类型注释。它通过基因比对、数据标准化、降维等一系列流程,将细胞聚类结果与已知参考数据库进行匹配,从而为每个细胞分配生物学功能标签。

日本語の概要は準備中です。原文の説明を表示しています。

cas-bigdatalab/piflow5412026年9月22日 更新

cas-bigdatalab のスキルをすべて見る

このスキルの問題を報告する