/peernotes:docs-to-peernotesfrom peernotes
This skill should be used when the user asks to "sync my Google Drive to Peernotes", "import my Notion pages into Peernotes", "copy OneDrive documents to Peernotes", "bring existing docs into Peernotes", or when a scheduled "Peernotes · Document sync" task runs, including one-time runs and backfills. Syncs new and changed documents from Google Drive, OneDrive/SharePoint or Notion into Peernotes. Requires the Peernotes connector plus at least one document source.
Ships in peernotes. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bring existing documents into Peernotes and keep them current: new documents become sources (Markdown files, or the original file for binaries); changed documents update their existing source.
Tool names are base names; actual names may carry a server prefix. Match on the base name.
SendUserMessage if available. If a connector is missing, report and stop. Process at most 50 documents per run; report the remainder for the next run.Range: (documents modified within it) or "all existing documents" if stated, instead of the rolling lookback. The per-run cap is Max documents this run from the prompt (default 200 for one-time runs); report anything left over and offer another one-time run. Interactive one-time runs behave like Interactive; scheduled ones like Scheduled.This plugin is run by one sync admin on behalf of the team. Unless the user says the sync is just for themselves:
peernotes-team-setup (see its references/team-sources.md). In interactive runs without a configuration, ask for team sources rather than defaulting to the admin's personal account, and search the workspace for the Peernotes team sync settings note to reuse its scope and exclusions.1:1, confidential, private, personal, HR, interview, performance, legal, compensation. Count excluded items in the report without naming their titles.Synced for the team by <admin name> from <source>.All source connectors are bundled with this plugin (see CONNECTORS.md). Match connectors by service and tool names, not by where they came from: a bundled server and a directory connector for the same service are interchangeable, so use whichever is signed in and never ask the user to sign in twice. If a connector's tools are missing or fail with an auth error, it isn't signed in yet: in interactive runs, ask the user to sign in via Settings → Connectors and check again. If a connector is installed but not enabled in this chat (ListConnectors shows enabledInChat: false), ask the user to enable it. In scheduled runs, report which connector is missing and stop.
If a connector shows as failed, check CONNECTORS.md: Google services work natively in Cowork; Microsoft 365 needs a one-time Entra admin consent — direct the admin to CONNECTORS.md → Claude Cowork and check again.
listWorkspaces, saveDocumentSource, saveImageSource, getSource, getOwnedSources, search.| Source | Needs tools to |
|---|---|
| ~~cloud storage: Google Drive | search/list files, read or download file content, get metadata |
| ~~cloud storage: OneDrive / SharePoint | search/list drive items, download content, get metadata |
| ~~wiki: Notion | search pages/databases, fetch page content |
Load deferred tools with ToolSearch (peernotes, drive, onedrive, sharepoint, notion). If Peernotes or a source the user named is missing: ListConnectors → connect/enable, or SearchMcpRegistry + SuggestConnectors (interactive only). Stop until available.
Ask once for anything not stated:
listWorkspaces) and sharing (default shared with workspace).Per source, follow references/doc-sources.md: list documents in scope modified since the lookback start. For each capture: source system, file/page ID, title, path or parent, owner, URL, MIME type/kind, last-modified time.
Skip: trashed items, folders, shortcuts, files > 20 MB, and anything named or located under private, personal, hr, payroll, legal, secrets unless the user explicitly included it. Never sync files that look like credentials (.env, *.pem, keys, password exports).
Sync ID: doc:<system>:<file or page ID>.
Finding an existing item: search the workspace with resourceTypes: ["SOURCE"] for the Sync ID. Confirm with getSource: check the content field for the Sync ID: line (for binary files, check that name ends with the Sync ID). If search returns nothing, page through getOwnedSources and match on name.
Source modified: from the content (for binary files, compare with the source's updatedAt) against the document's last-modified time. Newer → update (Step 4 with orn). Same or older → skip.Sources only, never notes or thoughts. Save every synced item as a Peernotes source with saveDocumentSource (images with saveImageSource). Never call saveThought or generateNote for synced items.
saveDocumentSource with workspaceOrn, name (the title), content (raw UTF-8 Markdown string — do not base64-encode), extension: "md" and sharedWithWorkspace.orn. This replaces the file in place, so never create a second source for the same Sync ID.saveImageSource for images (jpg, jpeg, png, gif, webp, svg, bmp, ico), saveDocumentSource for everything else. If it can't be downloaded, record it as failed and include its link in the report: links can't be saved as sources. Put the Sync ID in the name as · <sync id> so it can still be found.<title> (Part n of N). Each part carries Sync ID: <sync id>#part<n>.Text documents (Google Docs, Word, Markdown, plain text, Notion pages; export Docs as text/markdown): one Markdown source, name = document title, with the content reproduced faithfully and not summarized:
# <Document title>
Source: <system>: <url>
Location: <folder path / Notion parent>
Owner: <owner>
Synced for the team by <admin name>
Source modified: <ISO timestamp>
Sync ID: <sync id>
## Content
<document content as markdown>
Binary / non-text files (PDF, images, slides, spreadsheets, other): upload the file itself with its own extension, named <title> · <sync id>. For spreadsheets and slides, export to PDF or XLSX first if the connector allows. If the content can't be downloaded, record it as failed and include its link in the report.
On failure, record it and continue.
Per source: documents checked, created, updated, skipped (unchanged / excluded), failed, and any remaining for the next run. Mention documents deleted at the source that still exist in Peernotes (never delete them automatically).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/agent-sessions-to-peernotesThis skill should be used when the user asks to "save my Claude Code sessions to Peernotes", "capture my agent sessions in Peernotes", "back up today's coding sessions to Peernotes", "sync my AI agent conversations to Peernotes", or "save this session to Peernotes", or when a scheduled "Peernotes · Agent sessions" task runs, including one-time backfills. Saves each local Claude Code session as a Peernotes agent session source using the Peernotes CLI. Requires Claude Code running on the machine that holds the sessions./github-summaries-to-peernotesThis skill should be used when the user asks to "copy GitHub code summaries to Peernotes", "summarize today's or this week's code changes into Peernotes", "push a repo digest to Peernotes", "save what shipped in a repo to Peernotes", or when a scheduled "Peernotes · GitHub summaries" task runs, including one-time runs and backfills. Produces one digest source per repository per period. Requires Peernotes and a GitHub connector./linear-summaries-to-peernotesThis skill should be used when the user asks to "summarize our Linear issues into Peernotes", "copy Linear updates to Peernotes", "save a Linear digest to Peernotes", "what moved in Linear this week, save it to Peernotes", or when a scheduled "Peernotes · Linear summaries" task runs, including one-time runs and backfills. Produces one summary source per Linear team per period, plus an optional workspace-wide product digest. Requires Peernotes and a Linear connector.npx claudepluginhub obtainable-ai/agent-plugins --plugin peernotes