notebook-workflow
Skill86 starsChanged 51 days agoMITView on GitHub
Use this when creating, editing, executing, or reviewing Jupyter notebooks — including cell structure, kernel management, extracting reusable logic to src/, and ensuring notebooks are restartable.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analysis-reportingSkill
- causal-inference-diagnosticsSkill
- dataframe-polarsSkill
- path-and-ioSkill
- plan-analysisSkill
- predictive-modeling-diagnosticsSkill
- prepare-prSkill
- python-project-opsSkill
- python-styleSkill
- review-sqlSkill
- run-edaSkill
- run-modelingSkill
- safe-data-handlingSkill
- simulation-optimization-diagnosticsSkill
- sql-analysisSkill
- statistical-inference-diagnosticsSkill
- statistical-ml-reviewSkill
- summarize-analysisSkill
- sync-agent-docsSkill
- unsupervised-eda-diagnosticsSkill
- update-agent-docsSkill
- visualizationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when creating, editing, executing, or reviewing Jupyter notebooks.
- Distinctive: line 17
Keep notebooks restartable from a clean kernel (Kernel → Restart & Run All must work).
- Distinctive: line 18
Avoid hidden state — do not rely on cells being run in a non-linear order.
- Distinctive: line 19
Do not include secrets or customer-level records in notebook outputs.
- Very specific: line 20
Prefer saving final charts and tables to outputs/.
- Distinctive: line 32
Use papermill for parameterized notebook execution when automation is needed.
- Distinctive: line 49
Imports: All imports in the first code cell.
- Distinctive: line 57
Ensure no credentials or PII in cell outputs.
- Distinctive: line 58
Verify the notebook runs end-to-end with a fresh kernel.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Notebook Workflow
Use this skill when creating, editing, executing, or reviewing Jupyter notebooks.
Purpose of Notebooks
- Notebooks are for exploration and communication.
- Reusable logic should be extracted to
src/analysis_project/.
Rules
- Keep notebooks restartable from a clean kernel (Kernel → Restart & Run All must work).
- Avoid hidden state — do not rely on cells being run in a non-linear order.
- Do not include secrets or customer-level records in notebook outputs.
- Prefer saving final charts and tables to
outputs/.
Naming Convention
NNN_short_description.ipynbExample: 001_data_exploration.ipynb, 002_feature_analysis.ipynb
Automation
- Use papermill for parameterized notebook execution when automation is needed.
uv run papermill notebooks/input.ipynb notebooks/output.ipynb -p param_name valueStructure
Header cell (Markdown): Title, author, date, objective.
# タイトル - **作成者**: 名前 - **作成日**: YYYY-MM-DD - **目的**: この分析で明らかにしたいこと- Imports: All imports in the first code cell.
- Configuration: Parameters, paths, constants.
- Analysis: Exploratory or analytical cells.
- Summary: Key findings and next steps.
Cleanup Before Commit
- Clear large outputs that are not essential for review.
- Ensure no credentials or PII in cell outputs.
- Verify the notebook runs end-to-end with a fresh kernel.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

