用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/taracodlabs/aiden --skill onenote命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | onenote |
| description | Read/write OneNote pages via Microsoft Graph or COM |
| category | windows |
| version | 1.0.0 |
| platform | windows |
| tags | onenote, notes, notebook, microsoft, graph, pages, sections |
| license | Apache-2.0 |
Access, create, and update OneNote notebooks, sections, and pages using PowerShell COM or Microsoft Graph API — capture meeting notes, append to journals, and query your knowledge base.
$headers = @{ Authorization = "Bearer $env:GRAPH_TOKEN" }
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/onenote/notebooks" -Headers $headers |
Select-Object -ExpandProperty value |
Select-Object id, displayName, lastModifiedDateTime
$notebookId = "YOUR_NOTEBOOK_ID"
$headers = @{ Authorization = "Bearer $env:GRAPH_TOKEN" }
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/onenote/notebooks/$notebookId/sections" -Headers $headers |
Select-Object -ExpandProperty value |
Select-Object id, displayName
$sectionId = "YOUR_SECTION_ID"
$headers = @{ Authorization = "Bearer $env:GRAPH_TOKEN" }
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/onenote/sections/$sectionId/pages" -Headers $headers |
Select-Object -ExpandProperty value |
Select-Object id, title, createdDateTime
$sectionId = "YOUR_SECTION_ID"
$headers = @{
Authorization = "Bearer $env:GRAPH_TOKEN"
"Content-Type" = "application/xhtml+xml"
}
$html = @"
<!DOCTYPE html>
<html><head><title>Meeting Notes — $(Get-Date -Format 'yyyy-MM-dd')</title></head>
<body>
<h1>Meeting Notes</h1>
<p>Action items:</p>
<ul><li>Follow up with team</li></ul>
</body></html>
"@
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/onenote/sections/$sectionId/pages" `
-Method POST -Headers $headers -Body $html
$pageId = "YOUR_PAGE_ID"
$headers = @{ Authorization = "Bearer $env:GRAPH_TOKEN" }
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/onenote/pages/$pageId/content" -Headers $headers
$headers = @{ Authorization = "Bearer $env:GRAPH_TOKEN" }
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/onenote/pages?`$search=meeting" -Headers $headers |
Select-Object -ExpandProperty value |
Select-Object title, createdDateTime
"Create a page in my Daily Notes section with today's date as the title"
→ POST HTML page to the Daily Notes section ID with <title> set to $(Get-Date -Format 'yyyy-MM-dd').
"List all my notebooks"
→ GET /me/onenote/notebooks and display displayName + lastModifiedDateTime.
"Search my notes for action items"
→ GET /me/onenote/pages?$search=action+items and list matching page titles.
Notes.ReadWrite scope — obtain token via az login or OAuth device flowonenote.exe) is less reliable than Graph API for programmatic access$top and $skip pagination parameters