Skip to content
Back to skills

Alphaear Sentiment

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
ai-agentsgosqlgitdatabase

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill alphaear-sentiment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Alphaear Sentiment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Alphaear Sentiment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-alphaear-sentiment/badge)](https://www.skillsdirectory.com/skills/thedixitjain-alphaear-sentiment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: alphaear-sentiment
description: "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."
category: business-and-finance
source_repo: RKiding/Awesome-finance-skills
source_path: "skills/alphaear-sentiment/SKILL.md"
source_url: https://github.com/RKiding/Awesome-finance-skills/blob/HEAD/skills/alphaear-sentiment/SKILL.md
---


# AlphaEar Sentiment Skill

## Overview

This skill provides sentiment analysis capabilities tailored for financial texts, supporting both FinBERT (local model) and LLM-based analysis modes.

## Capabilities

## Capabilities

### 1. Analyze Sentiment (FinBERT / Local)

Use `scripts/sentiment_tools.py` for high-speed, local sentiment analysis using FinBERT.

**Key Methods:**

-   `analyze_sentiment(text)`: Get sentiment score and label using localized FinBERT model.
    -   **Returns**: `{'score': float, 'label': str, 'reason': str}`.
    -   **Score Range**: -1.0 (Negative) to 1.0 (Positive).
-   `batch_update_news_sentiment(source, limit)`: Batch process unanalyzed news in the database (FinBERT only).

### 2. Analyze Sentiment (LLM / Agentic)

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

#### Sentiment Analysis Prompt

Use this prompt to analyze financial texts if the local tool is insufficient or if reasoning is required.

```markdown
请分析以下金融/新闻文本的情绪极性。
返回严格的 JSON 格式:
{"score": <float: -1.0到1.0>, "label": "<positive/negative/neutral>", "reason": "<简短理由>"}

文本: {text}
```

**Scoring Guide:**
- **Positive (0.1 to 1.0)**: Optimistic news, profit growth, policy support, etc.
- **Negative (-1.0 to -0.1)**: Losses, sanctions, price drops, pessimism.
- **Neutral (-0.1 to 0.1)**: Factual reporting, sideways movement, ambiguous impact.

#### Helper Methods
- `update_single_news_sentiment(id, score, reason)`: Use this to save your manual analysis to the database.

## Dependencies

-   `torch` (for FinBERT)
-   `transformers` (for FinBERT)
-   `sqlite3` (built-in)

Ensure `DatabaseManager` is initialized correctly.

---

**Source:** [`RKiding/Awesome-finance-skills`](https://github.com/RKiding/Awesome-finance-skills) → `skills/alphaear-sentiment/SKILL.md`

Files in this skill

  • SKILL.md2.4 KB
  • scripts/database_manager.py21.3 KB
  • scripts/llm/capability.py2.8 KB
  • scripts/llm/factory.py3.6 KB
  • scripts/llm/router.py2.8 KB
  • scripts/sentiment_tools.py8.3 KB
  • tests/test_sentiment.py743 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.