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).

mrwogu f9388e1 1.2 KB Updated

File contents

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.

mrwogu/logstrip/tree/main/plugins/logstrip/skills/logstrip commit f9388e1eb2

Frequently asked questions

npx skillmds@latest add mrwogu/logstrip