Skip to main content
skill CX Codex

news-sentiment — Claude Code skill: stock news and sentiment

The news-sentiment skill fetches recent stock news from Yahoo Finance and gauges market sentiment. Use it to find out what's in the headlines and how it might sway the stock price.

MIT 253 installs ★ 417 updated 2026-10-21

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add staskh/trading_skills --skill news-sentiment -a claude-code
Open on GitHub

What news-sentiment does

The skill runs a news.py script that retrieves headlines and article links from Yahoo Finance using a stock ticker. Output includes a JSON array of articles (title, publisher, date, link) plus a summary of overall sentiment. All timestamps are anchored to the America/New_York timezone.

You need the yfinance library. If your project has uv installed, run uv run python scripts/news.py SYMBOL [--limit LIMIT]; otherwise just python scripts/news.py. By default it pulls 10 articles; use the --limit flag to adjust. The skill is part of the trading-skills package and runs on six platforms: Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

What it helps with

  • Pull recent news headlines for a stock symbol
  • Check market sentiment about a company
  • Spot significant developments that might move the share price
  • Gather article links about a company from the past few days

Example prompts for the agent

  • What's the latest news on Apple?
  • Get the last 15 articles about Tesla and tell me if the sentiment is positive or negative
  • What's happening with Microsoft stock — any recent news?

How to install news-sentiment

1Skills CLI (Vercel)

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

2Manually: put the files in place

~/.claude/skills/news-sentiment/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/news-sentiment/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about news-sentiment

How do I install news-sentiment in Claude Code?

Run npx skills add staskh/trading_skills --skill news-sentiment -a claude-code, then check the config file at ~/.claude/skills/news-sentiment/SKILL.md.

What does news-sentiment return?

The skill outputs JSON with an array of recent articles (title, publisher, date, link), a brief sentiment summary, and metadata fields (generated_at in New York time and data_delay).

What dependency does this skill need?

It requires yfinance. If your project lacks uv or a pyproject.toml, replace uv run python with python in the command.

Source text

SKILL.md · MIT
---
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.

## Instructions

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

```bash
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, link
- `summary` - Brief summary of overall sentiment

Present key headlines and note any significant news that could impact the stock.

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

© staskh · MIT · staskh/trading_skills

Similar skills

All skills for Finance and business →

From the same set12

The whole set →
technical-analysis technical-analysis is a Claude Code skill that calculates stock indicators and signals. It activates for requests about RSI, MACD, moving averages, or chart analysis. CX Codex +1 618installs fundamentals The fundamentals skill retrieves financial statements, earnings, and company metrics from Yahoo Finance. Use it when an agent needs fundamental analysis for a ticker. CX Codex +1 188installs stock-quote stock-quote is a Claude Code skill that fetches current price, volume, change, and 52-week range for any ticker. CX Codex +1 138installs greeks Skill computes option Greeks (delta, gamma, theta, vega) and implied volatility using the Black-Scholes model. Use it to understand how your position reacts to price changes, time decay, and shifts in volatility. CX Codex +1 137installs report-stock report-stock builds stock research reports in Markdown or PDF covering market trends, PMCC viability, and company fundamentals. CX Codex +1 123installs option-chain Skill pulls option chain data from Yahoo Finance: calls and puts with strike prices, bids, asks, volumes, and implied volatility. Use it to check option quotes for a specific expiration date. CX Codex +1 117installs risk-assessment risk-assessment calculates risk metrics for stocks and positions: volatility, beta, Value at Risk, and maximum drawdown. Use it to assess position risk and determine sizing. CX Codex +1 113installs ib-portfolio ib-portfolio — a skill for Claude Code fetches open positions and holdings from Interactive Brokers. The agent invokes it when asked about current stocks, portfolio value, or account assets. CX Codex +1 107installs

Project sponsors

Companies that keep this analytics open