Communitygithub.com

外部上下文

调用并行的文档专家代理,执行外部网络搜索和文档查找。

外部上下文 是什么?

该技能允许用户通过一条指令,并行调用多达5个文档专家代理,以获取外部文档、参考资料和上下文信息。它首先将用户的查询分解为2-5个独立的搜索面(facets),然后针对每个面启动一个专门的代理,这些代理会使用 WebSearch 和 WebFetch 工具来查找官方文档和示例。最后,技能会将这些结果汇总成一个结构化的输出,包含关键发现、详细结果和所有来源的引用。此技能对于获取最新、最准确的外部信息(如最佳实践、库对比)非常有用,并且适用于支持 Task 工具的 AI 代理平台。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Yeachan-Heo/oh-my-claudecode/tree/main/skills/external-context

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

外部上下文技能

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

用法

/oh-my-claudecode:external-context <主题或问题>

示例

/oh-my-claudecode:external-context Node.js 中 JWT 令牌轮换的最佳实践是什么?
/oh-my-claudecode:external-context 比较 Prisma 与 Drizzle ORM 在 PostgreSQL 上的表现
/oh-my-claudecode:external-context 最新的 React 服务器组件模式与约定

协议

步骤 1:面分解

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

## 搜索分解

**查询:** <原始查询>

### 面 1:<面名称>
- **搜索重点:** 要搜索的内容
- **来源:** 官方文档、GitHub、博客等

### 面 2:<面名称>
...

步骤 2:并行代理调用

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

Task(subagent_type="oh-my-claudecode:document-specialist", model="sonnet", prompt="搜索:<面 1 描述>。使用 WebSearch 和 WebFetch 查找官方文档和示例。引用所有来源并附上 URL。")

Task(subagent_type="oh-my-claudecode:document-specialist", model="sonnet", prompt="搜索:<面 2 描述>。使用 WebSearch 和 WebFetch 查找官方文档和示例。引用所有来源并附上 URL。")

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

步骤 3:合成输出格式

以以下格式呈现合成结果:

## 外部上下文:<查询>

### 关键发现
1. **<发现>** - 来源:[标题](url)
2. **<发现>** - 来源:[标题](url)

### 详细结果

#### 面 1:<名称>
<汇总的发现及引用>

#### 面 2:<名称>
<汇总的发现及引用>

### 来源
- [来源 1](url)
- [来源 2](url)

配置

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

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

agent-doc-discipline

Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before reference, one meaning in one home, no restating what the environment already says. Mandatory at drydock seed generation and the launch C5 sediment pass; opt-in for any other agent-facing doc edit. The companion of minimal-code-discipline: that one disciplines code, this one disciplines papers.

ai-slop-cleaner

Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode

ask

Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, or Cursor via `omc ask`, with artifact capture and no raw CLI assembly

ask-navigator

Shipyard

autopilot

Full autonomous execution from idea to working code

autoresearch

Stateful single-mission improvement loop with strict evaluator contract, markdown decision logs, and max-runtime stop behavior

cancel

Cancel any active OMC mode (autopilot, ralph, ultragoal, swarm, ultrapilot, pipeline, team) and clean up retired legacy state

configure-notifications

Configure notification integrations (Telegram, Discord, Slack) via natural language

debug

Diagnose the current OMC session or repo state using logs, traces, state, and focused reproduction

deepinit

Deep codebase initialization with hierarchical AGENTS.md documentation

deep-interview

Socratic deep interview with mathematical ambiguity gating before explicit execution approval

drydock

Lay the keel of the shipyard harness in any repo — the 4-pillar shared environment (Context, Rules, Tools, Standards) across 5 surfaces (CLAUDE.md, skills, design-system, mcp/cli, shared context) so that every human and agent inherits the same design language and anyone can ship. Run once per repo; re-run with --check to audit drift.

execute

Carry an approved task through to working, verified code

graph

Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery

harbor

Harbor intake for external work — the captain only handles unresolved decisions. Sweeps incoming issues and PRs, verifies every claim before disposition, reuses every decision already made, and hands the maintainer a docket whose pending items each carry one question with options, recommendation, impact and evidence. Agent-autonomous for facts and for actions covered by standing authorization; signed for every new judgment. Never merges.

hud

Configure HUD display options (layout, presets, display elements)

launch

Shipyard

loft

Loft the shape before cutting steel — answer a design question that prose cannot settle by building a throwaway artifact: a pure logic module in a clickable shell, or structurally different UI variants behind one route. The captain reacts to the artifact; the answer folds into the decision; the artifact never docks. Use when a design question stalls in words, when a navigator map carries a loft ticket, or when a spec discussion reaches

minimal-code-discipline

YAGNI-ladder coding discipline for writing changes — existence-first, reuse before writing, dependency ladder, shortest correct diff, with non-negotiables that must never be minimized away

omc-doctor

Diagnose and fix oh-my-claudecode installation issues

相关技能