cavecrew

作者: juliusbrussee

Decision guide for delegating to caveman-style subagents. Tells the main thread WHEN to spawn `cavecrew-investigator` (locate code), `cavecrew-builder` (1-2 file edit), or `cavecrew-reviewer` (diff review) instead of doing the work inline or using vanilla `Explore`. Subagent output is caveman-compressed so the tool-result injected back into main context is ~60% smaller — main context lasts longer across long sessions. Trigger: "delegate to subagent", "use cavecrew", "spawn...

npx skills add https://github.com/juliusbrussee/caveman --skill cavecrew

Cavecrew = three subagent presets that emit caveman output. Same job as Anthropic defaults (Explore, edit-style agents, reviewer); difference is the tool-result they return is compressed, so main context shrinks per delegation.

When to use cavecrew vs alternatives

TaskUse
"Where is X defined / what calls Y / list uses of Z"cavecrew-investigator
Same but you also want suggestions/architecture commentaryExplore (vanilla)
Surgical edit, ≤2 files, scope obviouscavecrew-builder
New feature / 3+ files / cross-cutting refactorMain thread or feature-dev:code-architect
Review diff, branch, or file for bugscavecrew-reviewer
Deep code review with rationale + alternativesCode Reviewer (vanilla)
One-line answer you already knowMain thread, no subagent

Rule of thumb: if you'd want the subagent's output in 1/3 the tokens, pick cavecrew. If you'd want prose, pick vanilla.

Why this exists (the real win)

Subagent tool results get injected into main context verbatim. A vanilla Explore that returns 2k tokens of prose costs 2k tokens of main-context budget every time. The same finding from cavecrew-investigator returns ~700 tokens. Across 20 delegations in one session that's the difference between context exhaustion and finishing the task.

Output contracts

What main thread can rely on per agent:

cavecrew-investigator

<Header>:
- path:line — `symbol` — short note
totals: <counts>.

Or No match. Always file-path-first, line-number-attached, backticked symbols. Safe to grep with path:\d+.

cavecrew-builder

<path:line-range> — <change ≤10 words>.
verified: <re-read OK | mismatch @ path:line>.

Or one of: too-big. / needs-confirm. / ambiguous. / regressed. (terminal first token).

cavecrew-reviewer

path:line: <emoji> <severity>: <problem>. <fix>.
totals: N🔴 N🟡 N🔵 N❓

Or No issues. Findings sorted file → line ascending.

Chaining patterns

Locate → fix → verify (most common):

  1. cavecrew-investigator returns site list.
  2. Main thread picks 1-2 sites, hands paths to cavecrew-builder.
  3. cavecrew-reviewer audits the diff.

Parallel scout (when investigation is broad): Spawn 2-3 cavecrew-investigator calls in one message (different angles: defs vs callers vs tests). Aggregate in main thread.

Single-shot edit (when site is already known): Skip investigator. Hand exact path:line to cavecrew-builder directly.

What NOT to do

  • Don't use cavecrew-builder when you don't already know the file. Spawn investigator first or main thread will eat tokens passing context.
  • Don't chain cavecrew-investigator → cavecrew-builder for a 5-file refactor. Builder will return too-big. and you'll have wasted a turn.
  • Don't ask cavecrew-reviewer for "general feedback" — it returns findings only, no architecture opinions. Use Code Reviewer for that.
  • Don't expect prose. Cavecrew output is structured, sometimes terse to the point of cryptic. If a human will read it directly, paraphrase.

Auto-clarity (inherited)

Subagents drop caveman → normal English for security warnings, irreversible-action confirmations, and any output where fragment ambiguity could be misread. Resume caveman after.

來自 juliusbrussee 的更多技能

caveman
juliusbrussee
超壓縮溝通模式。透過穴居人式簡潔表達,減少約75%的token使用量,同時維持完整技術準確性。支援強度等級:lite、full(預設)、ultra、wenyan-lite、wenyan-full、wenyan-ultra。當使用者說「caveman mode」、「talk like caveman」、「use caveman」、「less tokens」、「be brief」或呼叫/caveman時啟用。亦會在要求token效率時自動觸發。
communicationproductivity
caveman-commit
juliusbrussee
超壓縮提交訊息生成器。去除提交訊息中的雜訊,同時保留意圖與理由。採用 Conventional Commits 格式。主旨不超過50字元,僅在「原因」不明顯時加入內文。當使用者說「寫提交」、「提交訊息」、「生成提交」、「/commit」或呼叫 /caveman-commit 時使用。暫存變更時自動觸發。
developmentcode-review
caveman-compress
juliusbrussee
將自然語言記憶檔案(CLAUDE.md、待辦事項、偏好設定)壓縮成穴居人格式以節省輸入令牌。保留所有技術內容、程式碼、網址與結構。壓縮版本會覆蓋原始檔案。人類可讀的備份會另存為FILE.original.md。觸發指令:/caveman-compress FILEPATH 或「壓縮記憶檔案」
developmentdocument
caveman-help
juliusbrussee
所有穴居人模式、技能與指令的快速參考卡。一次性顯示,非持續模式。觸發方式:/caveman-help、「caveman help」、「what caveman commands」、「how do I use caveman」。
developmentdocumentproductivity
caveman-review
juliusbrussee
超壓縮程式碼審查評論。減少PR回饋中的雜訊,同時保留可執行的關鍵資訊。每條評論僅一行:位置、問題、修正。當使用者說「審查此PR」、「程式碼審查」、「審查差異」、「/review」或呼叫/caveman-review時使用。審查拉取請求時自動觸發。
developmentcode-review
caveman-stats
juliusbrussee
顯示當前會話的實際Token使用量與預估節省金額。直接從Claude Code會話日誌讀取,無需AI估算。透過/caveman-stats觸發。輸出由mode-tracker鉤子注入,模型本身不計算數值。
developmentdata-analysis