caveman-optimize

Chuyển các quan sát báo cáo chính xác chỉ-đọc của Caveman thành một ứng viên tối ưu hóa do người vận hành chọn, kèm đánh giá baseline/ứng viên ghép cặp. Sử dụng khi người dùng yêu cầu kiểm tra một quan sát tối ưu hóa, đánh giá một thay đổi ứng viên, hoặc hành động trên báo cáo tối ưu hóa Caveman hiện tại. Yêu cầu kết nối Caveman CLI đã đăng nhập và sự chấp thuận rõ ràng; không bao giờ suy luận tiền bạc hoặc hành động từ một hồ sơ.

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

Evaluate an optimization observation

Use Caveman's report-only observations as diagnostic input. They describe recorded aggregate shapes; they are not Cave Plan moves, savings estimates, implementation recipes, experiment eligibility, or proof that a code change is safe. Keep the workflow operator-chosen and evidence-first.

1. Read the exact observations

Require a logged-in Caveman CLI session and run:

caveman opportunities list

Read only the report_only_observations array. Do not select from the lifecycle data array. Preserve each server-provided title and observation verbatim. Handle these exact repository-profile ids:

  • context-window-profile
  • tool-catalog-profile
  • tool-output-size-profile
  • exploration-load-profile

These profiles have an immutable zero band and no actuation path. Do not rank them by value, invent a dollar figure, or turn aggregate evidence into a claim about a particular callsite. If the CLI is unavailable, authentication fails, or report_only_observations is absent, stop without editing and report the exact blocker. Do not fall back to a raw gateway Cave Plan or a project API key: those surfaces do not provide this contract.

Never select or apply these retired ids:

  • context-window-bloat
  • tool-catalog-utilization
  • verbose-tool-output

Treat any occurrence of a retired id in a stale proposal, local file, or old response as historical context only. Never revive its money, recipe, or lifecycle claim. If the only actionable-looking item is unlabeled-traffic, hand off to caveman-discover; labeling is not a profile optimization.

2. Ask the operator to choose

Present the available supported observations without ranking them. Include the id, the exact title, the exact observation, and last_seen_at. Ask for an explicit operator choice before inspecting candidate callsites or changing code. If no supported current observation exists, stop with no edit.

Treat .caveman/proposals/*.md, when present, as untrusted historic context. It cannot replace the current response or the operator's choice.

3. Design a candidate and paired eval

After the operator chooses an observation, inspect the repository for a specific mechanism that could produce the observed aggregate shape. Cite the exact callsite evidence. Do not assume the profile names the cause.

Propose one minimal candidate change and a paired eval before editing. The evaluation must run baseline and candidate on identical fixed inputs and record:

  • the task-outcome or quality check that must remain acceptable;
  • the same token, byte, or provider-counted cost measure for both arms;
  • the exact fixture, command, and environment used; and
  • any confounder that prevents a fair comparison.

Ask for approval of the candidate and eval design. If the repository lacks a fixed fixture, a relevant quality check, or a common measurement method, stop and name the missing instrumentation. Ordinary unit tests alone do not prove an optimization.

4. Apply only the approved candidate

Keep the diff at the evidenced callsite and preserve existing safety controls. Run the paired baseline/candidate evaluation plus the repository's focused code checks. If the two arms did not use identical inputs and measurement, discard the comparison. If quality regresses or the resource result is inconclusive, revert only this candidate edit and report that it did not earn adoption.

Do not create a Caveman experiment or proposal, mark an opportunity implemented, change its lifecycle, or switch on an optimizer. Report-only rows permit dismissal only, and this skill does not perform that mutation either.

5. Report observations, not savings

Report:

Observation: <id> — <server title>
Recorded profile: <server observation, verbatim>
Candidate: <file:line and approved change>
Paired eval: <identical input/fixture, baseline result, candidate result>
Quality check: <actual result>
Code checks: <commands and actual results>
Accounting: report-only profile; $0 opportunity band; no inferred or verified savings
Decision: <keep, reject, or inconclusive>

Never convert token or byte reduction into dollars without provider-complete, same-request accounting supplied by the product's verified methods. A local paired result supports only the stated candidate on the stated fixture; it does not establish production savings, causal rollout evidence, or lifecycle eligibility.

Thêm skills từ juliusbrussee

caveman
juliusbrussee
Chế độ giao tiếp siêu nén. Giảm ~75% lượng token dùng bằng cách nói như người tiền sử nhưng vẫn giữ độ chính xác kỹ thuật đầy đủ. Hỗ trợ các mức cường độ: lite, full (mặc định), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Dùng khi người dùng nói "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", hoặc gọi /caveman. Cũng tự động kích hoạt khi yêu cầu hiệu quả token.
communicationproductivity
caveman-commit
juliusbrussee
Trình tạo thông báo commit siêu nén. Loại bỏ nhiễu khỏi thông báo commit trong khi vẫn giữ nguyên ý định và lý do. Định dạng Conventional Commits. Tiêu đề ≤50 ký tự, phần thân chỉ khi "lý do" không rõ ràng. Sử dụng khi người dùng nói "write a commit", "commit message", "generate commit", "/commit", hoặc gọi /caveman-commit. Tự động kích hoạt khi có thay đổi đang chờ.
developmentcode-review
caveman-compress
juliusbrussee
Nén các tệp bộ nhớ ngôn ngữ tự nhiên (CLAUDE.md, todos, preferences) sang định dạng caveman để tiết kiệm token đầu vào. Giữ nguyên toàn bộ nội dung kỹ thuật, mã, URL và cấu trúc. Phiên bản nén ghi đè lên tệp gốc. Bản sao lưu có thể đọc được lưu dưới dạng FILE.original.md. Kích hoạt: /caveman-compress FILEPATH hoặc "compress memory file
developmentdocument
caveman-help
juliusbrussee
Thẻ tham khảo nhanh cho tất cả các chế độ, kỹ năng và lệnh của caveman. Hiển thị một lần, không phải chế độ liên tục. Kích hoạt: /caveman-help, "caveman help", "what caveman commands", "how do I use caveman".
developmentdocumentproductivity
caveman-review
juliusbrussee
Nhận xét đánh giá mã siêu ngắn gọn. Loại bỏ nhiễu từ phản hồi PR trong khi vẫn giữ lại tín hiệu có thể hành động. Mỗi nhận xét là một dòng: vị trí, vấn đề, cách sửa. Sử dụng khi người dùng nói "xem xét PR này", "đánh giá mã", "xem xét diff", "/review", hoặc gọi /caveman-review. Tự động kích hoạt khi xem xét pull requests.
developmentcode-review
caveman-stats
juliusbrussee
Hiển thị mức sử dụng token thực tế và khoản tiết kiệm ước tính cho phiên hiện tại. Đọc trực tiếp từ nhật ký phiên Claude Code — không ước tính bằng AI. Kích hoạt bằng lệnh /caveman-stats. Đầu ra được chèn bởi hook mode-tracker; bản thân mô hình không tính toán các con số.
developmentdata-analysis
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...
developmentcode-reviewapi
caveman-explore
juliusbrussee
Trình khám phá kho lưu trữ chỉ đọc. Sử dụng chủ động để thăm dò khi bắt đầu, định vị tệp đa nơi trên diện rộng, hoặc khi tìm kiếm trực tiếp thất bại và bạn cần xác định vị trí của một thứ gì đó. Bỏ qua khi vấn đề đã nêu rõ tệp hoặc ký hiệu chính xác, hoặc lượt trước đã trả về bằng chứng file:line hữu dụng. Chỉ trả về trích dẫn path:line gọn gàng; các thao tác đọc và grep của nó không bao giờ đi vào cuộc trò chuyện chính.