ctrlb-hq/ctrlb-decompose/analyze-logs

Claude Code and agent skill by ctrlb-hq/ctrlb-decompose

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill when the user asks to: "analyze logs", "analyze this log file", "what's in my logs", "investigate errors in logs", "find patterns in log file", "summarize logs", "detect anomalies in logs", "parse log file", "understand log output", "what are the most common errors", or shares a log file path or pastes log content for review.

Install

npx vskill@latest install ctrlb-hq/ctrlb-decompose/analyze-logs

SKILL.md

ctrlb-decompose Log Analysis

Overview

Analyze log files or raw log text using ctrlb-decompose — a CLI that compresses millions of log lines into a handful of typed patterns with variable statistics, anomaly detection, and severity scoring. Output is optimized for LLM consumption via --llm.

Workflow

  1. Gate large pastes — redirect to file path if volume is high
  2. Check if ctrlb-decompose is installed; install if not
  3. Run analysis on the file or pasted content
  4. Interpret results — lead with problems, surface anomalies, suggest next steps

Large Paste Policy

If the user signals they are about to paste log content (e.g. "here are my logs", "let me paste some logs"), ask first:

About how many lines are you sharing? For more than ~100 lines, save to a file and share the path — it keeps context clean and ctrlb-decompose handles files directly:
```bash
ctrlb-decompose --llm --top 20 /path/to/your.log
```

Proceed with pasted content only if the user insists or the volume is clearly small (a handful of lines).

After processing pasted content: do not quote, repeat, or reference individual raw log lines. Work only from ctrlb-decompose output — the raw lines are consumed.


Step 1 — Verify Installation

bash
which ctrlb-decompose

If found → skip to Step 2.

If not found → detect the OS:

bash
uname -s
macOS (Darwin)
bash
which brew

Homebrew found — install ctrlb-decompose:

bash
brew tap ctrlb-hq/tap && brew install ctrlb-decompose

Homebrew not found — install Homebrew first:

bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then install ctrlb-decompose:

bash
brew tap ctrlb-hq/tap && brew install ctrlb-decompose
Linux
bash
cat /etc/os-release
DistroInstall command
Debian / Ubuntu (ID=debian, ID=ubuntu, or ID_LIKE contains debian)curl -LO https://github.com/ctrlb-hq/ctrlb-decompose/releases/latest/download/ctrlb-decompose_amd64.deb && sudo dpkg -i ctrlb-decompose_amd64.deb
RHEL / Fedora / CentOS (ID is rhel, fedora, or centos)curl -LO https://github.com/ctrlb-hq/ctrlb-decompose/releases/latest/download/ctrlb-decompose_amd64.rpm && sudo rpm -i ctrlb-decompose_amd64.rpm
Other Linuxcurl -LO https://github.com/ctrlb-hq/ctrlb-decompose/releases/latest/download/ctrlb-decompose-linux-x86_64 && chmod +x ctrlb-decompose-linux-x86_64 && sudo mv ctrlb-decompose-linux-x86_64 /usr/local/bin/ctrlb-decompose
Fallback — Build from Source

If any installation method fails (wrong architecture, missing binary, package manager error):

bash
which git && which cargo

If cargo is missing, install Rust:

bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source "$HOME/.cargo/env"

Clone and build:

bash
git clone https://github.com/ctrlb-hq/ctrlb-decompose.git /tmp/ctrlb-decompose-build \
&& cd /tmp/ctrlb-decompose-build \
&& cargo build --release \
&& sudo cp target/release/ctrlb-decompose /usr/local/bin/ctrlb-decompose \
&& cd / && rm -rf /tmp/ctrlb-decompose-build

Confirm with which ctrlb-decompose, then continue to Step 2.


Step 2 — Run Analysis

File path provided:

bash
ctrlb-decompose --llm --top 20 "$FILE_PATH"

Pasted log text: Use the Write tool to save content to /tmp/ctrlb_input.log (handles multi-line text, special characters, and quotes correctly), then:

bash
ctrlb-decompose --llm --top 20 /tmp/ctrlb_input.log && rm /tmp/ctrlb_input.log

Use --top 20 by default. Increase to --top 50 if the user wants more patterns. For all available flags and options, run ctrlb-decompose --help.


Step 3 — Interpret Results

Present findings in this priority order:

PriorityFocusWhat to cover
1stProblemsERROR, FATAL, WARN patterns — frequency, rate, associated variables
2ndAnomaliesFrequency spikes, high error rates, unexpectedly low-cardinality variables
3rdVariable summariesMost common IPs, slowest durations (p99), notable enum distributions
4thNext stepsWhich patterns to drill into, what filters or time ranges to investigate

Keep the response grounded in ctrlb-decompose output. Do not speculate about root causes beyond what the pattern data supports.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
132
Repository forks
18
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Jul 2026, 3 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ctrlb-hq/ctrlb-decompose/analyze-logs/badge)](https://verified-skill.com/skills/ctrlb-hq/ctrlb-decompose/analyze-logs)

Something wrong with this skill or its page? Tell us.