Skip to content
Back to skills

Claude Log To Md

ASecurity

Convert Claude Code JSONL conversation logs to readable Markdown. Use when the user wants to export, view, or share a Claude Code session as markdown.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 9, 2026
toolsrubybash

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add ykpythemind/dotfiles --skill claude-log-to-md --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Log To Md?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Log To Md
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ykpythemind-claude-log-to-md/badge)](https://www.skillsdirectory.com/skills/ykpythemind-claude-log-to-md)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-log-to-md
description: Convert Claude Code JSONL conversation logs to readable Markdown. Use when the user wants to export, view, or share a Claude Code session as markdown.
allowed-tools: Glob, Read, Bash(ruby *)
disable-model-invocation: true
---

# Claude Log to Markdown

Convert Claude Code JSONL session logs (`~/.claude/projects/*/SESSION_ID.jsonl`) to readable Markdown output on stdout.

## Usage

Run the bundled script:

```bash
ruby scripts/jsonl_to_md.rb [FILE] [OPTIONS]
```

### Arguments

- `FILE` — Path to a `.jsonl` session file. If omitted, automatically uses the most recent session.
- `--thinking` — Include thinking blocks (rendered as collapsed `<details>`).
- `--no-truncate` — Disable truncation of long content (default max: 2000 chars per block).
- `--max-len N` — Set max characters per content block (default: 2000).
- `--project PATH` — Find latest session for a specific project path.

### Examples

```bash
# Latest session
ruby scripts/jsonl_to_md.rb

# Specific session file
ruby scripts/jsonl_to_md.rb ~/.claude/projects/-Users-me-myproject/SESSION_ID.jsonl

# Include thinking, no truncation
ruby scripts/jsonl_to_md.rb --thinking --no-truncate

# Save to file
ruby scripts/jsonl_to_md.rb > session.md
```

## Output Format

- Session metadata header (session ID, timestamp, working directory)
- `## Human` / `## Assistant` headings for each turn
- Tool calls rendered as `**Tool: Name**` with JSON input in code blocks
- Tool results rendered as `**Result:**` / `**Error:**` in code blocks
- Thinking blocks in collapsible `<details>` (when `--thinking` is used)

Files in this skill

  • SKILL.md1.6 KB
  • scripts/jsonl_to_md.rb6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.