Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add qodex-ai/ai-agent-skills --skill "financial-analysis-agent"
Install specific skill from multi-skill repository
# Description
Create agents for financial analysis, investment research, and portfolio management. Covers financial data processing, risk analysis, and recommendation generation. Use when building investment analysis tools, robo-advisors, portfolio trackers, or financial intelligence systems.
# SKILL.md
name: financial-analysis-agent
description: Create agents for financial analysis, investment research, and portfolio management. Covers financial data processing, risk analysis, and recommendation generation. Use when building investment analysis tools, robo-advisors, portfolio trackers, or financial intelligence systems.
Financial Analysis Agent
Build intelligent financial analysis agents that evaluate investments, assess risks, and generate data-driven recommendations.
Financial Data Integration
See examples/financial_data_collector.py for the FinancialDataCollector class that:
- Integrates with yfinance for stock data
- Retrieves financial statements (income, balance sheet, cash flow)
- Fetches key metrics (market cap, PE ratio, dividend yield, etc.)
Financial Analysis Techniques
Technical Analysis
See examples/technical_analyzer.py for TechnicalAnalyzer:
- Moving averages calculation
- Relative Strength Index (RSI)
- Support and resistance level identification
Fundamental Analysis
See examples/fundamental_analyzer.py for FundamentalAnalyzer:
- Profitability ratios (gross margin, operating margin, net margin, ROA, ROE)
- Valuation ratios (PE, PB, PEG, price-to-sales)
- Liquidity ratios (current ratio, quick ratio, debt-to-equity)
Risk Assessment
See examples/risk_analyzer.py for RiskAnalyzer:
- Volatility calculation
- Value at Risk (VaR) assessment
- Sharpe Ratio calculation
- Company risk assessment
Investment Recommendations
See examples/investment_recommender.py for InvestmentRecommender:
- Generates recommendations (Strong Buy, Buy, Hold, Sell, Strong Sell)
- Calculates investment scores based on technical and fundamental signals
- Provides confidence levels and risk assessments
Portfolio Management
See examples/portfolio_manager.py for PortfolioManager:
- Calculate portfolio total value
- Rebalance portfolio based on target allocations
- Assess portfolio risk and volatility
Market Intelligence
Build market intelligence capabilities by:
- Analyzing overall market trends and sector performance
- Calculating market volatility indices
- Fetching economic indicators
- Identifying undervalued, growth, and dividend opportunities
Best Practices
Analysis Quality
- β Use multiple data sources
- β Cross-validate findings
- β Document assumptions
- β Consider time horizons
- β Account for fees and taxes
Risk Management
- β Assess downside risk
- β Implement stop losses
- β Diversify appropriately
- β Position size accordingly
- β Review regularly
Ethical Considerations
- β Disclose conflicts of interest
- β Avoid market manipulation
- β Base recommendations on analysis
- β Update recommendations regularly
- β Acknowledge limitations
Tools & Data Sources
Data APIs
- yfinance
- Alpha Vantage
- IEX Cloud
- Polygon.io
- Yahoo Finance
Analysis Libraries
- pandas
- NumPy
- scikit-learn
- TA-Lib
- statsmodels
Getting Started
- Collect financial data
- Perform technical analysis
- Analyze fundamentals
- Assess risks
- Generate recommendations
- Monitor positions
- Rebalance periodically
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.