Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

data-science-notebooks数据科学笔记本

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

222

周安装

9

GitHub Stars

公开资料未说明

下载量

70
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-science-notebooks(数据科学笔记本)
来源仓库:https://github.com/legout/data-platform-agent-skills
仓库路径:skills/data-science-notebooks
安装命令:
npx skills add https://github.com/legout/data-platform-agent-skills --skill data-science-notebooks
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/legout/data-platform-agent-skills --skill data-science-notebooks

简介

创建可复现的数据分析笔记本,支持交互式探索与结果可视化。

  • 适用于教学演示、原型开发与利益相关者沟通等多种用途。
  • 集成 JupyterLab、Marimo 等工具选型指南与结构化文档规范。
  • 强调代码与叙事结合,提升分析过程透明度和协作效率。
  • 安装方式为 GitHub 技能库引用,支持本地环境直接运行。

SKILL.md

Interactive Notebooks

Use this skill for creating reproducible, well-structured notebooks for data exploration, analysis, and communication.

When to use this skill

  • Exploratory analysis — interactively investigate data
  • Reproducible research — document methodology with code and results
  • Teaching/demos — explain concepts with executable examples
  • Stakeholder communication — share insights with narrative + visuals
  • Prototyping — quickly iterate on data transformations or models

Tool selection

ToolBest ForKey Feature
JupyterLabTraditional data science, extensions ecosystemFull IDE experience
marimoReproducible notebooks, reactive executionPython-native, version-control friendly
VS Code + JupyterIDE-native notebook experienceIntellisense, debugging, git integration
Google ColabCloud GPUs, sharing, collaborationFree TPU/GPU, easy sharing

Core principles

1) Structure for readability

# Title: Clear project/question description

## Setup
Imports and configuration

## Data Loading
Load and validate data

## Analysis
- Subsection per question/hypothesis
- Clear markdown explanations
- Visualizations with interpretations

## Conclusions
Key findings and next steps

2) Ensure reproducibility

# Set random seeds
import numpy as np
import random

np.random.seed(42)
random.seed(42)

# Pin versions in requirements.txt or environment.yml
# requirements.txt example:
# pandas==2.1.0
# scikit-learn==1.3.0

3) Keep cells focused

  • One concept per cell
  • Avoid cells with >50 lines
  • Refactor helper functions to .py files

4) Never hardcode secrets

# ✅ Use environment variables
import os

api_key = os.environ.get("OPENAI_API_KEY")

# ❌ Never do this
api_key = "sk-abc123..."

Jupyter best practices

Magic commands (Jupyter/IPython)

# In a Jupyter cell (these are IPython magics, not standard Python)
# Auto-reload modules during development
# %load_ext autoreload
# %autoreload 2

# Timing
# %timeit function_call()

# Debugging
# %debug

# Environment info (requires watermark package)
# %watermark -v -m -p numpy,pandas,sklearn

Clean outputs before git

# Using nbstripout
pip install nbstripout
nbstripout --install

# Or pre-commit hook
pip install pre-commit
pre-commit install

marimo advantages

Reactive execution

# marimo notebook - cells auto-recompute when dependencies change
import marimo as mo

slider = mo.ui.slider(1, 100, value=50)
slider  # Display the slider

# This cell re-runs automatically when slider changes
df_filtered = df[df['value'] > slider.value]

Version control friendly

  • Pure Python (.py files)
  • No output blobs in git
  • Readable diffs

Convert Jupyter to marimo

marimo convert notebook.ipynb -o notebook.py

Common anti-patterns

  • ❌ Running cells out of order (Jupyter)
  • ❌ Giant cells with mixed concerns
  • ❌ Hardcoded file paths
  • ❌ No markdown explanations
  • ❌ Committing large output files
  • ❌ Inline data (use data/ folder)

Progressive disclosure

  • ../references/jupyter-advanced.md — Widgets, extensions, debugging
  • ../references/marimo-guide.md — Reactive patterns, UI components
  • ../references/notebook-testing.md — Unit tests for notebook code
  • ../references/sharing-publishing.md — nbconvert, Quarto, Voilà

Related skills

  • @data-science-eda — Exploration patterns for notebooks
  • @data-science-interactive-apps — Convert notebooks to apps
  • @data-engineering-core — Production-ready code patterns

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.07%
按下载量换算25

Claude

28.94%
按下载量换算20

Cursor

18.32%
按下载量换算13

Gemini CLI

8.36%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills