---
title: "Export Claude Conversation to Wiki"
date: 2025-10-21T19:11:00.281Z
desc: "Claude Code conversation"
slug: "export-claude-conversation-to-wiki"
tags: ["claude-code", "conversation"]
category: "prompt"
sessionId: "8ef7f6b8-0b08-48df-b826-4ab7e041e4e9"
repository: "glockenspiel"
branch: "stev/prompt-share-1021"
---

import PromptSummary from '@/components/prompts/PromptSummary.astro';


<span id="message-1"></span>

_**Action 1:** _[System continuation]__ _just now_

---

<span id="message-2"></span>

## 1. You are helping the user \export the current Claud... <small>_just now_</small>
You are helping the user \export the current Claude Code conversation to the Suno Share site and deploy it to Vercel.

Follow these steps:

**First, get recent sessions:**

```bash
python3 share-site/scripts/list-sessions.py --limit 5
```

1. **Confirm the session to export**:
   - The list above shows recent sessions from this project. format separate sessions on new lines for a claude code output so that it is human readable and present it to the user.
   - **Ask the user:** "I'll \export session #1 (the most recent). Is this correct? If not, reply with the session number you want."
   - If user confirms (says "yes", "1", or similar), use session #1
   - If user provides a different number, use that session number
   - Extract the session path from the list above based on the selected number

2. **Ask for a title and generate filename**:
   - Ask: "What title would you like for this conversation?"
   - Suggest a title based on the conversation context
   - Create a kebab-case filename from the title
   - Example: "Setting up Navigation" → "setting-up-navigation"

3. **Export and deploy**:

   Use the export-claude-chat.py wrapper with the --deploy flag:

   ```bash
   cd share-site && \
   python3 scripts/export-claude-chat.py \
     [PATH_TO_SELECTED_SESSION] \
     --title "[USER_PROVIDED_TITLE]" \
     --output src/content/prompts/[KEBAB_CASE_FILENAME].mdx \
     --deploy
   ```

   Where [PATH_TO_SELECTED_SESSION] is extracted from the session list above.

4. **Share the result**:
   - Show the deployment URL from the script output
   - The preview is live and shareable immediately
   - Note: "To make it permanent, commit and merge to main"

**Important Notes:**

- The deployment takes 30-60 seconds
- The script output will include a direct link to the prompt page
- Be concise and efficient - the user wants a quick \export with minimal back-and-forth

<details>
<summary>🤖 View Claude's Response</summary>
I'll help you \export this conversation to the Suno Share site. Let me first get the list of recent sessions.

---

<div class="token-usage">**Tokens:** 2 in / 6 out | **Cache:** 0 read, 23,279 created</div>

---

**🔧 Tool Used: `Bash`**

```json
{
  "command": "python3 share-site/scripts/list-sessions.py --limit 5",
  "description": "List recent Claude Code sessions"
}
```

---

<div class="token-usage">**Tokens:** 2 in / 6 out | **Cache:** 0 read, 23,279 created</div>

</details>

---

<span id="message-3"></span>

_**Action 3:** _[System continuation]__ _just now_

<details>
<summary>🤖 View Claude's Response</summary>
Here are the recent sessions:

**1.** [Oct 21 19:11] - 6 messages on branch `stev/prompt-share-1021`

**2.** [Oct 21 19:11] - 2 messages on branch `stev/prompt-share-1021`

**3.** [Oct 21 18:53] - 75 messages on branch `stev/prompt-share-1021`

**4.** [Oct 21 18:53] - 2 messages on branch `stev/prompt-share-1021`

**5.** [Oct 21 18:53] - 2 messages on branch `stev/prompt-share-1021`

---

I'll \export session **#1** (the most recent). Is this correct? If not, reply with the session number you want.

---

<div class="token-usage">**Tokens:** 5 in / 1 out | **Cache:** 23,279 read, 615 created</div>

</details>

---

<span id="message-4"></span>

## 2. 1 <small>_just now_</small>
1

<details>
<summary>🤖 View Claude's Response</summary>
Perfect! Now, what title would you like for this conversation?

Based on the context, I'd suggest: **"Export Claude Conversation to Wiki"**

Please provide your preferred title, and I'll generate the filename and deploy it.

---

<div class="token-usage">**Tokens:** 3 in / 53 out | **Cache:** 19,462 read, 4,691 created</div>

</details>

---

<span id="message-5"></span>

## 3. ok <small>_just now_</small>
ok

<details>
<summary>🤖 View Claude's Response</summary>
Great! I'll use the title "Export Claude Conversation to Wiki" and deploy it now.

---

<div class="token-usage">**Tokens:** 2 in / 1 out | **Cache:** 23,894 read, 313 created</div>

---

**🔧 Tool Used: `Bash`**

```json
{
  "command": "cd share-site && python3 scripts/export-claude-chat.py /Users/stevenyoon/.claude/projects/-Users-stevenyoon-glockenspiel/8ef7f6b8-0b08-48df-b826-4ab7e041e4e9.jsonl --title \"Export Claude Conversation to Wiki\" --output src/content/prompts/export-claude-conversation-to-wiki.mdx --deploy",
  "description": "Export session and deploy to Vercel",
  "timeout": 120000
}
```

---

<div class="token-usage">**Tokens:** 2 in / 1 out | **Cache:** 23,894 read, 313 created</div>

</details>

---

---

<PromptSummary
  totalInput={16}
  totalOutput={68}
  cacheRead={90529}
  cacheCreation={52490}
  models={["claude-sonnet-4-5-20250929"]}
/>
