experience_loader
它能做什么
这个技能让 AI 在采取行动前检查已保存的执行经验,并且只使用条件与任务相符的经验教训。适合 AI 智能体反复执行基于工具的工作的团队。
适用场景
- ✓当你的 AI 即将对某项任务采取行动,而过往经验可能有帮助的时候。
- ✓当你希望在使用经验教训之前,先对照其排除条件进行检查的时候。
- ✓当某项任务与过去失败的任务相似的时候。
技能链接
https://github.com/volcengine/OpenViking/blob/main/benchmark/tau2/train/experience_loader_template/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在你改签这趟航班之前,请检查是否有适用于这类改签的已保存经验?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会搜索经验候选项,检查每一条的情境摘要,并只阅读那些看似适用的经验。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
experience_loader
Use this skill before taking task actions when reusable execution experience may help.
Required workflow
- Before taking task actions, call
search_experiencewith a natural-language query that describes the current task. - Build the query from the current domain, user intent, target object, requested operation, policy keywords, and likely tool/action family. Avoid vague queries such as "help user".
- Review the returned candidates. Each candidate is a matched case plus linked experience entries; each experience entry includes its
name,uri, and a shortsituationsnippet describing its applicability and exclusions. - Gate before reading. For each linked experience, read its
situationsnippet and check whether the current task matches the experience's applicability AND does NOT match any of its exclusions / "不适用于" / "does not apply to" items. Skip experiences whose situation explicitly excludes your case (e.g. wrong cabin class, flights already flown, different action family, or different change type). Only callread_experienceon experiences that plausibly apply after this check. If no experience passes the gate, continue without experience guidance. - You may call
search_experiencemultiple times with refined keywords, and you may callread_experiencemultiple times for the experiences that pass the gate. - Treat loaded experiences as reusable guidance, not as current-task truth. Current policy, current tool results, and current user facts override prior experience.
- Re-verify after reading. Even after
read_experience, before acting on the experience, check its full## Situationagainst current facts you have obtained from tools (cabin class, reservation status, flight dates, segment state, etc.). If any "不适用于" / exclusion condition matches the current task now that you have concrete facts, DISCARD the experience and proceed from policy and tool results instead — do NOT apply its Approach or Reflect. - Multi-intent tasks (e.g. "cancel, then book", "upgrade then change flight", "refuse a modification then offer a fallback") may legitimately require more than one experience; gate and apply each segment's experience independently. Do not end the task (
done/transfer_to_human_agents) just because one segment's experience reaches a local return marker — check whether the user has a remaining intent. - If no linked experience is plausibly relevant after gating, continue without experience guidance.
Local return markers in loaded experiences
Experience return markers are local to the covered intent/subtask. They are not whole-task success/failure labels and are not automatic permission to call done.
RETURN_COMPLETED: the specific intent/subtask covered by this experience has been completed, usually after the required business read/write tool calls and required customer communication. If the user has another independent intent, continue with that next intent instead of ending the conversation.RETURN_BLOCKED(reason="..."): the covered intent/subtask cannot proceed under the current facts, policy, missing input, refusal boundary, or escalation boundary. Perform any required communication/escalation from the experience, then continue other remaining user intents if they are still actionable.RETURN_NOT_APPLICABLE: the experience does not match the current facts; discard it and use another applicable experience or current policy/tool facts.
Refusal, no-option, policy-ineligible, missing-input, and transfer_to_human_agents branches should be interpreted as RETURN_BLOCKED(...) for that local intent, not as whole-task completion. Before ending globally, verify that every user intent is completed, blocked, not applicable, or explicitly transferred/stopped by the user/environment.
Tools
search_experience(query, limit=10): searches OpenVikingmemories/casesunder the current user, reads each matched case's## Linked Experiencessection, and returns JSON candidates with case score, case URI, task signature, input summary, and linked experience entries (each withname,uri, and asituationsnippet from the experience's## Situationsection).read_experience(experience_uri): reads one OpenViking experience memory by full URI and returns Markdown.
常见问题
如果没有经验适用怎么办?
技能说明,当没有任何经验通过检查时,应在没有经验指导的情况下继续。
它会多次搜索吗?
会。技能允许使用改进后的关键词进行多次搜索。
它如何判断某条经验是否适用?
AI 会在阅读之前检查每条经验的情境和排除条件。
详情
作者的原始描述
Load relevant OpenViking experience memories via case-linked experience candidates before solving a task.
repo: volcengine/OpenViking
热度
- GitHub 星标
- 41k
- 排名
- #6511
- 许可证
- AGPL-3.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
openviking-memory
41k帮你的智能体通过 OpenViking 调用和保存长期记忆:工作开始时检索过去的知识,之后保存有用的事实和经验。
openviking-skills
41k帮你的智能体查找、创建、安装和分享保存在 OpenViking 中的可复用技能,使一次保存的技能可在所有已连接的工具中使用。
ov-experience-memory
41k帮你的智能体在编码、部署或数据修改等有风险的多步骤工作之前,查看 OpenViking 中以往的操作经验教训。
ov-kanban
41k让你的智能体通过 OpenViking 中共享的任务看板工作,领取任务、记录进展,并把工作交接给其他智能体。