Tooluck logoTooluck
SKILL.md

alphaear-sentiment

Agent skill fromRKiding/Awesome-finance-skills

Analyze finance text sentiment using FinBERT or LLM. Use when the user needs to determine the sentiment (positive/negative/neutral) and score of financial text markets.

How to install alphaear-sentiment

install alphaear-sentiment
# install the Awesome-finance-skills pack with the skills CLI
npx skills add RKiding/Awesome-finance-skills

# or add only this skill to Claude Code: copy the folder

skills/alphaear-sentiment/

# into

~/.claude/skills/alphaear-sentiment/ (all projects)

.claude/skills/alphaear-sentiment/ (one project)

skills/alphaear-sentiment/SKILL.md

Apache-2.0Full file
1# AlphaEar Sentiment Skill
2
3## Overview
4
5This skill provides sentiment analysis capabilities tailored for financial texts, supporting both FinBERT (local model) and LLM-based analysis modes.
6
7## Capabilities
8
9## Capabilities
10
11### 1. Analyze Sentiment (FinBERT / Local)
12
13Use `scripts/sentiment_tools.py` for high-speed, local sentiment analysis using FinBERT.
14
15**Key Methods:**
16
17- `analyze_sentiment(text)`: Get sentiment score and label using localized FinBERT model.
18 - **Returns**: `{'score': float, 'label': str, 'reason': str}`.
19 - **Score Range**: -1.0 (Negative) to 1.0 (Positive).
20- `batch_update_news_sentiment(source, limit)`: Batch process unanalyzed news in the database (FinBERT only).
21
22### 2. Analyze Sentiment (LLM / Agentic)
23
24For higher accuracy or reasoning capabilities, **YOU (the Agent)** should perform the analysis using the Prompt below, calling the LLM directly, and then update the database if necessary.
25
26#### Sentiment Analysis Prompt
27
28Use this prompt to analyze financial texts if the local tool is insufficient or if reasoning is required.
29
30```markdown
31请分析以下金融/新闻文本的情绪极性。
32返回严格的 JSON 格式:
33{"score": <float: -1.0到1.0>, "label": "<positive/negative/neutral>", "reason": "<简短理由>"}
34
35文本: {text}
36```
37
38**Scoring Guide:**
39- **Positive (0.1 to 1.0)**: Optimistic news, profit growth, policy support, etc.
40- **Negative (-1.0 to -0.1)**: Losses, sanctions, price drops, pessimism.
41- **Neutral (-0.1 to 0.1)**: Factual reporting, sideways movement, ambiguous impact.
42…

Excerpt shown under the repository's Apache-2.0 license.

More skills in Awesome-finance-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates