From rkiding-awesome-finance-skills-1
Analyzes sentiment in financial texts using local FinBERT model or LLM prompts. Returns score (-1.0 to 1.0), label (positive/negative/neutral), and reason. Updates SQLite database.
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin rkiding-awesome-finance-skills-1This skill uses the workspace's default tool permissions.
This skill provides sentiment analysis capabilities tailored for financial texts, supporting both FinBERT (local model) and LLM-based analysis modes.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
This skill provides sentiment analysis capabilities tailored for financial texts, supporting both FinBERT (local model) and LLM-based analysis modes.
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.
{'score': float, 'label': str, 'reason': str}.batch_update_news_sentiment(source, limit): Batch process unanalyzed news in the database (FinBERT only).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.
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:
update_single_news_sentiment(id, score, reason): Use this to save your manual analysis to the database.torch (for FinBERT)transformers (for FinBERT)sqlite3 (built-in)Ensure DatabaseManager is initialized correctly.