高级需求理解与技能编排引擎。分析复杂/多步用户请求,确定需调用的技能及顺序。
A metacognitive skill that equips agents with structured requirement analysis, skill selection & orchestration. Delegates memory management to complex-memory-manager and self-iteration to self-iteration-engine for cross-skill consistency.
When the agent receives a complex or ambiguous request:
Step 1: Intent Classification
Step 2: Structured Decomposition Break the request into a tree:
text
Original Request
├── Intent A (primary)
│ ├── Sub-goal A1 → skill/action candidate
│ ├── Sub-goal A2 → skill/action candidate
│ └── Dependency check
├── Intent B (secondary)
│ └── ...
└── Cross-cutting concerns (privacy, cost, performance)
Step 3: Skill Mapping For each sub-goal, select the best matching skill:
name + description of all available skills (always in context as metadata)SituationActionSingle clear intent, single skillDirect invocationMultiple independent intentsParallel executionMulti-step pipeline (output A → input B)Sequential orchestration with handoffFull autonomy requestedAnalyze, decide, execute, explainConflicting skill capabilitiesPrefer skill with more specific description
Handoff Protocol:
text
[ComprehensionEngine] Handoff: Skill-A → Skill-B
Context: {user's original intent excerpt}
Skill-A result: {summary}
Skill-B requirement: {what Skill-B needs to continue}
When a request is under-specified:
Pattern A: Missing Output Format
"I need to confirm the output format — do you want a daily report, summary, table, chart, code, or something else?"
Pattern B: Missing Scope
"This request seems broad. Could you narrow down the focus? For example: Option A, Option B, or Option C?"
Pattern C: Ambiguous Intent
"I see two possible directions: do you want me to analyze existing data, or go out and collect new data?"
Pattern D: Multi-Step Confirmation
"I plan to do this in three steps: ① collect latest market data ② analyze trends ③ generate a visualization. Does that work?"
FunctionDelegated ToHowPersistent memory (T1/T2/T3)complex-memory-managerUse its encrypt/decrypt, storage conventions, and cleanup protocolsUsage logging & performance trackingself-iteration-engineUse its log format, review cycles, and update matrixSelf-iteration decisionsself-iteration-engineCheck triggers, run update decision matrixNew skill creation proposalsself-iteration-engineUse its proposal template
text
User speaks
↓
Parse & Classify Intent
↓
Is it clear? ──No──→ Use Elicitation Templates
│ ↓
Yes←── User clarifies
↓
Decompose into sub-goals
↓
For each sub-goal:
├── Match skill by name+description
├── If match: check last-review-date; if >30d → quick scan SKILL.md
├── If no match: fallback to general knowledge
└── If multi-skill: orchestrate (parallel or sequential)
↓
Execute & Deliver
↓
Log outcome → Delegate to self-iteration-engine
↓
[Periodic] Delegate review to self-iteration-engine + memory cleanup to complex-memory-manager
Before each orchestration run:
complex-memory-manager metadata description is in contextself-iteration-engine metadata description is in context一个元认知技能,赋予Agent结构化的需求分析、技能选择与编排能力。将持久化记忆委托给 complex-memory-manager,将自迭代委托给 self-iteration-engine,实现跨技能一致性。
当Agent收到复杂或模糊请求时:
第一步:意图分类
第二步:结构化分解 将请求拆解为树状结构
第三步:Skill映射 为每个子目标选择最佳匹配skill
场景行动单一明确意图直接调用多个独立意图并行执行多步流水线顺序编排+交接记录用户要求自主分析→决策→执行→解释技能冲突选择描述更具体的
在请求信息不足时使用四种追问模式(详见英文版)。
功能委托给方式持久化记忆(T1/T2/T3)complex-memory-manager使用其加密/解密、存储规范、清理协议使用日志与性能追踪self-iteration-engine使用其日志格式、审查周期、更新矩阵自迭代决策self-iteration-engine检查触发条件、运行更新决策矩阵新技能创建建议self-iteration-engine使用其提案模板
每次编排运行前:
complex-memory-manager 的 metadata 是否在上下文中self-iteration-engine 的 metadata 是否在上下文中references/orchestration-patterns.md — 高级多skill编排示例