context-cache-management
Extend RARA context compression, provider cache behavior, memory placement, or model context budgeting while preserving stable prompt prefixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Extend RARA context compression, provider cache behavior, memory placement, or model context budgeting while preserving stable prompt prefixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when you need to understand the RARA codebase structure — what each file does, where subsystems live, and how they connect. The index maps every source file to its role.
Use when preparing, validating, tagging, or troubleshooting a RARA release. Enforces the release order that prevents tag versions from diverging from the Cargo package version.
Handle unused code warnings by investigating purpose via journals, then choose the right fix: suppress, wire-up, or remove.
Add or update tests for the RARA codebase. Use when implementing non-trivial behavior changes, fixing regressions, tightening TUI rendering, or adding repo-specific test coverage in Rust. Especially relevant for focused unit tests, TUI snapshot tests, agent/runtime regressions, and behavior-driven test updates in this repository.
Use when preparing commit messages, pull request titles, or first-line summaries for the RARA repository. Enforces the repo's short conventional title subset using feat, fix, chore, or test.
Use when creating, updating, or reviewing RARA implementation journals under docs/journal/. Applies to dated rollout notes, implementation checkpoints, validation evidence, and deciding what belongs in a journal versus a feature spec or docs/todo.md.
| name | context-cache-management |
| description | Extend RARA context compression, provider cache behavior, memory placement, or model context budgeting while preserving stable prompt prefixes. |
Use this skill when changing RARA's context compression, tool-result projection, provider cache handling, memory placement, context budget calculation, or model-provider integration.
tool_use / tool_result pairing. Do not remove a block from only
one side of the pair.When adding or updating a model backend, declare these capabilities separately:
automatic_prefix_cache: repeated prompt prefixes may be cached by the
provider without request parameters.cache_usage_accounting: usage metadata reports cache hit/miss tokens.cache_edit: the provider can delete or edit cached content without changing
local prompt content.cache_retention_control: request parameters can control cache lifetime.DeepSeek is the reference example for automatic prefix cache with usage accounting but without cache edit or retention control.
cache_edit = false, use request projection and ordinary history
compaction. This reduces input size but may reduce prefix-cache hits after the
edited point.cache_edit = true, add a provider-specific pass that queues cache edits
while leaving local messages unchanged.For projection or microcompact changes:
Agent.history still contains the original tool result content.For provider cache capability changes:
ProviderCacheProfile.For observability changes:
/context or another structured context surface./context output and future
telemetry exporters should read from the same data model.prompt_cache_retention or cache-edit fields as generally available
across OpenAI-compatible providers.