返回顶部
s

skill-retrieval-gate

Decide whether to run `memory_search` before following another skill or workflow, so the agent can reduce token usage without forcing retrieval on every task. Use when a task may depend on local knowledge, project history, prior decisions, user preferences, or existing notes, and you need a lightweight rule for when to retrieve, how to query, how much context to load, and when to fall back. Typical triggers include requests like: continue previous work, use project memory first, check what we al

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
84
下载量
0
收藏
概述
安装方式
版本历史

skill-retrieval-gate

# Skill Retrieval Gate ## Goal Use this skill to decide whether the current task should query `memory_search` before following another skill or workflow. This skill is for **retrieval judgment**, not mandatory retrieval. ## Core rule Do **not** make every skill query memory first. Instead: 1. Judge whether the task depends on local knowledge or history 2. Retrieve only when that dependency is real 3. Load only a few high-signal results 4. Fall back immediately if retrieval is weak, unavailable, or unnecessary ## Example triggers This skill is especially useful for requests like: - continue the previous work on this project - check what we already documented before you proceed - use project memory first if this depends on earlier decisions - decide whether retrieval is worth it before following the skill - base this on existing notes instead of asking me again ## Workflow ### 1. Decide whether retrieval is needed Use [decision-flow](./references/decision-flow.md) when the request may depend on: - project history - prior decisions - local knowledge bases - user-specific preferences - previously organized notes ### 2. Judge the skill tier Use [skill-tiering](./references/skill-tiering.md) to classify the current skill or task into: - retrieval-first - retrieval-optional - retrieval-usually-skip ### 3. Build the query Use [query-construction](./references/query-construction.md) to build a compact query from: - task object - task type - key module, symptom, or entity ### 4. Keep the result set small Use [result-trimming](./references/result-trimming.md) to limit context expansion. Default rule: - fetch top 1-3 results first - only expand deeper when clearly needed ### 5. Fall back fast Use [fallback-rules](./references/fallback-rules.md) if retrieval is empty, noisy, low-confidence, unavailable, or unnecessary. ## Anti-patterns Avoid these mistakes: - forcing retrieval for every task - copying the entire user prompt into `memory_search` - expanding every hit just because it matched - dragging weak or stale snippets into later reasoning - treating retrieval failure as a blocker instead of falling back ## Output expectation After using this skill, the agent should be able to answer: - Should I call `memory_search` for this task? - What query should I use? - How many results should I keep? - Should I fall back to the original skill flow immediately?

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skill-retrieval-gate-1776024001 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skill-retrieval-gate-1776024001 技能

通过命令行安装

skillhub install skill-retrieval-gate-1776024001

下载 Zip 包

⬇ 下载 skill-retrieval-gate v1.0.0

文件大小: 4.97 KB | 发布时间: 2026-4-13 12:03

v1.0.0 最新 2026-4-13 12:03
- Initial release of skill-retrieval-gate.
- Enables intelligent decision-making on when to run `memory_search` before other skills or workflows.
- Aims to reduce unnecessary retrievals, minimizing token usage by judging real dependency on local knowledge, history, or prior decisions.
- Provides practical rules for when and how to retrieve, limiting context to top results, and emphasizing fast fallback if retrieval is weak or not needed.
- Clarifies common triggers, decision workflow, anti-patterns to avoid, and output expectations for agents.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部