Screens US stocks using William O'Neil's CANSLIM methodology, analyzing 7 components (earnings, growth, new highs, supply/demand, leadership, institutional sponsorship, market direction) with composite scoring and Finviz fallback.
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 screens US stocks using William O'Neil's proven CANSLIM methodology, a systematic approach for identifying growth stocks with strong fundamentals and price momentum. CANSLIM analyzes 7 key components: Current Earnings, Annual Growth, Newness/New Highs, Supply/Demand, Leadership/RS Rank, Institutional Sponsorship, and Market Direction.
Phase 3 implements all 7 of 7 components (C, A, N, S, L, I, M), representing 100% of the full methodology.
Two-Stage Approach:
Key Features:
Read references/scoring_overview.md for the Phase 3.1 component weights, the weighted RS formula and the RS fallback hierarchy.
Future Phases:
Explicit Triggers:
Implicit Triggers:
When NOT to Use:
API Requirements:
site.financialmodelingprep.com/pricing-plans)
export FMP_API_KEY=your_key_herePython Dependencies:
requests (FMP API calls)beautifulsoup4 (Finviz web scraping)lxml (HTML parsing)Installation:
pip install requests beautifulsoup4 lxml
Output Directory: reports/ (default) or custom via --output-dir
Generated Files:
canslim_screener_YYYY-MM-DD_HHMMSS.json - Structured data for programmatic usecanslim_screener_YYYY-MM-DD_HHMMSS.md - Human-readable reportReport Contents:
Rating Bands:
The L calculator requires positive, finite, non-boolean closes at the exact
full-window and available 3m/6m/12m return endpoints. Missing or invalid consumed
stock or supplied benchmark closes produce data_available: false, an
Unavailable RS rating, and dated data_gaps. The zero score is an internal
placeholder, not measured weak performance. These candidates are excluded from
ranking; JSON metadata and Markdown warn when screening is incomplete. If no
rankable candidates remain and any candidate was excluded for RS price gaps,
the CLI exits with code 1 before writing reports. Unused interior closes do not
change returns, and bars are not dropped or compressed. Absent or insufficient
benchmark history retains the existing absolute-performance fallback and 20%
penalty. --disable-rs retains its explicit neutral L=50 behavior.
Check if user has FMP API key configured:
# Check environment variable
echo $FMP_API_KEY
# If not set, prompt user to provide it
Requirements:
requests (FMP API calls)beautifulsoup4 (Finviz web scraping)lxml (HTML parsing)Installation:
pip install requests beautifulsoup4 lxml
If API key is missing, guide user to:
export FMP_API_KEY=your_key_hereOption A: Default Universe (Recommended) Use top 40 S&P 500 stocks by market cap (predefined in script):
python3 skills/canslim-screener/scripts/screen_canslim.py
Option B: Custom Universe User provides specific symbols or sector:
python3 skills/canslim-screener/scripts/screen_canslim.py \
--universe AAPL MSFT GOOGL AMZN NVDA META TSLA
Option C: Sector-Specific User can provide sector-focused list (Technology, Healthcare, etc.)
API Budget Considerations (Phase 3):
--max-candidates 35 for free tier (35 × 7 + 3 = 248 calls), or use a paid FMP plan (see site.financialmodelingprep.com/pricing-plans in a browser) for full 40-stock screeningRun the main screening script with appropriate parameters:
cd skills/canslim-screener/scripts
# Basic run (40 stocks, top 20 in report)
python3 screen_canslim.py --api-key $FMP_API_KEY
# Custom parameters
python3 screen_canslim.py \
--api-key $FMP_API_KEY \
--max-candidates 40 \
--top 20 \
--output-dir ../../../
# Custom RS benchmark (Phase 3.1)
python3 screen_canslim.py --rs-benchmark SPY
# Disable L component (saves per-stock 365-day fetch; L fixed at neutral 50)
python3 screen_canslim.py --disable-rs
Script Workflow (Phase 3 - Full CANSLIM):
Expected Execution Time (Phase 3):
Finviz Fallback Behavior:
sharesOutstanding unavailable✅ Using Finviz institutional ownership for NVDA: 68.3%The script generates two output files:
canslim_screener_YYYY-MM-DD_HHMMSS.json - Structured datacanslim_screener_YYYY-MM-DD_HHMMSS.md - Human-readable reportRead the Markdown report to identify top candidates:
# Find the latest report
ls -lt canslim_screener_*.md | head -1
# Read the report
cat canslim_screener_YYYY-MM-DD_HHMMSS.md
Report Structure (Phase 3 - Full CANSLIM):
Component Details in Report:
A new Summary Table appears above the candidate list in Phase 3.1 reports, showing rank, symbol, composite score, rating, RS rating, and RS percentile for quick scanning.
Review the top-ranked stocks and cross-reference with knowledge bases:
Reference Documents to Consult:
references/interpretation_guide.md - Understand rating bands and portfolio sizingreferences/canslim_methodology.md - Deep dive into component meanings (now includes S and I)references/scoring_system.md - Understand scoring formulas (Phase 3 weights)Analysis Framework:
For Exceptional+ stocks (90-100 points):
For Exceptional stocks (80-89 points):
For Strong stocks (70-79 points):
For Above Average stocks (60-69 points):
Bear Market Override:
Create a concise, actionable summary for the user:
Report Format: Read references/report_template.md for the user-facing report template.
scripts/)Read references/script_inventory.md for what each script, calculator and supporting module does.
references/)Knowledge Bases:
references/canslim_methodology.md (27KB) - Complete CANSLIM explanation
references/scoring_system.md (21KB) - Technical scoring specification (Phase 3)
references/fmp_api_endpoints.md (18KB) - API integration guide (Phase 3)
references/interpretation_guide.md (18KB) - User guidance
How to Use References:
references/canslim_methodology.md first to understand O'Neil's system (now includes S and I)references/interpretation_guide.md when analyzing resultsreferences/scoring_system.md if scores seem unexpectedreferences/fmp_api_endpoints.md for API troubleshooting or Finviz fallback issuesRead references/troubleshooting.md when a run fails or returns unexpected results. It covers rate limits, missing libraries, slow or failing Finviz fallback, no stocks meeting thresholds and data quality warnings.
Read references/implementation_notes.md for Phase 3 implementation status, Finviz integration benefits, planned Phase 4 and data source attribution.
This screener is for educational and informational purposes only.
Version: Phase 3.1 (multi-period RS)
Last Updated: 2026-05-03
API Requirements: FMP API (free tier: up to 35 stocks; a paid plan recommended for 40 stocks) + BeautifulSoup/requests/lxml for Finviz
Execution Time: ~2 minutes for 40 stocks
Output Formats: JSON + Markdown (now includes Summary Table and schema_version: "3.1")
Components Implemented: C, A, N, S, L, I, M (7 of 7, 100% coverage)
Phase 3.1 additions: multi-period RS (3m/6m/12m), --rs-benchmark, --disable-rs,
new RS fields (rs_rating, rs_rank_percentile, rs_3m_return, rs_6m_return,
rs_12m_return, rs_benchmark, rs_benchmark_relative_return, rs_component_score,
benchmark_52w_performance).
references/canslim_methodology.md (opens in a new tab)references/fmp_api_endpoints.md (opens in a new tab)references/implementation_notes.md (opens in a new tab)references/interpretation_guide.md (opens in a new tab)references/report_template.md (opens in a new tab)references/scoring_overview.md (opens in a new tab)references/scoring_system.md (opens in a new tab)references/script_inventory.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/_price_bars.py (opens in a new tab)scripts/calculators/earnings_calculator.py (opens in a new tab)scripts/calculators/growth_calculator.py (opens in a new tab)scripts/calculators/institutional_calculator.py (opens in a new tab)scripts/calculators/leadership_calculator.py (opens in a new tab)scripts/calculators/market_calculator.py (opens in a new tab)scripts/calculators/new_highs_calculator.py (opens in a new tab)scripts/calculators/supply_demand_calculator.py (opens in a new tab)scripts/check_institutional_endpoint.py (opens in a new tab)scripts/finviz_stock_client.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:canslim-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