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
npx skills add staskh/trading_skills --skill news-sentiment -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/news-sentiment/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/news-sentiment/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill news-sentiment -a codex2Manually: put the files in place
.agents/skills/news-sentiment/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill news-sentiment -a cursor2Manually: put the files in place
.cursor/skills/news-sentiment/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install staskh/trading_skills .claude/skills/news-sentiment2Manually: put the files in place
.github/skills/news-sentiment/SKILL.md1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill news-sentiment -a gemini-cli2Platform CLI
gemini skills install https://github.com/staskh/trading_skills --path .claude/skills/news-sentimentManually: put the files in place
.devin/skills/news-sentiment/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill news-sentiment -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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