当前位置: 首页 > Skill >

Wei Cross Research

Wei Cross Research

Wei Cross Research

并行查询多个LLM并使用评判式综合进行交叉验证研究答案,降低幻觉并呈现模型分歧,以...

1.0.4 2026.11.23 458
获取Skill文件查看使用说明
作 者:苏宁 许可证: 更新时间:2026.11.23
本文目录展开

Wei Cross Research Skill

Overview

Use wei-cross-research when you need a reliable answer — not just one model's opinion.

This skill queries multiple LLMs in parallel and uses a judge model to synthesize their responses into a single cross-validated answer. When models agree, confidence is high. When they disagree, the disagreement is surfaced — not silently resolved.

Best for:

  • High-stakes questions where a wrong answer has real consequences
  • Topics where a single model may have blind spots or biases
  • Analysis that benefits from multiple independent viewpoints
  • Reducing hallucination via cross-model comparison

Cost note: This skill queries 2–3 models per request. Expect approximately 2–3x the token usage of a single-model query. Use it when answer quality justifies the cost; avoid it for simple or low-stakes questions.

Requirements

  • Bun >= 1.0

Install Bun

curl -fsSL https://bun.sh/install | bash

Or on macOS with Homebrew:

brew install oven-sh/bun/bun

Environment Variables

bun supports accessing environment variables from .env file in the project root.

Note: If you don't have an OpenRouter API key, you can modify config.json to use other providers. Change the provider field from "openrouter" to "bailian" or "openai_compliant" and update the api_key_env to point to your available API key.

Configuration Files

遇到模型访问问题? 请参考 README.md 了解如何根据你的网络环境选择和配置 config.json。

Install Dependencies

bun install

Usage

bun run scripts/index.ts "your question"
bun run scripts/index.ts -t financial "美联储2026年会降息吗?"

Domain-Specific Judges

When queryType is set to "financial", the judge step uses a finance-specialized prompt that produces:

  • Base Case Analysis — probabilistic scenario with data-driven reasoning
  • Bull Case — arguments for upside scenario
  • Bear Case — arguments for downside scenario
  • Key Variables / Risks — macro events, earnings, policy changes, market sentiment

This avoids deterministic predictions and enforces probability ranges (e.g., 60–70% likelihood). Use it for investment, macroeconomic, and market analysis questions.

Example:

{
  "query": "美联储2026年会降息吗?",
  "queryType": "financial"
}

Supported Models

All models are accessed via OpenRouter or other configured providers. Answering models may use live retrieval depending on the provider configuration.

The system selects 2–3 answering models in parallel (based on roles) and uses a judge model to synthesize the final response.

Model Roles

Each model in config.json is tagged with one or more roles indicating its capabilities:

Role Description Typical Use
retrieval Has web/live data access Current events, real-time info
coding Strong programming capability Technical implementation, debugging
social Social media data access X/Twitter sentiment, trending
reasoning Deep analytical capability Complex analysis, synthesis
creative Creative writing strength Storytelling, open-ended tasks
longcontext Large context window Document analysis, long inputs
general Broad balanced capability Fallback, ambiguous queries
judge Answer synthesis Final synthesis (judge models only)

Note: Specific model names and their roles are defined in config.json → models. Refer to that file for the current model roster.

Judge Models

Judge models synthesize answers already in context and normally do not require retrieval.

They are configured in config.json with role "judge" and selected via the judge_model config key.

Judge models are independent of answering models and may synthesize outputs from any answering pool.

Model Selection

Model selection is controlled via config.json using a roles-based routing system. Instead of hard-coding model names, you select models by the capabilities (roles) they provide.

How to Select Models

As the calling model, follow this process:

  1. Classify the query — Match keywords to determine the queryType
  2. Pass queryType — The skill will look up the routing.xxx.models in config.json
  3. (Optional) Pass explicit models — Use the models parameter to bypass auto-selection

Query Types (Domain)

queryType Description
financial Markets, investing, macroeconomics
technical Programming, systems, engineering
social Public opinion, social media sentiment
current_events Recent news and real-time information
scientific Objective knowledge, definitions, theories
creative Writing, design, ideation
general Default fallback

Intent (Task Type)

In addition to queryType, queries may include an optional intent field. queryType defines the domain (what the question is about), while intent defines the task (what to do with the question). If intent is not provided, the system defaults to analysis for complex queries and lookup for simple factual queries.

intent Description
lookup Retrieve factual information
analysis Deep reasoning and explanation
comparison Compare multiple entities
prediction Forecast future outcomes (used in financial)
generation Create content (text, ideas, design)

Example:

{ "query": "美联储2026年会降息吗?", "queryType": "financial", "intent": "prediction" }

Selection Algorithm

1. Analyze query → match keywords → determine queryType
2. Pass queryType to skill → skill looks up `routing.<queryType>.models` in config.json
3. Skill selects top 2–3 models from the routing config
4. If queryType === 'financial', skill uses judge_financial.txt for synthesis

Examples

Example 1: Financial Query

Query: "美联储2026年会降息吗?"

Selection process:

  1. Keywords: 美联储, 降息 → queryType: financial
  2. Pass to skill: { "query": "...", "queryType": "financial" }
  3. Skill looks up: config.json → routing.financial.models
  4. Skill selects: First 2 models from the routing config
  5. Judge: Uses judge_financial.txt (Bull/Bear/Base Case analysis)

Example 2: Technical Query

Query: "How do I implement a distributed transaction?"

Selection process:

  1. Keywords: implement, distributed → queryType: technical
  2. Pass to skill: { "query": "...", "queryType": "technical" }
  3. Skill looks up: config.json → routing.technical.models
  4. Skill selects: Models configured for technical queries

Example 3: Social Query

Query: "What are people saying about SpaceX on Twitter?"

Selection process:

  1. Keywords: Twitter, saying → queryType: social
  2. Pass to skill: { "query": "...", "queryType": "social" }
  3. Skill looks up: config.json → routing.social.models
    • Note: grok-4.1 has social, sentiment, trending roles + X data access

When to Reference Specific Models

Only hard-code model names when:

  1. Special data access — e.g., grok-4.1 for X/Twitter data, kimi-k2.5 for 200K context
  2. Known strengths — e.g., qwen3.5 for coding tasks based on benchmarks
  3. Avoiding specific models — e.g., excluding models known to underperform for certain tasks

In these cases, document why that specific model is needed, not just its name.

When To Use This Skill

Use this skill when:

  • The user asks a complex research question
  • The question requires high confidence or cross-validation
  • The topic has multiple competing viewpoints
  • A factual error would have significant consequences

Do NOT use this skill for:

  • Simple factual lookups
  • Quick definitions or summaries
  • Trivial tasks a single model can answer reliably
  • Time-sensitive queries where 8–15s latency is unacceptable

Skill Parameters

Parameter Type Description
query string The research question
queryType string Domain classification (financial, technical, etc.)
intent string Task type (analysis, prediction, etc.)
models array Override model selection
maxModels number Max models
depth string simple / tree
judgeModel string Override judge

Note: The domain parameter has been deprecated. Use queryType: 'financial' instead for financial queries.

Example:

{
  "query": "What are the economic impacts of AI agents?",
  "queryType": "general",
  "intent": "analysis"
}
{
  "query": "美联储2026年会降息吗?",
  "queryType": "financial",
  "maxModels": 2
}

Depth Modes

Mode Behavior Use When
simple (default) Single-pass: each model answers the query once, judge synthesizes Most research questions
tree Multi-pass: follow-up sub-queries are generated and answered before synthesis Complex topics requiring decomposition (adds ~10–20s latency)

Output Format

Success (all models respond):

{
  "query": "user question",
  "models_used": ["glm-5", "kimi-k2.5"],
  "answers": [
    { "model": "glm-5", "answer": "..." },
    { "model": "kimi-k2.5", "answer": "..." }
  ],
  "final_answer": "...",
  "confidence": 0.85
}

Partial failure (one model timed out or errored):

{
  "query": "user question",
  "models_used": ["glm-5"],
  "models_failed": [
    { "model": "kimi-k2.5", "reason": "timeout" }
  ],
  "answers": [
    { "model": "glm-5", "answer": "..." }
  ],
  "final_answer": "...",
  "confidence": 0.61,
  "warning": "Synthesis based on partial responses. Confidence may be reduced."
}

Full failure:

{
  "query": "user question",
  "models_used": [],
  "models_failed": [
    { "model": "glm-5", "reason": "timeout" },
    { "model": "kimi-k2.5", "reason": "api_error" }
  ],
  "final_answer": null,
  "error": "All models failed. Please retry."
}

Confidence scale: All confidence values use a 0–1 scale (e.g., 0.85 = 85% confidence). This applies consistently across normalizer outputs and judge outputs.

Result Files

Each run produces files identified by a shared timestamp in YYYY-MM-DDTHH-MM-SS format (ISO 8601, colons replaced with hyphens).

The timestamp is logged at the start of execution:

[ResearchAgent] Timestamp: 2026-03-19T14-30-05

File Locations

File Path Content
Report reports/report-{timestamp}.txt Final synthesized answer from judge
Model responses intermediate/{model}-{timestamp}.txt Raw response from each answering model
Judge raw intermediate/{judge}-{timestamp}.txt Raw judge synthesis output

Example

For a run at 2026-03-19T14:30:05 with models kimi-k2.5 and gpt-5.4, judge glm-5:

reports/report-2026-03-19T14-30-05.txt        ← final answer
intermediate/kimi-k2.5-2026-03-19T14-30-05.txt
intermediate/gpt-5.4-2026-03-19T14-30-05.txt
intermediate/glm-5-judge-raw-2026-03-19T14-30-05.txt

Use the timestamp from console output to locate all files from a specific run.

Performance Characteristics

Stage Typical Latency
Router ~1s (skipped when models passed directly)
Model inference (parallel) 20–100s
Judge synthesis 20-60s
Total 40–120s

Timeout per model: 60-120 seconds Retries per model: 1

Failure Handling

The skill tolerates partial failures:

  • If a model times out or errors, the skill continues with remaining responses
  • The judge synthesizes available answers and notes missing models in output
  • If all models fail, a structured error is returned (see Output Format above)
  • The router has a default fallback pair (glm-5 + kimi-k2.5) if routing fails

Security Notes

  • User-supplied query values are included in prompts sent to external model APIs. Avoid passing unsanitized inputs from untrusted sources.
  • The skill does not validate or filter query content — callers are responsible for input sanitization upstream.
  • Do not include secrets, PII, or confidential data in queries unless the target model APIs are approved for that data classification.

Quality Evaluation

A synthesized answer is considered high quality when:

  • Consensus points across models are clearly identified
  • Disagreements are surfaced (not silently resolved)
  • Confidence ≥ 0.75
  • The judge does not fabricate citations or sources

For ongoing quality tracking, log confidence, models_used, and models_failed per request.

Best Practices

Recommended Model Combinations

intent Role Combination Example
lookup retrieval + general Quick factual lookup + balanced fallback
analysis reasoning + retrieval Deep analysis + live data context
prediction reasoning + synthesis Forecast with multi-source synthesis
comparison reasoning + structured Evaluate options systematically
generation creative + synthesis Create + refine output
queryType Recommended Roles Why
financial retrieval + research Live data + analysis
technical coding + general Technical + broader context
social social + retrieval Sentiment + current context
creative creative + synthesis Generate + refine

Why Role Diversity Matters

Combining models with different roles improves reliability:

  • retrieval + reasoning: Up-to-date facts + deep analysis
  • coding + general: Technical accuracy + broader context
  • social + retrieval: Platform-specific sentiment + general web context

Benefits:

  • Higher reliability through capability diversity
  • Reduced hallucination via cross-validation
  • Improved reasoning quality on ambiguous topics

Example Usage

use cross-research

query="What are the major AI breakthroughs in the past 12 months?"
queryType="current_events"

Selection process:

  1. Keywords: "past 12 months" → implies current_events
  2. Pass queryType: "current_events" to skill
  3. Skill looks up config.json → routing.current_events.models
  4. Judge synthesizes responses

Example result:

Final Answer:
AI breakthroughs in the last year include...

Consensus:
- Agent frameworks matured significantly
- Multimodal models expanded in capability
- Inference costs decreased substantially

Confidence: 0.87

Changelog

Version Changes
1.0.3 updated metadata
1.0.2 model updates; bug fixes
1.0.0 Initial release

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • Wei Cross Research Skill
    • Overview
    • Requirements
      • Install Bun
      • Environment Variables
      • Configuration Files
      • Install Dependencies
    • Usage
      • Domain-Specific Judges
    • Supported Models
    • Model Roles
    • Judge Models
    • Model Selection
    • How to Select Models
    • Query Types (Domain)
    • Intent (Task Type)
    • Selection Algorithm
    • Examples
      • Example 1: Financial Query
      • Example 2: Technical Query
      • Example 3: Social Query
    • When to Reference Specific Models
    • When To Use This Skill
    • Skill Parameters
    • Depth Modes
    • Output Format
    • Result Files
      • File Locations
      • Example
    • Performance Characteristics
    • Failure Handling
    • Security Notes
    • Quality Evaluation
    • Best Practices
    • Recommended Model Combinations
    • Why Role Diversity Matters
    • Example Usage
    • Changelog
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期