/caveman:caveman-condense-logfrom caveman
Compress error logs + stack traces via caveman-mcp with language detection + dedup. For log triage, post-incident review, CI failure analysis when raw logs too long. 以caveman壓縮日誌與堆棧。 Use when: triage CI failure log, summarize app error output, dedupe stack traces, post-incident analysis, prep log for debug agent
Ships in caveman. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
壓縮錯誤日誌、堆棧追蹤、CI輸出。自動檢測語言(Python/Node/Java/Go/Rust等)並去重。
| Scenario | Action |
|---|---|
| CI日誌數千行多重錯誤 | condense_log 提取唯一錯誤 |
| 應用錯誤日誌堆積 | condense_log 去重模式 |
| 單一錯誤+短trace | 直接Read,無需壓縮 |
| 結構化JSON日誌 | 先jq過濾,再傳caveman |
| 性能trace(火焰圖) | caveman不適合——用trace工具 |
tool: mcp__plugin_slop-mcp_slop-mcp__execute_tool
params:
mcp_name: "caveman"
tool_name: "condense_log"
parameters:
text: "<raw-log-text>"
直接:mcp__plugin_caveman_caveman__condense_log
注:condense_log僅接受text參數。文件路徑用condense_file,URL用condense_url。
代碼行、文件路徑、行號、錯誤消息保持精確。
# Capture CI log
gh run view <run-id> --log-failed > /tmp/ci.log
# Or local pytest
pytest 2>&1 | tee /tmp/test.log
tool_name: condense_log
parameters:
text: "<paste log content or read file first>"
實踐:先Read日誌文件,再傳text參數。或:
# Pipe to clipboard / inline
cat /tmp/ci.log
然後將輸出傳入。
tool_name: condense_log
parameters:
text: |
[2026-04-30 10:23:01] ERROR auth.middleware TokenExpiredError at line 42
[2026-04-30 10:23:02] ERROR auth.middleware TokenExpiredError at line 42
[2026-04-30 10:23:05] ERROR auth.middleware TokenExpiredError at line 42
[2026-04-30 10:24:11] ERROR db.pool ConnectionTimeout after 30s
...
返回:2唯一錯誤、計數、首末時間戳。
caveman檢測混合堆棧(Node調Python子進程等)並分組。
condense_log取text字符串。極大日誌(>1MB)可能慢——先grep -i error過濾sed過濾敏感行systematic-debugging技能或debug agent,省其上下文condense_file更直接,無需先讀What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub standardbeagle/standardbeagle-tools --plugin caveman9 skills in this plugin
/caveman-condense-fileCompress local files via caveman-mcp — PDF/slides/spreadsheet/audio/text handlers. Use instead of Read when file too large or only gist matters. 以caveman壓縮本地文件。 Use when: ingest large PDF, summarize slide deck, scan spreadsheet, transcribe audio, condense long doc, prep file for downstream synthesis/caveman-condense-gitCompress git diffs, logs, blame output, and GitHub PR URLs via caveman-mcp. Use for PR review, change summarization, blame archaeology when raw diff exceeds context budget. 以caveman壓縮git diff/log/blame及GitHub PR URL. Use when: review large PR, summarize branch diff, archaeology git blame, ingest PR for memory, prep diff for downstream review agent/caveman-condense-imageOther plugins' skills for the same job