# Chatgpt History

> Search and extract data from ChatGPT conversation history. Use when the user asks to find, search, or extract information from their ChatGPT history, conversations, or past chats.

- Skill: `diegosouzapw/chatgpt-history` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add diegosouzapw/chatgpt-history`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegosouzapw/chatgpt-history/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: diegosouzapw (https://skillmd.com/u/diegosouzapw)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/diegosouzapw/chatgpt-history

---


# ChatGPT History

Search and extract data from ChatGPT conversation history. The full history is in `references/conversations.json`.

## When to Use

- User asks to find something from their ChatGPT history
- User wants to extract data, decisions, or information from past conversations
- User mentions "my ChatGPT chats", "conversation history", or "what did we discuss about X"

## Searching the Conversation History

**Quick search (grep):** From the skill directory, run:

```bash
rg 'search-term' references/conversations.json
```

**Structured search:** For parsed excerpts with conversation title and context:

```bash
pnpm query "your query"
```

Or: `npx tsx scripts/search.ts "your query"`

## File Location

The conversation data is at `references/conversations.json`. Ensure the user has copied their file there (from OpenAI export or any ChatGPT export).

## Output

When extracting data, present results with:
- Conversation title
- Role (user/assistant)
- Relevant excerpt
- Source conversation if multiple matches

