ctrlb-hq/ctrlb-decompose/analyze-logs
Claude Code and agent skill by ctrlb-hq/ctrlb-decompose
- community
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-logsSKILL.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
- Gate large pastes — redirect to file path if volume is high
- Check if
ctrlb-decomposeis installed; install if not - Run analysis on the file or pasted content
- 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:```bashctrlb-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
If found → skip to Step 2.
If not found → detect the OS:
macOS (Darwin)
Homebrew found — install ctrlb-decompose:
Homebrew not found — install Homebrew first:
Then install ctrlb-decompose:
Linux
| Distro | Install 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 Linux | curl -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):
If cargo is missing, install Rust:
Clone and build:
Confirm with which ctrlb-decompose, then continue to Step 2.
Step 2 — Run Analysis
File path provided:
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:
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:
| Priority | Focus | What to cover | |
|---|---|---|---|
| 1st | Problems | ERROR, FATAL, WARN patterns — frequency, rate, associated variables | |
| 2nd | Anomalies | Frequency spikes, high error rates, unexpectedly low-cardinality variables | |
| 3rd | Variable summaries | Most common IPs, slowest durations (p99), notable enum distributions | |
| 4th | Next steps | Which 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
- SKILL.md in the repositoryCheckingplugin/skills/analyze-logs/SKILL.md
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
[](https://verified-skill.com/skills/ctrlb-hq/ctrlb-decompose/analyze-logs)