Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add idea2realClaw/myAgent --skill stock-sentimentgit clone --depth 1 https://github.com/idea2realClaw/myAgentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/idea2realclaw/myagent/stock-sentiment)<a href="https://agentmods.dev/skills/idea2realclaw/myagent/stock-sentiment"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-sentiment/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/stock-sentiment"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-sentiment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00121 | $0.01068 |
| Opus 5 | $0.00060 | $0.00534 |
| Sonnet 5 | $0.00024 | $0.00214 |
| Haiku 4.5 | $0.00012 | $0.00107 |
Grade A, and why
stock-sentiment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
股票舆情分析 Skill
功能概述
通过多源数据采集,分析指定股票的市场情绪、人气热度、重要公告及机构观点,输出结构化 Markdown 报告。
数据来源:
- 雪球:社区讨论帖、股票关注人数、行情数据
- 东方财富股吧:散户讨论帖(近期热帖、互动数据)
- 东方财富公告中心:上市公司公告(过滤重大公告)
- 东方财富研报:机构研报摘要、评级分布
- 财联社:实时快讯(重要事件优先标注)
- 富途牛牛:股票新闻资讯(含情绪标签)
分析维度:
- 情绪分析(看多/中性/看空分布,高频情绪词)
- 人气热度(讨论量、雪球关注数)
- 热帖精选(互动量排名)
- 重要信息识别(增减持、业绩、监管等关键词)
- 机构态度(研报评级聚合)
使用方法
基本命令
# 分析某只股票近90天舆情(默认)
python3 ~/.workbuddy/skills/stock-sentiment/scripts/generate_report.py <股票代码>
# 指定回溯天数(如近30天)
python3 ~/.workbuddy/skills/stock-sentiment/scripts/generate_report.py <股票代码> 30
# 示例
python3 ~/.workbuddy/skills/stock-sentiment/scripts/generate_report.py 600339 90
报告输出
报告保存至:~/ClawData/WorkBuddy/sentiment-<股票代码>-<日期>.md
工作流程
- 执行命令 → 调用
generate_report.py,传入股票代码和天数 - 等待采集 → 脚本依次采集雪球、股吧、公告、研报、财联社(约需 30~60 秒)
- 读取报告 → 采集完成后读取生成的
.md文件 - 向用户展示 → 以结构化方式呈现关键结论:整体情绪、热帖、重要公告、机构观点
各脚本说明
| 脚本 | 功能 |
|---|---|
generate_report.py |
主入口,协调采集和分析,输出完整报告 |
fetch_xueqiu.py |
雪球讨论帖、行情、关注人数 |
fetch_eastmoney.py |
股吧讨论、上市公司公告、机构研报 |
fetch_other_sources.py |
富途新闻、财联社快讯、同花顺人气 |
analyze_sentiment.py |
情绪关键词分析、热帖筛选、重要信息识别 |
注意事项
- 雪球 Cookie:部分雪球接口需要登录。Cookie 文件路径:
~/ClawData/WorkBuddy/cookies.json- 如未登录,脚本会自动访问首页获取 token(可能采集量偏少)
- 频率限制:脚本已内置随机延迟(0.8~1.5s),避免触发反爬
- 富途数据:富途新闻接口有反爬保护,失败时会跳过该来源,不影响整体报告
- 数据时效:当天盘中分析可能缺少今日数据,建议收盘后使用
报告结构
一、人气概况 ← 各平台讨论量、关注人数、热度评级
二、市场情绪分析 ← 综合情绪、看多/看空分布、高频词
三、热帖精选 ← 互动量最高的帖子(附链接)
四、重要信息提示 ← 含业绩/增减持/监管等关键词的帖子
五、近期公司公告 ← 公告列表,重要公告高亮
六、机构研报 ← 评级分布、机构整体观点、最新研报
七、财联社快讯 ← 重要快讯优先展示
八、综合评估 ← 人气/情绪/机构/风险一览表
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 93 lines · 121 tokens per session scan A a22c03aa2f0a
stock-sentiment is a skill published in the GitHub repository idea2realClaw/myAgent (2 stars, last pushed 19d ago), licensed MIT. It adds 121 tokens to every session and 1,068 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
sector-rotation
An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
chenhao-limit-up
A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.
vectorbt
High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics.