jupyter-notebook by openai/skills
npx skills add https://github.com/openai/skills --skill jupyter-notebook创建整洁、可复现的 Jupyter 笔记本,主要用于两种模式:
推荐使用捆绑的模板和辅助脚本,以确保结构一致并减少 JSON 错误。
.ipynb 笔记本。experiment。tutorial。export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export JUPYTER_NOTEBOOK_CLI="$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py"
用户范围的技能安装在 $CODEX_HOME/skills 下(默认:)。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
~/.codex/skillsexperiment 或 tutorial。明确目标、受众以及“完成”的标准。uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind experiment \
--title "Compare prompt variants" \
--out output/jupyter-notebook/compare-prompt-variants.ipynb
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind tutorial \
--title "Intro to embeddings" \
--out output/jupyter-notebook/intro-to-embeddings.ipynb
3. 用可运行的小步骤填充笔记本。保持每个代码单元格专注于一个步骤。添加简短的 Markdown 单元格来解释目的和预期结果。如果简短总结可行,则避免冗长、杂乱的输出。
4. 应用正确的模式。对于实验,遵循 references/experiment-patterns.md。对于教程,遵循 references/tutorial-patterns.md。
5. 处理现有笔记本时安全地进行编辑。保留笔记本结构;除非能改善自上而下的叙述逻辑,否则避免重新排序单元格。优先进行有针对性的编辑,而不是完全重写。如果必须编辑原始 JSON,请先查看 references/notebook-structure.md。
6. 验证结果。在环境允许的情况下,从头到尾运行笔记本。如果无法执行,请明确说明并指出如何在本地进行验证。使用 references/quality-checklist.md 中的最终检查清单。
assets/experiment-template.ipynb 和 assets/tutorial-template.ipynb。脚本路径:
$JUPYTER_NOTEBOOK_CLI(安装默认值:$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py)tmp/jupyter-notebook/ 存放中间文件;完成后删除。output/jupyter-notebook/ 下。ablation-temperature.ipynb)。推荐使用 uv 进行依赖管理。
用于本地笔记本执行的可选 Python 包:
uv pip install jupyterlab ipykernel
捆绑的脚手架脚本仅使用 Python 标准库,不需要额外的依赖项。
无需必需的环境变量。
references/experiment-patterns.md:实验结构和启发式方法。references/tutorial-patterns.md:教程结构和教学流程。references/notebook-structure.md:笔记本 JSON 结构和安全编辑规则。references/quality-checklist.md:最终验证检查清单。每周安装次数
633
仓库
GitHub 星标数
15.1K
首次出现
2026年2月1日
安全审计
安装于
codex565
opencode550
gemini-cli536
github-copilot519
kimi-cli503
amp500
Create clean, reproducible Jupyter notebooks for two primary modes:
Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.
.ipynb notebook from scratch.experiment.tutorial.export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export JUPYTER_NOTEBOOK_CLI="$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py"
User-scoped skills install under $CODEX_HOME/skills (default: ~/.codex/skills).
Lock the intent. Identify the notebook kind: experiment or tutorial. Capture the objective, audience, and what "done" looks like.
Scaffold from the template. Use the helper script to avoid hand-authoring raw notebook JSON.
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind experiment \
--title "Compare prompt variants" \
--out output/jupyter-notebook/compare-prompt-variants.ipynb
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind tutorial \
--title "Intro to embeddings" \
--out output/jupyter-notebook/intro-to-embeddings.ipynb
3. Fill the notebook with small, runnable steps. Keep each code cell focused on one step. Add short markdown cells that explain the purpose and expected result. Avoid large, noisy outputs when a short summary works.
Apply the right pattern. For experiments, follow references/experiment-patterns.md. For tutorials, follow references/tutorial-patterns.md.
Edit safely when working with existing notebooks. Preserve the notebook structure; avoid reordering cells unless it improves the top-to-bottom story. Prefer targeted edits over full rewrites. If you must edit raw JSON, review references/notebook-structure.md first.
Validate the result. Run the notebook top-to-bottom when the environment allows. If execution is not possible, say so explicitly and call out how to validate locally. Use the final pass checklist in references/quality-checklist.md.
assets/experiment-template.ipynb and assets/tutorial-template.ipynb.Script path:
$JUPYTER_NOTEBOOK_CLI (installed default: $CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py)tmp/jupyter-notebook/ for intermediate files; delete when done.output/jupyter-notebook/ when working in this repo.ablation-temperature.ipynb).Prefer uv for dependency management.
Optional Python packages for local notebook execution:
uv pip install jupyterlab ipykernel
The bundled scaffold script uses only the Python standard library and does not require extra dependencies.
No required environment variables.
references/experiment-patterns.md: experiment structure and heuristics.references/tutorial-patterns.md: tutorial structure and teaching flow.references/notebook-structure.md: notebook JSON shape and safe editing rules.references/quality-checklist.md: final validation checklist.Weekly Installs
633
Repository
GitHub Stars
15.1K
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
codex565
opencode550
gemini-cli536
github-copilot519
kimi-cli503
amp500
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
98,500 周安装
合作与业务拓展指南:9位产品负责人教你建立战略伙伴关系,达成业务交易
656 周安装
企业级智能体运维指南:云端AI系统生命周期管理、可观测性与安全控制
657 周安装
Amazon Aurora DSQL 技能:无服务器分布式 SQL 数据库管理与 MCP 工具集成
SQL查询优化指南:PostgreSQL、Snowflake、BigQuery高性能SQL编写技巧与方言参考
657 周安装
Gemini Live API 开发指南:实时语音视频交互、WebSockets集成与SDK使用
657 周安装
WordPress渗透测试指南:WPScan工具使用与漏洞扫描实战教程