This skill may not reflect the latest upstream change
SEC Press Releases update on 2026-11-25 may affect this skill Last checked Nov 25, 2026.
alphaear-sentiment
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.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install finance-skills-cn-alphaear-sentimentManual setup by platform
Claude Code
~/.claude/skills/finance-skills-cn-alphaear-sentiment/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
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).
- Returns:
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.
Security
Reviews (0)
Related skills
Browse all →More from Finance Skills (CN/EN)
View source →More Build skills
Browse category →Frequently asked questions about alphaear-sentiment
What does the alphaear-sentiment skill do?
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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the alphaear-sentiment skill?
Run `npx @skills-hub-ai/cli install finance-skills-cn-alphaear-sentiment` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/finance-skills-cn-alphaear-sentiment/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does alphaear-sentiment work with?
alphaear-sentiment runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the alphaear-sentiment skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use alphaear-sentiment after installing it?
In Claude Code, type `/finance-skills-cn-alphaear-sentiment` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the alphaear-sentiment skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.