Habilidades extract-transcripts
📝
Claude Code 和 Codex CLI 將對話歷史儲存為 JSONL 檔案,難以手動閱讀。此技能可將這些會話提取為乾淨的 Markdown 格式,包含中繼資料、時間戳記,以及可選的工具呼叫詳細資訊。
Soporta: Claude Codex Code(CC)
1
Descargar el ZIP de la skill
2
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
3
Activa y empieza a usar
Pruébalo
Usando "extract-transcripts". Extract the Claude Code session at ~/.claude/projects/myproject/session.jsonl
Resultado esperado:
- # Session: session
- **Date:** 2025-01-10 14:30
- **Duration:** 45m 20s
- **Model:** claude-sonnet-4-5-20251101
- **Working Directory:** /home/user/projects/myproject
- **Git Branch:** feature/auth
- ---
- ## User
- Help me implement user authentication with JWT tokens...
- ## Assistant
- I'll help you set up JWT authentication. Let me first check your project structure.
Auditoría de seguridad
Segurov2 • 1/10/2026
Pure Python file processing utility with no network access, no code execution capabilities, and no credential or sensitive data exposure. All operations are confined to user-specified JSONL session files and local output.
5
Archivos escaneados
1,802
Líneas analizadas
0
hallazgos
2
Auditorías totales
No se encontraron problemas de seguridad
Auditado por: claude Ver historial de auditorías →
Puntuación de calidad
38
Arquitectura
100
Mantenibilidad
81
Contenido
20
Comunidad
100
Seguridad
70
Cumplimiento de la especificación
Lo que puedes crear
會話回顧
回顧過去的 AI 輔助會話,以回憶決策、上下文或程式碼模式
產生指南
將會話日誌轉換為教學內容或程序文件
審計使用情況
搜尋團隊會話以識別模式或驗證實作方法
Prueba estos prompts
提取會話
Extract the Claude Code session at ~/.claude/projects/myproject/abc123.jsonl to a readable transcript
搜尋會話
Show me all Claude Code sessions from the last week that mention authentication
批次匯出
Extract all Claude Code sessions from ~/projects/api-server into markdown files
Codex 會話
Extract the Codex session at ~/.codex/sessions/xyz789/rollout.jsonl
Mejores prácticas
- 需要快速會話概覽時使用 --summary 標誌,僅需中繼資料
- 批次處理時使用 --skip-empty 篩選出僅暖身的測試會話
- 執行 transcript index 以啟用會話歷史的全文搜尋
Evitar
- 不要依賴會話 ID 作為唯一識別符 - 子代理可能共用 ID
- 不要期望取得 token 數量或成本資料 - 此資訊不會儲存在會話檔案中
- 不要修改原始 JSONL 檔案 - 提取器僅從中讀取
Preguntas frecuentes
支援哪些平台?
Claude Code CLI、Codex CLI,以及 macOS、Linux 和 Windows 上的 Claude Code 桌面應用程式。
會話可以有多大?
會話大小受限於磁碟儲存空間。個別轉錄稿輸出會截斷超過 2000 個字元的訊息。
可以與其他工具整合嗎?
可以,指令碼輸出到 stdout 或檔案。將輸出管道傳送到其他工具或重新導向至檔案以進行整合。
我的資料安全嗎?
所有處理都是本地的。不會傳送任何資料。索引會將轉錄稿儲存在本機 DuckDB 資料庫中。
為何會話沒有出現?
檢查會話路徑是否存在。使用 --path 指定自訂目錄。執行 index --full 強制重新掃描。
這與原生匯出有何不同?
原生匯出提供原始 JSONL。此工具將對話格式化為可讀的 markdown,包含中繼資料和上下文。