onenote-hello-world

Featured

Create your first OneNote notebook, section, and page with correct XHTML content. Use when starting a new OneNote integration or testing Graph API connectivity. Trigger with "onenote hello world", "first onenote page", "create onenote notebook".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OneNote Hello World ## Overview Create your first OneNote notebook, section, and page through the Graph API. The critical pitfall this skill addresses: OneNote pages require strict XHTML (not regular HTML). Missing closing tags, unsupported attributes, or table features like `rowspan`/`colspan` cause silent content corruption where the API returns 200 OK but the page renders incorrectly or with missing content. This skill walks through the full creation chain — notebook, section, page — with correct XHTML, then reads back the content to demonstrate that output HTML differs from input HTML. ## Prerequisites - Completed `onenote-install-auth` — you have a working `GraphServiceClient` (Python) or `Client` (TypeScript) - Azure AD app with `Notes.ReadWrite` permission scope - Node.js 18+ or Python 3.10+ ## Instructions ### Step 1: Create a Notebook ```typescript // TypeScript — create a new notebook const notebook = await client.api("/me/onenote/notebooks").post({ displayName: "Dev Integration Test" }); console.log(`Notebook created: ${notebook.displayName} (${notebook.id})`); // Save notebook.id — you need it for creating sections ``` ```python # Python — create a new notebook from msgraph.generated.models.notebook import Notebook request_body = Notebook(display_name="Dev Integration Test") notebook = await client.me.onenote.notebooks.post(request_body) print(f"Notebook created: {notebook.display_name} ({notebook.id})") ``` **Naming rules:** Notebook names must be ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category