Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

context-orchestrator上下文协调器

Agent Skill

context-orchestrator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

329

周安装

14

GitHub Stars

公开资料未说明

下载量

115
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:context-orchestrator(上下文协调器)
来源仓库:https://github.com/zpankz/mcp-skillset
仓库路径:skills/context-orchestrator
安装命令:
npx skills add zpankz/mcp-skillset --skill "context-orchestrator"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "context-orchestrator"

简介

context-orchestrator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于多技能协同工作流,负责调度其他工具完成复合任务。
  • 提供统一入口和结果聚合机制,简化复杂操作链调用。
  • 安装命令为 npx skills add zpankz/mcp-skillset --skill "context-orchestrator",应评估其对并发请求的支持能力。
  • 使用前请核实其是否依赖特定中间件或协议版本。

SKILL.md

name
context-orchestrator
description
|
triggers
[context, lifelog, research, ltm, recall, lookup, pieces, limitless, pendant, documentation, fact-check]

Context Orchestrator

A unified context extraction system that intelligently routes queries to three specialized CLI tools based on intent classification.

Quick Start

Commands (use directly):

  • /context [query] - All sources in parallel (personal + research + code)
  • /limitless [query] - Personal memory (lifelogs, meetings, conversations)
  • /research [query] - Online documentation (facts, APIs, guides)
  • /pieces [query] - Local code context (snippets, LTM, history)

Auto-Detection: The hook detects context-relevant prompts and suggests CLI commands.

Maintenance: See README.md for configuration, debugging, and upgrade instructions.

Context Sources

SourceCLIData TypeBest For
PersonallimitlessLife transcripts, meetings, conversations"What did I discuss...", "Yesterday's meeting..."
OnlineresearchDocumentation, facts, academic papers"How to implement...", "Verify that..."
LocalpiecesCode snippets, work history, LTM"My previous implementation...", "Code I wrote..."

Slash Commands

CommandDescriptionMode
/context [query]Multi-source extractionParallel (all relevant)
/limitless [query]Personal life contextSingle (limitless)
/research [query]Online documentationSingle (research)
/pieces [query]Local code contextSingle (pieces)

Intent Classification

Domain Patterns

personal_context:
  patterns:
    - "what did (I|we) (discuss|talk|say|mention)"
    - "meeting|conversation|daily|yesterday|last week"
    - "lifelog|pendant|recording"
    - "(told me|mentioned|said) about"
  primary_cli: limitless
  fallback: pieces (if code-related)

online_research:
  patterns:
    - "documentation|docs for|how to"
    - "fact-check|verify|confirm|is it true"
    - "api|sdk|library|framework"
    - "best practice|implementation guide"
    - "pex|medical|grounding"
  primary_cli: research
  fallback: pieces (for code examples)

local_context:
  patterns:
    - "my code|code I wrote|my implementation"
    - "saved|snippet|previous solution"
    - "ltm|long-term memory|work history"
    - "what was I working on"
  primary_cli: pieces
  fallback: limitless (for discussion context)

Routing Decision Tree

User Request
    │
    ├── Explicit Command?
    │   ├── /context → Parallel Mode (all sources)
    │   ├── /limitless → Single Mode (limitless)
    │   ├── /research → Single Mode (research)
    │   └── /pieces → Single Mode (pieces)
    │
    ├── Intent Detection (from hook signal)
    │   ├── Personal patterns → limitless
    │   ├── Research patterns → research
    │   ├── Local patterns → pieces
    │   └── Multiple matches → Parallel Mode
    │
    └── No Clear Signal
        └── Skip (no external context needed)

Orchestration Modes

Single Source Mode

Use when intent clearly maps to one CLI:

mode: single
process:
  1. Identify primary CLI from intent
  2. Construct appropriate command
  3. Execute and capture output
  4. Return structured context
latency: 1-5 seconds

Parallel Mode

Use for /context or multi-domain queries:

mode: parallel
process:
  1. Spawn subagents for each relevant CLI
  2. Execute extractions in parallel
  3. Collect and merge results
  4. Deduplicate and rank by relevance
latency: Max of individual CLIs (5-15 seconds)

Augmented Mode (with Deep-Research)

Use when integrating with deep-research skill:

mode: augmented
process:
  1. Pre-enrichment: Gather personal/local context
  2. Hand off to deep-research Phase 1
  3. Use research CLI as primary in Phase 3
  4. Include pieces patterns in triangulation
integration_point: Phase 0 pre-enrichment

CLI Command Reference

Limitless (Personal Context)

# SEMANTIC SEARCH (Recommended) - Vector-based similarity
limitless semantic-search "ICU critical care" --types Lifelog,Chat,Person --limit 5 --json

# Hybrid search (semantic + full-text)
limitless search "medical exam" --mode hybrid --json

# Full-text search (keyword)
limitless lifelogs search "query" --limit 10 --format json

# Get today's snapshot
limitless workflow daily $(date +%Y-%m-%d) --format json

# Get recent activity (last N hours)
limitless workflow recent --hours 24 --format json

# Cross-source search
limitless workflow search "query" --format json

# Graph query (for relationships - FalkorDBLite)
limitless graph query "MATCH (p:Person)-[:SPOKE_IN]->(l:Lifelog) RETURN p.name, count(l) ORDER BY count(l) DESC LIMIT 5"

# Check embedding status
limitless index status

Research (Online Context)

# Technical documentation
research docs -t "query" -k "framework" --format json

# Fact verification
research fact-check -t "claim to verify" --graph

# Medical/PEX grounding
research pex-grounding -t "medical query"

# SDK/API reference
research sdk-api -t "api question"

# Academic search
research academic -t "research topic"

Pieces (Local Context)

# Ask with LTM (Long-Term Memory)
pieces ask "query" --ltm

# Semantic code search
pieces search --mode ncs "pattern"

# With file context
pieces ask "query" -f file1.py file2.py

# With saved materials
pieces ask "query" -m 1 2 3

# Full-text search
pieces search --mode fts "exact text"

Subagent Invocation

When spawning subagents for CLI extraction:

limitless_agent:
  type: general-purpose
  prompt: "Extract personal context using limitless CLI. Query: {query}"
  spec: agents/limitless-agent.md

research_agent:
  type: researcher
  prompt: "Extract online documentation using research CLI. Query: {query}"
  spec: agents/research-agent.md

pieces_agent:
  type: general-purpose
  prompt: "Extract local code context using pieces CLI. Query: {query}"
  spec: agents/pieces-agent.md

Session Caching

Cache Strategy

cache_location: ~/.claude/.context-cache/session-context.json

ttl_by_source:
  limitless: 30 minutes  # Personal data stable
  research: 60 minutes   # Docs change slowly
  pieces: 15 minutes     # Active development

cache_key_format: "{source}:{command_type}:{query_hash}"

invalidation:
  - New session starts
  - Explicit refresh request
  - TTL expiration

Cache Operations

# Check cache before CLI invocation
cache_key = f"{source}:{hash(query)}"
if cached := get_cache(cache_key):
    if not expired(cached):
        return cached.result

# After successful extraction
set_cache(cache_key, result, ttl=TTL_BY_SOURCE[source])

Integration with Deep-Research

Phase 0 Pre-Enrichment

When deep-research is invoked, optionally gather context first:

phase_0_context:
  trigger: User has relevant personal/local background

  actions:
    personal_background:
      cli: limitless
      query: "Search for relevant conversations about {topic}"

    local_patterns:
      cli: pieces
      query: "Find related code I've written about {topic}"

  output:
    format: Context briefing for Phase 1 scoping
    content:
      - Relevant past discussions
      - Related code implementations
      - Known constraints from experience

Integration Points

Deep-Research PhaseContext Integration
Phase 1 (Scoping)Include personal context as background
Phase 3 (Querying)Use research CLI as primary retrieval
Phase 4 (Triangulation)Add pieces code patterns as evidence

Output Format

Structured Context Response

{
  "source": "limitless|research|pieces",
  "query": "original query",
  "results": [
    {
      "title": "Result title",
      "content": "Extracted content...",
      "metadata": {
        "timestamp": "ISO8601",
        "confidence": 0.85,
        "source_type": "lifelog|document|snippet"
      }
    }
  ],
  "cached": false,
  "latency_ms": 1234
}

Multi-Source Response

{
  "mode": "parallel",
  "sources": {
    "limitless": { ... },
    "research": { ... },
    "pieces": { ... }
  },
  "merged_context": "Synthesized context from all sources...",
  "total_latency_ms": 3456
}

Error Handling

CLI Unavailability

on_cli_unavailable:
  limitless: "Limitless CLI not configured. Skip personal context."
  research: "Research CLI not available. Skip online lookup."
  pieces: "Pieces not running. Skip local context."

fallback: Continue with available sources

Timeout Handling

timeouts:
  limitless: 10s
  research: 15s
  pieces: 8s

on_timeout:
  action: Return partial results
  message: "Context extraction timed out. Proceeding with available data."

Usage Examples

Example 1: Personal Memory Query

User: "What did John say about the API deadline in yesterday's meeting?"

Process:

  1. Intent detector signals: {need_limitless: true, confidence: 0.9}
  2. Route to limitless single-source mode
  3. Execute: limitless lifelogs search "John API deadline" --limit 5 --format json
  4. Return structured context with relevant excerpts

Example 2: Technical Documentation

User: "How do I implement WebSocket authentication in Bun?"

Process:

  1. Intent detector signals: {need_research: true, confidence: 0.85}
  2. Route to research single-source mode
  3. Execute: research docs -t "WebSocket authentication" -k "bun" --format json
  4. Return documentation with code examples

Example 3: Multi-Source Context

User: /context What approach should I use for the auth refactor?

Process:

  1. Explicit /context command triggers parallel mode
  2. Spawn three subagents:

- limitless: "auth refactor discussions" - research: "auth best practices" - pieces: "previous auth implementations"

  1. Collect and merge results
  2. Return comprehensive context from all sources

Best Practices

  1. Cache First: Always check session cache before CLI invocation
  2. Limit Results: Use --limit flags to avoid context overflow
  3. JSON Output: Prefer JSON format for structured parsing
  4. Timeout Protection: Set reasonable timeouts per CLI
  5. Graceful Degradation: Continue with available sources if one fails
  6. Relevance Ranking: Prioritize results by confidence/relevance score

Requirements

This skill requires three CLI tools. Graceful degradation occurs if any are missing:

CLIInstallationRequired For
limitlessbun run ~/Projects/limitless-cli/bin/limitless.tsPersonal context
research~/.local/bin/researchOnline documentation
pieces/opt/homebrew/bin/pieces + PiecesOS runningLocal code/LTM

Verify availability: Run bash ~/.claude/hooks/session-context-primer.sh

Hooks Integration

This skill uses two hooks for automatic context detection:

UserPromptSubmit Hook

  • File: ~/.claude/hooks/context-intent-detector.ts
  • Trigger: Every user prompt
  • Function: Pattern matching to detect context-relevant queries
  • Output: JSON signal with detected sources and confidence
  • Timeout: 1.5s

SessionStart Hook

  • File: ~/.claude/hooks/session-context-primer.sh
  • Trigger: Session initialization
  • Function: Validates CLI availability and initializes cache
  • Output: System prompt with available sources
  • Timeout: 5s

Progressive Loading

This skill uses progressive disclosure to optimize context efficiency:

FilePurposeWhen Loaded
SKILL.mdQuick start, command referenceAlways (main skill)
README.mdConfiguration, debugging, upgradesOn maintenance request
agents/*.mdSubagent specificationsWhen parallel mode triggered
references/*.mdDetailed CLI documentationWhen deep reference needed
scripts/*.pyCache/metrics utilitiesOn explicit invocation

Troubleshooting

Skill Not Triggering

  1. Verify hooks registered: grep context ~/.claude/settings.json
  2. Check pattern matching: echo '{"prompt":"your query"}' | bun run ~/.claude/hooks/context-intent-detector.ts
  3. Use explicit command: /context <query>

CLI Unavailable

  1. Run session primer: bash ~/.claude/hooks/session-context-primer.sh
  2. Check individual CLIs:

- limitless config show (needs API key) - research --help - pieces mcp status (needs PiecesOS)

Subagents Timing Out

  1. Increase timeout in settings.json (default 1.5-5s)
  2. Check CLI latency individually
  3. View cache: cat ~/.claude/.context-cache/session-context.json

Cache Issues

  1. Clear cache: python3 ~/.claude/skill-db/context-orchestrator/scripts/cache-manager.py clear
  2. View stats: python3 ~/.claude/skill-db/context-orchestrator/scripts/cache-manager.py stats

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

31.97%
按下载量换算37

Claude Code

24.33%
按下载量换算28

windsurf

17.63%
按下载量换算20

Codex

12.54%
按下载量换算14

kiro-cli

7.37%
按下载量换算8

mcpjam

3.32%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add zpankz/mcp-skillset --skill "context-orchestrator" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills