Claude History — Code Quality skill for Claude Code
A command-line utility to extract and format conversation history from Claude Code session files.
How to install Claude History
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open thejud/claude-history and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude History does
A command-line utility to extract and format conversation history from Claude Code session files.
Alternatives in Code Quality
- Import Drawio — Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level 27.2k ★
- Job Stories — Create job stories with acceptance criteria in JTBD format 7.8k ★
- Video Script: Claude SEO V1.7.2 — What's New — Duration: ~5 minutes Tone: Natural, conversational, like talking to a friend who knows Claude Code Format: Scr 5k ★
README
Claude History
A command-line utility to extract and format conversation history from Claude Code session files.
Overview
Claude History parses JSONL session files stored by Claude Code and outputs a chronologically ordered markdown report of your conversations. You can view just user prompts or include assistant responses in a structured format.
Installation
- Clone or download the repository
- Make the script executable:
chmod +x claude_history.py
Usage
Basic Commands
# Extract prompts from current directory project
python3 claude_history.py
# Extract prompts from specific project
python3 claude_history.py ~/my-project
# Include assistant responses
python3 claude_history.py --agent ~/my-project
# Output without timestamps (still chronologically sorted)
python3 claude_history.py --nodate ~/my-project
# Combine flags
python3 claude_history.py -a -N ~/my-project # Agent responses without timestamps
Command Line Options
| Option | Short | Description |
|---|---|---|
--agent |
-a |
Include assistant responses in output |
--nodate |
-N |
Print messages without timestamps |
--help |
-h |
Show help message |
Output Formats
User Prompts Only (Default)
# Claude Code Session History
Generated on: 2024-01-01 12:00:00
- 1. **2024-01-01 10:00:00** - Hello, can you help me with Python?
- 2. **2024-01-01 10:02:00** - How do I parse JSON files?
- 3. **2024-01-01 10:04:00** - What about error handling?
With Assistant Responses (`--agent`)
# Claude Code Session History
Generated on: 2024-01-01 12:00:00
## 1. **2024-01-01 10:00:00**
**Prompt:** Hello, can you help me with Python?
**Response:** I'd be happy to help you with Python! What specific task are you working on?
## 2. **2024-01-01 10:02:00**
**Prompt:** How do I parse JSON files?
**Response:** You can use Python's built-in json module. Here's how...
How It Works
Cla
Related Skills
TMT Game Generator
A SKILL.md-format agent skill that generates complete, playable, balanced The Modding Tree (TMT v2.7) incremen
List All Tools
List all available tools detailed in your system prompt. Display them in bullet points. Display them in typesc
Video Ad Reverse Engineer
Deconstruct any video ad into a reusable creative template — extract the format, structure, hooks, and strateg
Add Exchange Parser
Procedure for handling an exchange-specific response shape that doesn't conform to CCXT's unified format (e.g.
Pbi Format
Reformat DAX expressions for maximum readability using the DAX Formatter API (daxformatter.com). Handles long
Session Start
Start a new development session by creating a session file in .claude/sessions/ with the format YYYY-MM-DD-HHM
Related Agents
Conversation Historian
Use when analyzing Claude Code conversation history, finding past sessions by topic, tracing how implementatio
Doc Processor
Generate and parse office documents — PDF, DOCX, XLSX, PPTX, CSV. Pure format utility for creating reports, ex
AWS Log Reader
Use this agent when you need to analyze, summarize, or extract information from AWS logs (CloudWatch, S3 acces