Screens US stocks for high-quality dividend opportunities combining value characteristics (P/E under 20, P/B under 2), yields of 3%+, and consistent growth. Supports two-stage screening via FINVIZ Elite API pre-filtering followed by FMP API detailed analysis.
Ships in tradermonty-claude-trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill identifies high-quality dividend stocks that combine value characteristics, attractive income generation, and consistent growth using a two-stage screening approach:
Screen US equities based on quantitative criteria including valuation ratios, dividend metrics, financial health, and profitability. Generate comprehensive reports ranking stocks by composite quality scores with detailed fundamental analysis.
Efficiency Advantage: Using FINVIZ pre-screening can reduce FMP API calls by 90% and keeps API usage low. The stock-screener endpoint used by FMP-only mode is not on the free plan (2026-11); use --use-finviz or a plan that includes it (see docs/en/getting-started.md#fmp-plans).
Invoke this skill when the user requests:
FMP_API_KEY or pass --fmp-api-key. The stock-screener endpoint is not on the free plan (2026-11); use --use-finviz or an FMP plan that includes it (see docs/en/getting-started.md#fmp-plans).FINVIZ_API_KEY or pass --finviz-api-key and use --use-finviz for two-stage screening. Without it the screener runs FMP-only and uses more API calls.requests>=2.31.0 (see requirements.txt).RSI screening needs at least 20 returned closing-price observations. Every close
in that history must be numeric, finite and positive. A candidate with missing
or invalid closes is skipped with RSI unavailable on stderr; valid candidates
continue. The full chronology and raw-close price basis are preserved. This
exclusion means the candidate could not be evaluated, not that it passed or
failed the oversold test.
For Two-Stage Screening (Recommended):
Check if both API keys are available:
import os
fmp_api_key = os.environ.get('FMP_API_KEY')
finviz_api_key = os.environ.get('FINVIZ_API_KEY')
If not available, ask user to provide API keys or set environment variables:
export FMP_API_KEY=your_fmp_key_here
export FINVIZ_API_KEY=your_finviz_key_here
For FMP-Only Screening:
Check if FMP API key is available:
import os
api_key = os.environ.get('FMP_API_KEY')
If not available, ask user to provide API key or set environment variable:
export FMP_API_KEY=your_key_here
FINVIZ Elite API Key:
Provide instructions from references/fmp_api_guide.md if needed.
Run the screening script with appropriate parameters:
By default, results are saved to reports/dividend_screener_results.json under
the current working directory. Use --output to choose a different path.
Uses FINVIZ for pre-screening, then FMP for detailed analysis:
Default execution (Top 20 stocks):
python3 scripts/screen_dividend_stocks.py --use-finviz
With explicit API keys:
python3 scripts/screen_dividend_stocks.py --use-finviz \
--fmp-api-key $FMP_API_KEY \
--finviz-api-key $FINVIZ_API_KEY
Custom top N:
python3 scripts/screen_dividend_stocks.py --use-finviz --top 50
Custom output location:
python3 scripts/screen_dividend_stocks.py --use-finviz --output /path/to/results.json
Script behavior (Two-Stage):
Expected runtime (Two-Stage): 2-3 minutes for 30-50 FINVIZ candidates (much faster than FMP-only)
Uses only FMP Stock Screener API (higher API usage):
Default execution:
python3 scripts/screen_dividend_stocks.py
With explicit API key:
python3 scripts/screen_dividend_stocks.py --fmp-api-key $FMP_API_KEY
Script behavior (FMP-Only):
Expected runtime (FMP-Only): 5-15 minutes for 100-300 candidates (rate limiting applies)
API Usage Comparison:
Read the generated JSON file:
import json
with open('reports/dividend_screener_results.json', 'r') as f:
data = json.load(f)
metadata = data['metadata']
stocks = data['stocks']
Key data points per stock:
symbol, company_name, sector, market_cap, pricedividend_yield, pe_ratio, pb_ratiodividend_cagr_3y, revenue_cagr_3y, eps_cagr_3ypayout_ratio, fcf_payout_ratio, fcf_amount, fcf_status, fcf_coverage_status, sustainability_basis, dividend_sustainable, sustainability_bonus, sustainability_notedebt_to_equity, current_ratio, financially_healthyroe, profit_margin, quality_scorecomposite_scoreCreate structured markdown report for user with following sections:
Read references/report_template.md for the full markdown report template.
In the human report, keep observed FCF and dividend coverage separate. Negative FCF means an observed shortfall; zero FCF means no cash coverage; MISSING_DATA means the source fields were unavailable. None proves a future dividend cut. AT_LIMIT means FCF equals dividends with no buffer and earns no bonus. For confirmed REITs, use FFO as the decision basis and show FCF status as context even when it is negative; do not apply FFO treatment to a company solely because its sector is Real Estate. Copy sustainability_note into the explanation rather than replacing an unknown status with a sustainability claim.
Reference screening methodology when explaining results:
Key concepts to explain:
Load references/screening_methodology.md to provide detailed explanations of:
Read references/follow_up_questions.md for answers to common follow-up questions.
Read references/resource_descriptions.md for the description of the screening script and of each reference file.
Read references/advanced_usage.md to customize criteria, screen a sector, exclude REITs and financials or export CSV.
The script prints this error to stderr and exits with status 2. The message includes the full path of this skill's requirements.txt, so the hint works from any directory.
Solution: Install the skill's dependencies
pip install -r skills/value-dividend-screener/requirements.txt
Solution: Set environment variable or provide via command-line
export FMP_API_KEY=your_key_here
# OR
python3 scripts/screen_dividend_stocks.py --fmp-api-key your_key_here
Solution: Set environment variable or provide via command-line
export FINVIZ_API_KEY=your_key_here
# OR
python3 scripts/screen_dividend_stocks.py --use-finviz --finviz-api-key your_key_here
Note: FINVIZ Elite subscription required (~$40/month or ~$330/year)
Possible causes:
Solution:
Possible causes:
Solution:
python3 scripts/screen_dividend_stocks.py
Solution: Script automatically retries after 60 seconds. If persistent:
Solution: Criteria may be too restrictive
Expected behavior: Script includes 0.3s delay between API calls for rate limiting
Read references/performance_and_cost.md for API call comparison and cost analysis.
FMP data access uses the bundled generated scripts/fmp_client.py. Existing CLI
key/environment precedence, financial calculations and successful output shapes
are preserved. The migrated paths use stable endpoints only; a denied or failed
stable request does not fall back to retired v3 URLs. The shared client masks raw
and URL-encoded key echoes, retries malformed JSON once, and retries a 429 once
with a 60-second wait before stopping on a repeated rate limit. FINVIZ, where
used, remains a separate client.
Exclude explicitly special, supplemental, one-time and extra payments identified by label/frequency; do not infer specials from a large ordinary raise. Ignore future ex-dates before consuming amounts. Missing, boolean, nonnumeric, non-finite or non-positive eligible regular amounts make the analysis unavailable rather than silently becoming zero. Provider completeness, split/FX adjustment and unlabelled special detection are not certified here.
For growth and the yield numerator, group the latest N regular payments at a stable supported cadence (12 monthly, 4 quarterly, 2 semiannual or 1 annual) into equal payment-year buckets. Require enough full buckets for the requested CAGR. Infer cadence only from ex-date intervals, within distinct +/-20% median-gap bands; per-row provider frequency labels never veto an interval-supported cadence because they are inconsistent (a normal quarterly payment can be tagged Irregular). Require individual gaps within 0.5..1.5 nominal intervals and matched payments N places apart within 365.25 +/-31 days. For semiannual payers only, allow a matched-year spacing outside that band when the selected window covers exactly the requested consecutive calendar years with exactly two regular payments per year across the supplied history, and every selected row explicitly identifies a semiannual frequency. Keep the individual-gap and freshness checks; absent or conflicting frequency evidence does not qualify for this exception. Reject unsupported cadences, duplicate regular dates, missing-payment gaps and stale last payments (one interval plus min(31 days, half an interval)). If that check fails and recent rows contain Irregular-labelled payments, retry once without them (treated as supplementals) and report dividend_supplementals_excluded; if the retry also fails the analysis stays unavailable. This retains current ordinary raises without fixed 365-day boundary artifacts. These supported bounds are not proof of data completeness. The separate stability score uses regular cash in available completed calendar years, with streaks broken at year gaps.
Read annual_dividend_basis in result rows and JSON metadata (regular_payment_year). The value CLI also prints the basis; this is a latest regular-payment year, not a literal fixed-day TTM or a forward dividend.
references/advanced_usage.md (opens in a new tab)references/fmp_api_guide.md (opens in a new tab)references/follow_up_questions.md (opens in a new tab)references/performance_and_cost.md (opens in a new tab)references/report_template.md (opens in a new tab)references/resource_descriptions.md (opens in a new tab)references/screening_methodology.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/_price_bars.py (opens in a new tab)scripts/dividend_history.py (opens in a new tab)scripts/fmp_client.py (opens in a new tab)scripts/screen_dividend_stocks.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_clients_and_pipeline.py (opens in a new tab)scripts/tests/test_credential_diagnostics.py (opens in a new tab)scripts/tests/test_dividend_sustainability.py (opens in a new tab)scripts/tests/test_finviz_export_contract.py (opens in a new tab)scripts/tests/test_fmp_stable.py (opens in a new tab)scripts/tests/test_issue849_cadence_labels.py (opens in a new tab)scripts/tests/test_issue849_calendar_shift.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/tradermonty-claude-trading-skills:value-dividend-screenerfrom tradermonty-claude-trading-skills
tradermonty-claude-trading-skills@cascade-business-ops is listed by joshuarweaver/cascade-business-ops — review the source before installing
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin tradermonty-claude-trading-skills74 skills in this plugin
/backtest-expertExpert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. Also works WITHOUT chart images by fetching CSV data directly from public sources. All analysis and output are conducted in English./breakout-trade-plannerGenerate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates (stop-limit bracket for pre-placement, limit bracket for post-confirmation). Use when user has VCP screener results and wants actionable trade plans with entry/stop/target levels and position sizing.Other plugins' skills for the same job