Awesome-finance-skills alphaear-predictor
Market prediction skill using Kronos. Use when user needs finance market time-series forecasting or news-aware finance market adjustments.
install
source · Clone the upstream repo
git clone https://github.com/RKiding/Awesome-finance-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/RKiding/Awesome-finance-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/alphaear-predictor" ~/.claude/skills/rkiding-awesome-finance-skills-alphaear-predictor && rm -rf "$T"
manifest:
skills/alphaear-predictor/SKILL.mdsource content
AlphaEar Predictor Skill
Overview
This skill utilizes the Kronos model (via
KronosPredictorUtility) to perform time-series forecasting and adjust predictions based on news sentiment.
Capabilities
1. Forecast Market Trends
1. Forecast Market Trends
Workflow:
- Generate Base Forecast: Use
(viascripts/kronos_predictor.py
) to generate the technical/quantitative forecast.KronosPredictorUtility - Adjust Forecast (Agentic): Use the Forecast Adjustment Prompt in
to subjectively adjust the numbers based on latest news/logic.references/PROMPTS.md
Key Tools:
: ReturnsKronosPredictorUtility.get_base_forecast(df, lookback, pred_len, news_text)
.List[KLinePoint]
Example Usage (Python):
from scripts.utils.kronos_predictor import KronosPredictorUtility from scripts.utils.database_manager import DatabaseManager db = DatabaseManager() predictor = KronosPredictorUtility() # Forecast forecast = predictor.predict("600519", horizon="7d") print(forecast)
Configuration
This skill requires the Kronos model and an embedding model.
- Kronos Model:
- Ensure
directory exists in the project root.exports/models - Place trained news projector weights (e.g.,
) inkronos_news_v1.pt
.exports/models/ - Or depend on the base model (automatically downloaded).
- Ensure
[!CAUTION] Model Security: This skill loads model weights from
. We useexports/modelsand only scan for theweights_only=Truepattern. Ensure you only place trusted checkpoints in this directory.kronos_news_*.pt
- Environment Variables:
: Path or name of the embedding model (default:EMBEDDING_MODEL
).sentence-transformers/all-MiniLM-L6-v2
: Optional path to override model loading.KRONOS_MODEL_PATH
Dependencies
torchtransformerssentence-transformerspandasnumpyscikit-learn