通过逐步细化检索上下文,提升子代理任务理解与结果质量。
该技能材料显示其本质是一个开源的提示/模式文档,用于指导渐进式上下文检索;未见需要密钥、远程端点或本地执行能力的证据,整体风险较低。基于其为 prompt-only、开源且社区采用度很高,五个维度总体偏安全。
材料明确标注无需密钥或环境变量,README 也未展示任何认证流程、token 配置或凭证存储行为,未见明显凭证泄露或滥用面。
材料明确标注无远程端点;README 描述的是检索/评估/细化的工作流模式,未见将用户数据发送到外部服务或连接未知主机的证据。
系统检查项已标注为 prompt-only,当前材料看起来是方法论/示例代码说明,而非可执行代理或本机命令工具;未见声明会启动进程、执行脚本或调用系统权限。
README 提到面向代码库上下文检索的概念性流程,但未声明实际文件读写接口、数据库访问或超出任务描述的数据权限;从现有材料看仅属文档级指导。
来源为 GitHub 开源仓库,且社区采用度很高(约 210k stars),这些都是明显的降风险因素;虽许可证未声明且维护状态未知,属于信息不完整,但不足以单独抬升到高风险。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "iterative-retrieval" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/iterative-retrieval/SKILL.md 2. 保存为 ~/.claude/skills/iterative-retrieval/SKILL.md 3. 装好后重载技能,告诉我可以用了
请使用 iterative-retrieval 模式,先根据我的任务拆出关键信息需求,再分轮检索代码库、接口文档和历史决策记录。每轮总结缺失信息,并在信息足够后给出最终实现方案。任务:为支付模块新增退款状态回调处理。
输出分阶段检索过程、每轮缺口分析,以及基于充分上下文的实现方案。
请用 iterative-retrieval 方法排查这个问题:生产环境某个异步任务偶发超时。先检索日志特征,再检索相关服务代码、队列配置和近期变更记录,逐步缩小范围,最后给出最可能原因和验证步骤。
输出逐步收敛的排查路径、关键证据、最可能根因及验证建议。
请采用 iterative-retrieval 技能,针对“是否要重构用户权限系统”这个问题,先列出需要的背景信息,再分轮检索需求文档、现有架构说明、事故记录和团队反馈,最后形成决策建议。
输出信息需求清单、分轮检索摘要,以及有依据的决策建议。
Solves the "context problem" in multi-agent workflows where subagents don't know what context they need until they start working.
Subagents are spawned with limited context. They don't know:
Standard approaches fail:
A 4-phase loop that progressively refines context:
┌─────────────────────────────────────────────┐
│ │
│ ┌──────────┐ ┌──────────┐ │
│ │ DISPATCH │─────│ EVALUATE │ │
│ └──────────┘ └──────────┘ │
│ ▲ │ │
│ │ ▼ │
│ ┌──────────┐ ┌──────────┐ │
│ │ LOOP │─────│ REFINE │ │
│ └──────────┘ └──────────┘ │
│ │
│ Max 3 cycles, then proceed │
└─────────────────────────────────────────────┘
Initial broad query to gather candidate files:
// Start with high-level intent
const initialQuery = {
patterns: ['src/**/*.ts', 'lib/**/*.ts'],
keywords: ['authentication', 'user', 'session'],
excludes: ['*.test.ts', '*.spec.ts']
};
// Dispatch to retrieval agent
const candidates = await retrieveFiles(initialQuery);
Assess retrieved content for relevance:
function evaluateRelevance(files, task) {
return files.map(file => ({
path: file.path,
relevance: scoreRelevance(file.content, task),
reason: explainRelevance(file.content, task),
missingContext: identifyGaps(file.content, task)
}));
}
Scoring criteria:
Update search criteria based on evaluation:
function refineQuery(evaluation, previousQuery) {
return {
// Add new patterns discovered in high-relevance files
patterns: [...previousQuery.patterns, ...extractPatterns(evaluation)],
// Add terminology found in codebase
keywords: [...previousQuery.keywords, ...extractKeywords(evaluation)],
// Exclude confirmed irrelevant paths
excludes: [...previousQuery.excludes, ...evaluation
.filter(e => e.relevance < 0.2)
.map(e => e.path)
],
// Target specific gaps
focusAreas: evaluation
.flatMap(e => e.missingContext)
.filter(unique)
};
}
Repeat with refined criteria (max 3 cycles):
async function iterativeRetrieve(task, maxCycles = 3) {
let query = createInitialQuery(task);
let bestContext = [];
for (let cycle = 0; cycle < maxCycles; cycle++) {
const candidates = await retrieveFiles(query);
const evaluation = evaluateRelevance(candidates, task);
// Check if we have sufficient context
const highRelevance = evaluation.filter(e => e.relevance >= 0.7);
if (highRelevance.length >= 3 && !hasCriticalGaps(evaluation)) {
return highRelevance;
}
// Refine and continue
query = refineQuery(evaluation, query);
bestContext = mergeContext(bestContext, highRelevance);
}
return bestContext;
}
…
为 Spring Boot 与 Quarkus 服务生成并统一应用 Java 编码规范。
帮助你梳理 React 与 Next.js 前端模式、状态管理及性能优化最佳实践
在本地审查应用上线准备度,快速发现生产环境风险与薄弱环节。
调用最新框架与库文档,快速回答配置、API与代码示例问题
依据C++核心指南辅助编写、审查与重构更现代安全的C++代码。
读取计划文档并拆解步骤,生成可直接粘贴的 /orchestrate 链式提示词
通过为每个任务分派独立子代理并穿插代码审查,稳步推进实现计划。
用于在当前会话中拆分并并行推进独立实现任务,加快开发执行效率。
用于多轮推演与递归决策,保留可追溯证据链并比较多种方案。
帮助开发者为 AI 代理优化上下文,减少令牌消耗并改进工具检索。
为 AI 代理提供长期记忆、可观测检索与受控上下文组装。
并行分派多个智能体,同时调查并修复彼此独立的问题