/peernotes:agent-sessions-to-peernotesfrom peernotes
This 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.
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.
None: SKILL.md is the whole skill.
Save local Claude Code sessions to Peernotes as agent session sources: the conversation (prompts, responses and tool calls) as Markdown, with the agent, model, directory and times as metadata.
The Peernotes CLI (peernotes) does all the work: it finds the sessions, renders them, redacts secrets, applies the exclusions, skips sessions already saved, updates sessions that continued, and uploads them. Never read, render or paste session content yourself — run the CLI and report its result.
peernotes-team-setup): never ask questions. Take workspace, sharing, directories, lookback and exclusions from the prompt; defaults for anything missing: all directories, lookback 2 days, private. Skip Step 2 and the dry run, always pass --non-interactive, and send the report with SendUserMessage if available.To run this daily, use peernotes-team-setup ("schedule my agent sessions sync"): it creates a local scheduled task, since cloud scheduled agents can't read the session files.
Claude Code keeps sessions in ~/.claude/projects/*/*.jsonl on the user's own machine, so this skill needs Claude Code running locally with shell access, on macOS or Linux. In Claude Cowork, claude.ai or a cloud scheduled agent the files aren't reachable: say so and stop. Codex and other agents aren't supported yet; say so.
--share only when the user asks to share with the workspace.confidential, private, personal, HR, interview, performance, legal, compensation, secret, credentials, and sessions with no prompts. Pass --no-exclude only if the user explicitly turns the exclusions off. The report counts excluded sessions without naming them.PEERNOTES="$(command -v peernotes || echo /usr/local/bin/peernotes)"
[ -x "$PEERNOTES" ] && "$PEERNOTES" version || echo "peernotes CLI not installed"
The skill needs CLI version 1.0.0 or later, installed as peernotes on the PATH (the download page puts it in /usr/local/bin); use $PEERNOTES for every command below. Never download or install the CLI yourself. If it isn't installed, or version reports a 0.x version:
"$PEERNOTES" auth status
If it reports logged_out:
"$PEERNOTES" auth login. It opens the browser for the user to sign in to Peernotes; wait for it to finish.peernotes auth login once, and stop.Any later command that exits with code 3 means the session expired: handle it the same way.
Ask once for anything not stated, with AskUserQuestion:
--since 7d); "this session" means only the current session (--current).core-platform (--dir core-platform)."$PEERNOTES" workspaces list (use the only one if there's just one), and sharing (default private)."$PEERNOTES" sync claude-code --workspace "<workspace name or ORN>" \
[--since 7d | --since 2026-01-01] [--until <date>] [--current | --session <id> ...] \
[--dir <substr>] [--share] [--no-exclude] [--dry-run] [--non-interactive]
--dry-run first and show the user the sessions that would be created or updated (names only). Sync for real once they confirm.--non-interactive.--since <start> --until <start + 30d>), and report progress between windows.The command prints a JSON report: created and updated (name, externalId, orn), skipped counts (unchanged, excluded, noPrompts) and failed (with error). Exit code 4 means some sessions failed; re-running is safe because the CLI checks what's already saved before writing.
Short summary from the JSON: time range, sessions scanned, created, updated, skipped (unchanged / excluded / no prompts), failed (with reason), workspace and sharing used.
~/.claude.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub obtainable-ai/agent-plugins --plugin peernotes8 skills in this plugin
/docs-to-peernotesThis 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./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./peernotesThis skill should be used whenever the user wants to work with their Peernotes data, such as "search Peernotes for", "what do my notes say about", "find the note on", "show my latest notes", "what's shared in the workspace", "summarize my Peernotes workspace", "create a note in Peernotes", "save this as a thought", "edit or rewrite this note", "revert the note", "comment on the note", "check my Peernotes notifications", or "delete this note". Covers searching, reading, answering questions from, creating, editing, commenting on and managing Peernotes workspaces, notes, thoughts and sources. Requires the Peernotes connector./peernotes-team-setupThis skill should be used when a team admin asks to "set up Peernotes for my team", "set up our Peernotes syncs", "schedule the team syncs", "run a one-time team sync", "backfill the last 90 days into Peernotes", "change what we sync to Peernotes", "pause the GitHub summaries", "add Linear summaries", "sync our Slack threads", "schedule my agent sessions sync", or "show our Peernotes schedules". One person runs this on behalf of the team, choosing the team workspace, team-level sources and exclusions, and scheduling the team syncs as cloud agents via CronCreate (meeting notes included by default; GitHub summaries, Linear summaries, Slack threads and documents optional)./slack-threads-to-peernotesThis skill should be used when the user asks to "save interesting Slack threads to Peernotes", "capture Slack discussions in Peernotes", "copy important Slack threads to Peernotes", "sync our Slack decisions to Peernotes", or when a scheduled "Peernotes · Slack threads" task runs, including one-time runs and backfills. Picks the threads worth keeping from the team's chosen Slack channels and saves each as a Peernotes thread source. Requires Peernotes and a Slack connector.