Share session to Lore
Use the bundled lore-local MCP server. In Claude Code, the bundled hook binds each share call to the current conversation, including after /new. The server resolves that session on disk, uploads it to Lore with the correct harness for the current runtime, and returns a shareable thread URL.
When to Use
Use this skill when the user asks to:
- share this session
- send this conversation to Lore
- export this session to Lore
- get a Lore link for the current session
Do not call read_local_session before sharing. The transcript bytes should not pass through the agent context.
Naming the Thread
If the user asks to name the thread while sharing — for example "share and name it My Thread", "share as Auth refactor", "share this and call it X" — extract the requested name and pass it as the title argument to the share tool. The title sets the thread's name instead of letting Lore auto-generate one from the transcript.
- "share and name it Onboarding redesign" → call the share tool with
title: "Onboarding redesign".
- "share this session" (no name given) → omit
title; Lore generates one.
Strip framing words ("name it", "call it", "titled", surrounding quotes) and pass only the title itself.
Setting Visibility
Shares default to workspace. When the user explicitly requests an access level, pass it as visibility:
- "share this publicly" or "anyone with the link" →
visibility: "public".
- "share this privately" or "only me" →
visibility: "private".
- "share this with my workspace" or "share with my team" →
visibility: "workspace".
If the user does not mention access, omit visibility; the tool uses the workspace default. Explicit visibility can be combined with title, highlight, or session_id in the same call.
Tool Flow
- Collect the optional arguments requested by the user, then make exactly one
share_session call. Use no arguments only when none of the cases below apply.
- If the user explicitly requests public, private, or workspace access, include the corresponding
visibility. For example, /lore:share this session publicly should call share_session({ visibility: "public" }).
- If the user includes a natural-language highlight request after
/lore:share, include that request as highlight. For example, /lore:share where I made the parser handle Amp exports should call share_session({ highlight: "where I made the parser handle Amp exports" }).
- If the user asked for a specific older session, call
list_local_sessions, pick the match, then include its session_id, combining any requested visibility or highlight in the same share_session call.
- Surface
thread_url prominently. If clipboard_copied is true, mention that the shared link was copied to the clipboard. If clipboard_copied is false, still show the link and mention that clipboard copy was unavailable. If highlight was supplied and resolved, thread_url already includes the selected block anchor or range. If the result includes a tip, show it after the link.
The share result is a JSON object with:
thread_id — the Lore thread id.
thread_url — the shareable Lore link. Always show this to the user as the primary result.
clipboard_copied — true when the plugin copied thread_url to the user's clipboard, false when clipboard copy was unavailable.
highlight — present only when a highlight query was supplied and Lore resolved it. It includes query, matched, start_block_id, and end_block_id; when matched is true, thread_url is already anchored.
- The tool may also return an additional tip after the JSON result.
Failure Modes
share_session errors with no session found:
Ask whether they want to share an older session, then list with list_local_sessions.
share_session errors with session not found: <id>:
Tell the user the id did not match and offer to list available sessions.
share_session reports that the current Claude Code session id is unavailable:
Tell the user to reload or update the Lore plugin, then retry. Do not select a session by recency.
- Auth errors:
Call
lore_login on lore-local, then retry the share. If lore_login returns browser_open_failed, tell the user to visit the verification URL, then call lore_login_resume({ device_code }) and retry.
- Empty session content:
Tell the user the session has nothing to share yet.
Tone
Speak about "this session" and the "shared link". Never say "transcript", "JSONL", or "MCP" to the user.
1---2name: share3description: Share the current session to Lore and return a shareable URL. Use when the user asks to share this session, send it to Lore, export this conversation, or get a Lore link for the current session.4---56# Share session to Lore78Use the bundled `lore-local` MCP server. In Claude Code, the bundled hook binds each share call to the current conversation, including after `/new`. The server resolves that session on disk, uploads it to Lore with the correct harness for the current runtime, and returns a shareable thread URL.910## When to Use1112Use this skill when the user asks to:1314- share this session15- send this conversation to Lore16- export this session to Lore17- get a Lore link for the current session1819Do not call `read_local_session` before sharing. The transcript bytes should not pass through the agent context.2021## Naming the Thread2223If the user asks to name the thread while sharing — for example "share and name it My Thread", "share as Auth refactor", "share this and call it X" — extract the requested name and pass it as the `title` argument to the share tool. The title sets the thread's name instead of letting Lore auto-generate one from the transcript.2425- "share and name it Onboarding redesign" → call the share tool with `title: "Onboarding redesign"`.26- "share this session" (no name given) → omit `title`; Lore generates one.2728Strip framing words ("name it", "call it", "titled", surrounding quotes) and pass only the title itself.2930## Setting Visibility3132Shares default to `workspace`. When the user explicitly requests an access level, pass it as `visibility`:3334- "share this publicly" or "anyone with the link" → `visibility: "public"`.35- "share this privately" or "only me" → `visibility: "private"`.36- "share this with my workspace" or "share with my team" → `visibility: "workspace"`.3738If the user does not mention access, omit `visibility`; the tool uses the `workspace` default. Explicit visibility can be combined with `title`, `highlight`, or `session_id` in the same call.3940## Tool Flow41421. Collect the optional arguments requested by the user, then make exactly one `share_session` call. Use no arguments only when none of the cases below apply.432. If the user explicitly requests public, private, or workspace access, include the corresponding `visibility`. For example, `/lore:share this session publicly` should call `share_session({ visibility: "public" })`.443. If the user includes a natural-language highlight request after `/lore:share`, include that request as `highlight`. For example, `/lore:share where I made the parser handle Amp exports` should call `share_session({ highlight: "where I made the parser handle Amp exports" })`.454. If the user asked for a specific older session, call `list_local_sessions`, pick the match, then include its `session_id`, combining any requested `visibility` or `highlight` in the same `share_session` call.465. Surface `thread_url` prominently. If `clipboard_copied` is true, mention that the shared link was copied to the clipboard. If `clipboard_copied` is false, still show the link and mention that clipboard copy was unavailable. If `highlight` was supplied and resolved, `thread_url` already includes the selected block anchor or range. If the result includes a tip, show it after the link.4748The share result is a JSON object with:4950- `thread_id` — the Lore thread id.51- `thread_url` — the shareable Lore link. Always show this to the user as the primary result.52- `clipboard_copied` — true when the plugin copied `thread_url` to the user's clipboard, false when clipboard copy was unavailable.53- `highlight` — present only when a highlight query was supplied and Lore resolved it. It includes `query`, `matched`, `start_block_id`, and `end_block_id`; when `matched` is true, `thread_url` is already anchored.54- The tool may also return an additional tip after the JSON result.5556## Failure Modes5758- `share_session` errors with `no session found`:59 Ask whether they want to share an older session, then list with `list_local_sessions`.60- `share_session` errors with `session not found: <id>`:61 Tell the user the id did not match and offer to list available sessions.62- `share_session` reports that the current Claude Code session id is unavailable:63 Tell the user to reload or update the Lore plugin, then retry. Do not select a session by recency.64- Auth errors:65 Call `lore_login` on `lore-local`, then retry the share. If `lore_login` returns `browser_open_failed`, tell the user to visit the verification URL, then call `lore_login_resume({ device_code })` and retry.66- Empty session content:67 Tell the user the session has nothing to share yet.6869## Tone7071Speak about "this session" and the "shared link". Never say "transcript", "JSONL", or "MCP" to the user.