Communitygithub.com

外部上下文

呼叫並行文件專用代理程式,以進行外部網路搜尋和文檔查閱

外部上下文 是什麼?

這項技能允許使用者透過平行的文件專用 Claude 代理程式,針對給定查詢自動分解為 2 到 5 個獨立面向,並同時搜尋外部文件、參考資料與上下文。它支援的平臺包括 Claude Code 與其他相容的 AI 代理環境。主要透過「/oh-my-claudecode:external-context」指令觸發,無需關鍵字魔法觸發,僅限明確呼叫。其工作流程包含三個步驟:查詢分解為多個面向、平行發起搜尋任務、最後將結果合成為結構化的標記輸出,包含關鍵發現、詳細結果與來源引用。這項技能特別適合需要快速取得官方文檔、GitHub、部落格等多來源資訊的開發場景,例如技術比較或框架最佳實踐查詢。

相容平台✓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 token 輪換的最佳實務是什麼?
/oh-my-claudecode:external-context 比較 Prisma 與 Drizzle ORM 在 PostgreSQL 中的使用
/oh-my-claudecode:external-context 最新的 React Server Components 模式與慣例

協定

步驟 1:面向分解

根據查詢,將其分解為 2-5 個獨立的搜尋面向:

## 搜尋分解

**查詢:** <原始查詢>

### 面向 1:<面向名稱>
- **搜尋重點:** 要搜尋的內容
- **來源:** 官方文件、GitHub、部落格等

### 面向 2:<面向名稱>
...

步驟 2:平行代理程式調用

透過 Task 工具平行發起獨立面向:

Task(subagent_type="oh-my-claudecode:document-specialist", model="sonnet", prompt="搜尋:<面向 1 描述>。使用 WebSearch 和 WebFetch 尋找官方文件與範例。引用所有來源(附網址)。")

Task(subagent_type="oh-my-claudecode:document-specialist", model="sonnet", prompt="搜尋:<面向 2 描述>。使用 WebSearch 和 WebFetch 尋找官方文件與範例。引用所有來源(附網址)。")

最多 5 個平行文件專用代理程式。

步驟 3:合成輸出格式

以以下格式呈現合成結果:

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

### 關鍵發現
1. **<發現>** - 來源:[標題](網址)
2. **<發現>** - 來源:[標題](網址)

### 詳細結果

#### 面向 1:<名稱>
<彙總的發現(附引用)>

#### 面向 2:<名稱>
<彙總的發現(附引用)>

### 來源
- [來源 1](網址)
- [來源 2](網址)

設定

  • 最多 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

相關技能