sessionlog:export
/sessionlog:export
Eksportuje bieżącą sesję Claude Code jako plik JSON w standardzie rozmów LLM oraz jako czytelny zapis tekstowy TXT.
- Autor
- florianbuetow ↗
- Repozytorium
- claude-code ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 07.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 07.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Eksportuje bieżącą sesję Claude Code jako plik JSON w standardzie rozmów LLM oraz jako czytelny zapis tekstowy TXT.
Wyzwalacze z opisu
Oryginalny opis (EN)
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.
Jak działa
- Steps
- Output Format
Podgląd SKILL.md
---
name: sessionlog:export
description: >
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.
disable-model-invocation: false
---
# 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:
```bash
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
```bash
"${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:
```json
[
{"role": "user", "content": "Hello"},
{"role": "assistant", "content": [{"type": "text", "text": "Hi there!"}]}
]
```
**TXT** — Human-readable transcript:
```
Session: <session-id>
[user] Hello
[assistant] Hi there!
```
Wersje
W bazie nie ma innych skilli o nazwie sessionlog:export.
Migawka bazy z 13.11.2026 · wersja paczki 30c9516314a2 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90sessionlog:export-all
Eksportuje wsadowo wszystkie sesje Claude Code z bieżącego projektu do plików JSON i TXT w formacie rozmów LLM. - 90sessionlog:info
Wskazuje bieżący identyfikator sesji Claude Code oraz położenie pliku dziennika na dysku. - 90share-transcript:share
Eksportuje sesję Claude Code do pliku HTML lub Markdown, żeby udostępnić transkrypt innym osobom. - 100session-log
Dopisuje wpis z sygnaturą czasową do pliku SESSIONLOG.md z podsumowaniem wykonanej pracy w bieżącej sesji. - 100chat-export
Eksportuje zapisy czatów i JSON rozmów do czystego Markdown, JSON lub zwykłego tekstu, z deterministycznym czyszczeniem transkryptu do raportów, promptów i dokumentacji. - 100report
Eksportuje bieżącą odpowiedź lub kartę jako samodzielny, ostylowany raport HTML w czytelnym szablonie, wyłącznie na prośbę o zapis lub eksport tej karty.