Skip to content
Notebook KISS Builder & Verifier (Pixi + DuckDB) logo

Notebook KISS Builder & Verifier (Pixi + DuckDB)

Create/refactor Jupyter notebooks for AI-agent workflows with per-directory Pixi kernels (pixi.toml), narrative-first KISS structure (markdown above every code cell), robust data loading (DuckDB + TSV/Parquet), beautiful plots, and strict "run-all-cells" validation before reporting completion.

SKILL.md

Full skill instructions

When to trigger this skill

Use this skill whenever the user asks to create, refactor, clean up, lint, or productionize a Jupyter notebook (or a Jupytext notebook script) and they care about:

  • Reproducibility (restart + run-all should work end-to-end)
  • Per-directory environments via pixi.toml (Pixi + pixi-kernel)
  • Readable narrative (concise markdown guidance above each code cell)
  • Reliable data access (DuckDB + tabular files, correct paths)
  • Presentation quality (plots and markdown are visually polished)

If the task is not notebook-centric (e.g., pure library code), do not trigger.

Non‑negotiables (hard rules)

  1. KISS notebook: short, linear, top-to-bottom, no hidden dependencies between cells.
  2. Markdown-first: every code cell must be preceded by a markdown cell that:
    • states intent in 1–3 sentences or bullets,
    • tells what artifact/​output will appear,
    • notes assumptions (paths, schema, expected shapes).
  3. Reproducible execution gate: never claim “done” until:
    • you restart the kernel (clean state) and execute all cells in order,
    • you inspect outputs for correctness/​sanity (not just “no exceptions”),
    • you fix any warnings/​errors that impact correctness.
  4. Paths must be correct: data files are loaded using paths anchored to the notebook/​project directory (see docs/​data_loading_duckdb.md). Avoid hard-coded home directories.
  5. Pretty, tight plots: minimize whitespace; use a cohesive, non-default palette; label axes; include units; readable figure sizes.

Progressive disclosure (keep context lean)

The core rules live here. Load additional guidance only as needed:

  • Notebook structure & markdown style: docs/​notebook_structure.md
  • Pixi + Jupyter kernel setup: docs/​pixi_jupyter.md
  • Data loading patterns (DuckDB + TSV/​Parquet): docs/​data_loading_duckdb.md
  • Plot styling rules (tight layout, palettes): docs/​plot_style.md
  • Verification & “definition of done”: docs/​verification.md

Templates:

  • Jupytext-first notebook template: templates/​kiss_notebook_template.py
  • Minimal pixi.toml example: templates/​pixi.toml
  • Optional DuckDB bootstrap: templates/​duckdb_bootstrap.sql

Automation scripts (if filesystem + Python execution is available):

  • Execute notebook end-to-end: scripts/​execute_notebook.py
  • Lint structure (markdown above code): scripts/​lint_notebook_structure.py

Recommended workflow (agent playbook)

Follow this sequence; do not skip the validation gate.

1) Plan the notebook (outline first)

  • Create/​confirm the notebook’s narrative outline:
    • Title + 3-line purpose
    • Environment & reproducibility notes
    • Data sources (files, DBs), schema expectations
    • Analysis/​EDA/​modeling steps
    • Results + conclusions + next steps

2) Scaffold the notebook

  • Use the template in templates/​kiss_notebook_template.py.
  • Keep sections small; each section should have:
    • a markdown heading,
    • 1–3 code cells max.

3) Implement data access robustly

  • Establish PROJECT_ROOT and DATA_DIR.
  • Validate file existence before reading.
  • Prefer DuckDB for heavy joins/​aggregations; keep pandas for presentation.

4) Create high-quality plots

  • Use the plot style helper (see docs/​plot_style.md).
  • No chart junk; tight margins; consistent typography.

5) Validation gate (mandatory)

  • Restart kernel → run all cells.
  • If you have CLI access, also run scripts/​execute_notebook.py for a clean execution.
  • Check outputs:
    • row counts, null rates, unique keys, value ranges,
    • plot renders and labels,
    • any randomness is seeded.

6) Report completion only after passing the gate

When reporting back, include:

  • how you ran the notebook (restart+run-all, scripts),
  • where data paths point,
  • what key outputs/​figures were produced,
  • any caveats (e.g., external files required).

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View