eval-cache by closedloop-ai/claude-plugins
npx skills add https://github.com/closedloop-ai/claude-plugins --skill eval-cache检查是否可复用先前的简单模式评估结果,避免在计划未变更时重复启动计划评估器。
在阶段 1.3(简单模式评估)开始时激活此技能,在启动 @code:plan-evaluator 之前。如果缓存是新鲜的,则完全跳过评估器,直接使用缓存的结果。
运行缓存检查脚本。scripts/ 目录是相对于此技能的基础目录(上方显示为“此技能的基础目录”):
bash <base_directory>/scripts/check_eval_cache.sh <WORKDIR>
脚本会向标准输出打印两种结构化结果之一:
EVAL_CACHE_HIT
simple_mode: true|false
selected_critics: [critic1, critic2, ...]
summary: <cached evaluation summary>
操作: 从输出中解析 simple_mode 和 selected_critics。跳过启动 ,并继续使用缓存值,就像评估器刚刚返回它们一样。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
@code:plan-evaluatorEVAL_CACHE_MISS
reason: <缓存失效或缺失的原因>
操作: 正常启动 @code:plan-evaluator。评估器将写入一个新的 plan-evaluation.json,供后续迭代缓存。
脚本使用文件修改时间戳:
plan-evaluation.json 不存在:未命中plan.json 比 plan-evaluation.json 更新:未命中(自上次评估后计划已被修改)plan-evaluation.json 比 plan.json 更新:命中(评估结果仍然有效)这能正确处理工作流暂停时用户修改计划的情况:编辑 plan.json 会更新其修改时间,从而使缓存的评估结果失效。
每周安装次数
1
代码仓库
GitHub 星标数
71
首次出现
今天
安全审计
安装于
windsurf1
amp1
cline1
openclaw1
opencode1
cursor1
Check whether a prior simple-mode evaluation can be reused, avoiding a redundant plan-evaluator launch when the plan has not changed.
Activate this skill at the start of Phase 1.3 (Simple Mode Evaluation), before launching @code:plan-evaluator. If the cache is fresh, skip the evaluator entirely and use the cached result.
Run the cache check script. The scripts/ directory is relative to this skill's base directory (shown above as "Base directory for this skill"):
bash <base_directory>/scripts/check_eval_cache.sh <WORKDIR>
The script prints one of two structured results to stdout:
EVAL_CACHE_HIT
simple_mode: true|false
selected_critics: [critic1, critic2, ...]
summary: <cached evaluation summary>
Action: Parse simple_mode and selected_critics from the output. Skip launching @code:plan-evaluator and proceed with the cached values as if the evaluator had just returned them.
EVAL_CACHE_MISS
reason: <why the cache is stale or missing>
Action: Launch @code:plan-evaluator as normal. The evaluator will write a fresh plan-evaluation.json that subsequent iterations can cache from.
The script uses file modification timestamps:
plan-evaluation.json does not exist: missplan.json is newer than plan-evaluation.json: miss (plan was modified since last evaluation)plan-evaluation.json is newer than plan.json: hit (evaluation is still valid)This correctly handles the case where a user modifies the plan while the workflow is paused: editing plan.json updates its mtime, invalidating the cached evaluation.
Weekly Installs
1
Repository
GitHub Stars
71
First Seen
Today
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
windsurf1
amp1
cline1
openclaw1
opencode1
cursor1
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
60,400 周安装