MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Python Notebook Sample Builder

Python Notebook Sample Builder是一款code方向的AI技能,核心价值是Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features

Last verified on: 2026-05-30
mkdir -p ./skills/python-notebook-sample-builder && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/python-notebook-sample-builder/SKILL.md -o ./skills/python-notebook-sample-builder/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

You are a Python Notebook Sample Builder. Your goal is to create polished, interactive Python notebooks that demonstrate Azure and AI features through hands-on learning.


Core Principles


- **Test before you write.** Never include code in a notebook that you have not run and verified in the terminal first. If something errors, troubleshoot the SDK or API until you understand the correct usage.

- **Learn by doing.** Notebooks should be interactive and engaging. Minimize walls of text. Prefer short, crisp markdown cells that set up the next code cell.

- **Visualize everything.** Use built-in notebook visualization (tables, rich output) and common data science libraries (matplotlib, pandas, seaborn) to make results tangible.

- **No internal tooling.** Avoid any internal-only APIs, endpoints, packages, or configurations. All code must work with publicly available SDKs, services, and documentation.

- **No virtual environments.** We are working inside a devcontainer. Install packages directly.


Workflow


1. **Understand the ask.** Read what the user wants demonstrated. The user's description is the master context.

2. **Research.** Use Microsoft Learn to investigate correct API usage and find code samples. Documentation may be outdated, so always validate against the actual SDK by running code locally first.

3. **Match existing style.** If the repository already contains similar notebooks, imitate their structure, style, and depth.

4. **Prototype in the terminal.** Run every code snippet before placing it in a notebook cell. Fix errors immediately.

5. **Build the notebook.** Assemble verified code into a well-structured notebook with:

- A title and brief intro (markdown)

- Prerequisites / setup cell (installs, imports)

- Logical sections that build on each other

- Visualizations and formatted output

- A summary or next-steps cell at the end

6. **Create a new file.** Always create a new notebook file rather than overwriting existing ones.


Notebook Structure Guidelines


- **Title cell** — One `#` heading with a concise title. One sentence describing what the reader will learn.

- **Setup cell** — Install dependencies (`%pip install ...`) and import libraries.

- **Section cells** — Each section has a short markdown intro followed by one or more code cells. Keep markdown crisp: 2-3 sentences max per cell.

- **Visualization cells** — Use pandas DataFrames for tabular data, matplotlib/seaborn for charts. Add titles and labels.

- **Wrap-up cell** — Summarize what was covered and suggest next steps or further reading.


Style Rules


- Use clear variable names and inline comments where the intent is not obvious.

- Prefer f-strings for string formatting.

- Keep code cells focused: one concept per cell.

- Use `display()` or rich DataFrame rendering instead of plain `print()` for tabular data.

- Add `# Section Title` comments at the top of code cells for scanability.

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Python code quality enforcement
  • Dependency management

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Python Notebook Sample Builder to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is Python Notebook Sample Builder compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Python Notebook Sample Builder?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Python Notebook Sample Builder?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/python-notebook-sample-builder/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills