/caveman:caveman-condense-gitfrom caveman
Compress 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
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.
壓縮git diff、log、blame輸出,或直接從GitHub PR URL拉取並壓縮。
| Scenario | Action |
|---|---|
| PR > 500行 | condense_git with pr_url |
大型git log歷史 | git log ... | <pipe to text> |
git blame整文件 | git blame ... | <pipe to text> |
| 小diff(<200行) | 直接Read,無需壓縮 |
| 需逐行精確審查 | 直接審;caveman為摘要 |
tool: mcp__plugin_slop-mcp_slop-mcp__execute_tool
params:
mcp_name: "caveman"
tool_name: "condense_git"
parameters:
# ONE of:
pr_url: "<github-pr-url>" # GitHub PR
path: "<file-or-repo-path>" # Local artifact path
text: "<raw-diff-or-log>" # Inline text
直接:mcp__plugin_caveman_caveman__condense_git
恰一個參數必填。三者並列時行為未定義——擇一。
tool_name: condense_git
parameters:
pr_url: "https://github.com/standardbeagle/agnt/pull/42"
返回:標題、文件改動摘要、邏輯改動要點、潛在風險。
# First capture diff
git diff main..feature-branch > /tmp/diff.txt
tool_name: condense_git
parameters:
path: "/tmp/diff.txt"
tool_name: condense_git
parameters:
text: |
diff --git a/foo.py b/foo.py
index abc..def 100644
--- a/foo.py
+++ b/foo.py
@@ -1,3 +1,4 @@
+import logging
def foo():
pass
git log main..HEAD --stat > /tmp/log.txt
tool_name: condense_git
parameters:
path: "/tmp/log.txt"
git blame -L 100,200 src/auth.py > /tmp/blame.txt
tool_name: condense_git
parameters:
path: "/tmp/blame.txt"
textWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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-imageExtract description, OCR text, structural summary from images via caveman-mcp condense_file. For screenshots/diagrams/charts/photos when token budget rules out raw image. 以caveman提取圖像描述/OCR/結構。 Use when: ingest screenshot, summarize diagram, extract chart data, photo OCR, archive image as text, prep image for text-only synthesis/caveman-condense-logCompress 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/caveman-condense-textCompress raw text via caveman-mcp two-pass (filler removal + classical Chinese ultra). Code/identifiers/numbers preserved. 以caveman壓縮任意文本。 Use when: compress chat transcript, condense prose, prep meeting notes, summarize research draft, reduce memory entry size, ad-hoc inline compression/caveman-condense-urlFetch + compress any URL via caveman-mcp with smart routing for YouTube/GitHub/arXiv/HN/Reddit/RSS. Replaces WebFetch when token budget tight or content cited later. 以caveman取URL並壓縮。 Use when: research URLs, summarize articles, YouTube transcripts, ingest arXiv papers, scan HN/Reddit, follow RSS, prep citations/caveman-recommenderRoutes caveman / context-compression intent to right manual skill — sole auto gateway; others manual. caveman 唯一自動網關。 Use when: compress file/PDF/slides/spreadsheet/audio, condense git diff/log or PR URL, OCR/summarize image/screenshot/diagram, compress error logs/stack traces/notes, fetch+compress URL (YouTube/GitHub/arXiv), multi-source research, caveman-mcp setup, unsure which caveman skill.