quantwise 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/.claude/skills/README.md +80 -0
  2. package/.claude/skills/backtest-expert/SKILL.md +206 -0
  3. package/.claude/skills/backtest-expert/references/failed_tests.md +236 -0
  4. package/.claude/skills/backtest-expert/references/methodology.md +227 -0
  5. package/.claude/skills/breadth-chart-analyst/SKILL.md +583 -0
  6. package/.claude/skills/breadth-chart-analyst/assets/SP500_Breadth_Index_200MA_8MA.jpeg +0 -0
  7. package/.claude/skills/breadth-chart-analyst/assets/US_Stock_Market_Uptrend_Ratio.jpeg +0 -0
  8. package/.claude/skills/breadth-chart-analyst/assets/breadth_analysis_template.md +558 -0
  9. package/.claude/skills/breadth-chart-analyst/references/breadth_chart_methodology.md +590 -0
  10. package/.claude/skills/canslim-screener/SKILL.md +599 -0
  11. package/.claude/skills/canslim-screener/references/canslim_methodology.md +606 -0
  12. package/.claude/skills/canslim-screener/references/fmp_api_endpoints.md +707 -0
  13. package/.claude/skills/canslim-screener/references/interpretation_guide.md +516 -0
  14. package/.claude/skills/canslim-screener/references/scoring_system.md +597 -0
  15. package/.claude/skills/canslim-screener/scripts/calculators/earnings_calculator.py +343 -0
  16. package/.claude/skills/canslim-screener/scripts/calculators/growth_calculator.py +334 -0
  17. package/.claude/skills/canslim-screener/scripts/calculators/institutional_calculator.py +347 -0
  18. package/.claude/skills/canslim-screener/scripts/calculators/leadership_calculator.py +380 -0
  19. package/.claude/skills/canslim-screener/scripts/calculators/market_calculator.py +244 -0
  20. package/.claude/skills/canslim-screener/scripts/calculators/new_highs_calculator.py +194 -0
  21. package/.claude/skills/canslim-screener/scripts/calculators/supply_demand_calculator.py +221 -0
  22. package/.claude/skills/canslim-screener/scripts/finviz_stock_client.py +227 -0
  23. package/.claude/skills/canslim-screener/scripts/fmp_client.py +393 -0
  24. package/.claude/skills/canslim-screener/scripts/report_generator.py +405 -0
  25. package/.claude/skills/canslim-screener/scripts/scorer.py +625 -0
  26. package/.claude/skills/canslim-screener/scripts/screen_canslim.py +361 -0
  27. package/.claude/skills/canslim-screener/scripts/test_institutional_endpoint.py +109 -0
  28. package/.claude/skills/chart/SKILL.md +20 -0
  29. package/.claude/skills/dividend-growth-pullback-screener/SKILL.md +322 -0
  30. package/.claude/skills/dividend-growth-pullback-screener/references/dividend_growth_compounding.md +400 -0
  31. package/.claude/skills/dividend-growth-pullback-screener/references/fmp_api_guide.md +642 -0
  32. package/.claude/skills/dividend-growth-pullback-screener/references/rsi_oversold_strategy.md +333 -0
  33. package/.claude/skills/dividend-growth-pullback-screener/scripts/screen_dividend_growth_rsi.py +1155 -0
  34. package/.claude/skills/earnings-calendar/SKILL.md +721 -0
  35. package/.claude/skills/earnings-calendar/assets/earnings_report_template.md +102 -0
  36. package/.claude/skills/earnings-calendar/references/fmp_api_guide.md +590 -0
  37. package/.claude/skills/earnings-calendar/scripts/fetch_earnings_fmp.py +443 -0
  38. package/.claude/skills/earnings-calendar/scripts/generate_report.py +366 -0
  39. package/.claude/skills/economic-calendar-fetcher/SKILL.md +365 -0
  40. package/.claude/skills/economic-calendar-fetcher/references/fmp_api_documentation.md +345 -0
  41. package/.claude/skills/economic-calendar-fetcher/scripts/get_economic_calendar.py +267 -0
  42. package/.claude/skills/ftd-detector/SKILL.md +147 -0
  43. package/.claude/skills/ftd-detector/references/ftd_methodology.md +188 -0
  44. package/.claude/skills/ftd-detector/references/post_ftd_guide.md +185 -0
  45. package/.claude/skills/ftd-detector/scripts/fmp_client.py +158 -0
  46. package/.claude/skills/ftd-detector/scripts/ftd_detector.py +280 -0
  47. package/.claude/skills/ftd-detector/scripts/post_ftd_monitor.py +404 -0
  48. package/.claude/skills/ftd-detector/scripts/rally_tracker.py +508 -0
  49. package/.claude/skills/ftd-detector/scripts/report_generator.py +341 -0
  50. package/.claude/skills/ftd-detector/scripts/tests/conftest.py +9 -0
  51. package/.claude/skills/ftd-detector/scripts/tests/helpers.py +107 -0
  52. package/.claude/skills/ftd-detector/scripts/tests/test_post_ftd_monitor.py +311 -0
  53. package/.claude/skills/ftd-detector/scripts/tests/test_rally_tracker.py +302 -0
  54. package/.claude/skills/institutional-flow-tracker/README.md +362 -0
  55. package/.claude/skills/institutional-flow-tracker/SKILL.md +357 -0
  56. package/.claude/skills/institutional-flow-tracker/references/13f_filings_guide.md +383 -0
  57. package/.claude/skills/institutional-flow-tracker/references/institutional_investor_types.md +580 -0
  58. package/.claude/skills/institutional-flow-tracker/references/interpretation_framework.md +573 -0
  59. package/.claude/skills/institutional-flow-tracker/scripts/analyze_single_stock.py +457 -0
  60. package/.claude/skills/institutional-flow-tracker/scripts/track_institution_portfolio.py +108 -0
  61. package/.claude/skills/institutional-flow-tracker/scripts/track_institutional_flow.py +450 -0
  62. package/.claude/skills/macro-regime-detector/SKILL.md +86 -0
  63. package/.claude/skills/macro-regime-detector/references/historical_regimes.md +124 -0
  64. package/.claude/skills/macro-regime-detector/references/indicator_interpretation_guide.md +144 -0
  65. package/.claude/skills/macro-regime-detector/references/regime_detection_methodology.md +138 -0
  66. package/.claude/skills/macro-regime-detector/scripts/calculators/__init__.py +1 -0
  67. package/.claude/skills/macro-regime-detector/scripts/calculators/concentration_calculator.py +165 -0
  68. package/.claude/skills/macro-regime-detector/scripts/calculators/credit_conditions_calculator.py +124 -0
  69. package/.claude/skills/macro-regime-detector/scripts/calculators/equity_bond_calculator.py +198 -0
  70. package/.claude/skills/macro-regime-detector/scripts/calculators/sector_rotation_calculator.py +123 -0
  71. package/.claude/skills/macro-regime-detector/scripts/calculators/size_factor_calculator.py +131 -0
  72. package/.claude/skills/macro-regime-detector/scripts/calculators/utils.py +347 -0
  73. package/.claude/skills/macro-regime-detector/scripts/calculators/yield_curve_calculator.py +279 -0
  74. package/.claude/skills/macro-regime-detector/scripts/fmp_client.py +134 -0
  75. package/.claude/skills/macro-regime-detector/scripts/macro_regime_detector.py +278 -0
  76. package/.claude/skills/macro-regime-detector/scripts/report_generator.py +327 -0
  77. package/.claude/skills/macro-regime-detector/scripts/scorer.py +574 -0
  78. package/.claude/skills/macro-regime-detector/scripts/tests/conftest.py +9 -0
  79. package/.claude/skills/macro-regime-detector/scripts/tests/test_concentration.py +78 -0
  80. package/.claude/skills/macro-regime-detector/scripts/tests/test_credit_conditions.py +59 -0
  81. package/.claude/skills/macro-regime-detector/scripts/tests/test_equity_bond.py +74 -0
  82. package/.claude/skills/macro-regime-detector/scripts/tests/test_helpers.py +90 -0
  83. package/.claude/skills/macro-regime-detector/scripts/tests/test_scorer.py +439 -0
  84. package/.claude/skills/macro-regime-detector/scripts/tests/test_sector_rotation.py +78 -0
  85. package/.claude/skills/macro-regime-detector/scripts/tests/test_size_factor.py +59 -0
  86. package/.claude/skills/macro-regime-detector/scripts/tests/test_utils.py +126 -0
  87. package/.claude/skills/macro-regime-detector/scripts/tests/test_yield_curve.py +64 -0
  88. package/.claude/skills/market-breadth-analyzer/SKILL.md +121 -0
  89. package/.claude/skills/market-breadth-analyzer/references/breadth_analysis_methodology.md +168 -0
  90. package/.claude/skills/market-breadth-analyzer/scripts/calculators/__init__.py +1 -0
  91. package/.claude/skills/market-breadth-analyzer/scripts/calculators/bearish_signal_calculator.py +150 -0
  92. package/.claude/skills/market-breadth-analyzer/scripts/calculators/cycle_calculator.py +168 -0
  93. package/.claude/skills/market-breadth-analyzer/scripts/calculators/divergence_calculator.py +119 -0
  94. package/.claude/skills/market-breadth-analyzer/scripts/calculators/historical_context_calculator.py +120 -0
  95. package/.claude/skills/market-breadth-analyzer/scripts/calculators/ma_crossover_calculator.py +115 -0
  96. package/.claude/skills/market-breadth-analyzer/scripts/calculators/trend_level_calculator.py +103 -0
  97. package/.claude/skills/market-breadth-analyzer/scripts/csv_client.py +225 -0
  98. package/.claude/skills/market-breadth-analyzer/scripts/market_breadth_analyzer.py +307 -0
  99. package/.claude/skills/market-breadth-analyzer/scripts/report_generator.py +330 -0
  100. package/.claude/skills/market-breadth-analyzer/scripts/scorer.py +271 -0
  101. package/.claude/skills/market-environment-analysis/SKILL.md +139 -0
  102. package/.claude/skills/market-environment-analysis/references/analysis_patterns.md +124 -0
  103. package/.claude/skills/market-environment-analysis/references/indicators.md +99 -0
  104. package/.claude/skills/market-environment-analysis/scripts/market_utils.py +127 -0
  105. package/.claude/skills/market-news-analyst/SKILL.md +714 -0
  106. package/.claude/skills/market-news-analyst/references/corporate_news_impact.md +446 -0
  107. package/.claude/skills/market-news-analyst/references/geopolitical_commodity_correlations.md +499 -0
  108. package/.claude/skills/market-news-analyst/references/market_event_patterns.md +393 -0
  109. package/.claude/skills/market-news-analyst/references/trusted_news_sources.md +510 -0
  110. package/.claude/skills/market-top-detector/SKILL.md +159 -0
  111. package/.claude/skills/market-top-detector/references/distribution_day_guide.md +100 -0
  112. package/.claude/skills/market-top-detector/references/historical_tops.md +142 -0
  113. package/.claude/skills/market-top-detector/references/market_top_methodology.md +167 -0
  114. package/.claude/skills/market-top-detector/scripts/calculators/__init__.py +17 -0
  115. package/.claude/skills/market-top-detector/scripts/calculators/breadth_calculator.py +116 -0
  116. package/.claude/skills/market-top-detector/scripts/calculators/defensive_rotation_calculator.py +127 -0
  117. package/.claude/skills/market-top-detector/scripts/calculators/distribution_day_calculator.py +161 -0
  118. package/.claude/skills/market-top-detector/scripts/calculators/index_technical_calculator.py +254 -0
  119. package/.claude/skills/market-top-detector/scripts/calculators/leading_stock_calculator.py +198 -0
  120. package/.claude/skills/market-top-detector/scripts/calculators/sentiment_calculator.py +213 -0
  121. package/.claude/skills/market-top-detector/scripts/fmp_client.py +158 -0
  122. package/.claude/skills/market-top-detector/scripts/market_top_detector.py +349 -0
  123. package/.claude/skills/market-top-detector/scripts/report_generator.py +314 -0
  124. package/.claude/skills/market-top-detector/scripts/scorer.py +473 -0
  125. package/.claude/skills/market-top-detector/scripts/tests/conftest.py +9 -0
  126. package/.claude/skills/market-top-detector/scripts/tests/helpers.py +49 -0
  127. package/.claude/skills/market-top-detector/scripts/tests/test_breadth.py +62 -0
  128. package/.claude/skills/market-top-detector/scripts/tests/test_defensive_rotation.py +56 -0
  129. package/.claude/skills/market-top-detector/scripts/tests/test_distribution_day.py +92 -0
  130. package/.claude/skills/market-top-detector/scripts/tests/test_index_technical.py +73 -0
  131. package/.claude/skills/market-top-detector/scripts/tests/test_leading_stock.py +57 -0
  132. package/.claude/skills/market-top-detector/scripts/tests/test_scorer.py +180 -0
  133. package/.claude/skills/market-top-detector/scripts/tests/test_sentiment.py +64 -0
  134. package/.claude/skills/options-strategy-advisor/README.md +469 -0
  135. package/.claude/skills/options-strategy-advisor/SKILL.md +959 -0
  136. package/.claude/skills/options-strategy-advisor/scripts/black_scholes.py +495 -0
  137. package/.claude/skills/pair-trade-screener/README.md +389 -0
  138. package/.claude/skills/pair-trade-screener/SKILL.md +622 -0
  139. package/.claude/skills/pair-trade-screener/references/cointegration_guide.md +745 -0
  140. package/.claude/skills/pair-trade-screener/references/methodology.md +853 -0
  141. package/.claude/skills/pair-trade-screener/scripts/analyze_spread.py +394 -0
  142. package/.claude/skills/pair-trade-screener/scripts/find_pairs.py +535 -0
  143. package/.claude/skills/portfolio-manager/README.md +394 -0
  144. package/.claude/skills/portfolio-manager/SKILL.md +750 -0
  145. package/.claude/skills/portfolio-manager/references/alpaca-mcp-setup.md +367 -0
  146. package/.claude/skills/portfolio-manager/references/asset-allocation.md +502 -0
  147. package/.claude/skills/portfolio-manager/references/diversification-principles.md +553 -0
  148. package/.claude/skills/portfolio-manager/references/portfolio-risk-metrics.md +603 -0
  149. package/.claude/skills/portfolio-manager/references/position-evaluation.md +477 -0
  150. package/.claude/skills/portfolio-manager/references/rebalancing-strategies.md +715 -0
  151. package/.claude/skills/portfolio-manager/references/risk-profile-questionnaire.md +608 -0
  152. package/.claude/skills/portfolio-manager/references/target-allocations.md +558 -0
  153. package/.claude/skills/portfolio-manager/scripts/test_alpaca_connection.py +286 -0
  154. package/.claude/skills/scenario-analyzer/SKILL.md +317 -0
  155. package/.claude/skills/scenario-analyzer/references/headline_event_patterns.md +264 -0
  156. package/.claude/skills/scenario-analyzer/references/scenario_playbooks.md +320 -0
  157. package/.claude/skills/scenario-analyzer/references/sector_sensitivity_matrix.md +217 -0
  158. package/.claude/skills/sector-analyst/SKILL.md +206 -0
  159. package/.claude/skills/sector-analyst/assets/industory_performance_1.jpeg +0 -0
  160. package/.claude/skills/sector-analyst/assets/industory_performance_2.jpeg +0 -0
  161. package/.claude/skills/sector-analyst/assets/sector_performance.jpeg +0 -0
  162. package/.claude/skills/sector-analyst/references/sector_rotation.md +170 -0
  163. package/.claude/skills/stanley-druckenmiller-investment/SKILL.md +84 -0
  164. package/.claude/skills/stanley-druckenmiller-investment/references/case-studies.md +148 -0
  165. package/.claude/skills/stanley-druckenmiller-investment/references/investment-philosophy.md +80 -0
  166. package/.claude/skills/stanley-druckenmiller-investment/references/market-analysis-guide.md +146 -0
  167. package/.claude/skills/stock/NOTION_SETUP.md +33 -0
  168. package/.claude/skills/stock/SKILL.md +38 -0
  169. package/.claude/skills/technical-analyst/SKILL.md +238 -0
  170. package/.claude/skills/technical-analyst/assets/analysis_template.md +183 -0
  171. package/.claude/skills/technical-analyst/references/technical_analysis_framework.md +282 -0
  172. package/.claude/skills/theme-detector/SKILL.md +320 -0
  173. package/.claude/skills/theme-detector/assets/report_template.md +155 -0
  174. package/.claude/skills/theme-detector/references/cross_sector_themes.md +252 -0
  175. package/.claude/skills/theme-detector/references/finviz_industry_codes.md +403 -0
  176. package/.claude/skills/theme-detector/references/thematic_etf_catalog.md +333 -0
  177. package/.claude/skills/theme-detector/references/theme_detection_methodology.md +430 -0
  178. package/.claude/skills/theme-detector/scripts/calculators/__init__.py +1 -0
  179. package/.claude/skills/theme-detector/scripts/calculators/heat_calculator.py +123 -0
  180. package/.claude/skills/theme-detector/scripts/calculators/industry_ranker.py +98 -0
  181. package/.claude/skills/theme-detector/scripts/calculators/lifecycle_calculator.py +172 -0
  182. package/.claude/skills/theme-detector/scripts/calculators/theme_classifier.py +195 -0
  183. package/.claude/skills/theme-detector/scripts/calculators/theme_discoverer.py +280 -0
  184. package/.claude/skills/theme-detector/scripts/config_loader.py +142 -0
  185. package/.claude/skills/theme-detector/scripts/default_theme_config.py +254 -0
  186. package/.claude/skills/theme-detector/scripts/etf_scanner.py +609 -0
  187. package/.claude/skills/theme-detector/scripts/finviz_performance_client.py +131 -0
  188. package/.claude/skills/theme-detector/scripts/report_generator.py +490 -0
  189. package/.claude/skills/theme-detector/scripts/representative_stock_selector.py +673 -0
  190. package/.claude/skills/theme-detector/scripts/scorer.py +87 -0
  191. package/.claude/skills/theme-detector/scripts/tests/README.md +21 -0
  192. package/.claude/skills/theme-detector/scripts/tests/conftest.py +9 -0
  193. package/.claude/skills/theme-detector/scripts/tests/test_config_loader.py +239 -0
  194. package/.claude/skills/theme-detector/scripts/tests/test_etf_scanner.py +810 -0
  195. package/.claude/skills/theme-detector/scripts/tests/test_heat_calculator.py +245 -0
  196. package/.claude/skills/theme-detector/scripts/tests/test_industry_ranker.py +256 -0
  197. package/.claude/skills/theme-detector/scripts/tests/test_lifecycle_calculator.py +301 -0
  198. package/.claude/skills/theme-detector/scripts/tests/test_report_generator.py +624 -0
  199. package/.claude/skills/theme-detector/scripts/tests/test_representative_stock_selector.py +898 -0
  200. package/.claude/skills/theme-detector/scripts/tests/test_scorer.py +185 -0
  201. package/.claude/skills/theme-detector/scripts/tests/test_theme_classifier.py +534 -0
  202. package/.claude/skills/theme-detector/scripts/tests/test_theme_detector_e2e.py +467 -0
  203. package/.claude/skills/theme-detector/scripts/tests/test_theme_discoverer.py +458 -0
  204. package/.claude/skills/theme-detector/scripts/tests/test_uptrend_client.py +76 -0
  205. package/.claude/skills/theme-detector/scripts/theme_detector.py +815 -0
  206. package/.claude/skills/theme-detector/scripts/themes.yaml +168 -0
  207. package/.claude/skills/theme-detector/scripts/uptrend_client.py +241 -0
  208. package/.claude/skills/uptrend-analyzer/SKILL.md +108 -0
  209. package/.claude/skills/uptrend-analyzer/references/uptrend_methodology.md +215 -0
  210. package/.claude/skills/uptrend-analyzer/scripts/calculators/__init__.py +1 -0
  211. package/.claude/skills/uptrend-analyzer/scripts/calculators/historical_context_calculator.py +122 -0
  212. package/.claude/skills/uptrend-analyzer/scripts/calculators/market_breadth_calculator.py +145 -0
  213. package/.claude/skills/uptrend-analyzer/scripts/calculators/momentum_calculator.py +183 -0
  214. package/.claude/skills/uptrend-analyzer/scripts/calculators/sector_participation_calculator.py +204 -0
  215. package/.claude/skills/uptrend-analyzer/scripts/calculators/sector_rotation_calculator.py +218 -0
  216. package/.claude/skills/uptrend-analyzer/scripts/data_fetcher.py +236 -0
  217. package/.claude/skills/uptrend-analyzer/scripts/report_generator.py +329 -0
  218. package/.claude/skills/uptrend-analyzer/scripts/scorer.py +276 -0
  219. package/.claude/skills/uptrend-analyzer/scripts/uptrend_analyzer.py +219 -0
  220. package/.claude/skills/us-market-bubble-detector/CHANGELOG.md +118 -0
  221. package/.claude/skills/us-market-bubble-detector/SKILL.md +545 -0
  222. package/.claude/skills/us-market-bubble-detector/references/bubble_framework.md +335 -0
  223. package/.claude/skills/us-market-bubble-detector/references/historical_cases.md +327 -0
  224. package/.claude/skills/us-market-bubble-detector/references/implementation_guide.md +473 -0
  225. package/.claude/skills/us-market-bubble-detector/references/quick_reference.md +354 -0
  226. package/.claude/skills/us-market-bubble-detector/references/quick_reference_en.md +342 -0
  227. package/.claude/skills/us-market-bubble-detector/scripts/bubble_scorer.py +309 -0
  228. package/.claude/skills/us-stock-analysis/SKILL.md +294 -0
  229. package/.claude/skills/us-stock-analysis/references/financial-metrics.md +172 -0
  230. package/.claude/skills/us-stock-analysis/references/fundamental-analysis.md +129 -0
  231. package/.claude/skills/us-stock-analysis/references/report-template.md +207 -0
  232. package/.claude/skills/us-stock-analysis/references/technical-analysis.md +93 -0
  233. package/.claude/skills/value-dividend-screener/SKILL.md +562 -0
  234. package/.claude/skills/value-dividend-screener/references/fmp_api_guide.md +348 -0
  235. package/.claude/skills/value-dividend-screener/references/screening_methodology.md +315 -0
  236. package/.claude/skills/value-dividend-screener/scripts/screen_dividend_stocks.py +1138 -0
  237. package/.claude/skills/vcp-screener/SKILL.md +79 -0
  238. package/.claude/skills/vcp-screener/references/fmp_api_endpoints.md +45 -0
  239. package/.claude/skills/vcp-screener/references/scoring_system.md +154 -0
  240. package/.claude/skills/vcp-screener/references/vcp_methodology.md +124 -0
  241. package/.claude/skills/vcp-screener/scripts/calculators/__init__.py +1 -0
  242. package/.claude/skills/vcp-screener/scripts/calculators/pivot_proximity_calculator.py +139 -0
  243. package/.claude/skills/vcp-screener/scripts/calculators/relative_strength_calculator.py +161 -0
  244. package/.claude/skills/vcp-screener/scripts/calculators/trend_template_calculator.py +228 -0
  245. package/.claude/skills/vcp-screener/scripts/calculators/vcp_pattern_calculator.py +322 -0
  246. package/.claude/skills/vcp-screener/scripts/calculators/volume_pattern_calculator.py +121 -0
  247. package/.claude/skills/vcp-screener/scripts/fmp_client.py +162 -0
  248. package/.claude/skills/vcp-screener/scripts/report_generator.py +317 -0
  249. package/.claude/skills/vcp-screener/scripts/scorer.py +155 -0
  250. package/.claude/skills/vcp-screener/scripts/screen_vcp.py +536 -0
  251. package/.claude/skills/vcp-screener/scripts/tests/__init__.py +0 -0
  252. package/.claude/skills/vcp-screener/scripts/tests/conftest.py +9 -0
  253. package/.claude/skills/vcp-screener/scripts/tests/test_vcp_screener.py +834 -0
  254. package/.claude/skills/weekly-trade-strategy/.claude/agents/druckenmiller-strategy-planner.md +300 -0
  255. package/.claude/skills/weekly-trade-strategy/.claude/agents/market-news-analyzer.md +239 -0
  256. package/.claude/skills/weekly-trade-strategy/.claude/agents/technical-market-analyst.md +187 -0
  257. package/.claude/skills/weekly-trade-strategy/.claude/agents/us-market-analyst.md +218 -0
  258. package/.claude/skills/weekly-trade-strategy/.claude/agents/weekly-trade-blog-writer.md +318 -0
  259. package/.claude/skills/weekly-trade-strategy/.claude/skills/breadth-chart-analyst/SKILL.md +662 -0
  260. package/.claude/skills/weekly-trade-strategy/.claude/skills/breadth-chart-analyst/assets/SP500_Breadth_Index_200MA_8MA.jpeg +0 -0
  261. package/.claude/skills/weekly-trade-strategy/.claude/skills/breadth-chart-analyst/assets/US_Stock_Market_Uptrend_Ratio.jpeg +0 -0
  262. package/.claude/skills/weekly-trade-strategy/.claude/skills/breadth-chart-analyst/assets/breadth_analysis_template.md +558 -0
  263. package/.claude/skills/weekly-trade-strategy/.claude/skills/breadth-chart-analyst/references/breadth_chart_methodology.md +590 -0
  264. package/.claude/skills/weekly-trade-strategy/.claude/skills/earnings-calendar/SKILL.md +721 -0
  265. package/.claude/skills/weekly-trade-strategy/.claude/skills/earnings-calendar/assets/earnings_report_template.md +102 -0
  266. package/.claude/skills/weekly-trade-strategy/.claude/skills/earnings-calendar/earnings_calendar_2025-11-02.md +447 -0
  267. package/.claude/skills/weekly-trade-strategy/.claude/skills/earnings-calendar/references/fmp_api_guide.md +590 -0
  268. package/.claude/skills/weekly-trade-strategy/.claude/skills/earnings-calendar/scripts/fetch_earnings_fmp.py +443 -0
  269. package/.claude/skills/weekly-trade-strategy/.claude/skills/earnings-calendar/scripts/generate_report.py +366 -0
  270. package/.claude/skills/weekly-trade-strategy/.claude/skills/economic-calendar-fetcher/SKILL.md +365 -0
  271. package/.claude/skills/weekly-trade-strategy/.claude/skills/economic-calendar-fetcher/references/fmp_api_documentation.md +345 -0
  272. package/.claude/skills/weekly-trade-strategy/.claude/skills/economic-calendar-fetcher/scripts/get_economic_calendar.py +267 -0
  273. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-environment-analysis/SKILL.md +139 -0
  274. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-environment-analysis/references/analysis_patterns.md +124 -0
  275. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-environment-analysis/references/indicators.md +99 -0
  276. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-environment-analysis/scripts/market_utils.py +127 -0
  277. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-news-analyst/SKILL.md +714 -0
  278. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-news-analyst/references/corporate_news_impact.md +446 -0
  279. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-news-analyst/references/geopolitical_commodity_correlations.md +499 -0
  280. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-news-analyst/references/market_event_patterns.md +393 -0
  281. package/.claude/skills/weekly-trade-strategy/.claude/skills/market-news-analyst/references/trusted_news_sources.md +510 -0
  282. package/.claude/skills/weekly-trade-strategy/.claude/skills/sector-analyst/SKILL.md +206 -0
  283. package/.claude/skills/weekly-trade-strategy/.claude/skills/sector-analyst/assets/industory_performance_1.jpeg +0 -0
  284. package/.claude/skills/weekly-trade-strategy/.claude/skills/sector-analyst/assets/industory_performance_2.jpeg +0 -0
  285. package/.claude/skills/weekly-trade-strategy/.claude/skills/sector-analyst/assets/sector_performance.jpeg +0 -0
  286. package/.claude/skills/weekly-trade-strategy/.claude/skills/sector-analyst/references/sector_rotation.md +170 -0
  287. package/.claude/skills/weekly-trade-strategy/.claude/skills/stanley-druckenmiller-investment/SKILL.md +84 -0
  288. package/.claude/skills/weekly-trade-strategy/.claude/skills/stanley-druckenmiller-investment/references/case-studies.md +148 -0
  289. package/.claude/skills/weekly-trade-strategy/.claude/skills/stanley-druckenmiller-investment/references/investment-philosophy.md +80 -0
  290. package/.claude/skills/weekly-trade-strategy/.claude/skills/stanley-druckenmiller-investment/references/market-analysis-guide.md +146 -0
  291. package/.claude/skills/weekly-trade-strategy/.claude/skills/technical-analyst/SKILL.md +238 -0
  292. package/.claude/skills/weekly-trade-strategy/.claude/skills/technical-analyst/assets/analysis_template.md +183 -0
  293. package/.claude/skills/weekly-trade-strategy/.claude/skills/technical-analyst/references/technical_analysis_framework.md +282 -0
  294. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/CHANGELOG.md +118 -0
  295. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/SKILL.md +545 -0
  296. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/references/bubble_framework.md +335 -0
  297. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/references/historical_cases.md +327 -0
  298. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/references/implementation_guide.md +473 -0
  299. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/references/quick_reference.md +354 -0
  300. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/references/quick_reference_en.md +342 -0
  301. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-market-bubble-detector/scripts/bubble_scorer.py +309 -0
  302. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-stock-analysis/SKILL.md +294 -0
  303. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-stock-analysis/references/financial-metrics.md +172 -0
  304. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-stock-analysis/references/fundamental-analysis.md +129 -0
  305. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-stock-analysis/references/report-template.md +207 -0
  306. package/.claude/skills/weekly-trade-strategy/.claude/skills/us-stock-analysis/references/technical-analysis.md +93 -0
  307. package/.claude/skills/weekly-trade-strategy/CLAUDE.md +454 -0
  308. package/.claude/skills/weekly-trade-strategy/README.md +287 -0
  309. package/.claude/skills/weekly-trade-strategy/blogs/.gitkeep +0 -0
  310. package/.claude/skills/weekly-trade-strategy/charts/.gitkeep +0 -0
  311. package/.claude/skills/weekly-trade-strategy/earnings_data.json +10054 -0
  312. package/.claude/skills/weekly-trade-strategy/skills/breadth-chart-analyst/SKILL.md +662 -0
  313. package/.claude/skills/weekly-trade-strategy/skills/breadth-chart-analyst/assets/SP500_Breadth_Index_200MA_8MA.jpeg +0 -0
  314. package/.claude/skills/weekly-trade-strategy/skills/breadth-chart-analyst/assets/US_Stock_Market_Uptrend_Ratio.jpeg +0 -0
  315. package/.claude/skills/weekly-trade-strategy/skills/breadth-chart-analyst/assets/breadth_analysis_template.md +558 -0
  316. package/.claude/skills/weekly-trade-strategy/skills/breadth-chart-analyst/references/breadth_chart_methodology.md +590 -0
  317. package/.claude/skills/weekly-trade-strategy/skills/earnings-calendar/SKILL.md +721 -0
  318. package/.claude/skills/weekly-trade-strategy/skills/earnings-calendar/assets/earnings_report_template.md +102 -0
  319. package/.claude/skills/weekly-trade-strategy/skills/earnings-calendar/earnings_calendar_2025-11-02.md +447 -0
  320. package/.claude/skills/weekly-trade-strategy/skills/earnings-calendar/references/fmp_api_guide.md +590 -0
  321. package/.claude/skills/weekly-trade-strategy/skills/earnings-calendar/scripts/fetch_earnings_fmp.py +443 -0
  322. package/.claude/skills/weekly-trade-strategy/skills/earnings-calendar/scripts/generate_report.py +366 -0
  323. package/.claude/skills/weekly-trade-strategy/skills/economic-calendar-fetcher/SKILL.md +365 -0
  324. package/.claude/skills/weekly-trade-strategy/skills/economic-calendar-fetcher/references/fmp_api_documentation.md +345 -0
  325. package/.claude/skills/weekly-trade-strategy/skills/economic-calendar-fetcher/scripts/get_economic_calendar.py +267 -0
  326. package/.claude/skills/weekly-trade-strategy/skills/market-environment-analysis/SKILL.md +139 -0
  327. package/.claude/skills/weekly-trade-strategy/skills/market-environment-analysis/references/analysis_patterns.md +124 -0
  328. package/.claude/skills/weekly-trade-strategy/skills/market-environment-analysis/references/indicators.md +99 -0
  329. package/.claude/skills/weekly-trade-strategy/skills/market-environment-analysis/scripts/market_utils.py +127 -0
  330. package/.claude/skills/weekly-trade-strategy/skills/market-news-analyst/SKILL.md +714 -0
  331. package/.claude/skills/weekly-trade-strategy/skills/market-news-analyst/references/corporate_news_impact.md +446 -0
  332. package/.claude/skills/weekly-trade-strategy/skills/market-news-analyst/references/geopolitical_commodity_correlations.md +499 -0
  333. package/.claude/skills/weekly-trade-strategy/skills/market-news-analyst/references/market_event_patterns.md +393 -0
  334. package/.claude/skills/weekly-trade-strategy/skills/market-news-analyst/references/trusted_news_sources.md +510 -0
  335. package/.claude/skills/weekly-trade-strategy/skills/sector-analyst/SKILL.md +206 -0
  336. package/.claude/skills/weekly-trade-strategy/skills/sector-analyst/assets/industory_performance_1.jpeg +0 -0
  337. package/.claude/skills/weekly-trade-strategy/skills/sector-analyst/assets/industory_performance_2.jpeg +0 -0
  338. package/.claude/skills/weekly-trade-strategy/skills/sector-analyst/assets/sector_performance.jpeg +0 -0
  339. package/.claude/skills/weekly-trade-strategy/skills/sector-analyst/references/sector_rotation.md +170 -0
  340. package/.claude/skills/weekly-trade-strategy/skills/stanley-druckenmiller-investment/SKILL.md +84 -0
  341. package/.claude/skills/weekly-trade-strategy/skills/stanley-druckenmiller-investment/references/case-studies.md +148 -0
  342. package/.claude/skills/weekly-trade-strategy/skills/stanley-druckenmiller-investment/references/investment-philosophy.md +80 -0
  343. package/.claude/skills/weekly-trade-strategy/skills/stanley-druckenmiller-investment/references/market-analysis-guide.md +146 -0
  344. package/.claude/skills/weekly-trade-strategy/skills/technical-analyst/SKILL.md +238 -0
  345. package/.claude/skills/weekly-trade-strategy/skills/technical-analyst/assets/analysis_template.md +183 -0
  346. package/.claude/skills/weekly-trade-strategy/skills/technical-analyst/references/technical_analysis_framework.md +282 -0
  347. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/CHANGELOG.md +118 -0
  348. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/SKILL.md +545 -0
  349. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/references/bubble_framework.md +335 -0
  350. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/references/historical_cases.md +327 -0
  351. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/references/implementation_guide.md +473 -0
  352. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/references/quick_reference.md +354 -0
  353. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/references/quick_reference_en.md +342 -0
  354. package/.claude/skills/weekly-trade-strategy/skills/us-market-bubble-detector/scripts/bubble_scorer.py +309 -0
  355. package/.claude/skills/weekly-trade-strategy/skills/us-stock-analysis/SKILL.md +294 -0
  356. package/.claude/skills/weekly-trade-strategy/skills/us-stock-analysis/references/financial-metrics.md +172 -0
  357. package/.claude/skills/weekly-trade-strategy/skills/us-stock-analysis/references/fundamental-analysis.md +129 -0
  358. package/.claude/skills/weekly-trade-strategy/skills/us-stock-analysis/references/report-template.md +207 -0
  359. package/.claude/skills/weekly-trade-strategy/skills/us-stock-analysis/references/technical-analysis.md +93 -0
  360. package/.mcp.json +3 -0
  361. package/cli.mjs +16 -16
  362. package/package.json +4 -2
@@ -0,0 +1,721 @@
1
+ ---
2
+ name: earnings-calendar
3
+ description: This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review. The skill focuses on mid-cap and above companies (over $2B market cap) that have significant market impact, organizing the data by date and timing in a clean markdown table format. Supports multiple environments (CLI, Desktop, Web) with flexible API key management.
4
+ ---
5
+
6
+ # Earnings Calendar
7
+
8
+ ## Overview
9
+
10
+ This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. It focuses on companies with significant market capitalization (mid-cap and above, over $2B) that are likely to impact market movements. The skill generates organized markdown reports showing which companies are reporting earnings over the next week, grouped by date and timing (before market open, after market close, or time not announced).
11
+
12
+ **Key Features**:
13
+ - Uses FMP API for reliable, structured earnings data
14
+ - Filters by market cap (>$2B) to focus on market-moving companies
15
+ - Includes EPS and revenue estimates
16
+ - Multi-environment support (CLI, Desktop, Web)
17
+ - Flexible API key management
18
+ - Organized by date, timing, and market cap
19
+
20
+ ## Prerequisites
21
+
22
+ ### FMP API Key
23
+
24
+ This skill requires a Financial Modeling Prep API key.
25
+
26
+ **Get Free API Key**:
27
+ 1. Visit: https://site.financialmodelingprep.com/developer/docs
28
+ 2. Sign up for free account
29
+ 3. Receive API key immediately
30
+ 4. Free tier: 250 API calls/day (sufficient for weekly earnings calendar)
31
+
32
+ **API Key Setup by Environment**:
33
+
34
+ **QuantWise (CLI)**:
35
+ ```bash
36
+ export FMP_API_KEY="your-api-key-here"
37
+ ```
38
+
39
+ **Claude Desktop**:
40
+ Set environment variable in system or configure MCP server.
41
+
42
+ **Claude Web**:
43
+ API key will be requested during skill execution (stored only for current session).
44
+
45
+ ## Core Workflow
46
+
47
+ ### Step 1: Get Current Date and Calculate Target Week
48
+
49
+ **CRITICAL**: Always start by obtaining the accurate current date.
50
+
51
+ Retrieve the current date and time:
52
+ - Use system date/time to get today's date
53
+ - Note: "Today's date" is provided in the environment (<env> tag)
54
+ - Calculate the target week: Next 7 days from current date
55
+
56
+ **Date Range Calculation**:
57
+ ```
58
+ Current Date: [e.g., November 2, 2025]
59
+ Target Week Start: [Current Date + 1 day, e.g., November 3, 2025]
60
+ Target Week End: [Current Date + 7 days, e.g., November 9, 2025]
61
+ ```
62
+
63
+ **Why This Matters**:
64
+ - Earnings calendars are time-sensitive
65
+ - "Next week" must be calculated from the actual current date
66
+ - Provides accurate date range for API request
67
+
68
+ **Format dates in YYYY-MM-DD** for API compatibility.
69
+
70
+ ### Step 2: Load FMP API Guide
71
+
72
+ Before retrieving data, load the comprehensive FMP API guide:
73
+
74
+ ```
75
+ Read: references/fmp_api_guide.md
76
+ ```
77
+
78
+ This guide contains:
79
+ - FMP API endpoint structure and parameters
80
+ - Authentication requirements
81
+ - Market cap filtering strategy (via Company Profile API)
82
+ - Earnings timing conventions (BMO, AMC, TAS)
83
+ - Response format and field descriptions
84
+ - Error handling strategies
85
+ - Best practices and optimization tips
86
+
87
+ ### Step 3: API Key Detection and Configuration
88
+
89
+ Detect API key availability based on environment.
90
+
91
+ **Multi-Environment API Key Detection**:
92
+
93
+ #### 3.1 Check Environment Variable (CLI/Desktop)
94
+
95
+ ```bash
96
+ if [ ! -z "$FMP_API_KEY" ]; then
97
+ echo "✓ API key found in environment"
98
+ API_KEY=$FMP_API_KEY
99
+ fi
100
+ ```
101
+
102
+ If environment variable is set, proceed to Step 4.
103
+
104
+ #### 3.2 Prompt User for API Key (Desktop/Web)
105
+
106
+ If environment variable not found, use AskUserQuestion tool:
107
+
108
+ **Question Configuration**:
109
+ ```
110
+ Question: "This skill requires an FMP API key to retrieve earnings data. Do you have an FMP API key?"
111
+ Header: "API Key"
112
+ Options:
113
+ 1. "Yes, I'll provide it now" → Proceed to 3.3
114
+ 2. "No, get free key" → Show instructions (3.2.1)
115
+ 3. "Skip API, use manual entry" → Jump to Step 8 (fallback mode)
116
+ ```
117
+
118
+ **3.2.1 If user chooses "No, get free key"**:
119
+
120
+ Provide instructions:
121
+ ```
122
+ To get a free FMP API key:
123
+
124
+ 1. Visit: https://site.financialmodelingprep.com/developer/docs
125
+ 2. Click "Get Free API Key" or "Sign Up"
126
+ 3. Create account (email + password)
127
+ 4. Receive API key immediately
128
+ 5. Free tier includes 250 API calls/day (sufficient for daily use)
129
+
130
+ Once you have your API key, please select "Yes, I'll provide it now" to continue.
131
+ ```
132
+
133
+ #### 3.3 Request API Key Input
134
+
135
+ If user has API key, request input:
136
+
137
+ **Prompt**:
138
+ ```
139
+ Please paste your FMP API key below:
140
+
141
+ (Your API key will only be stored for this conversation session and will be forgotten when the session ends. For regular use, consider setting the FMP_API_KEY environment variable.)
142
+ ```
143
+
144
+ **Store API key in session variable**:
145
+ ```
146
+ API_KEY = [user_input]
147
+ ```
148
+
149
+ **Confirm with user**:
150
+ ```
151
+ ✓ API key received and stored for this session.
152
+
153
+ Security Note:
154
+ - API key is stored only in current conversation context
155
+ - Not saved to disk or persistent storage
156
+ - Will be forgotten when session ends
157
+ - Do not share this conversation if it contains your API key
158
+
159
+ Proceeding with earnings data retrieval...
160
+ ```
161
+
162
+ ### Step 4: Retrieve Earnings Data via FMP API
163
+
164
+ Use the Python script to fetch earnings data from FMP API.
165
+
166
+ **Script Location**:
167
+ ```
168
+ scripts/fetch_earnings_fmp.py
169
+ ```
170
+
171
+ **Execution**:
172
+
173
+ **Option A: With Environment Variable (CLI)**:
174
+ ```bash
175
+ python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09
176
+ ```
177
+
178
+ **Option B: With Session API Key (Desktop/Web)**:
179
+ ```bash
180
+ python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}"
181
+ ```
182
+
183
+ **Script Workflow** (automatic):
184
+ 1. Validates API key and date parameters
185
+ 2. Calls FMP Earnings Calendar API for date range
186
+ 3. Fetches company profiles (market cap, sector, industry)
187
+ 4. Filters companies with market cap >$2B
188
+ 5. Normalizes timing (BMO/AMC/TAS)
189
+ 6. Sorts by date → timing → market cap (descending)
190
+ 7. Outputs JSON to stdout
191
+
192
+ **Expected Output Format** (JSON):
193
+ ```json
194
+ [
195
+ {
196
+ "symbol": "AAPL",
197
+ "companyName": "Apple Inc.",
198
+ "date": "2025-11-04",
199
+ "timing": "AMC",
200
+ "marketCap": 3000000000000,
201
+ "marketCapFormatted": "$3.0T",
202
+ "sector": "Technology",
203
+ "industry": "Consumer Electronics",
204
+ "epsEstimated": 1.54,
205
+ "revenueEstimated": 123400000000,
206
+ "fiscalDateEnding": "2025-09-30",
207
+ "exchange": "NASDAQ"
208
+ },
209
+ ...
210
+ ]
211
+ ```
212
+
213
+ **Save to file** (recommended for use with report generator):
214
+ ```bash
215
+ python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}" > earnings_data.json
216
+ ```
217
+
218
+ Or capture to variable:
219
+ ```bash
220
+ earnings_data=$(python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}")
221
+ ```
222
+
223
+ **Error Handling**:
224
+
225
+ If script returns errors:
226
+ - **401 Unauthorized**: Invalid API key → Verify key or re-enter
227
+ - **429 Rate Limit**: Exceeded 250 calls/day → Wait or upgrade plan
228
+ - **Empty Result**: No earnings in date range → Expand date range or note in report
229
+ - **Connection Error**: Network issue → Retry or use cached data if available
230
+
231
+ ### Step 5: Process and Organize Data
232
+
233
+ Once earnings data is retrieved (JSON format), process and organize it:
234
+
235
+ #### 5.1 Parse JSON Data
236
+
237
+ Load JSON data from script output:
238
+ ```python
239
+ import json
240
+ earnings_data = json.loads(earnings_json_string)
241
+ ```
242
+
243
+ Or if saved to file:
244
+ ```python
245
+ with open('earnings_data.json', 'r') as f:
246
+ earnings_data = json.load(f)
247
+ ```
248
+
249
+ #### 5.2 Verify Data Structure
250
+
251
+ Confirm data includes required fields:
252
+ - ✓ symbol
253
+ - ✓ companyName
254
+ - ✓ date
255
+ - ✓ timing (BMO/AMC/TAS)
256
+ - ✓ marketCap
257
+ - ✓ sector
258
+
259
+ #### 5.3 Group by Date
260
+
261
+ Group all earnings announcements by date:
262
+ - Sunday, [Full Date] (if applicable)
263
+ - Monday, [Full Date]
264
+ - Tuesday, [Full Date]
265
+ - Wednesday, [Full Date]
266
+ - Thursday, [Full Date]
267
+ - Friday, [Full Date]
268
+ - Saturday, [Full Date] (if applicable)
269
+
270
+ #### 5.4 Sub-Group by Timing
271
+
272
+ Within each date, create three sub-sections:
273
+ 1. **Before Market Open (BMO)**
274
+ 2. **After Market Close (AMC)**
275
+ 3. **Time Not Announced (TAS)**
276
+
277
+ Data is already sorted by timing from the script, so maintain this order.
278
+
279
+ #### 5.5 Within Each Timing Group
280
+
281
+ Companies are already sorted by market cap descending (script output):
282
+ - Mega-cap (>$200B) first
283
+ - Large-cap ($10B-$200B) second
284
+ - Mid-cap ($2B-$10B) third
285
+
286
+ This prioritization ensures the most market-moving companies are listed first.
287
+
288
+ #### 5.6 Calculate Summary Statistics
289
+
290
+ Compute:
291
+ - **Total Companies**: Count of all companies in dataset
292
+ - **Mega/Large Cap Count**: Count where marketCap >= $10B
293
+ - **Mid Cap Count**: Count where marketCap between $2B and $10B
294
+ - **Peak Day**: Day of week with most earnings announcements
295
+ - **Sector Distribution**: Count by sector (Technology, Healthcare, Financial, etc.)
296
+ - **Highest Market Cap Companies**: Top 5 companies by market cap
297
+
298
+ ### Step 6: Generate Markdown Report
299
+
300
+ Use the report generation script to create a formatted markdown report from the JSON data.
301
+
302
+ **Script Location**:
303
+ ```
304
+ scripts/generate_report.py
305
+ ```
306
+
307
+ **Execution**:
308
+
309
+ **Option A: Output to stdout**:
310
+ ```bash
311
+ python scripts/generate_report.py earnings_data.json
312
+ ```
313
+
314
+ **Option B: Save to file**:
315
+ ```bash
316
+ python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md
317
+ ```
318
+
319
+ **What the script does**:
320
+ 1. Loads earnings data from JSON file
321
+ 2. Groups by date and timing (BMO/AMC/TAS)
322
+ 3. Sorts by market cap within each group
323
+ 4. Calculates summary statistics
324
+ 5. Generates formatted markdown report
325
+ 6. Outputs to stdout or saves to file
326
+
327
+ The script automatically handles all formatting including:
328
+ - Proper markdown table structure
329
+ - Date grouping and day names
330
+ - Market cap sorting
331
+ - EPS and revenue formatting
332
+ - Summary statistics calculation
333
+
334
+ **Report Structure**:
335
+
336
+ ```markdown
337
+ # Upcoming Earnings Calendar - Week of [START_DATE] to [END_DATE]
338
+
339
+ **Report Generated**: [Current Date]
340
+ **Data Source**: FMP API (Mid-cap and above, >$2B market cap)
341
+ **Coverage Period**: Next 7 days
342
+ **Total Companies**: [COUNT]
343
+
344
+ ---
345
+
346
+ ## Executive Summary
347
+
348
+ - **Total Companies Reporting**: [TOTAL_COUNT]
349
+ - **Mega/Large Cap (>$10B)**: [LARGE_CAP_COUNT]
350
+ - **Mid Cap ($2B-$10B)**: [MID_CAP_COUNT]
351
+ - **Peak Day**: [DAY_WITH_MOST_EARNINGS]
352
+
353
+ ---
354
+
355
+ ## [Day Name], [Full Date]
356
+
357
+ ### Before Market Open (BMO)
358
+
359
+ | Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
360
+ |--------|---------|------------|--------|----------|--------------|
361
+ | [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
362
+
363
+ ### After Market Close (AMC)
364
+
365
+ | Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
366
+ |--------|---------|------------|--------|----------|--------------|
367
+ | [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
368
+
369
+ ### Time Not Announced (TAS)
370
+
371
+ | Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
372
+ |--------|---------|------------|--------|----------|--------------|
373
+ | [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
374
+
375
+ ---
376
+
377
+ [Repeat for each day of week]
378
+
379
+ ---
380
+
381
+ ## Key Observations
382
+
383
+ ### Highest Market Cap Companies This Week
384
+ 1. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
385
+ 2. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
386
+ 3. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
387
+
388
+ ### Sector Distribution
389
+ - **Technology**: [COUNT] companies
390
+ - **Healthcare**: [COUNT] companies
391
+ - **Financial**: [COUNT] companies
392
+ - **Consumer**: [COUNT] companies
393
+ - **Other**: [COUNT] companies
394
+
395
+ ### Trading Considerations
396
+ - **Days with Heavy Volume**: [DATES with multiple large-cap earnings]
397
+ - **Pre-Market Focus**: [BMO companies that may move markets]
398
+ - **After-Hours Focus**: [AMC companies that may move markets]
399
+
400
+ ---
401
+
402
+ ## Timing Reference
403
+
404
+ - **BMO (Before Market Open)**: Announcements typically around 6:00-8:00 AM ET before market opens at 9:30 AM ET
405
+ - **AMC (After Market Close)**: Announcements typically around 4:00-5:00 PM ET after market closes at 4:00 PM ET
406
+ - **TAS (Time Not Announced)**: Specific time not yet disclosed - monitor company investor relations
407
+
408
+ ---
409
+
410
+ ## Data Notes
411
+
412
+ - **Market Cap Categories**:
413
+ - Mega Cap: >$200B
414
+ - Large Cap: $10B-$200B
415
+ - Mid Cap: $2B-$10B
416
+
417
+ - **Filter Criteria**: This report includes companies with market cap $2B and above (mid-cap+) with earnings scheduled for the next week.
418
+
419
+ - **Data Source**: Financial Modeling Prep (FMP) API
420
+
421
+ - **Data Freshness**: Earnings dates and times can change. Verify critical dates through company investor relations websites for the most current information.
422
+
423
+ - **EPS and Revenue Estimates**: Analyst consensus estimates from FMP API. Actual results will be reported on earnings date.
424
+
425
+ ---
426
+
427
+ ## Additional Resources
428
+
429
+ - **FMP API Documentation**: https://site.financialmodelingprep.com/developer/docs
430
+ - **Seeking Alpha Calendar**: https://seekingalpha.com/earnings/earnings-calendar
431
+ - **Yahoo Finance Calendar**: https://finance.yahoo.com/calendar/earnings
432
+
433
+ ---
434
+
435
+ *Report generated using FMP Earnings Calendar API with mid-cap+ filter (>$2B market cap). Data current as of report generation time. Always verify earnings dates through official company sources.*
436
+ ```
437
+
438
+ **Formatting Best Practices**:
439
+ - Use markdown tables for clean presentation
440
+ - Bold important company names (mega-cap) if desired
441
+ - Include market cap in human-readable format ($3.0T, $150B, $5.2B) - already formatted by script
442
+ - Group logically by date then timing
443
+ - Include summary section at top for quick overview
444
+ - Add EPS and revenue estimates if available
445
+
446
+ ### Step 7: Quality Assurance
447
+
448
+ Before finalizing the report, verify:
449
+
450
+ **Data Quality Checks**:
451
+ 1. ✓ All dates fall within the target week (next 7 days)
452
+ 2. ✓ Market cap values are present for all companies
453
+ 3. ✓ Each company has timing specified (BMO/AMC/TAS)
454
+ 4. ✓ Companies are sorted by market cap within each section
455
+ 5. ✓ Summary statistics are accurate
456
+ 6. ✓ Report generation date is clearly stated
457
+ 7. ✓ EPS and revenue estimates included where available
458
+
459
+ **Completeness Checks**:
460
+ 1. ✓ All days of the target week are included (even if no earnings)
461
+ 2. ✓ Major known companies are not missing (verify against external sources if needed)
462
+ 3. ✓ Sector information is included where available
463
+ 4. ✓ Timing reference section is present
464
+ 5. ✓ Data sources are credited (FMP API)
465
+
466
+ **Format Checks**:
467
+ 1. ✓ Markdown tables are properly formatted
468
+ 2. ✓ Dates are consistently formatted
469
+ 3. ✓ Market caps use consistent units (B for billions, T for trillions)
470
+ 4. ✓ All sections follow template structure
471
+ 5. ✓ No placeholder text ([PLACEHOLDER]) remains
472
+ 6. ✓ EPS and revenue estimates properly formatted
473
+
474
+ ### Step 8: Save and Deliver Report
475
+
476
+ Save the generated report with an appropriate filename:
477
+
478
+ **Filename Convention**:
479
+ ```
480
+ earnings_calendar_[YYYY-MM-DD].md
481
+ ```
482
+
483
+ Example: `earnings_calendar_2025-11-02.md`
484
+
485
+ The filename date represents the report generation date, not the earnings week.
486
+
487
+ **Delivery**:
488
+ - Save the markdown file to the working directory
489
+ - Inform the user that the report has been generated
490
+ - Provide a brief summary of key findings (e.g., "45 companies reporting next week, with Apple and Microsoft on Monday")
491
+
492
+ **Example Summary**:
493
+ ```
494
+ ✓ Earnings calendar report generated: earnings_calendar_2025-11-02.md
495
+
496
+ Summary for week of November 3-9, 2025:
497
+ - 45 companies reporting earnings
498
+ - 28 large/mega-cap, 17 mid-cap
499
+ - Peak day: Thursday (15 companies)
500
+ - Notable: Apple (Mon AMC), Microsoft (Tue AMC), Tesla (Wed AMC)
501
+
502
+ Top 5 by market cap:
503
+ 1. Apple - $3.0T (Mon AMC)
504
+ 2. Microsoft - $2.8T (Tue AMC)
505
+ 3. Alphabet - $1.8T (Thu AMC)
506
+ 4. Amazon - $1.6T (Fri AMC)
507
+ 5. Tesla - $800B (Wed AMC)
508
+ ```
509
+
510
+ ## Fallback Mode (Step 8 Alternative): Manual Data Entry
511
+
512
+ If API access is unavailable or user chooses to skip API:
513
+
514
+ **Provide Instructions for Manual Entry**:
515
+
516
+ ```
517
+ Since FMP API is not available, you can manually gather earnings data:
518
+
519
+ 1. Visit Finviz: https://finviz.com/screener.ashx?v=111&f=cap_midover%2Cearningsdate_nextweek
520
+ 2. Or Yahoo Finance: https://finance.yahoo.com/calendar/earnings
521
+ 3. Note down companies reporting next week
522
+
523
+ Please provide the following information for each company:
524
+ - Ticker symbol
525
+ - Company name
526
+ - Earnings date
527
+ - Timing (BMO/AMC/TAS)
528
+ - Market cap (approximate)
529
+ - Sector
530
+
531
+ I will format this into the standard earnings calendar report.
532
+ ```
533
+
534
+ **Process Manual Input**:
535
+ 1. Parse user-provided earnings data
536
+ 2. Organize by date, timing, and market cap
537
+ 3. Generate report using same template
538
+ 4. Note in report: "Data Source: Manual Entry"
539
+
540
+ ## Use Cases and Examples
541
+
542
+ ### Use Case 1: Weekly Review (Primary Use Case)
543
+
544
+ **User Request**: "Get next week's earnings calendar"
545
+
546
+ **Workflow**:
547
+ 1. Get current date (e.g., November 2, 2025)
548
+ 2. Calculate target week (November 3-9, 2025)
549
+ 3. Load FMP API guide
550
+ 4. Detect/request API key
551
+ 5. Fetch earnings data:
552
+ ```bash
553
+ python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 > earnings_data.json
554
+ ```
555
+ 6. Generate markdown report:
556
+ ```bash
557
+ python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md
558
+ ```
559
+ 7. Notify user with summary
560
+
561
+ **Complete One-Liner**:
562
+ ```bash
563
+ python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 > earnings_data.json && \
564
+ python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md
565
+ ```
566
+
567
+ ### Use Case 2: Focused on Specific Day
568
+
569
+ **User Request**: "What earnings are coming out Monday?"
570
+
571
+ **Workflow**:
572
+ 1. Get current date and identify next Monday (e.g., November 4, 2025)
573
+ 2. Fetch full week data (same as Use Case 1)
574
+ 3. Generate full report but highlight Monday section
575
+ 4. Provide verbal summary of Monday's earnings with emphasis
576
+
577
+ ### Use Case 3: Mega-Cap Focus
578
+
579
+ **User Request**: "Show me earnings for companies over $100B market cap next week"
580
+
581
+ **Workflow**:
582
+ 1. Fetch full earnings data (script already filters >$2B)
583
+ 2. Process and organize as normal
584
+ 3. When generating report, add a "Mega-Cap Focus" section at top
585
+ 4. Filter tables to show only companies >$100B
586
+ 5. Note: Still include full data in appendix for reference
587
+
588
+ ### Use Case 4: Sector-Specific
589
+
590
+ **User Request**: "What tech companies have earnings next week?"
591
+
592
+ **Workflow**:
593
+ 1. Fetch full earnings data
594
+ 2. Process and organize as normal
595
+ 3. Filter results by sector = "Technology"
596
+ 4. Generate report with focus on technology sector
597
+ 5. Note: Template structure remains the same; content is filtered
598
+
599
+ ## Troubleshooting
600
+
601
+ ### Problem: API key not working
602
+
603
+ **Solutions**:
604
+ - Verify API key is correct (copy-paste carefully)
605
+ - Check if API key is active (login to FMP dashboard)
606
+ - Ensure no extra spaces before/after key
607
+ - Try generating new API key from FMP dashboard
608
+
609
+ ### Problem: Script returns empty results
610
+
611
+ **Solutions**:
612
+ - Verify date range is in future (not past dates)
613
+ - Check date format is YYYY-MM-DD
614
+ - Try wider date range (e.g., 14 days instead of 7)
615
+ - Verify companies actually have announced earnings dates for that week
616
+
617
+ ### Problem: Missing major companies
618
+
619
+ **Solutions**:
620
+ - Company may not have announced earnings date yet
621
+ - Some companies announce dates very late (1-2 days before)
622
+ - Cross-reference with company investor relations website
623
+ - Market cap may have dropped below $2B threshold
624
+
625
+ ### Problem: Rate limit hit (429 error)
626
+
627
+ **Solutions**:
628
+ - Free tier: 250 calls/day
629
+ - Each weekly report uses ~3-5 API calls
630
+ - Check if other tools/scripts are using same API key
631
+ - Wait 24 hours for rate limit reset
632
+ - Consider upgrading to paid tier if needed frequently
633
+
634
+ ### Problem: Script execution error
635
+
636
+ **Solutions**:
637
+ - Verify Python 3 is installed: `python3 --version`
638
+ - Install requests library: `pip install requests`
639
+ - Check script has execute permissions: `chmod +x fetch_earnings_fmp.py`
640
+ - Run with python3 explicitly: `python3 fetch_earnings_fmp.py ...`
641
+
642
+ ## Best Practices
643
+
644
+ ### Do's
645
+ ✓ Always get current date first before any data retrieval
646
+ ✓ Use FMP API as primary source for reliability
647
+ ✓ Store API key in environment variable for CLI usage
648
+ ✓ Sort by market cap to prioritize high-impact companies
649
+ ✓ Group by date then timing for logical organization
650
+ ✓ Include summary statistics for quick overview
651
+ ✓ Credit data sources in report footer
652
+ ✓ Use clean markdown tables for readability
653
+ ✓ Provide timing reference section for clarity
654
+ ✓ Note data freshness and potential for changes
655
+ ✓ Include EPS and revenue estimates when available
656
+
657
+ ### Don'ts
658
+ ✗ Don't assume "next week" without calculating from current date
659
+ ✗ Don't omit timing information (BMO/AMC/TAS)
660
+ ✗ Don't mix date formats within report (stay consistent)
661
+ ✗ Don't include micro/small-cap unless specifically requested
662
+ ✗ Don't forget to sort by market cap within sections
663
+ ✗ Don't share API key in conversations or reports
664
+ ✗ Don't include earnings from current week or past dates
665
+ ✗ Don't generate report without quality assurance checks
666
+ ✗ Don't commit API keys to version control
667
+
668
+ ## Security Notes
669
+
670
+ ### API Key Security
671
+
672
+ **Important Reminders**:
673
+ 1. ✓ Use free tier API keys for testing
674
+ 2. ✓ Rotate keys regularly
675
+ 3. ✓ Don't share conversations containing API keys
676
+ 4. ✓ Set API key as environment variable for CLI
677
+ 5. ✓ Keys provided in chat are session-only (forgotten after session ends)
678
+ 6. ✗ Never commit API keys to Git repositories
679
+ 7. ✗ Never use production API keys with sensitive data access
680
+
681
+ **Best Practice**:
682
+ For QuantWise (CLI), always use environment variable:
683
+ ```bash
684
+ # Add to ~/.zshrc or ~/.bashrc
685
+ export FMP_API_KEY="your-key-here"
686
+ ```
687
+
688
+ For Claude Web, understand that:
689
+ - API key entered in chat is temporary
690
+ - Stored only in conversation context
691
+ - Not saved to disk
692
+ - Forgotten when session ends
693
+
694
+ ## Resources
695
+
696
+ **FMP API**:
697
+ - Main Documentation: https://site.financialmodelingprep.com/developer/docs
698
+ - Get API Key: https://site.financialmodelingprep.com/developer/docs
699
+ - Earnings Calendar API: https://site.financialmodelingprep.com/developer/docs/earnings-calendar-api
700
+ - Company Profile API: https://site.financialmodelingprep.com/developer/docs/companies-key-metrics-api
701
+ - Pricing/Rate Limits: https://site.financialmodelingprep.com/developer/docs/pricing
702
+
703
+ **Supplementary Sources** (for verification):
704
+ - Seeking Alpha: https://seekingalpha.com/earnings/earnings-calendar
705
+ - Yahoo Finance: https://finance.yahoo.com/calendar/earnings
706
+ - MarketWatch: https://www.marketwatch.com/tools/earnings-calendar
707
+
708
+ **Skill Resources**:
709
+ - FMP API Guide: `references/fmp_api_guide.md`
710
+ - Python Script: `scripts/fetch_earnings_fmp.py`
711
+ - Report Template: `assets/earnings_report_template.md`
712
+
713
+ ---
714
+
715
+ ## Summary
716
+
717
+ This skill provides a reliable, API-driven approach to generating weekly earnings calendars for US stocks. By using FMP API, it ensures structured, accurate data with additional insights like EPS/revenue estimates. The multi-environment support makes it flexible for CLI, Desktop, and Web usage, while the fallback mode ensures functionality even without API access.
718
+
719
+ **Key Workflow**: Date Calculation → API Key Setup → API Data Retrieval → Processing → Report Generation → QA → Delivery
720
+
721
+ **Output**: Clean, organized markdown report with earnings grouped by date/timing/market cap, including summary statistics and trading considerations.