skillfed

onenote

Automate OneNote operations on Windows through PowerShell COM objects. Build new pages, search across notebooks, and organize sections without manual interaction. Requires the desktop version of OneNote and user confirmation before modifying content.

OneNote skill automates creation, searching, and management of notes across notebooks and sections on Windows via PowerShell.

AI-generated summary based on this skill's SKILL.md

35 2 MIT updated by malue-ai

Install

malue-ai/dazee-small/onenote · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/malue-ai/dazee-small
cp -r dazee-small/instances/xiaodazi/skills/onenote ~/.claude/skills/onenote

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I create a new note in OneNote using PowerShell automation?

onenote enables you to create new pages and sections programmatically via PowerShell COM objects on Windows. The skill automates OneNote operations by instantiating the OneNote COM interface, then building page structures within your notebooks. You can define page content, assign titles, and place pages into specific sections—all without manual UI interaction. The desktop version of OneNote must be installed, and user confirmation is required before modifying content.

Can onenote search across multiple OneNote notebooks?

Yes, onenote supports searching and retrieving notes across your OneNote notebooks. The skill lets you query notes by keyword and retrieve matching content programmatically. This capability is one of onenote's core functions, allowing you to locate specific information within your notebook hierarchy without opening the OneNote application manually.

What is the onenote COM object control method on Windows?

onenote uses COM (Component Object Model) objects to programmatically control OneNote on Windows. This approach lets you interact with the OneNote desktop application through PowerShell scripts, accessing its object model to create pages, manage sections, and organize notebooks. COM object control is the foundation for onenote's automation capabilities and requires the Windows desktop version of OneNote.

How does onenote manage OneNote notebook hierarchy?

onenote can list and organize your OneNote notebook hierarchy programmatically. The skill traverses your notebooks, sections, and pages to display their structure and relationships. This enables you to understand your notebook layout and automate organizational tasks like creating new sections or moving pages within the hierarchy—all through PowerShell scripts rather than manual navigation.

Can I automate OneNote workflows without manual UI interaction using onenote?

onenote is designed to automate OneNote workflows entirely through PowerShell, eliminating the need for manual UI interaction. Once you script your workflow—whether creating pages, searching notes, or organizing sections—the skill executes these operations in the background. User confirmation is required before content modifications, but the overall process remains hands-off after initial setup.

What license does onenote use?

onenote is released under the MIT license, allowing you to use, modify, and distribute the skill freely under MIT terms.

SKILL.md

rendered from the published skill — quoted content, verbatim

OneNote 笔记管理(Windows)

通过 PowerShell 控制 Windows 上的 Microsoft OneNote。

使用场景

  • 用户说「帮我在 OneNote 里新建一页笔记」「搜一下 OneNote 里关于 XXX 的笔记」
  • 用户需要查看或整理 OneNote 内容

命令参考

列出笔记本
$onenote = New-Object -ComObject OneNote.Application
[xml]$hierarchy = ""
$onenote.GetHierarchy("", [Microsoft.Office.Interop.OneNote.HierarchyScope]::hsNotebooks, [ref]$hierarchy)

$hierarchy.Notebooks.Notebook | ForEach-Object {
    Write-Output "📓 $($_.name)"
    $_.Section | ForEach-Object {
        Write-Output "  📑 $($_.name)"
    }
}
搜索笔记
$onenote = New-Object -ComObject OneNote.Application
[xml]$results = ""
$onenote.FindPages("", "搜索关键词", [ref]$results)

$results.Pages.Page | ForEach-Object {
    Write-Output "$($_.name) — $($_.dateTime)"
}
创建新页面

```powershell $onenote = New-Object -ComObject OneNote.Application

获取目标 Section ID

[xml]$hierarchy =

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
instances/xiaodazi/skills/onenote/SKILL.md

Related skills

Tags

note-automation windows-desktop-app powershell-scripting com-object-control notebook-management local-productivity search-capability page-creation hierarchical-organization