Logotipo de Extract Chatgpt Transcript

Extract Chatgpt Transcript

Comunidad
ShawhinT
extract-chatgpt-transcript

Extract the full text of a shared ChatGPT conversation and save it as a clean Markdown transcript. Use whenever Shaw shares a chatgpt.com/share/... link (or asks to "scrape this convo", "save this ChatGPT chat", "grab the transcript", "pull the full conversation", "copy this whole chat to a file"). Also fires when a naive copy/paste or reader-mode grab of a ChatGPT share only returns part of the thread and Shaw says "that's not the full thing." Handles the virtualization gotcha that hides most turns from a single read. Do NOT use for Claude share links, generic web articles (use a normal fetch), or live (non-shared) ChatGPT sessions that require login.

Descripción general

EditorShawhinT
Repositorionon-coding-skills
Nombre de la habilidadextract-chatgpt-transcript
Estrellas
39
Forks
6
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por ShawhinT en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Extract Chatgpt Transcript en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/ShawhinT/non-coding-skills/tree/main/extract-chatgpt-transcript
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ShawhinT/non-coding-skills.git /tmp/non-coding-skills
mkdir -p .claude/skills
cp -r /tmp/non-coding-skills/extract-chatgpt-transcript .claude/skills/extract-chatgpt-transcript
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Extract Chatgpt Transcript en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Extract Chatgpt Transcript automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Extract Chatgpt Transcript no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Extract ChatGPT Transcript

Turn a shared ChatGPT conversation into a complete, faithful Markdown transcript.

The core problem: virtualization

ChatGPT share pages (chatgpt.com/share/...) are client-rendered AND virtualized: only the handful of conversation turns near the viewport are mounted in the DOM at any moment (often ~7 of 80+). Everything else is an empty wrapper. This is why the easy methods fail:

  • A plain web_fetch returns only the page shell (no conversation — it's JS-rendered).
  • get_page_text / reader-mode returns only the currently-rendered slice, usually the bottom of the thread.
  • Manual select-all + copy misses off-screen turns for the same reason.

So the reliable method is: scroll the whole thread top-to-bottom and capture each turn as it mounts, keyed by turn ID so nothing is deduped or lost.

Procedure

Use the Claude in Chrome tools (load via ToolSearch if deferred: mcp__claude-in-chrome__navigate, mcp__claude-in-chrome__javascript_tool, mcp__claude-in-chrome__tabs_context_mcp, mcp__claude-in-chrome__computer).

1. Navigate

Open the share URL in a new MCP tab. Note the returned tabId.

2. Probe the structure

Confirm the turn selector and find the scroll container:

js
(() => {
  const turns = document.querySelectorAll('[data-testid^="conversation-turn"]');
  const scrollers = [...document.querySelectorAll('*')]
    .filter(e => e.scrollHeight > e.clientHeight + 400 && e.clientHeight > 200)
    .map(e => ({tag:e.tagName, sh:e.scrollHeight, ch:e.clientHeight}));
  return JSON.stringify({turnCount: turns.length,
    withText: [...turns].filter(t=>(t.innerText||'').trim()).length, scrollers});
})()

Turns are [data-testid^="conversation-turn"] with ids like conversation-turn-1. Roles live on a child [data-message-author-role]. The scroll container is the element with the largest scrollHeight (usually a DIV wrapping <main>).

3. Install a persistent collector

Set up a Map keyed by turn testid so identical short turns ("Mmm.", "Right.") are NOT collapsed, and scroll to the top:

js
(() => {
  window.__map = new Map();
  window.__scroller = [...document.querySelectorAll('*')]
    .filter(e => e.scrollHeight > e.clientHeight + 400 && e.clientHeight > 200)
    .sort((a,b)=>b.scrollHeight-a.scrollHeight)[0];
  window.__collect = () => {
    document.querySelectorAll('[data-testid^="conversation-turn"]').forEach(t => {
      const key = t.getAttribute('data-testid');
      const roleEl = t.querySelector('[data-message-author-role]');
      const role = roleEl ? roleEl.getAttribute('data-message-author-role') : '';
      const text = (t.innerText||'').trim();
      if (text) window.__map.set(key, {role, text});
    });
  };
  window.__scroller.scrollTop = 0;
  window.__collect();
  return JSON.stringify({sh: window.__scroller.scrollHeight, size: window.__map.size});
})()

4. Sweep top-to-bottom

Run this loop, then wait and re-check window.__map.size. The Chrome javascript_tool does NOT await an async IIFE's return (it returns {} immediately), but the loop keeps running in the background — so fire it, wait ~8s, then read the size. Re-run the sweep if not yet at the bottom.

js
(async () => {
  const s = window.__scroller;
  for (let i=0;i<40;i++){
    window.__collect();
    if (s.scrollTop + s.clientHeight >= s.scrollHeight - 5) break;
    s.scrollTop += 550;
    await new Promise(r=>setTimeout(r,350));
  }
  window.__collect();
})()

Check progress: JSON.stringify({size: window.__map.size, top: window.__scroller.scrollTop, sh: window.__scroller.scrollHeight, atBottom: (window.__scroller.scrollTop+window.__scroller.clientHeight >= window.__scroller.scrollHeight-5)})

Keep sweeping until size equals the turnCount from step 2 and atBottom is true.

5. Serialize

Order turns by the numeric suffix of their testid and build the output string:

js
(() => {
  const entries = [...window.__map.entries()].sort((a,b)=>
    parseInt((a[0].match(/(\d+)$/)||[])[1]||0) - parseInt((b[0].match(/(\d+)$/)||[])[1]||0));
  window.__out = entries.map(([k,v]) => {
    const role = v.role==='user' ? 'USER' : v.role==='assistant' ? 'ASSISTANT' : (v.role?v.role.toUpperCase():'MSG');
    return `**${role}:** ${v.text}`;
  }).join('\n\n');
  return JSON.stringify({turns: entries.length, chars: window.__out.length});
})()

6. Pull the text out in slices

javascript_tool caps each response at ~1,000 chars, so read window.__out in ~900-char windows, batched several per browser_batch call:

js
window.__out.slice(0,900)     // then 900..1800, 1800..2700, ...

Concatenate the slices, then write to a .md file in outputs and present it.

Output format

Save as Markdown (<slug>-transcript.md). Header with the title (from document.title) and the source link. Then turn-by-turn with **USER:** / **ASSISTANT:** labels. Preserve voice-transcribed answers verbatim, including disfluencies — do not clean them up unless asked. Group into logical sections (e.g. "Voice Interview", "Extraction") only if the conversation clearly has them.

Gotchas checklist

  • Don't trust a single get_page_text — always compare its turn count to the [data-testid^="conversation-turn"] count. If it's short, virtualization bit you.
  • Keying by testid (not by text) is essential; podcast-style threads repeat short backchannels that a text-based Set would merge.
  • The async sweep returns {} — that's normal. Poll window.__map.size after a wait.
  • If the account requires login or it's a live (non-share) chat, this won't work; ask Shaw to use the share link.

Preguntas frecuentes

¿Qué hace la habilidad de IA Extract Chatgpt Transcript?

Extract the full text of a shared ChatGPT conversation and save it as a clean Markdown transcript. Use whenever Shaw shares a chatgpt.com/share/... link (or asks to "scrape this convo", "save this ChatGPT chat", "grab the transcript", "pull the full conversation", "copy this whole chat to a file"). Also fires when a naive copy/paste or reader-mode grab of a ChatGPT share only returns part of the thread and Shaw says "that's not the full thing." Handles the virtualization gotcha that hides most turns from a single read. Do NOT use for Claude share links, generic web articles (use a normal fe...

¿Por qué usar Extract Chatgpt Transcript en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Extract Chatgpt Transcript está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Extract Chatgpt Transcript en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/ShawhinT/non-coding-skills/tree/main/extract-chatgpt-transcript. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Extract Chatgpt Transcript?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Extract Chatgpt Transcript?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Extract Chatgpt Transcript con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Extract Chatgpt Transcript?

ShawhinT la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇