본문으로 건너뛰기
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>

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cas-bigdatalab/piflow5412026년 10월 17일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cas-bigdatalab/piflow5412026년 10월 17일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cas-bigdatalab/piflow5412026년 10월 17일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cas-bigdatalab/piflow5412026년 10월 17일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cas-bigdatalab/piflow5412026년 10월 17일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cas-bigdatalab/piflow5412026년 10월 17일 업데이트

cas-bigdatalab의 스킬 모두 보기

이 스킬의 문제 신고