Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

noteClaw

БесплатноЗапускает вложенные скриптыНе проверен

Read-only mirror of OneNote notebooks into local Markdown + git, for querying, diffing, and periodic summaries. Requires a one-time OAuth authorization…

jellyjujubeот jellyjujube347 установок в других каталогах

Об этом скилле

OneNote Read-Only Mirror + Query + Weekly Reports (noteClaw v1.0.0)

Mirror Microsoft OneNote notebooks read-only into local Markdown + git snapshots, then query, diff, and summarize on demand.

Below, $SKILL = this skill's install directory (the folder holding this SKILL.md, with scripts/ inside).

⚠️ First use (agent must read): this skill needs a one-time OAuth authorization; every sync fails until that is done. Full steps are under "One-time setup" and "Workflow" below — quick view:

  1. No token (no .auth/notes_token.json in the data directory) → run scripts/auth_code.py to get an authorization link, have the user paste the full URL back, then exchange it with --code-url (use --code-file when the chat channel truncates long URLs).
  2. After authorization, cold start: list notebooks → full pull → convert to md. When done, ask the user whether to set up scheduled sync, and confirm their timezone for query windows (NOTECLAW_TZ).

Note: send the link, then end the turn and wait for the user to paste the full URL back.

⚠️ Multi-notebook accounts: list them with graph_sync.py --list-notebooks, ask the user which one to mirror, then pass the choice with --notebook <name> (or NOTECLAW_NOTEBOOK). See "4. Optional environment variables".

When to use

  • Let the agent query / search OneNote notes by time window, keyword, or section
  • Generate a periodic report of what changed in the notes, or summarize an arbitrary range on demand
  • Inspect changes to notes over a period (diff)

Hard requirements

  • Python ≥ 3.9 (uses zoneinfo); standard library only, no third-party dependencies
  • git: snapshot history depends on git (md is still produced outside a git directory, but there is no snapshot history and html2md.py exits 1 to flag it)
  • Network: access to graph.microsoft.com and login.microsoftonline.com
  • Install: openclaw skills install @jellyjujube/noteclaw; manual install means placing this whole directory at <workspace>/skills/noteclaw/
  • Scripts live under the skill's scripts/ and are not installed system-wide; call them as python3 <path>/xxx.py

One-time setup

1. Client credentials (built in, no registration)

Authorization uses the publicly published rclone OneDrive application (client_id + client_secret as a pair, shared by all rclone users — see https://rclone.org/onedrive/). scripts/auth_code.py ships with these credentials, so it works out of the box and nothing needs to be registered in Azure.

Credential source priority (the script takes the first usable one, in order):

  1. Environment variables CLIENT_ID + CLIENT_SECRET (both must be set to take effect)
  2. A section in ~/.config/rclone/rclone.conf that contains both client_id and client_secret (read-only; never mixed across sections)
  3. The rclone public credentials built into the script (fallback; this package's default path)

Note: running your own Azure application requires a Developer account and hosting a client_secret yourself. The built-in public application removes that step; the cost is that the issued scope covers the whole OneDrive (see "Security and boundaries").

Targets personal Microsoft accounts (@outlook / @hotmail / personal @live). Organization/work accounts are unverified.

2. Create the data directory (do this before authorizing!)

All artifacts (manifest.json / store/ / cache/ / .auth/) land in the current working directory of the command (override with the NOTECLAW_HOME environment variable). Create the directory and configure git first, then authorize — otherwise the token is written to the wrong place:

export SKILL=<skill install path>   # e.g. <workspace>/skills/noteclaw
mkdir -p ~/onenote-mirror && cd ~/onenote-mirror
git init
git config user.name "Your Name"        # required! snapshot commits fail without it
git config user.email "[email protected]"
printf '.auth/\ncache/\n__pycache__/\n' >> .gitignore

3. Get the initial token (authorization code flow, run inside the data directory)

Run once to get the authorization link, then run again with the code the user pasted back:

cd ~/onenote-mirror
python3 $SKILL/scripts/auth_code.py                                  # first run: prints the authorization link
python3 $SKILL/scripts/auth_code.py --code-url "<full URL pasted back>"  # second run: exchange for a token
python3 $SKILL/scripts/auth_code.py --code-file .auth/code.txt          # when the channel truncates the paste

The script prints an authorization URL (on the line after the [AUTH URL] marker). Put that line verbatim into your reply to the user, who signs in with the Microsoft account to be mirrored and consents. The browser then lands on http://localhost:53682/ showing a "this site can't be reached" error, which is expected. Hand the full URL the user pastes back to the script with --code-url; it exchanges it for

Полный SKILL.md на ClawHub

Установить noteClaw в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл noteClaw?

Read-only mirror of OneNote notebooks into local Markdown + git, for querying, diffing, and periodic summaries. Requires a one-time OAuth authorization (personal Microsoft account).

Как установить скилл noteClaw?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл noteClaw запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить noteClaw с