Notebook.Create Api Intro
БесплатноБез исполняемых скриптовНе проверенCreate a notebook to present the API of a package
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Create a self-contained Jupyter notebook that teaches the Python package
<PACKAGE_NAME>: its core primitives, mental model, and API surface - Optimize the notebook for learning the library, not for a large real-world problem
Plan Only (--only_plan)
- With
--only_plan, follow.claude/skills/skill.rules.mdsection "Create Only a Plan with--only_plan" - Write the plan to
notebook.create_api_intro.<INPUT_REF>.md, then stop without executing the skill
Teaching Philosophy
Follow this teaching philosophy:
- Start from the smallest possible working example
- Introduce one new concept at a time
- Use the minimum code needed to demonstrate each concept
- Prefer toy examples with 2-5 objects over realistic datasets
- Every code cell should answer exactly one question
- Avoid helper functions, abstractions, and boilerplate unless they are part of the library's API
- Focus on understanding:
- What are the primitive objects?
- How are they created?
- How do they interact?
- What methods are available?
- What state do they hold?
- How do they compose into larger structures?
Notebook Structure
Name of the Notebook
- The notebook name
<FILE>is given by the user or generated as:tutorials/<PACKAGE_NAME>/<PACKAGE_NAME>.<ID>.API.<DESCRIPTION>.ipynb - E.g., for
pgmpyand probabilistic inference:tutorials/pgmpy/pgmpy.01.API.probabilistic_inference.ipynb
Use Standard Template Structure
- Use
.claude/templates/notebook.template.pyfor notebook initialization- Follow the cell layout in
.claude/skills/notebook.rules.mdunder## Use Standard Template Structure: title cell with scope and pedagogical arc, optional pip cell, autoreload and third-party imports cell, and a last setup cell that callsutils.init_loggers(_LOG) - Do not add an
## Importsheader
- Follow the cell layout in
Follow General Notebook Conventions
- Follow the conventions in
.claude/skills/notebook.rules.md:# Design Principles and Setup: Template structure and Python code rules# Cell Design and Content: Python style, showing results, and pandas tables# Text and Markdown Formatting: Bullet points, em dash replacement, and LaTeX# Visualization and Interactivity: Data manipulation and plotting## Visualization Cell Triplet Details: Cells with visualizations or widgets
Follow the Template
- The template is
.claude/templates/API_notebook.template.ipynb - In the title cell, right after the title, add:
- Generated by `.claude/skills/notebook.create_api_intro/SKILL.md`
Library Overview
- Briefly explain the problem the library solves, its key abstractions, its most important classes, and a conceptual diagram of how the pieces fit together
Primitive-by-Primitive Exploration
For each important primitive:
Mental Model
- Explain what the object "means"
- Present as a markdown table (see "Mental Model as Markdown Table" below)
Smallest Construction
# Minimal example in PythonExplain the important Methods
Inspect the Object using
type,dir, andhintros.get_public_methods_as_str(obj)fromhelpers/hintrospection.py
Synthesize the core mental model
- What are the fundamental abstractions?
- How do they fit together?
Write 2-4 sentences that capture the essence of the library's design
Mental Model as Markdown Table
- Present the mental model as a markdown table, not bullet points:
- Why: Tables are scannable and show complex API relationships clearly
- Columns: Object | Description | Comments/Type
- Examples:
- LIME:
LimeTabularExplainer | Configured explainer | Wraps model + training data - SHAP:
Explanation.values | SHAP contributions | (n_samples, n_features) array
- LIME:
- Placement: In a markdown cell early in "Primitive 1", after the
bullet-point overview
| Object | Description | Additional Info | |--------|-------------|-----------------| | `Explainer(...)` | Main class | Wraps data/model | | `explainer.method(x)` | Instance method | Returns result object | | `Result.values` | Data array | shape (n, m) |
Composition Examples
Build progressively:
- Example 1:
- Smallest meaningful object
- Example 2:
- Add one new concept
- Example 3:
- Combine two primitives
- Example 4:
- Minimal end-to-end workflow
- Example 1:
Each example should fit within roughly 10-20 lines
API Patterns
Identify recurring patterns:
- Builder patterns
- Fit/predict patterns
- Graph construction patterns
- Context managers
- Iterators
- Serialization
- Configuration
Show the smallest example of each pattern
Interactive Exploration
- Provide cells that encourage experimentation
- Add questions such as:
- What happens if you remove this argument?
- What i
Установить Notebook.Create Api Intro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Notebook.Create Api Intro?
Create a notebook to present the API of a package
Как установить скилл Notebook.Create Api Intro?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Notebook.Create Api Intro запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic