file-processing
БесплатноЗапускает вложенные скриптыНе проверенProcess and analyze CSV, JSON, and text files with data transformation, cleaning, analysis, and visualization capabilities
Об этом скилле
File Processing Skill
Purpose
Process structured data files (CSV, JSON, text) with comprehensive capabilities for data cleaning, transformation, analysis, and export. This skill enables working with data files without requiring users to write code.
When to Use This Skill
Use this skill when you need to:
- Load and parse CSV or JSON files
- Clean and transform data
- Perform statistical analysis
- Filter, sort, or aggregate data
- Merge or join datasets
- Convert between formats (CSV ↔ JSON)
- Generate summary reports
Capabilities
1. Data Loading
Supported formats:
- CSV files: Any delimiter (comma, tab, semicolon, etc.)
- JSON files: Single objects or arrays of objects
- Text files: Custom delimited formats
2. Data Cleaning
Available operations:
- Remove duplicate rows
- Handle missing values (drop, fill, interpolate)
- Normalize text (trim whitespace, standardize case)
- Convert data types
- Remove outliers
- Validate data against rules
3. Data Transformation
Available operations:
- Filter: Select rows based on conditions
- Select: Choose specific columns
- Sort: Order by one or more columns
- Group: Aggregate data by categories
- Pivot: Reshape data (wide ↔ long format)
- Merge: Combine multiple datasets
- Calculate: Add derived columns
4. Data Analysis
Available analyses:
- Descriptive statistics (mean, median, std, etc.)
- Frequency distributions
- Correlation analysis
- Trend detection
- Missing data analysis
- Data quality assessment
5. Export
Output formats:
- CSV files
- JSON files (objects or arrays)
- Markdown tables
- Summary reports
Instructions for Execution
When this skill is activated, follow these steps:
Step 1: Understand the Request
Ask clarifying questions if needed:
- What file(s) need to be processed?
- What specific analysis or transformation is required?
- What output format is desired?
- Are there any specific requirements or constraints?
Step 2: Load the Data
Use shell to load and process data:
# For CSV files
import csv
# Read from file path
with open('data.csv', 'r') as f:
reader = csv.DictReader(f)
data = list(reader)
# For JSON files
import json
with open('data.json', 'r') as f:
data = json.load(f)
Alternatively, use the supporting scripts:
# Execute the helper script
("scripts/process.py")
Step 3: Perform Operations
Apply the requested transformations or analyses:
# Example: Filter and aggregate
filtered = [row for row in data if float(row['amount']) > 100]
# Example: Calculate statistics
from statistics import mean, median
amounts = [float(row['amount']) for row in data]
avg = mean(amounts)
med = median(amounts)
Step 4: Generate Output
Format results according to user needs:
# As markdown table
def to_markdown_table(data, columns=None):
if not data:
return "No data"
if columns is None:
columns = list(data[0].keys())
# Header
header = "| " + " | ".join(columns) + " |"
separator = "| " + " | ".join(["---"] * len(columns)) + " |"
# Rows
rows = []
for row in data:
row_str = "| " + " | ".join(str(row.get(col, "")) for col in columns) + " |"
rows.append(row_str)
return "\n".join([header, separator] + rows)
print(to_markdown_table(filtered))
Common Use Cases
Use Case 1: CSV Analysis
# Example: Analyze sales data
import csv
from io import StringIO
from statistics import mean, sum as total
# Load CSV
reader = csv.DictReader(StringIO(file_content))
data = list(reader)
# Calculate metrics
total_sales = sum(float(row['amount']) for row in data)
avg_sales = mean(float(row['amount']) for row in data)
unique_customers = len(set(row['customer_id'] for row in data))
print(f"Total Sales: ${total_sales:,.2f}")
print(f"Average Sale: ${avg_sales:,.2f}")
print(f"Unique Customers: {unique_customers}")
Use Case 2: Data Filtering
# Example: Filter records by criteria
filtered = [
row for row in data
if row['status'] == 'active' and float(row['score']) >= 80
]
print(f"Found {len(filtered)} matching records")
Use Case 3: Data Grouping
# Example: Group and aggregate
from collections import defaultdict
grouped = defaultdict(list)
for row in data:
grouped[row['category']].append(float(row['value']))
summary = {}
for category, values in grouped.items():
summary[category] = {
'count': len(values),
'total': sum(values),
'average': sum(values) / len(values)
}
for category, stats in summary.items():
print(f"{category}: {stats['count']} items, avg = {stats['average']:.2f}")
Use Case 4: Format Conversion
# Example: CSV to JSON
import csv
import json
from io import StringIO
reader = csv.DictReader(StringIO(file_content))
data = list(reader)
# Convert to JSON
json_output = json.dumps(data, indent=2)
print(json_output)
``
Установить file-processing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
shellВложенные файлы
FAQ
Что делает скилл file-processing?
Process and analyze CSV, JSON, and text files with data transformation, cleaning, analysis, and visualization capabilities
Как установить скилл file-processing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл file-processing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic