Agent Skills › staskh/trading_skills › news-sentiment

news-sentiment

GitHub

获取股票近期新闻及情绪分析,支持 yfinance 和 Yahoo RSS 双源抓取。适用于用户询问股票动态、头条或市场影响事件时调用,返回结构化新闻数据及人工情绪判断。

.claude/skills/news-sentiment/SKILL.md staskh/trading_skills

Trigger Scenarios

查询股票近期新闻 询问股票情绪或市场反应 了解特定股票的最新发展

Install

npx skills add staskh/trading_skills --skill news-sentiment -g -y
More Options

Non-standard path

npx skills add https://github.com/staskh/trading_skills/tree/main/.claude/skills/news-sentiment -g -y

Use without installing

npx skills use staskh/trading_skills@news-sentiment

指定 Agent (Claude Code)

npx skills add staskh/trading_skills --skill news-sentiment -a claude-code -g -y

安装 repo 全部 skill

npx skills add staskh/trading_skills --all -g -y

预览 repo 内 skill

npx skills add staskh/trading_skills --list

SKILL.md

Frontmatter
{
    "name": "news-sentiment",
    "description": "Get recent news and sentiment for a stock. Use when user asks about news, headlines, sentiment, what's happening with a stock, or recent developments.",
    "dependencies": [
        "trading-skills"
    ]
}

News Sentiment

Fetch recent news from Yahoo Finance: yfinance's ticker news first, then Yahoo's per-ticker RSS feed when that comes back empty or fails.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.

uv run python scripts/news.py SYMBOL [--limit LIMIT]

Arguments

  • SYMBOL - Ticker symbol
  • --limit - Number of articles (default: 10)

Output

Returns JSON with:

  • articles - Array of recent news with title, publisher, date (YYYY-MM-DD HH:MM ET), link, type
  • count - Number of articles returned
  • source - "yfinance" or "yahoo-rss"
  • note - With yahoo-rss: items are tagged to the ticker, not necessarily about it, and arrive newest first. publisher is the link's host (often finance.yahoo.com), since the feed carries no publisher
  • message: "No news found" - both sources answered with no articles
  • error - no articles and at least one source failed; never read this as "no news"

Present key headlines and note any significant news that could impact the stock. Judge the sentiment from the headlines yourself. With yahoo-rss, skip market-wide stories that are not about the company when assessing its sentiment.

Dependencies

  • yfinance

Timezone

All timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.

Version History

  • 3a3bc45 Current 2026-11-02 13:28

    增加 Yahoo RSS 作为 yfinance 失败时的降级方案;优化空结果与错误的区分逻辑;明确日期时区为纽约时间。

  • cc30858 2026-07-05 11:04

Dependencies

  • required trading-skills

Same Skill Collection

.claude/skills/calendar/SKILL.md
.claude/skills/earnings-calendar/SKILL.md
.claude/skills/fundamentals/SKILL.md
.claude/skills/greeks/SKILL.md
.claude/skills/ib-account/SKILL.md
.claude/skills/ib-collar/SKILL.md
.claude/skills/ib-create-consolidated-report/SKILL.md
.claude/skills/ib-find-short-roll/SKILL.md
.claude/skills/ib-option-chain/SKILL.md
.claude/skills/ib-pmcc-advisor/SKILL.md
.claude/skills/ib-portfolio-action-report/SKILL.md
.claude/skills/ib-portfolio/SKILL.md
.claude/skills/ib-report-delta-adjusted-notional-exposure/SKILL.md
.claude/skills/ib-stop-loss/SKILL.md
.claude/skills/ib-trades-history/SKILL.md
.claude/skills/ib-trailing-stop/SKILL.md
.claude/skills/insider-trading/SKILL.md
.claude/skills/markdown-to-pdf/SKILL.md
.claude/skills/option-chain/SKILL.md
.claude/skills/price-history/SKILL.md
.claude/skills/report-stock/SKILL.md
.claude/skills/risk-assessment/SKILL.md
.claude/skills/scanner-bullish/SKILL.md
.claude/skills/scanner-pmcc/SKILL.md
.claude/skills/spread-analysis/SKILL.md
.claude/skills/stock-quote/SKILL.md
.claude/skills/technical-analysis/SKILL.md
.claude/skills/whale-hunting/SKILL.md
.claude/skills/ib_0dte/SKILL.md

Metadata

Files
0
Version
3a3bc45
Hash
67ef72bb
Indexed
2026-07-05 11:04

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-05 07:30
浙ICP备14020137号-1