Chuyển đến nội dung
Skillpedia
Prompt và LLM5.1k · #15090

omh-context-budget-review

Skill này làm gì

Skill này lên kế hoạch cần giữ ngữ cảnh nào, khi nào tóm tắt và cách phục hồi nếu ngữ cảnh bị tràn trong lúc làm việc dài. Skill dành cho người chạy các tác vụ agent dài và lo lắng về việc hết chỗ.

Khi nào nên dùng

  • ✓Khi một tác vụ agent dài có nguy cơ hết ngữ cảnh.
  • ✓Khi bạn muốn lên kế hoạch ngân sách token hoặc chi phí cho một tác vụ dài.
  • ✓Khi bạn muốn các điểm tóm tắt cho một công việc dài.

Liên kết skill

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-context-budget-review/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-context-budget-review/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tác vụ pull request dài này cứ bị hết ngữ cảnh. Lên kế hoạch xem tôi phải giữ gì và khi nào nên tóm tắt.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent liệt kê ngữ cảnh cần giữ, đặt các điểm kiểm tra để tóm tắt và lên kế hoạch tuyến phục hồi nếu đạt giới hạn. Agent giữ nguyên mục tiêu đầy đủ thay vì làm tác vụ nhỏ đi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Context Budget Review

This is an OMH context-budget-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

context-budget-review ports ECC's context-budget and token-budget instincts into OMH as a compactness gate that protects long-running work without redefining success around a smaller task.

Do Not Use When

  • The user asks only what this Hermes session has used or cost so far; Hermes' /usage shows this session's tokens and context, /insights estimates cost across recent sessions, and the omh_run_summary tool relays this conversation's recorded tokens and cost.
  • The user asks to continue a loopable goal; use ulw-loop unless budget planning is the explicit blocker.
  • The task is a short one-step answer with no meaningful context risk.

Examples

Good example:

  • Prompt: context-budget-review 이 장기 PR 작업에서 어떤 맥락을 꼭 유지하고 언제 요약해야 하는지 잡아줘.
  • Expected behavior: Prepare context_budget_plan/v1, must_keep_context_pack/v1, checkpoint plan, risk register, and overflow recovery route.
  • Why: The request is about preserving context quality during long-running agent work.

Bad example:

  • Prompt: context-budget-review 토큰 아끼려고 원래 목표를 더 작은 목표로 바꿔줘.
  • Expected behavior: Reject goal shrinking and instead compact context while preserving the full objective and evidence gaps.
  • Why: Budget review optimizes context handling, not the user's requested end state.

Completion Checklist

  • The run or workflow scope, metric window, failure modes, and cost/latency boundary are named.
  • Local telemetry, provider truth, billing truth, and completion evidence are separate states.
  • Warnings name the next measurement or operator review action.

Recovery Notes

  • If provider metrics are unavailable, report only local metadata and mark provider truth not_observed.
  • If cost or latency looks risky, surface a warning plus the next measurement rather than a completion claim.

When to Use

Use before long-running research, coding, review, or multi-agent work when context, token, cost, or summary drift could break quality.

Strong routing signals: `context-budget-review`, `context budget review`, `context budget`, `token budget review`, `token budget`, `prompt budget`, `prompt caching`, `prompt cache`, `cache hygiene`, `context compaction`, `compact context`, `too much context`, `context window`, `running out of context`, `hand off to a new session`, `summarization checkpoint`, `budget this task`, `컨텍스트 예산`, `토큰 예산`, `컨텍스트 압축`, `요약 체크포인트`, `что жрёт токены`, `бюджет токенов`, `контекст переполнен`, `сколько уходит токенов`, `на что уходят токены`, `на что тратятся токены`

Catalog Metadata

Category: observability Phase: context-budget-review Quality tier: context-budget-gated Reasoning demand: standard

Quality bar:

  • Name must-keep context before summarizing or delegating long work.
  • Separate durable requirements, volatile status, file refs, verification evidence, and open blockers.
  • Define checkpoint cadence, overflow recovery, and continuity verification.
  • Use bounded copy while preserving the full objective and evidence gaps.
  • Count the must-keep pack by item class, so a replaced pack reports which class lost entries instead of only that a digest moved; a pack that recorded no classes reports the comparison unavailable and never reports zero items.
  • Keep prompt-prefix placement cache-stable: fixed section order, volatile bytes never above the fold, mid-run changes as appended messages never system-prompt mutations — load references/cache-placement.md for the placement rules.
  • On Hermes, bind the summarization checkpoint to Hermes' own compaction: render the must-keep classes as one short focus topic and hand the person /compress <focus> to run when the checkpoint is due. OMH never compresses, and a compaction is observed only from Hermes' own reply to that command.
  • On Hermes, offer /compress --preview <focus> only in the classic CLI or on a messaging platform, never when the surface is unknown, and count it as a preview only when the reply says Preview — no changes made.: a modern TUI whose /compress does not parse the flag compresses for real with the flag in its focus. Context occupancy is the person's /usage reading when shared, otherwise an estimate.

Required inputs:

  • task or workflow scope
  • expected duration, artifacts, and handoff surfaces
  • available context sources and must-keep facts
  • token, cost,
Câu hỏi thường gặp

Nó có làm tác vụ nhỏ lại để tiết kiệm token không?

Không. Skill từ chối việc thu nhỏ mục tiêu và nén ngữ cảnh thay thế.

Nó có báo tôi đã dùng bao nhiêu rồi không?

Không. Mức dùng được báo cáo bởi lệnh sử dụng của chính công cụ chủ, không phải skill này.

Nó có dành cho tác vụ ngắn không?

Không. Nó dành cho công việc agent dài, nơi rủi ro ngữ cảnh là thật.

Chi tiết

Mô tả gốc của tác giả

[omh] Context window or token budget at risk: plan compact context, token/cost budgets, summarization checkpoints, and overflow recovery before long agent work. Use when the user says: context-budget-review, context budget review, context budget, token budget review, token budget, prompt budget, prompt caching, prompt cache.

repo: rlaope/oh-my-hermes

Độ phổ biến

Sao GitHub
5.1k
Vị trí xếp hạng
#15090
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự