data-analysis-jupyter — скилл для Claude Code: что делает
Задаёт правила для анализа данных, построения графиков и оформления блокнотов Jupyter с помощью pandas, numpy, matplotlib и seaborn. Помогает писать воспроизводимый код без лишних циклов.
npx skills add Mindrally/skills --skill data-analysis-jupyter -a claude-codeЧто делает data-analysis-jupyter
Скилл инструктирует модель писать код по стандарту PEP 8 с упором на функциональный стиль вместо классов. Он требует применять векторизованные операции numpy и method chaining в pandas: связывать .query(), .assign(), .groupby() и .agg() в цепочки. Для выборки строк используются .loc и .iloc.
Для графиков задан строгий стандарт. Модель сочетает точную настройку осей в matplotlib со статистическими графиками seaborn. Правила требуют проверять читаемость палитр при дальтонизме, подписывать оси и задавать размеры фигур. В блокнотах Jupyter код разбивается на модульные ячейки с пояснениями в markdown, а перед сохранением ядро перезапускается для проверки.
Позиция однозначна: вычисления через медленные циклы for скилл бракует в пользу векторизации. На объёмных файлах чтение нарезается на порции через chunksize, а категориальные столбцы сжимаются типом categorical. Для работы блокнотов в окружении понадобятся pandas, numpy, matplotlib, seaborn, jupyter, scikit-learn и scipy.
Какие задачи решает
- ускорить агрегацию таблиц через method chaining в pandas
- настроить палитру графиков в seaborn с учётом дальтонизма
- оптимизировать расход памяти при загрузке больших CSV-файлов
- проверить гипотезы с помощью тестов в scipy.stats
- навести порядок в ячейках Jupyter Notebook для воспроизводимости
Примеры запросов агенту
- Проанализируй датасет sales.csv, сгруппируй выручку по регионам через method chaining и выведи среднее
- Построй график распределения заказов в seaborn с палитрой для дальтоников и понятными подписями осей
- Оптимизируй чтение большого файла logs.csv через chunksize и переведи текстовые статусы в категориальный тип
Как установить data-analysis-jupyter
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill data-analysis-jupyter -a claude-code2Вручную: положить файлы
~/.claude/skills/data-analysis-jupyter/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/data-analysis-jupyter/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill data-analysis-jupyter -a codex2Вручную: положить файлы
.agents/skills/data-analysis-jupyter/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill data-analysis-jupyter -a cursor2Вручную: положить файлы
.cursor/skills/data-analysis-jupyter/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills data-analysis-jupyter2Вручную: положить файлы
.github/skills/data-analysis-jupyter/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill data-analysis-jupyter -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path data-analysis-jupyterВручную: положить файлы
.devin/skills/data-analysis-jupyter/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill data-analysis-jupyter -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора168
Похожие
Рядом в теме «Данные и базы»
Все скиллы по теме «Данные и базы» →Вопросы о data-analysis-jupyter
Как установить data-analysis-jupyter в Claude Code?
Запустите команду npx skills add Mindrally/skills --skill data-analysis-jupyter -a claude-code. Конфигурация сохранится в путь ~/.claude/skills/data-analysis-jupyter/SKILL.md.
Что делает data-analysis-jupyter?
Скилл обучает ИИ генерировать чистый код для анализа данных на Python. Он задаёт правила работы с pandas, numpy, scipy и графиками, исключая лишние циклы и запутанные классы.
Какие библиотеки нужны для работы?
Для запуска сгенерированного кода в окружении должны быть установлены pandas, numpy, matplotlib, seaborn, jupyter, scikit-learn и scipy.
Исходный текст
SKILL.md · Apache-2.0
---
name: data-analysis-jupyter
description: Expert guidance for data analysis, visualization, and Jupyter Notebook development with pandas, matplotlib, seaborn, and numpy.
metadata:
maintainer: Mindrally
source: https://github.com/Mindrally/skills
---
# Data Analysis and Jupyter Notebook Development
You are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on pandas, matplotlib, seaborn, and numpy.
## Key Principles
- Write concise, technical responses with accurate Python examples
- Prioritize readability and reproducibility in data analysis workflows
- Favor functional programming approaches; minimize class-based solutions
- Prefer vectorized operations over explicit loops for better performance
- Employ descriptive variable nomenclature reflecting data content
- Follow PEP 8 style guidelines for Python code
## Data Analysis and Manipulation
- Leverage pandas for data manipulation and analytical tasks
- Prefer method chaining for data transformations when possible
- Use loc and iloc for explicit data selection
- Utilize groupby operations for efficient data aggregation
- Handle datetime data with proper parsing and timezone awareness
```python
# Example method chaining pattern
result = (
df
.query("column_a > 0")
.assign(new_col=lambda x: x["col_b"] * 2)
.groupby("category")
.agg({"value": ["mean", "sum"]})
.reset_index()
)
```
## Visualization Standards
- Use matplotlib for low-level plotting control and customization
- Use seaborn for statistical visualizations and aesthetically pleasing defaults
- Craft plots with informative labels, titles, and legends
- Apply accessible color schemes considering color-blindness
- Set appropriate figure sizes for the output medium
```python
# Example visualization pattern
fig, ax = plt.subplots(figsize=(10, 6))
sns.barplot(data=df, x="category", y="value", ax=ax)
ax.set_title("Descriptive Title")
ax.set_xlabel("Category Label")
ax.set_ylabel("Value Label")
plt.tight_layout()
```
## Jupyter Notebook Practices
- Structure notebooks with markdown section headers
- Maintain meaningful cell execution order ensuring reproducibility
- Document analysis steps through explanatory markdown cells
- Keep code cells focused and modular
- Use magic commands like %matplotlib inline for inline plotting
- Restart kernel and run all before sharing to verify reproducibility
## NumPy Best Practices
- Use broadcasting for element-wise operations
- Leverage array slicing and fancy indexing
- Apply appropriate dtypes for memory efficiency
- Use np.where for conditional operations
- Implement proper random state handling for reproducibility
```python
# Example numpy patterns
np.random.seed(42) # For reproducibility
mask = np.where(arr > threshold, 1, 0)
normalized = (arr - arr.mean()) / arr.std()
```
## Error Handling and Validation
- Implement data quality checks at analysis start
- Address missing data via imputation, removal, or flagging
- Use try-except blocks for error-prone operations
- Validate data types and value ranges
- Assert expected shapes and column presence
```python
# Example validation pattern
assert df.shape[0] > 0, "DataFrame is empty"
assert "required_column" in df.columns, "Missing required column"
df["date"] = pd.to_datetime(df["date"], errors="coerce")
```
## Performance Optimization
- Employ vectorized pandas and numpy operations
- Utilize efficient data structures (categorical types for low-cardinality columns)
- Consider dask for larger-than-memory datasets
- Profile code to identify bottlenecks using %timeit and %prun
- Use appropriate chunk sizes for file reading
```python
# Example categorical optimization
df["category"] = df["category"].astype("category")
# Chunked reading for large files
chunks = pd.read_csv("large_file.csv", chunksize=10000)
result = pd.concat([process(chunk) for chunk in chunks])
```
## Statistical Analysis
- Use scipy.stats for statistical tests
- Implement proper hypothesis testing workflows
- Calculate confidence intervals correctly
- Apply appropriate statistical tests for data types
- Visualize distributions before applying parametric tests
## Dependencies
- pandas
- numpy
- matplotlib
- seaborn
- jupyter
- scikit-learn
- scipy
## Key Conventions
1. Begin analysis with exploratory data analysis (EDA)
2. Document assumptions and data quality issues
3. Use consistent naming conventions throughout notebooks
4. Save intermediate results for long-running computations
5. Include data sources and timestamps in notebooks
6. Export clean data to appropriate formats (parquet, csv)
Refer to pandas, numpy, and matplotlib documentation for best practices and up-to-date APIs.
© Mindrally · Apache-2.0 · Mindrally/skills