microsoft-onenote

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Microsoft OneNote Skill

Microsoft OneNote Skill

Overview

概述

Claude can manage your Microsoft OneNote notebooks to capture notes, organize information, create checklists, and maintain a structured knowledge base. Supports notebooks, sections, and pages with rich content.
Claude可以帮你管理Microsoft OneNote笔记本,用于记录笔记、整理信息、创建清单,以及维护结构化的知识库。支持包含丰富内容的笔记本、分区和页面。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/microsoft-onenote/install.sh | bash
Or manually:
bash
cp -r skills/microsoft-onenote ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/microsoft-onenote/install.sh | bash
或者手动安装:
bash
cp -r skills/microsoft-onenote ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set MICROSOFT_EMAIL "your-email@outlook.com"
undefined
canifi-env set MICROSOFT_EMAIL "your-email@outlook.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在你的本地设备上访问,绝不会被传输。

Capabilities

功能特性

  • Create and organize notebooks
  • Add sections and pages
  • Write and format notes
  • Insert images and files
  • Create checklists and tables
  • Add tags and highlights
  • Search across notebooks
  • Share notebooks for collaboration
  • Add audio recordings
  • Draw and handwrite (limited)
  • Clip web content
  • Link between pages
  • 创建和整理笔记本
  • 添加分区和页面
  • 编写和格式化笔记
  • 插入图片和文件
  • 创建清单和表格
  • 添加标签和高亮
  • 跨笔记本搜索
  • 共享笔记本以协作
  • 添加音频录制
  • 绘图和手写(功能有限)
  • 截取网页内容
  • 页面间创建链接

Usage Examples

使用示例

Example 1: Create Note

示例1:创建笔记

User: "Create a note for today's meeting in OneNote"
Claude: Opens OneNote, navigates to appropriate section,
        creates page "Meeting Notes - [Date]" with template.
        Returns: "Created meeting notes page"
用户:"在OneNote中创建今天的会议笔记"
Claude:打开OneNote,导航到对应的分区,
        创建名为"会议笔记 - [日期]"的页面并使用模板。
        返回:"已创建会议笔记页面"

Example 2: Organize Notebook

示例2:整理笔记本

User: "Create a new section for project research"
Claude: Opens notebook, adds "Project Research" section,
        creates initial pages for different topics.
        Confirms: "Created Project Research section with 3 pages"
用户:"为项目研究创建一个新分区"
Claude:打开笔记本,添加"项目研究"分区,
        为不同主题创建初始页面。
        确认:"已创建项目研究分区,包含3个页面"

Example 3: Search Notes

示例3:搜索笔记

User: "Find my notes about the marketing strategy"
Claude: Searches notebooks for "marketing strategy".
        Reports: "Found 4 pages with marketing strategy content:
        1. Q4 Marketing Plan (Work notebook)..."
用户:"查找我关于营销策略的笔记"
Claude:在笔记本中搜索"营销策略"。
        回复:"找到4个包含营销策略内容的页面:
        1. Q4营销计划(工作笔记本)..."

Example 4: Add Checklist

示例4:添加清单

User: "Add a project checklist to my planning page"
Claude: Opens planning page, inserts checklist with items.
        Confirms: "Added checklist with 8 items"
用户:"在我的规划页面中添加项目清单"
Claude:打开规划页面,插入包含项目的清单。
        确认:"已添加包含8个项目的清单"

Authentication Flow

认证流程

  1. Claude navigates to onenote.com via Playwright MCP
  2. Authenticates with MICROSOFT_EMAIL if needed
  3. Handles 2FA if prompted (notifies user via iMessage)
  4. Maintains session for OneNote operations
  1. Claude通过Playwright MCP导航到onenote.com
  2. 如有需要,使用MICROSOFT_EMAIL进行认证
  3. 若提示双因素认证(2FA),将通过iMessage通知用户
  4. 维持会话以进行OneNote操作

Selectors Reference

选择器参考

javascript
// Notebook list
'[aria-label="Notebooks"]'

// Section tabs
'.section-tabs'

// Page list
'.page-list'

// Note content
'[contenteditable="true"]'

// New page
'[aria-label="Add page"]'

// New section
'[aria-label="Add section"]'

// Search
'[aria-label="Search"]'

// Insert menu
'[aria-label="Insert"]'

// Tag menu
'[aria-label="Tags"]'

// Share button
'[aria-label="Share"]'

// Checkbox insert
'[aria-label="To Do Tag"]'
javascript
// Notebook list
'[aria-label="Notebooks"]'

// Section tabs
'.section-tabs'

// Page list
'.page-list'

// Note content
'[contenteditable="true"]'

// New page
'[aria-label="Add page"]'

// New section
'[aria-label="Add section"]'

// Search
'[aria-label="Search"]'

// Insert menu
'[aria-label="Insert"]'

// Tag menu
'[aria-label="Tags"]'

// Share button
'[aria-label="Share"]'

// Checkbox insert
'[aria-label="To Do Tag"]'

Error Handling

错误处理

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Notebook Not Found: List available notebooks, ask for clarification
  • Page Create Failed: Check permissions, retry
  • Sync Failed: Wait and retry, notify if persistent
  • Search No Results: Suggest broader terms
  • 登录失败:重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 未找到笔记本:列出可用笔记本,请求用户明确说明
  • 页面创建失败:检查权限,重试
  • 同步失败:等待并重试,若持续失败则通知用户
  • 搜索无结果:建议使用更宽泛的关键词

Self-Improvement Instructions

自我改进说明

When you learn a better way to accomplish a task with OneNote:
  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific organizational tips
  4. Note differences from desktop OneNote
当你学会使用OneNote完成任务的更好方法时:
  1. 在回复中记录改进点
  2. 建议用新方法更新此技能文件
  3. 包含具体的整理技巧
  4. 注明与桌面版OneNote的差异

Notes

注意事项

  • OneNote syncs across all devices
  • Notebooks stored on OneDrive
  • Free-form canvas allows flexible layout
  • Tags help organize and find content
  • Audio notes require microphone
  • Web Clipper browser extension available
  • Ink-to-text conversion available
  • Pages have unlimited canvas space
  • OneNote可在所有设备间同步
  • 笔记本存储在OneDrive上
  • 自由格式画布支持灵活布局
  • 标签有助于整理和查找内容
  • 音频笔记需要麦克风
  • 提供Web Clipper浏览器扩展
  • 支持手写转文本功能
  • 页面拥有无限画布空间