onenote-desktop
Skill by Takhoffman
Controls the Microsoft OneNote desktop app on Windows through PowerShell COM automation. Built for AI agents that need to read, write, search, or export OneNote notebooks and pages without browser automation.
Install onenote-desktop
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Takhoffman/onenote-desktop-agent /tmp/onenote-desktop-agent && mkdir -p ~/.claude/skills && cp -r /tmp/onenote-desktop-agent/skills/onenote-desktop ~/.claude/skills/onenote-desktopRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Takhoffman/onenote-desktop-agent /tmp/onenote-desktop-agent && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/onenote-desktop-agent/skills/onenote-desktop ~/.gemini/antigravity-cli/skills/onenote-desktopAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The onenote-desktop skill lets an AI agent control the Microsoft OneNote desktop app on Windows through direct PowerShell COM automation. It covers checking the install, listing notebooks, sections and pages, reading and writing page XML, creating and updating pages, searching, exporting to formats such as PDF and Word, and extracting audio recordings. A bundled helper script, Invoke-OneNoteCom.ps1, handles known operations, and agents can write one-off COM scripts for anything it does not wrap.
Commands run through Windows PowerShell with the STA flag, since Office COM is apartment-sensitive. The skill states that it does not use browser automation, localhost servers or Office.js add-ins. It is aimed at agents that need to work with desktop OneNote data locally. Reference files cover raw COM, page XML, media handling and read-only storage discovery.
Written from the project's SKILL.md and checked against it.
What it can do
- check-installReports the detected desktop OneNote executable, version, STA state, and COM creation status.
- hierarchyLists notebooks, sections, and pages, returning raw XML and parsed nodes.
- get-pageReads a page's content by page ID, returning raw XML and parsed nodes.
- create-pageCreates a page in an existing section with a title and optional body text.
- update-page-xmlUpdates a page from a prepared XML file.
- find-pagesRuns OneNote search against page content using a query.
- publishExports a notebook, section, or page to formats such as PDF, Word, and MHTML.
- navigateOpens OneNote at a given hierarchy object and optional page content object.
- extract-mediaCopies audio and media files referenced by MediaFile elements on a page.
What you need
- Windows operating system
- Microsoft OneNote desktop app installed
- Windows PowerShell (powershell.exe)
Try asking
- List my OneNote notebooks, sections and pages on this Windows PC.
- Create a page called Agent note in my Work section of OneNote.
- Export this OneNote page to a PDF file in my exports folder.
Good to know
- Targets desktop OneNote for Windows only, not OneNote on the web.
- Media extraction depends on OneNote exposing MediaFile paths in page XML.
- Raw .one and cache probing is a last resort.
- If the hierarchy is empty, no notebooks are open in the current OneNote session.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/onenote-desktop/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to onenote-desktop
All alternatives →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
Compare with ask-user-question, beads or google_tasks
onenote-desktop: common questions
Does it work with OneNote on the web?
The source says it targets desktop OneNote for Windows, not OneNote on the web.
Does it need a localhost server or an Office.js add-in?
No. The source says it automates desktop OneNote without browser automation, localhost servers, or Office.js add-ins, and v1 does not use a localhost HTTP server.
Can it extract audio recordings from OneNote?
Yes, through the extract-media operation, which copies audio from MediaFile paths in page XML. The source notes this depends on OneNote exposing those paths locally.
How do I install onenote-desktop?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is onenote-desktop free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is onenote-desktop safe to use?
It scores 51 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to onenote-desktop?
Similar skills: ask-user-question, beads, google_tasks, recall.
