mcpField
E
external-context

external-context

github.com/yeachan-heo生产力40.4k801 次安装1 天前更新
代码仓库

关于 external-context

external-context 是用于检索外部文档、参考资料和背景信息的技能。它将查询拆分为 2–5 个主题,并并行调用文档专家 Claude Agent,适合需要汇总外部资料的研究任务。

主要功能

  1. 01将查询拆分为 2–5 个主题
  2. 02并行调用文档专家 Agent
  3. 03综合整理检索结果
  4. 04要求引用来源 URL

适用场景

  1. 01查询技术文档与实践
  2. 02比较框架或工具
  3. 03了解最新开发模式

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/yeachan-heo/oh-my-claudecode --skill external-context

安装后在 Claude Code 中输入/external-context确认已加载。

详细介绍

外部上下文技能

为查询获取外部文档、参考资料和上下文。将其分解为 2-5 个方面,并启动并行的文档专家 Claude Agent。

用法

/oh-my-claudecode:external-context <topic or question>
示例
/oh-my-claudecode:external-context What are the best practices for JWT token rotation in Node.js?
/oh-my-claudecode:external-context Compare Prisma vs Drizzle ORM for PostgreSQL
/oh-my-claudecode:external-context Latest React Server Components patterns and conventions

协议

步骤 1:方面分解

给定一个查询,将其分解为 2-5 个独立的搜索方面:

## Search Decomposition

**Query:** <original query>

### Facet 1: <facet-name>
- **Search focus:** What to search for
- **Sources:** Official docs, GitHub, blogs, etc.

### Facet 2: <facet-name>
...
步骤 2:并行 Agent 调用

通过 Task 工具并行触发独立的方面:

Task(subagent_type="oh-my-claudecode:document-specialist", model="sonnet", prompt="Search for: <facet 1 description>. Use WebSearch and WebFetch to find official documentation and examples. Cite all sources with URLs.")

Task(subagent_type="oh-my-claudecode:document-specialist", model="sonnet", prompt="Search for: <facet 2 description>. Use WebSearch and WebFetch to find official documentation and examples. Cite all sources with URLs.")

最多 5 个并行的文档专家 Agent。

步骤 3:合成输出格式

按以下格式呈现合成后的结果:

## External Context: <query>

### Key Findings
1. **<finding>** - Source: [title](url)
2. **<finding>** - Source: [title](url)

### Detailed Results

#### Facet 1: <name>
<aggregated findings with citations>

#### Facet 2: <name>
<aggregated findings with citations>

### Sources
- [Source 1](url)
- [Source 2](url)

配置

  • 最多 5 个并行的文档专家 Agent
  • 无魔法关键词触发 - 仅限显式调用

评论

支持 Markdown