stock-sentiment

stock-sentiment is a skill for Claude Code, Codex from idea2realClaw/myAgent. It costs 121 tokens per session (1,068 once invoked), scanned A, original, MIT.

A stock-market discussion and news analysis tool. It gathers posts, announcements, research summaries, news, and investor sentiment from several Chinese financial platforms.

In plain words
What is it for?
Use it to review a stock’s recent bullish, neutral, or bearish mood, discussion activity, popular posts, major announcements, and research ratings.
Why use it?
It brings scattered opinions and company information into one report instead of requiring separate manual searches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a stock’s recent bullish, neutral, or bearish mood, discussion activity, popular posts, major announcements, and research ratings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idea2realclaw/myagent/stock-sentiment
Install

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.

Any agent
npx skills add idea2realClaw/myAgent --skill stock-sentiment
Clone the repo
git clone --depth 1 https://github.com/idea2realClaw/myAgent

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for stock-sentiment

README.md
[![agentmods](https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-sentiment/github.svg)](https://agentmods.dev/skills/idea2realclaw/myagent/stock-sentiment)
Your own site
<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.

agentmods 80×15 button for stock-sentiment

Your own site · 80×15
<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>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash a22c03aa2f0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/analyze_sentiment.py, scripts/fetch_eastmoney.py, scripts/fetch_other_sources.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/stock-sentiment/SKILL.md · 93 lines

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


工作流程

  1. 执行命令 → 调用 generate_report.py,传入股票代码和天数
  2. 等待采集 → 脚本依次采集雪球、股吧、公告、研报、财联社(约需 30~60 秒)
  3. 读取报告 → 采集完成后读取生成的 .md 文件
  4. 向用户展示 → 以结构化方式呈现关键结论:整体情绪、热帖、重要公告、机构观点

各脚本说明

脚本 功能
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),避免触发反爬
  • 富途数据:富途新闻接口有反爬保护,失败时会跳过该来源,不影响整体报告
  • 数据时效:当天盘中分析可能缺少今日数据,建议收盘后使用

报告结构

一、人气概况         ← 各平台讨论量、关注人数、热度评级
二、市场情绪分析     ← 综合情绪、看多/看空分布、高频词
三、热帖精选         ← 互动量最高的帖子(附链接)
四、重要信息提示     ← 含业绩/增减持/监管等关键词的帖子
五、近期公司公告     ← 公告列表,重要公告高亮
六、机构研报         ← 评级分布、机构整体观点、最新研报
七、财联社快讯       ← 重要快讯优先展示
八、综合评估         ← 人气/情绪/机构/风险一览表
Files

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.

Changes

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.

  1. 8d ago First seen · 93 lines · 121 tokens per session scan A a22c03aa2f0a

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories