sessionlog:export
This skill should be used when the user asks to "export session log", "convert session to json", "export conversation", "save session", "sessionlog export"…
от florianbuetow★ 22 звезды на GitHub
Установить sessionlog:export в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Session Log Export
Export the current Claude Code session to standard LLM conversation JSON and a human-readable TXT transcript.
Steps
1. Identify current session
Run the following to find the session file:
project_dir="$HOME/.claude/projects/$(pwd | sed 's|/|-|g')"
current_session=$(ls -t "$project_dir"/*.jsonl 2>/dev/null | head -1)
session_id=$(basename "$current_session" .jsonl)
echo "Session: $session_id"
echo "Source: $current_session"
2. Determine output directory
Use the output directory specified in the user's prompt. If none was specified, default to docs/sessionlogs/ relative to the current working directory.
3. Run the export script
"${CLAUDE_PLUGIN_ROOT}/scripts/export-session.sh" "$current_session" "<output-dir>" "$session_id"
The script produces two files:
<output-dir>/claude-<session-id>.json— standard LLM conversation JSON (array of{role, content}objects)<output-dir>/claude-<session-id>.txt— human-readable transcript with[user]/[assistant]prefixes
4. Report results
Show the user:
- The two output file paths
- Number of messages exported
- File sizes
Output Format
JSON — Array of message objects following the standard LLM conversation format:
[
{"role": "user", "content": "Hello"},
{"role": "assistant", "content": [{"type": "text", "text": "Hi there!"}]}
]
TXT — Human-readable transcript:
Session: <session-id>
[user] Hello
[assistant] Hi there!
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sessionlog:export?
This skill should be used when the user asks to "export session log", "convert session to json", "export conversation", "save session", "sessionlog export", "export this session", or wants to export the current Claude Code session as a standard LLM conversation JSON file and human-readable TXT transcript.
Как установить скилл sessionlog:export?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sessionlog:export запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…