← 返回列表
全部 Skill›开发 Development›jupyter-notebooks

jupyter-notebooks

作者 @asgeirtj · 语言 en
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.
开发 Development包管理与发布通用执行命令访问网络待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
71,883
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Jupyter Notebooks

Create, edit, or validate reproducible SQL or Python notebooks.

Overall Instructions

  • Follow the shared Data instructions throughout this workflow.
  • When exporting a Data report or dashboard to a notebook, follow the Data App Contract for source preservation and export.

Dependencies

Apply the shared dependency resolution policy to the categories below.

  • Data Warehouse: Queryable source data, schemas, and saved queries for reproducible analysis.
  • Business Intelligence: Governed query results, semantic definitions, and reference reports.
  • Product Analytics: Event and behavioral data for notebook calculations and comparisons.
  • Knowledge & Files: Supplied datasets, existing notebooks, and methodological references.
  • Developer Tools: Source code, version history, and execution context needed to reproduce the analysis.

Related Guidance

Apply the shared analysis quality criteria when notebook results support a recommendation, shared claim, or decision. Keep the notebook's execution and result checks in this workflow.

Use $visualize-data for chart selection, analytical integrity, and visual QA when building notebook figures. Keep figures in notebook cell outputs using the notebook's plotting tools.

Workflow guidance

For an export of an existing Data dashboard or report, apply the export requirements below and the reproducible-analysis workflow that follows them.

Existing Data app export

  1. Resolve the existing app and preserve the requested tabs, filters, local chart selections, narrative, definitions, caveats, freshness, and provenance. For a published app, follow Published Site authentication before declaring a 401 blocked.
  2. Notebook export is the exception to Preserve chart images across non-PDF exports: keep explicit editable plotting code. Use the app's already-authorized reviewed data and chart definitions, preserve the selected view, and do not fetch fresh data just to export.
  3. Keep the notebook portable and rerunnable. Include the authorized inputs needed by the plots or identify the exact existing source artifact; do not depend on temporary image URLs or hidden execution state. Native chart PNGs can be comparison references, but must not replace the requested editable code.
  4. Validate the notebook format, execute it top-to-bottom, and inspect the resulting plots against the app's selected charts. Verify values, signs, units, labels, series, filters, and local chart selections. Report any execution or fidelity gap explicitly.

Reproducible analysis

Create clean, reproducible Jupyter notebooks that are easy to skim, rerun, and handoff. Make the findings visible through a clear summary, purposeful charts, and concise interpretation alongside inspectable code. Notebook work is not complete until the notebook executes successfully top-to-bottom and its saved presentation has been inspected, or the execution or inspection gap is called out with the exact validation steps needed to reproduce it.

Workflow

  1. 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.

  1. 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.

  1. Structure the notebook for the chosen mode.

For analytical notebooks, default to:

  1. ## tl;dr
  2. ## Context & Methods
  3. ## Data
  4. ## Results
  5. ## Takeaways

Write tl;dr and takeaways after reviewing executed outputs. Use concrete observed values, visible patterns, rows, or charts, not assumptions. Include a ### Key Assumptions subsection in Context & Methods when assumptions affect correctness.

For tutorials or walkthroughs, adapt the same discipline to a teaching flow:

  1. ## Goal
  2. ## Setup
  3. ## Steps
  4. ## Checks
  5. ## Next Steps
  1. 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.

  1. Use data sources deliberately.

When a notebook needs table data, first use ~~structured_data to 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_logs for 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

评论
Aasgeirtj
asgeirtj
asgeirtj/system_prompts_leaks
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@asgeirtj
所属大类开发 Development / 包管理与发布
国内可用性通用
最近源活动—
风险提示执行命令、访问网络
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。