# Logstrip

> Compress noisy CI, build, runtime, and test logs with the LogStrip CLI. Use when the user asks to trim, compress, reduce, or prepare logs for LLM analysis, or when the user pastes log-like output (timestamps, log levels, stack traces, CI markers).

- Skill: `mrwogu/logstrip` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mrwogu/logstrip`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mrwogu/logstrip/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mrwogu (https://skillmd.com/u/mrwogu)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mrwogu/logstrip

---


# LogStrip Log Compression

Use LogStrip when a user provides or points to a verbose log and wants the diagnostic signal preserved while noise is removed.

## Procedure

1. Identify the input log path and desired output path. If no output path is given, use `<input>.logstrip.log`.
2. Verify `logstrip` is already installed. If missing, instruct the user to run `npm i -g logstrip`.
3. Run `logstrip <input> -o <output> --stats`, adding `--aggressiveness <level>` when requested.
4. Report the output path, savings percentage, estimated input/output tokens, dropped lines, duplicate lines, and hidden internal stack lines.
5. If the command fails, show the concise error and suggest the smallest next step.

## Guardrails

- Do not print raw logs unless the user explicitly asks for excerpts.
- Do not install packages automatically.
- Do not use `--json` unless an output path is present.
- Keep stats separate from compressed content when piping.

