image-strip

Removes image blocks from session JSONL while preserving text content.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/leessju/claude-skills --skill image-strip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-strip
Source: https://github.com/leessju/claude-skills/tree/main/image-strip
Command: npx skills add https://github.com/leessju/claude-skills --skill image-strip

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill removes image blocks from the current session JSONL to save tokens while preserving the text content.

Core Features & Use Cases

  • Recursively trims image blocks from message content, including nested structures, without altering non-image data.
  • Automatically backs up the original JSONL with a timestamped backup file.
  • Provides a simple workflow to resume conversations with images removed, via a resume command.

Quick Start

Run the image-strip command to automatically remove image blocks from the current session JSONL while preserving the text context, or specify a path to process a specific file.

Frequently Asked Questions about image-strip

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

FAQPage Schema
How do I remove images from a session JSONL to save tokens?

You can remove images from a session JSONL by running a script that recursively trims image blocks from message content while preserving all text. This process automatically backs up the original file with a timestamp before cleaning the active session data.

What is the best way to clean image blocks from chat history JSONL files?

The best way to clean image blocks from chat history JSONL files is using an automated image-only trimming tool. It targets nested image structures within the transcript without altering textual content, creating a timestamped backup of the original file beforehand.

Can I resume a Claude conversation after stripping images from the session JSONL?

Yes, you can resume a Claude conversation after stripping images by using a dedicated resume command. This workflow allows you to continue interacting with the session using the newly generated text-only JSONL transcript.

Does removing image blocks from JSONL transcripts alter the text context?

Removing image blocks from JSONL transcripts does not alter the text context. The recursive content cleaning mechanism specifically targets and deletes image data while leaving all non-image text and nested structures completely intact.

How do I trim images from specific JSONL backup files instead of the active session?

To trim images from specific JSONL backup files instead of the active session, you can specify the file path when running the image removal command. The script processes the designated transcript and saves a timestamped backup of the original data.