jupyter-notebooks
Skill này làm gì
Skill này xây dựng notebook Jupyter kết hợp phần giải thích, mã SQL hoặc Python và kết quả. Skill dành cho nhà phân tích muốn một phân tích mà người khác có thể xem lại và chạy lại.
Khi nào nên dùng
- ✓Khi bạn muốn lưu một phân tích thành notebook để người khác chạy lại.
- ✓Khi bạn cần một dấu vết kiểm toán về cách một con số được tính.
- ✓Khi bạn muốn có một notebook đi kèm một báo cáo hoặc khuyến nghị.
Liên kết skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/jupyter-notebooks/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn một notebook tính tỷ lệ giữ chân hằng tháng từ bảng bán hàng, để nhóm tôi có thể chạy lại.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thiết lập notebook với phần tóm tắt rõ ràng ở đầu, sau đó là các ô mã theo thứ tự, và chạy từ trên xuống dưới để xác nhận nó hoạt động. Nếu không chạy được, agent liệt kê các bước cần để tái tạo kết quả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Notebook có bắt buộc chạy được không?
Skill nói công việc notebook chưa hoàn thành cho đến khi nó chạy từ trên xuống dưới, hoặc khoảng trống được giải thích.
Nó có sửa notebook tôi đã có không?
Có. Nó có thể chỉnh sửa có mục tiêu và giữ đúng ý định ban đầu của notebook.
Khi nào nên kiểm tra kết quả?
Skill nói nên kiểm tra notebook khi kết quả hỗ trợ một khuyến nghị hoặc quyết định.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11318
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
effect
14kGiúp agent của bạn trả lời câu hỏi về framework TypeScript Effect bằng cách kiểm tra mã nguồn và tài liệu, thay vì dựa vào trí nhớ.
arxiv
14kGiúp agent của bạn tìm, đọc, trích dẫn và theo dõi các bài báo học thuật trên arXiv, gồm tóm tắt, trích dẫn BibTeX, tải PDF và liên kết trích dẫn.
claude-code
14kGiúp agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Claude Code, dưới dạng chạy một lần, phiên tương tác hoặc tác vụ nền.
codex
14kGiúp agent của bạn chạy công cụ dòng lệnh OpenAI Codex mà không cần cửa sổ chat, cho tác vụ lập trình, tập lệnh và quy trình tự động.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.