extract-chat-context

Extract and summarize Claude Code or Codex session history into supplementary/know-how.md.

14|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/LionSR/AgenticPublicationProtocol --skill extract-chat-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-chat-context
Source: https://github.com/LionSR/AgenticPublicationProtocol/tree/main/skills/extract-chat-context
Command: npx skills add https://github.com/LionSR/AgenticPublicationProtocol --skill extract-chat-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Researchers often have valuable behind-the-scenes decisions and debugging insights buried in Claude Code or Codex chat history, which are difficult to reuse and publish alongside a paper without heavy manual curation.

Core Features & Use Cases

  • Extract session transcripts: Lists and extracts relevant Claude Code or Codex session turns while removing system-style preambles.
  • Produce a publication-ready thematic summary: Distills many sessions into a single supplementary document (supplementary/know-how.md) organized by themes (not by session).
  • Support optional transparency levels: Can publish summary-only, summary plus cleaned sessions, or summary plus lightly processed full history in supplementary files.
  • Enforce confidentiality screening: Runs a required privacy/credential screening workflow that flags sensitive items for explicit researcher action (redact, keep, or rephrase).

Quick Start

Use extract-chat-context to produce a publishable supplementary/know-how.md from the researcher’s Claude Code or Codex session history after the researcher confirms what should be emphasized and resolves all confidentiality flags.

Frequently Asked Questions about extract-chat-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract research context from Claude Code or Codex chat history for publication?

To extract research context from Claude Code or Codex chat history, this Skill batch processes session transcripts, removes system preambles, and distills key decisions and debugging insights into a thematic summary document.

Can I generate supplementary materials from chat session transcripts automatically?

Yes, you can generate supplementary materials by running a batch extraction on your chat sessions, which are then organized into a publication-ready supplementary/know-how.md file grouped by research themes rather than by session.

How do I screen chat history for confidential information before publishing?

Screening chat history for confidential information involves a mandatory privacy and credential screening workflow that flags sensitive items, requiring the researcher to explicitly redact, keep, or rephrase them before publishing.

What is the best way to summarize chat sessions into a reproducible research methodology?

The best way to summarize chat sessions into reproducible research methodology is to use thematic summarization, which distills many development sessions into a single supplementary document capturing methodology choices and dead ends.

What levels of transparency can I choose when publishing extracted chat history?

Transparency levels for publishing extracted chat history include summary-only, summary plus cleaned session outputs, or summary plus lightly processed full history in supplementary files.

Do I need to manually review the extracted session context before publishing?

Yes, mandatory researcher review is required before publishing to resolve confidentiality flags and confirm what specific decisions and debugging insights should be emphasized in the final supplementary materials.