简介
基于 CueCue 多代理 AI 系统的专业金融研究工具,可自动化执行深度分析并生成可分享的专业投研报告。
原始描述
Conduct deep financial research using CueCue's AI-powered multi-agent system
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心功能
CueCue Deep Research 是一款基于多代理 AI 系统的金融深度研究工具,通过编排多个专业代理协同完成复杂研究任务:
研究流程:
- 问题解析 - Supervisor 代理将研究问题拆解为可执行任务
- 数据采集 - 自动执行网络爬取、金融数据库检索、知识库查询
- 综合分析 - 多维度数据整合与交叉验证
- 报告生成 - 输出结构化 Markdown 报告及可分享网页链接
输出特性:
- 实时进度显示(任务阶段、报告生成)
- 执行时长 5-30 分钟(视复杂度)
- 支持自定义输出路径与命名规范
显著优势
| 维度 | 特点 |
|---|---|
| 研究深度 | 多代理并行检索,覆盖 web、金融数据库、专业知识库 |
| 输出质量 | 自动生成 Executive Summary、数据图表、结构化分析 |
| 风格定制 | --mimic-url 模仿任意文章风格;--template-id 套用研究框架 |
| 连续性 | --conversation-id 支持多轮深度追问 |
| 自动化 | 内置 cron 进度监控方案,支持无人值守长任务 |
局限性与注意事项
- 时间成本:单次研究 5-30 分钟,不适合即时查询场景
- 服务依赖:完全依赖 cuecue.cn 服务端,离线不可用
- API 成本:需注册获取 CUECUE_API_KEY,存在调用费用
- 数据边界:金融数据覆盖以中文市场为主,部分海外资产可能受限
- 风格冲突:
--mimic-url与--template-id互斥,不可同时使用
适用人群
- 金融分析师:需要快速生成行业/公司深度研究报告
- 投资机构研究员:跟踪多资产动态,批量产出研究笔记
- 财经内容创作者:模仿特定媒体风格,保持内容调性一致
- 企业战略部门:竞品分析、供应链风险评估等专项研究
安全与合规
- 安全等级 S:无后门、无数据外泄、无 Agent 注入风险
- 来源可信度 T2:社区来源项目,维护者为 xfgong
- 隐私合规:需 API Key,数据经 TLS 1.2+ 加密传输至 cuecue.cn
- 代码安全:Skill 本身仅含文档示例,无可执行代码,依赖外部 npm 包需自行验证
典型使用场景
# 基础研究
cuecue-research "Tesla Q3 2024 营收分析" --output ~/reports/2026-01-30-tesla.md
# 风格模仿(匹配机构报告风格)
cuecue-research "比亚迪 vs 特斯拉市场份额对比" \
--mimic-url https://example.com/goldman-report-style \
--output ~/reports/byd-tesla-comparison.md
# 多轮追问(基于已有研究会话)
cuecue-research "进一步分析供应链风险" \
--conversation-id EXISTING_CONV_ID
技能正文
name: cuecue-deep-research description: Conduct deep financial research using CueCue's AI-powered multi-agent system version: 1.0.3 author: CueCue Team keywords:
- research
- financial-analysis
- ai-agents
- report-generation
- data-analysis
- imitation-writing metadata: {"clawdbot":{"emoji":"🔭","requires":{"env":["CUECUE_API_KEY"]},"primaryEnv": "CUECUE_API_KEY"}}
CueCue Deep Research TypeScript Skill
Execute comprehensive financial research queries using CueCue's multi-agent AI system. This TypeScript implementation provides the same functionality as the Python version with modern async/await patterns and full type safety.
What This Skill Does
CueCue Deep Research orchestrates multiple AI agents to:
- Analyze your research question and break it down into actionable tasks
- Research using web crawling, financial databases, and knowledge retrieval
- Synthesize findings into a comprehensive markdown report
- Generate a shareable report URL
The skill filters the verbose agent workflow to show only:
- 📋 Task titles (from the supervisor agent)
- 📝 Final research report (from the reporter agent)
- 🔗 Report URL for web viewing
⏱️ Execution Time: Depending on the complexity of your research question, the process may take 5-30 minutes. The system performs comprehensive research including web crawling, data analysis, and report generation. Please be patient and wait for the complete results.
For AI Assistants
Important: When using this skill, you MUST monitor the research progress by checking the command output:
-
Progress Monitoring: The research process outputs progress information in real-time. You should check the output every 5 minutes to:
- Verify the research is still running
- Report task progress to the user (📋 Task updates)
- Detect any errors or issues
- Inform the user when report generation begins (📝 Generating Report...)
-
Progress URL: The command will output a URL like "Research begin. You can view progress at: https://cuecue.cn/c/..." - this URL is for human users to view the web interface, NOT for you to fetch. You should monitor progress through the command's stdout output.
-
User Communication: Keep the user informed about:
- When research begins
- Each major task that starts
- When report generation begins
- When research completes
- Any errors or timeouts
-
Timeout Handling: If the command appears to hang or timeout, inform the user that the research may still be processing on the server, and they can check the web interface URL.
-
User-Facing Communication Style: When informing users about progress monitoring:
- ✅ DO SAY: "我会每 5 分钟自动检查进度并汇报" / "I'll check progress every 5 minutes and update you"
- ✅ DO SAY: "研究完成后我会总结关键发现" / "I'll summarize key findings when complete"
- ❌ DON'T SAY: "我创建了一个 cron 任务" / "I created a cron job"
- ❌ DON'T SAY: "完成后会删除 cron" / "Will delete the cron when done"
- ❌ DON'T SAY: Technical implementation details (session IDs, job IDs, internal mechanisms)
Why: Users care about what you'll do, not how you do it. Keep communication focused on outcomes and user value, not internal plumbing.
Automated Progress Monitoring with Cron
Since AI assistants cannot actively "loop and check" on their own, use OpenClaw's cron system to automate progress monitoring.
Recommended Approach: Use Isolated Session
Using sessionTarget: "isolated" with payload.kind: "agentTurn" is the most reliable way to get progress updates delivered directly to the chat channel.
Step 1: Start research in background
// Start the research task
exec({
command: "cuecue-research 'Your research query' --output ~/clawd/cuecue-reports/2026-02-01-10-00-research.md",
background: true
})
// Returns: { sessionId: "wild-river", pid: 12345 }
Step 2: Create a cron job to monitor progress
cron.add({
name: "Monitor CueCue Research: wild-river",
schedule: {
kind: "every",
everyMs: 300000 // 5 minutes
},
sessionTarget: "isolated",
wakeMode: "now", // IMPORTANT: Use "now" to trigger immediately
payload: {
kind: "agentTurn",
message: "检查 CueCue 研究进度 (session: wild-river)。使用 process log wild-river 检查输出。如果看到 '✅ Research complete',则:1) 读取报告文件并总结关键发现;2) 使用 cron.remove 删除此监控任务。如果仍在运行,汇报最新的 📋 Task 进度。",
deliver: true,
channel: "feishu", // or "telegram", "discord", etc.
to: "GROUP_ID_OR_CHAT_ID" // The channel where the research was requested
}
})
// Returns: { id: "abc-123-def", ... }
Important Configuration:
sessionTarget: "isolated"- Creates an isolated sub-agent sessionpayload.kind: "agentTurn"- Runs the agent and delivers the responsedeliver: true- Ensures the response is sent to the chatchannel- Specify the messaging platform (feishu, telegram, discord, etc.)to- The target chat/group ID where updates should be sentwakeMode: "now"- Triggers immediately without waiting for heartbeat
Step 3: Cron will automatically check every 5 minutes
The cron job will:
- Run in an isolated session every 5 minutes
- Check
process log wild-riverfor new output - Send progress updates directly to the specified chat channel
- When complete, read the report, summarize findings, and delete itself
Step 4: Manual cleanup (if needed)
If the research fails or you need to stop monitoring:
// List all cron jobs
cron.list()
// Remove the monitoring job
cron.remove({ jobId: "abc-123-def" })
Complete Example Workflow:
// 1. Start research
const result = exec({
command: "cuecue-research '2026年金银价格分析' --output ~/clawd/cuecue-reports/2026-02-01-gold-analysis.md",
background: true
})
const sessionId = result.sessionId // e.g., "wild-river"
// 2. Get current channel info (from runtime context)
const channel = "feishu" // Current channel
const chatId = "oc_abac3e3037a0726ef4b4aa330d5ed590" // Current group/chat ID
// 3. Create monitoring cron
const cronJob = cron.add({
name: `Monitor CueCue: ${sessionId}`,
schedule: { kind: "every", everyMs: 300000 },
sessionTarget: "isolated",
wakeMode: "now",
payload: {
kind: "agentTurn",
message: `检查研究进度 (session: ${sessionId})。完成后读取报告并总结,然后删除此 cron。`,
deliver: true,
channel: channel,
to: chatId
}
})
// 4. Inform user (user-friendly, no technical details)
reply(`🔭 研究已启动!
📊 进度追踪: https://cuecue.cn/c/...
⏰ 我会每 5 分钟自动检查进度并汇报
`)
// 5. Cron handles the rest automatically
// The isolated session will:
// - Check progress every 5 minutes
// - Send updates directly to the chat
// - Summarize the report when complete
// - Delete itself
Troubleshooting:
If you don't receive progress updates:
- Check
cron.list()to verify the job is running (lastStatus: "ok") - Ensure
wakeMode: "now"is set (not"next-heartbeat") - Verify
deliver: trueand correctchannel+tovalues - Check
cron.runs({ jobId })for execution history and errors
Alternative: Main Session (Not Recommended)
If you prefer to use sessionTarget: "main" with payload.kind: "systemEvent", note that:
- Responses are NOT automatically sent to the chat
- You must ensure
HEARTBEAT.mdcontains non-comment content to avoidempty-heartbeat-fileerrors - The isolated session approach is more reliable for automated notifications
Note: The cron payload should include logic to delete itself. Use cron.remove({ jobId: "<job-id>" }) when the research completes.
Prerequisites
- Node.js 18+ or Deno
- CueCue API key (obtain from your CueCue account settings from https://cuecue.cn)
- npm or yarn package manager
Configuration
Setting up CUECUE_API_KEY
The skill requires a CueCue API key to function. You can configure it in two ways:
Option 1: OpenClaw Config (Recommended)
Set the API key in your OpenClaw configuration using the CLI:
# One-line command to set the API key(openclaw command may be clawdbot or moltbot)
openclaw config set skills.entries.cuecue-deep-research.env.CUECUE_API_KEY "your-api-key-here"
This will:
- Add the key to
~/.openclaw/openclaw.jsonunderskills.entries.cuecue-deep-research.env - Make it available to the skill automatically
- Restart the gateway to apply changes
To verify the configuration:
openclaw config get skills.entries.cuecue-deep-research.env.CUECUE_API_KEY
then restart the gateway
openclaw gateway restart
Option 2: Command-Line Argument
You can also pass the API key directly when running the command:
cuecue-research "Your query" --api-key YOUR_API_KEY
Note: The OpenClaw config method is recommended because:
- You don't need to specify the key every time
- The key is stored securely in the OpenClaw config
- All AI assistants can use the skill without needing the key in prompts
- One command to set it up
Getting Your API Key
- Visit https://cuecue.cn
- Log in to your account
- Go to Account Settings
- Find the API Key section
- Copy your API key
Installation
As a CLI Tool
# Install globally
npm install -g cuecue-deep-research@1.0.3
# Or install locally in your project
npm install cuecue-deep-research@1.0.3
Usage
Command-Line Interface
Basic Research
# Using environment variable (recommended)
cuecue-research "Tesla Q3 2024 revenue analysis"
# Or specify API key directly
cuecue-research "Tesla Q3 2024 revenue analysis" --api-key YOUR_API_KEY
Save Report to File
cuecue-research "BYD vs Tesla market comparison" --output ~/clawd/cuecue-reports/2026-01-30-14-30-byd-tesla-comparison.md
Note: The output path should use the format ~/clawd/cuecue-reports/YYYY-MM-DD-HH-MM-descriptive-name.md where the timestamp represents when the research was initiated. The ~ will be expanded to your home directory.
Use a Research Template
cuecue-research "Analyze CATL competitive advantages" \
--output ~/clawd/cuecue-reports/2026-01-30-11-20-catl-analysis.md \
--template-id TEMPLATE_ID
Continue Existing Conversation
cuecue-research "Further analyze supply chain risks" \
--output ~/clawd/cuecue-reports/2026-01-30-15-45-supply-chain-risks.md \
--conversation-id EXISTING_CONV_ID
Mimic Writing Style
cuecue-research "Electric vehicle market analysis" \
--output ~/clawd/cuecue-reports/2026-01-30-16-00-ev-market-analysis.md \
--mimic-url https://example.com/sample-article
The mimic feature analyzes the writing style, tone, and structure of the provided URL and applies it to the generated research report. This is useful for:
- Matching your organization's reporting style
- Adapting to specific audience preferences
- Maintaining consistency across reports
⚠️ Note: The --mimic-url and --template-id options cannot be used together. Choose one approach:
- Use
--template-idfor predefined research frameworks (goal, search plan, report format) - Use
--mimic-urlfor style mimicking without a template
Command-Line Options
| Option | Required | Description |
|---|---|---|
query |
✅ | Research question or topic |
--api-key |
❌ | Your CueCue API key (defaults to CUECUE_API_KEY env var) |
--base-url |
❌ | CueCue API base URL (defaults to CUECUE_BASE_URL env var or https://cuecue.cn) |
--conversation-id |
❌ | Continue an existing conversation |
--template-id |
❌ | Use a predefined research template (cannot be used with --mimic-url) |
--mimic-url |
❌ | URL to mimic the writing style from (cannot be used with --template-id) |
--output, -o |
❌ | Save report to file (markdown format). Recommended format: ~/clawd/cuecue-reports/clawd/cuecue-reports/YYYY-MM-DD-HH-MM-descriptive-name.md (e.g., ~/clawd/2026-01-30-12-41-tesla-analysis.md). The ~ will be expanded to your home directory. |
--verbose, -v |
❌ | Enable verbose logging |
--help, -h |
❌ | Show help message |
Output Format
The skill provides real-time streaming output:
Starting Deep Research: Tesla Q3 2024 Financial Analysis
Check Progress: https://cuecue.cn/c/12345678-1234-1234-1234-123456789abc
📋 Task: Search for Tesla Q3 2024 financial data
📋 Task: Analyze revenue and profit trends
📝 Generating Report...
# Tesla Q3 2024 Financial Analysis
## Executive Summary
[Report content streams here in real-time...]
✅ Research complete
============================================================
📊 Research Summary
============================================================
Conversation ID: 12345678-1234-1234-1234-123456789abc
Tasks completed: 2
Report URL: https://cuecue.cn/c/12345678-1234-1234-1234-123456789abc
✅ Report saved to: ~/clawd/cuecue-reports/2026-01-30-10-15-tesla-q3-analysis.md
Troubleshooting
401 Unauthorized
- Verify your API key is correct
- Check if the API key has expired
- Ensure you have necessary permissions
Connection Timeout
- Verify the base URL is correct
- Check network connectivity
- Research queries typically take 5-30 minutes depending on complexity - this is normal
- If you see a timeout, the research may still be processing on the server - check the web interface
Empty Report
- Ensure your research question is clear and specific
- Check server logs for errors
- Try a different query to test connectivity
Support
For issues or questions:
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。