← 返回 Skills 市场
tanteng

tradingagents-cn-skill

作者 Tony · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
112
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install tradingagents-cn-skill
功能描述
股票多智能体分析报告生成。通过 6 个分析师串行分析 + 多空辩论 + 交易计划 + 风险评估, 生成专业 PDF 报告。触发场景:用户要求分析股票、生成股票报告、提供截图或代码进行分析、 询问买卖建议、要求技术分析或基本面分析或风险评估。
安全使用建议
This skill appears to do what it says: coordinate LLM analyses, validate outputs, and render a PDF. Before installing, note two practical inconsistencies: (1) the Python scripts import a third‑party 'markdown' module (and possibly others) but the skill metadata doesn't declare pip dependencies — you may need to install them manually in the runtime environment; (2) the validator uses an environment variable TRADINGAGENTS_LOG_FILE to set the log path (SKILL.md instructs a safe default), but the script will honor any value of that env var — if an attacker or misconfiguration sets it to an unexpected path, logs could be written outside the skill directory. These are not direct evidence of malicious intent, but they are configuration and supply‑chain gaps you should address (install required Python packages in a controlled environment and ensure TRADINGAGENTS_LOG_FILE is set to a safe path) before using the skill.
功能分析
Type: OpenClaw Skill Name: tradingagents-cn-skill Version: 2.0.0 The skill bundle implements a sophisticated multi-agent stock analysis framework but contains a critical shell injection vulnerability. The instructions in SKILL.md direct the agent to pipe raw, unsanitized LLM output into validation scripts using shell commands (e.g., `echo '<LLM_output>' | python3 ...`), which can be exploited to execute arbitrary commands if the LLM generates shell metacharacters. Additionally, pdf_generator.py renders LLM-generated content into HTML for PDF generation without sufficient sanitization, posing a risk of HTML/CSS injection during the report generation process.
能力评估
Purpose & Capability
Name/description align with the included scripts: the skill runs a 12-step LLM-driven analysis, validates LLM outputs (validate_step.py) and generates PDFs (pdf_generator.py). Requested runtime binary (python3) is appropriate. However, the code imports third‑party Python packages (e.g., markdown) that are not declared in the skill metadata or install instructions — an undeclared dependency mismatch.
Instruction Scope
SKILL.md instructions stay within the declared purpose: they describe OCR/web_search/LLM calls, retries, validation, logging, and PDF generation. The skill does not instruct reading arbitrary system files or exfiltrating secrets. Note: it relies on agent MCP tools (web_search, image-ocr) and expects the agent to perform LLM calls; those are external to the skill.
Install Mechanism
There is no install spec (instruction-only) which is low-risk, but code files are present and will run under python3. The package imports (markdown) are not documented — whoever installs this may need to pip-install dependencies. No remote downloads or obscure install URLs are used.
Credentials
The skill does not request secrets or credentials. It does use an environment variable TRADINGAGENTS_LOG_FILE to determine the log file location; this variable is not declared in requires.env but is required by SKILL.md usage. Because the script will honor that env var, a mis-set environment value could cause logs/reports to be written to unexpected filesystem locations — this is a configuration/proportionality issue to be aware of, not direct credential theft.
Persistence & Privilege
always is false and the skill does not request persistent platform-wide privileges. It writes logs and report files to directories under the skill (scripts/logs, scripts/reports) by default. It does not modify other skills or global agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tradingagents-cn-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tradingagents-cn-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
tradingagents-cn-skill 2.0.0 - 全面重构为 12 步的多智能体串行分析流程,每步 LLM 输出均通过 validate_step.py 自动验收,显著提升结果准确性。 - 全流程支持截图 OCR、结构化数据提取、新闻聚合,并强制严格 JSON 验证与格式提示机制,显著减少幻觉和错误输出。 - 新增 6 个分析角色(多头、空头、技术、基本面、新闻、社交),每步输出独立验证,支持多空辩论及研究经理、交易员、风险经理串联。 - 引入详细日志机制,每次分析自动记录日志,所有交互统一保存以便溯源。 - 支持对用户截图、文本或股票代码输入自动适应数据清洗提取,构建标准化分析上下文。 - 代码结构优化并增加 data_schema、自动报告生成与数据校验脚本,精简冗余脚本
v1.0.4
**Important workflow simplification and clarification for news-driven stock analysis PDF generation:** - Clarified workflow to require mandatory use of the web_search MCP tool for real news before any PDF report generation. - Streamlined steps: parse stock code → fetch news via web_search → generate PDF with script. - Added explicit reminders that omitting news data will result in a PDF showing "暂无新闻数据". - Simplified instructions and Python code sample, focusing only on essential inputs (stock_code, news_data). - Updated directory paths and file organization for output PDF reports.
v1.0.3
- Improved the news data integration workflow: news input now must follow a strict structured format, including sentiment analysis. - Clarified and reformatted the data retrieval step in the documentation, with explicit Python code usage and search keyword recommendations. - Updated step-by-step instructions for running analysis and generating PDF reports, emphasizing real news/social data injection. - Enhanced the requirements for the PDF news section, mandating the inclusion of 5–10 news items with title, date, source, summary, and sentiment. - Added a new test script: scripts/test_news.py.
v1.0.2
- 引入“获取数据”步骤,要求通过 MCP tool 采集真实新闻和数据,为分析提供数据支撑。 - 新闻分析部分需基于真实新闻,报告中必须列出新闻标题、日期、来源及摘要,并明确要求新闻数量不少于5-10条。 - 调整工作流程和PDF报告结构,强调数据驱动分析和透明化新闻来源。 - 更新脚本使用说明及报告输出路径,统一 skill 目录结构描述。
v1.0.1
- 文档中将“Stock Analyst Tony”统一为“TradingAgents-CN Skill”以突出通用性。 - 优化技能介绍标题与描述表述,更符合整体产品命名。 - 其余内容和功能未变,未涉及代码或功能更改,仅为文档更新。
v1.0.0
Initial release: Automated stock analysis and PDF reporting tool based on TradingAgents-CN multi-agent framework. - Analyzes stocks using multiple intelligent agents covering technicals, fundamentals, news, social sentiment, and risk. - Supports input from stock codes, text descriptions, or image screenshots (with OCR support). - Generates professional PDF reports summarizing buy/sell/hold debates, trading plans, target prices, and risk analysis. - Details analysis steps, agent roles, and script usage in documentation. - All outputs and reports are provided in Chinese.
元数据
Slug tradingagents-cn-skill
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 6
常见问题

tradingagents-cn-skill 是什么?

股票多智能体分析报告生成。通过 6 个分析师串行分析 + 多空辩论 + 交易计划 + 风险评估, 生成专业 PDF 报告。触发场景:用户要求分析股票、生成股票报告、提供截图或代码进行分析、 询问买卖建议、要求技术分析或基本面分析或风险评估。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。

如何安装 tradingagents-cn-skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tradingagents-cn-skill」即可一键安装,无需额外配置。

tradingagents-cn-skill 是免费的吗?

是的,tradingagents-cn-skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

tradingagents-cn-skill 支持哪些平台?

tradingagents-cn-skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 tradingagents-cn-skill?

由 Tony(@tanteng)开发并维护,当前版本 v2.0.0。

💬 留言讨论