返回顶部
s

stock-valuation股票估值

Generate comprehensive company valuation reports as polished HTML/PDF. Use when user asks for stock valuation, company analysis, investment thesis, or deep-dive on a ticker. Pipeline: (1) run_pipeline.py collects all quantitative data in parallel, (2) agent does web research for Seeking Alpha, X/Twitter, analyst PTs, revenue composition, catalysts/risks, (3) generate_report.py produces polished light-theme HTML with embedded charts, smart callouts, and detailed valuation framework. NOT for quick

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 3.0.0
安全检测
已通过
394
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

stock-valuation

股票估值报告生成器 v3.0

通过一条命令生成专业估值报告。该流程自动检测同行业公司,并行运行全部8个数据脚本,并生成精美的HTML报告。

快速开始(一条提示)

用户:为AAPL生成估值报告

代理步骤:

步骤1:运行数据管道

bash uv run --with yfinance,matplotlib,lxml python3 $SKILLDIR/scripts/runpipeline.py TICKER

输出:/tmp/TICKER_data.json

选项:
bash

手动指定同行业公司


uv run --with yfinance,matplotlib,lxml python3 $SKILLDIR/scripts/runpipeline.py AAPL --peers MSFT GOOG META

步骤2:定性研究(必须执行)

并行运行以下搜索,并将结果收集到/tmp/TICKER_research.json:

2a. Seeking Alpha研究

web_search {TICKER} seekingalpha analysis 2025 2026
web_search seekingalpha {TICKER} strong buy OR turning bullish OR high growth

提取3-5篇文章:标题、日期、评级(强力买入/买入/持有/卖出)、一句话核心观点。

2b. X/Twitter情绪

bash

如果bird CLI可用:

bird search $TICKER -n 15 --plain

否则:

web_search {TICKER} stock twitter sentiment price target

提取3-5条重要帖子:用户名、看涨/看跌立场、关键论点、具体目标价。

2c. 分析师共识

web_search {TICKER} analyst price target consensus 2026

提取:共识评级、平均/最低/最高目标价。

2d. 盈利与收入

web_search {TICKER} latest earnings call revenue composition segments
webfetch BESTEARNINGS_URL --maxChars 6000

提取:按业务板块划分的收入(金额、占总收入百分比、同比增长)、地域分布、受资助账户/AUM/关键指标、管理层指引。

2e. 催化剂与风险

综合以上所有研究。目标为5-7个催化剂和5-7个风险(含缓解措施)。

保存为研究JSON文件

保存至/tmp/TICKER_research.json:
json
{
sa_articles: [
{title: 文章标题, date: 2025年12月, rating: 强力买入, summary: 一句话核心观点}
],
twitter_sentiment: [
{user: FinanceGuy, stance: 看涨, summary: 关键论点或目标价}
],
analystconsensus: {rating: 强力买入, avgpt: 200.0, lowpt: 150.0, highpt: 250.0},
catalysts: [
Q4盈利超预期可能触发重新估值(3月19日发布),
向新市场的地域扩张降低了集中度风险
],
risks: [
关键市场的监管风险。缓解措施:在6个以上司法管辖区分散布局,
交易量的周期性波动。缓解措施:利息收入提供稳定基础
],
revenue_composition: [
{stream: 产品销售, amount: 500亿美元, pct: 52%, trend: 强劲增长, notes: 核心硬件}
],
geographic_data: [
{market: 美洲, newaccountspct: 45%, avg_deposit: 5万美元, highlights: 最大市场}
]
}

步骤3:生成报告

bash uv run python3 $SKILLDIR/scripts/generatereport.py /tmp/TICKERdata.json --research /tmp/TICKERresearch.json

输出:/tmp/TICKER_report.html

步骤4:转换为PDF并交付

bash /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ --headless --disable-gpu --print-to-pdf=/tmp/TICKER_report.pdf \ --no-pdf-header-footer /tmp/TICKER_report.html

将PDF(以及可选的HTML)交付给用户。

脚本参考

脚本依赖输出
runpipeline.py TICKER [--peers P1 P2] [--output]yfinance,matplotlib,lxml合并JSON → 文件
generatereport.py DATA.json [--output] [--research]
(无) | HTML报告 | | fetch_fundamentals.py TICKER [PEERS...] | yfinance | 财务数据、比率、同行数据 | | fetch_technicals.py TICKER | yfinance | SMA、RSI、MACD、52周范围 | | fetchhistoricalvaluation.py TICKER | yfinance,lxml | 5年市盈率历史、百分位 | | dcf_model.py TICKER [--wacc] [--growth-*] | yfinance | 10年DCF悲观/基准/乐观 | | fetch_insiders.py TICKER | yfinance | 内部交易 + 机构持有者 | | fetch_options.py TICKER | yfinance | 看跌/看涨比率、隐含波动率、异常成交量 | | fetchearningscalendar.py TICKER | yfinance | 下次财报日期 | | generate_charts.py TICKER | yfinance,matplotlib | 4张PNG → /tmp/ | | detect_peers.py TICKER [--count N] | yfinance | 自动检测同行 | | filter_tweets.py (标准输入) | (无) | 过滤后的推文JSON |

报告章节

生成的报告包含以下所有内容(按顺序):

  1. 1. 页眉(公司名称、股票代码、日期、数据来源)
  2. 财报徽章(下次财报日期)
  3. KPI卡片(股价、市值、市盈率、利润率 — 2行×4列)
  4. 季度趋势(含环比增长箭头↑↑/↑/→/↓)
  5. 收入构成(板块细分表格 + 洞察标注)
  6. 地域扩张(分市场表格)
  7. 技术分析(6面板:RSI、SMA、MACD、52周范围)
  8. 图表(2×2网格:股价+SMA、收入、利润率、市盈率历史)
  9. 历史估值(5年平均市盈率、范围、百分位 + 均值回归标注)
  10. 同行比较(完整表格 + 高亮行 + 折价标注)
  11. 期权情绪(4个KPI卡片 + 解读)
  12. 内部交易活动
  13. Seeking Alpha研究(看涨/谨慎分组 + 共识标注)
  14. X/Twitter情绪(重要观点 + 共识标注)
  15. 催化剂(5-7项,最重要的在前)
  16. 风险(5-7项,含缓解措施)
  17. 估值框架(市盈率倍数、均值回归、DCF)
  18. 目标价情景(悲观/基准/乐观,含计算)
  19. 投资论点(具体、有观点的结论)
  20. 免责声明
  21. 页脚

规则

  • - 绝不包含个人持仓数据、投资组合信息或用户可识别信息
  • 所有脚本使用uv run --with 运行(无需pip install)
  • 图表以base64格式嵌入HTML,便于移植
  • 如果任何数据脚本失败,其对应章节将优雅降级(不产生损坏的HTML)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 stock-valuation-1776193643 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 stock-valuation-1776193643 技能

通过命令行安装

skillhub install stock-valuation-1776193643

下载

⬇ 下载 stock-valuation v3.0.0(免费)

文件大小: 35.8 KB | 发布时间: 2026-4-15 13:44

v3.0.0 最新 2026-4-15 13:44
v3.0: Turnkey pipeline (run_pipeline.py + generate_report.py). Light professional theme, smart data-driven callouts after every section, detailed valuation framework with methodology explanations and calculation details, mandatory qualitative research flow (SA, X/Twitter, analyst consensus).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部