Skip to content
cccskills
FreePublished on GitHub

alphaear-sentiment

Analyze financial text with local FinBERT or an LLM to identify positive, negative, or neutral sentiment. Return a numeric score and short reason, with support for batch processing unanalyzed news using FinBERT.

OriginalShow the original 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.

Run score Not tested

See how to install

Good for

  • Classifying sentiment in financial news
  • Batch processing unanalyzed news with FinBERT
  • Using an LLM when sentiment analysis needs reasoning
  • Saving sentiment scores and reasons to a database

Files included (8)

  • SKILL.md2.0 KB
  • scripts/__init__.py0 B
  • 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

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

请分析以下金融/新闻文本的情绪极性。
返回严格的 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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Retrieve the latest financial signals from DeepEar Lite as a formatted report. Review titles, summaries, sentiment indicators, confidence scores, and source links to understand reported market trends and factors affecting stock performance.

  • Checking the latest financial signals
  • Reviewing reported factors affecting stock performance
  • Reading signal summaries alongside confidence scores
RKiding/Awesome-finance-skills3.1KUpdated Mar 29, 2026

Turn investment theses and chains of financial market effects into Draw.io-compatible diagrams. The skill generates diagram XML and saves it in a viewable HTML file, helping readers follow complex relationships and reasoning.

  • Visualizing the reasoning behind an investment thesis
  • Mapping how financial signals transmit through markets
  • Preparing a viewable diagram to explain financial logic
RKiding/Awesome-finance-skills3.1KUpdated Mar 29, 2026

alphaear-news

FreeSummary

Fetch current financial headlines and combine trending stories from multiple sources, including Weibo and WallstreetCN. You can also retrieve a summary of active Polymarket prediction markets to review alongside the news.

  • Check trending financial news
  • Combine headlines from several sources into one report
  • Review a summary of active Polymarket prediction markets
RKiding/Awesome-finance-skills3.1KUpdated Mar 29, 2026

Generate financial market forecasts with Kronos using time-series data, meaning observations recorded over time. An agent then adjusts the numerical forecast using recent news sentiment and reasoning, combining a quantitative baseline with a subjective assessment.

  • Forecasting financial market trends from time-series data
  • Adjusting a baseline forecast using recent news
  • Combining quantitative forecasts with news sentiment
RKiding/Awesome-finance-skills3.1KUpdated Mar 29, 2026

Turn financial analysis and investment signals into a structured report. Group related signals, draft sections, assemble and edit the report, and create chart configurations to support the written analysis when needed.

  • Turning investment signals into a financial report
  • Grouping related signals to plan report sections
  • Combining section drafts into a complete report
RKiding/Awesome-finance-skills3.1KUpdated Mar 29, 2026

alphaear-search

FreeSummary

Search for financial information on the web or in a local news database. Use Jina, DDG, or Baidu, combine results from multiple engines, and assess whether cached results can answer a query before searching again.

  • Researching financial information on the web
  • Combining results from multiple search engines
  • Finding financial information in stored local news
RKiding/Awesome-finance-skills3.1KUpdated Mar 29, 2026

See all skills by RKiding

Report a problem with this skill