jupyter-notebooks
できること
このスキルは、説明、SQLまたはPythonのコード、結果を組み合わせたJupyterノートブックを作ります。他の人がレビューし、もう一度実行できる分析がほしいアナリスト向けです。
使う場面
- ✓他の人が再実行できるノートブックとして分析を残したいとき。
- ✓数字がどのように計算されたかの、監査の記録が必要なとき。
- ✓レポートや提案に添える、補助のノートブックがほしいとき。
スキルのリンク
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/jupyter-notebooks/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“売上のテーブルから月ごとの継続率を計算するノートブックを作ってください。チームが再実行できるようにしたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、まず分かりやすい要約を置き、その後にコードのセルを順番に並べてノートブックを作ります。上から下まで実行して、動くことを確かめます。実行できない場合は、結果を再現するための手順を一覧にします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Related Skills
Use $validate-data when notebook results support a recommendation, shared claim, or decision.
Jupyter Notebooks
Create clean, reproducible Jupyter notebooks that are easy to skim, rerun, and handoff. Treat the notebook as a reader-facing analysis artifact, not a scratchpad dump. Notebook work is not complete until the notebook executes successfully top-to-bottom, or the execution gap is called out with the exact validation steps needed to reproduce it.
Workflow
Lock the notebook mode and scope.
Decide whether the notebook is an analysis report, experiment log, diagnostic notebook, data-quality check, market-sizing calculation, model exploration, tutorial, or companion artifact for a report. Identify the reader, decision, expected handoff, required inputs, and whether the task calls for a new notebook or targeted edits to an existing one.
Inspect or scaffold with notebook-safe tooling.
Prefer JupyterLab,
nbformat,nbclient, or an existing scaffold utility over hand-editing raw JSON. When editing an existing notebook, preserve its intent and minimize JSON churn. Avoid reordering cells unless it clearly improves the top-to-bottom story. If raw JSON editing is unavoidable, validate the notebook structure before finishing.Structure the notebook for the chosen mode.
For analytical notebooks, default to:
## tl;dr## Context & Methods## Data## Results## Takeaways
Write
tl;drand takeaways after reviewing executed outputs. Use concrete observed values, visible patterns, rows, or charts, not assumptions. Include a### Key Assumptionssubsection inContext & Methodswhen assumptions affect correctness.For tutorials or walkthroughs, adapt the same discipline to a teaching flow:
## Goal## Setup## Steps## Checks## Next Steps
Build a clear data and computation path.
Separate setup, imports, parameters, data loading, data preparation, calculations, visualizations, and interpretation. If the notebook uses both SQL and Python, keep complex SQL in SQL cells or separate query files rather than large embedded Python strings unless there is a clear reason. Use descriptive variable names and keep each code cell focused on one step.
Use data sources deliberately.
When a notebook needs table data, first use
~~structured_datato confirm table choice, schema, partition filters, sample rows, and query-submission policy. Use the relevant source connector when available, then fall back to exports or pasted SQL when needed. Use~~operations_logsfor freshness or lineage checks when they matter. Record query permalinks, request IDs, source paths, dashboard links, extract names, or other source artifacts in the notebook context for any executed result that supports the analysis. Keep heavy queries filtered and bounded instead of turning the notebook into a broad live-source scan.Make cells readable and bounded.
Add concise markdown headers before most code cells. Keep headers brief and action-oriented, such as
### 1. Load Data,### 2. Validate Inputs, or### 3. Plot Results. Favor several short cells over one large mixed-purpose cell. Keep prose short: explain purpose, assumptions, and expected result, not every line of code. Split multiple tables or charts across separate cells instead of dumping all outputs from one cell.Validate results before writing conclusions.
Check that key numbers, charts, and takeaways match executed outputs. Bound raw debug output, oversized tables, and noisy logs. If a result is surprising, add a local reasonableness check, small sample inspection, or reconciliation against a trusted source before promoting it to the summary.
Execute and record validation status.
Run the notebook top-to-bottom when the environment allows:
python -m jupyter nbconvert --execute --to notebook --inplace path/to/notebook.ipynbOptional local setup when needed:
uv pip install jupyterlab nbformat nbclient ipykernelIf execution is not possible, say so explicitly and provide the exact command, missing dependency, credential, data access, kernel, or environment step needed to validate locally.
Standards
Notebook Structure
- Make the default top-to-bottom read clear before the reader starts executing cells out of order.
- Put executive summary material at the t
よくある質問
ノートブックは実行できる必要がありますか?
はい。上から下まで実行できるか、そうでない理由が説明されるまで、ノートブックの作業は完了とみなされません。
すでに持っているノートブックを編集できますか?
はい。対象を絞った編集ができ、ノートブックの元の意図を保ちます。
いつ結果を検証すべきですか?
結果が提案や判断を支える場合には、ノートブックを検証するよう求めています。
詳細
作者による元の説明
Create, edit, or validate reproducible SQL or Python notebooks. Use for notebooks, SQL/Python scratchpads, reproducible exploration, audit trails, or runnable companions where the analysis should be reviewable or rerunnable.
repo: XiaomiMiMo/MiMo-Code
人気
- GitHubのスター
- 14k
- ランキング
- #11318
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
effect
14kエージェントが、Effect TypeScriptフレームワークに関する質問に、記憶に頼らず、ソースコードとドキュメントを確認して答えられるよう支援します。
arxiv
14kエージェントが、arXivの学術論文を検索、閲覧、引用、追跡できるよう支援します。要約、BibTeXの引用、PDFのダウンロード、引用リンクを扱います。
claude-code
14kエージェントが、Claude Codeのコマンドラインツールにコーディング作業を任せられるよう支援します。一回だけの実行、対話セッション、バックグラウンドのジョブのいずれにも対応します。
codex
14kエージェントが、チャット画面なしでOpenAI Codexのコマンドラインツールを実行できるよう支援します。コーディングの作業、スクリプト、自動化されたパイプラインに使えます。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。