Data analysis

From fastclaw-ai/fastclaw · View interactive version

Data analysis is an AI agent skill from the GitHub repository fastclaw-ai/fastclaw. Analyze data, process CSV/JSON files, compute statistics, and create data visualizations. Use when the user asks about data processing, statistics, or analysis.

How to use this skill

Skill file

Data Analysis Skill

Analyze and process data using Python in the sandbox.

Common Libraries

Install if needed: pip install pandas numpy matplotlib

Common Tasks

Read and analyze CSV

import pandas as pd
df = pd.read_csv('data.csv')
print(df.describe())
print(f"\nShape: {df.shape}")
print(f"\nColumns: {list(df.columns)}")
print(f"\nFirst 5 rows:\n{df.head()}")

Create visualization from data

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pandas as pd
import base64

df = pd.read_csv('data.csv')
df.plot(kind='bar', x='category', y='value', figsize=(10, 6))
plt.title('Data Overview')
plt.tight_layout()
plt.savefig('/tmp/chart.png', dpi=150)

with open('/tmp/chart.png', 'rb') as f:
    print(f'![chart](data:image/png;base64,{base64.b64encode(f.read()).decode()})')

JSON processing

import json
with open('data.json') as f:
    data = json.load(f)
# Process and analyze...

Guidelines

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.