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,662 @@
1
+ ---
2
+ name: breadth-chart-analyst
3
+ description: This 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. All analysis and output are conducted in English.
4
+ ---
5
+
6
+ # Breadth Chart Analyst
7
+
8
+ ## Overview
9
+
10
+ This skill enables specialized analysis of two complementary market breadth charts that provide strategic (medium to long-term) and tactical (short-term) market perspectives. Analyze breadth chart images to assess market health, identify trading signals based on backtested strategies, and develop positioning recommendations. All thinking and output are conducted exclusively in English.
11
+
12
+ ## Core Principles
13
+
14
+ 1. **Dual-Timeframe Analysis**: Combine strategic (Chart 1: 200MA Breadth) and tactical (Chart 2: Uptrend Ratio) perspectives
15
+ 2. **Backtested Strategy Focus**: Apply proven systematic strategies based on historical patterns
16
+ 3. **Objective Signal Identification**: Focus on clearly defined thresholds, transitions, and markers
17
+ 4. **English Communication**: Conduct all analysis and generate all reports in English
18
+ 5. **Actionable Recommendations**: Provide specific positioning guidance for different investor types
19
+
20
+ ## Chart Types and Purposes
21
+
22
+ ### Chart 1: S&P 500 Breadth Index (200-Day MA Based)
23
+
24
+ **Purpose**: Medium to long-term strategic market positioning
25
+
26
+ **Key Elements**:
27
+ - **8-Day MA (Orange Line)**: Short-term breadth trend, primary entry signal generator
28
+ - **200-Day MA (Green Line)**: Long-term breadth trend, primary exit signal generator
29
+ - **Red Dashed Line (73%)**: Average peak level - market overheating threshold
30
+ - **Blue Dashed Line (23%)**: Average 8MA trough level - extreme oversold, excellent buying opportunity
31
+ - **Triangles**:
32
+ - Purple ▼ = 8MA troughs (buy signal when reverses)
33
+ - Blue ▼ = 200MA troughs (major cycle lows)
34
+ - Red ▲ = 200MA peaks (sell signal)
35
+ - **Pink Background**: Downtrend periods
36
+
37
+ **Backtested Strategy**:
38
+ - **BUY**: When 8MA reverses from a trough (especially below 23%)
39
+ - **SELL**: When 200MA forms a peak (typically near/above 73%)
40
+ - **Result**: Historically high performance, avoids bear markets
41
+
42
+ ### Chart 2: US Stock Market - Uptrend Stock Ratio
43
+
44
+ **Purpose**: Short-term tactical timing and swing trading
45
+
46
+ **Key Elements**:
47
+ - **Uptrend Stock Definition**: Stocks above 200MA/50MA/20MA with positive 1-month performance
48
+ - **Green Regions**: Market in uptrend phase
49
+ - **Red Regions**: Market in downtrend phase
50
+ - **~10% Level (Lower Orange Dashed)**: Short-term bottom, extreme oversold
51
+ - **~40% Level (Upper Orange Dashed)**: Short-term top, market overheating
52
+
53
+ **Swing Trading Strategy**:
54
+ - **ENTER LONG**: When color changes from red to green (especially from <10-15% levels)
55
+ - **EXIT LONG**: When color changes from green to red (especially from >35-40% levels)
56
+ - **Timeframe**: Days to weeks
57
+
58
+ ## Analysis Workflow
59
+
60
+ ### Step 1: Receive Chart Images and Prepare Analysis
61
+
62
+ When the user provides breadth chart images for analysis:
63
+
64
+ 1. Confirm receipt of chart image(s)
65
+ 2. Identify which chart(s) are provided:
66
+ - Chart 1 only (200MA Breadth)
67
+ - Chart 2 only (Uptrend Ratio)
68
+ - Both charts
69
+ 3. Note any specific focus areas or questions from the user
70
+ 4. Proceed with systematic analysis
71
+
72
+ **Language Note**: All subsequent thinking, analysis, and output will be in English.
73
+
74
+ ### Step 2: Load Breadth Chart Methodology
75
+
76
+ Before beginning analysis, read the comprehensive breadth chart methodology:
77
+
78
+ ```
79
+ Read: references/breadth_chart_methodology.md
80
+ ```
81
+
82
+ This reference contains detailed guidance on:
83
+ - Chart 1: 200MA-based breadth index interpretation and strategy
84
+ - Chart 2: Uptrend stock ratio interpretation and strategy
85
+ - Signal identification and threshold significance
86
+ - Strategy rules and risk management
87
+ - Combining both charts for optimal decision-making
88
+ - Common pitfalls to avoid
89
+
90
+ ### Step 3: Examine Sample Charts (First Time or for Reference)
91
+
92
+ To understand the chart format and visual elements, review the sample charts included in this skill:
93
+
94
+ ```
95
+ View: assets/SP500_Breadth_Index_200MA_8MA.jpeg
96
+ View: assets/US_Stock_Market_Uptrend_Ratio.jpeg
97
+ ```
98
+
99
+ These samples demonstrate:
100
+ - Visual appearance and structure of each chart type
101
+ - How signals and thresholds are displayed
102
+ - Color coding and marker systems
103
+ - Historical patterns and cycles
104
+
105
+ ### Step 4: Analyze Chart 1 (200MA-Based Breadth Index)
106
+
107
+ If Chart 1 is provided, conduct systematic analysis:
108
+
109
+ #### 4.1 Extract Current Readings
110
+
111
+ From the chart image, identify:
112
+ - **Current 8MA level** (orange line): Specific percentage
113
+ - **Current 200MA level** (green line): Specific percentage
114
+ - **8MA slope**: Rising, falling, or flat
115
+ - **200MA slope**: Rising, falling, or flat
116
+ - **Distance from 73% threshold**: How close to overheating
117
+ - **Distance from 23% threshold**: How close to extreme oversold
118
+ - **Most recent date** visible on the chart
119
+
120
+ #### 4.1.5 CRITICAL: Latest Data Point Detailed Trend Analysis
121
+
122
+ **This step is MANDATORY to avoid misreading recent trend changes.**
123
+
124
+ **CRITICAL WARNING**: Charts can be deceptive. The MAJORITY of analysis errors occur because the analyst:
125
+ 1. Confuses the 8MA (orange) with the 200MA (green)
126
+ 2. Reads historical trends instead of the CURRENT rightmost data points
127
+ 3. Misidentifies which line is rising vs falling
128
+
129
+ **BEFORE analyzing trend direction, FIRST confirm line colors**:
130
+ - ✓ **8MA = ORANGE line** (fast-moving, more volatile)
131
+ - ✓ **200MA = GREEN line** (slow-moving, smoother)
132
+ - If unsure which is which, STOP and re-examine the chart legend/colors
133
+
134
+ Focus intensively on the **rightmost 3-5 data points** of the chart (most recent weeks):
135
+
136
+ **For 8MA (Orange Line) - Analyze the very latest trajectory**:
137
+ 1. **Identify the absolute latest position**: Where is the 8MA at the rightmost edge of the chart?
138
+ 2. **Trace back 3-5 data points** (approximately 3-5 weeks):
139
+ - What was the 8MA level 1 week ago?
140
+ - What was the 8MA level 2 weeks ago?
141
+ - What was the 8MA level 3 weeks ago?
142
+ 3. **Calculate the directional change**:
143
+ - Is the latest value HIGHER or LOWER than 1 week ago?
144
+ - Is the latest value HIGHER or LOWER than 2 weeks ago?
145
+ - What is the trend: consistently rising, consistently falling, or mixed?
146
+ 4. **Determine the CURRENT slope** (not historical slope):
147
+ - **Rising**: Latest data point is higher than previous 2-3 points AND shows upward curvature
148
+ - **Falling**: Latest data point is lower than previous 2-3 points AND shows downward curvature
149
+ - **Flat**: Latest data point is approximately equal to previous points (within 2-3%)
150
+
151
+ **Critical Questions to Answer**:
152
+ - [ ] Is the 8MA currently moving UP or DOWN at the rightmost edge?
153
+ - [ ] If there was a recent trough, has the 8MA **sustained** the upward move, or has it rolled over?
154
+ - [ ] Count consecutive periods of increase: How many consecutive periods has 8MA risen? (Need 2-3 for confirmation)
155
+ - [ ] Count consecutive periods of decrease: How many consecutive periods has 8MA fallen? (Indicates failed reversal if declining after trough)
156
+
157
+ **For 200MA (Green Line) - Analyze the very latest trajectory**:
158
+ 1. **Identify the absolute latest position**: Where is the 200MA at the rightmost edge?
159
+ 2. **Trace back 4-6 weeks**:
160
+ - What was the 200MA level 2 weeks ago?
161
+ - What was the 200MA level 4 weeks ago?
162
+ 3. **Determine the CURRENT slope**:
163
+ - Is it rising, falling, or flat in the most recent period?
164
+
165
+ **Failed Reversal Detection** (CRITICAL):
166
+ If an 8MA trough (purple ▼) was recently identified:
167
+ - [ ] Did the 8MA rise for only 1-2 periods and then turn back down?
168
+ - [ ] Did the 8MA fail to reach 60% before turning down?
169
+ - [ ] Is the 8MA currently declining again after the bounce?
170
+ - **If YES to any**: This is a **FAILED REVERSAL** - DO NOT ENTER, signal is INVALID
171
+
172
+ **Example Analysis Format**:
173
+ ```
174
+ Latest 8MA Data Points (rightmost to left):
175
+ - Current (Week 0): 48%
176
+ - 1 week ago: 52%
177
+ - 2 weeks ago: 55%
178
+ - 3 weeks ago: 50%
179
+
180
+ Analysis: 8MA is FALLING. It rose from 50% to 55% (weeks 3-2), but has since declined to 48%.
181
+ This shows a failed reversal pattern - bounce was temporary, downtrend has resumed.
182
+ SLOPE: Falling (not rising!)
183
+ ```
184
+
185
+ **MANDATORY CROSS-CHECK** (to catch misreadings):
186
+ After determining the trend, ask yourself:
187
+ - [ ] "If I claimed 8MA is RISING, but it's actually been FALLING for weeks, what would that look like?"
188
+ - Answer: The rightmost data points would be LOWER than previous points (confirming FALLING)
189
+ - [ ] "Does my analysis match the visual slope of the orange line at the rightmost edge?"
190
+ - If orange line visually slopes DOWN at the right edge → It's FALLING
191
+ - If orange line visually slopes UP at the right edge → It's RISING
192
+ - [ ] "Is there any pink background shading (downtrend) near the rightmost edge?"
193
+ - If YES → This confirms downtrend conditions, 8MA is likely FALLING
194
+ - [ ] "Are the 8MA and 200MA converging (getting closer) or diverging?"
195
+ - Converging from below → Potential death cross forming → BEARISH
196
+ - Converging from above → Potential golden cross forming → BULLISH
197
+
198
+ #### 4.2 Identify Signal Markers
199
+
200
+ Look for and document:
201
+ - **Most recent 8MA trough (purple ▼)**: Date and level
202
+ - **Most recent 200MA trough (blue ▼)**: Date and level (if visible in timeframe)
203
+ - **Most recent 200MA peak (red ▲)**: Date and level
204
+ - **Days/weeks since most recent signals**
205
+ - **Any pink background shading** (downtrend periods)
206
+
207
+ #### 4.3 Assess Market Regime
208
+
209
+ Based on readings and patterns, classify the current market as:
210
+ - Healthy Bull Market
211
+ - Overheated Bull Market
212
+ - Market Top/Distribution Phase
213
+ - Bear Market/Correction
214
+ - Capitulation/Extreme Oversold
215
+ - Early Recovery
216
+
217
+ Support the classification with specific evidence from the chart.
218
+
219
+ #### 4.4 Determine Strategy Position
220
+
221
+ Apply the backtested strategy rules with STRICT confirmation requirements:
222
+
223
+ **Check for BUY signal** (ALL criteria must be met):
224
+ 1. ✓ **Trough Formation**: Has 8MA formed a clear trough (purple ▼)?
225
+ 2. ✓ **Reversal Initiated**: Has 8MA begun to move upward from the trough?
226
+ 3. ✓ **Confirmation Achieved**: Has 8MA risen for 2-3 CONSECUTIVE periods after the trough?
227
+ 4. ✓ **No Recent Reversal**: Based on Step 4.1.5 analysis, is 8MA CURRENTLY rising (not falling)?
228
+ 5. ✓ **Sustained Move**: Has 8MA maintained the upward trajectory without rolling over?
229
+ 6. ⭐ **Optional but Strong**: Is 8MA below or near 23% (extreme oversold) at trough?
230
+
231
+ **BUY Signal Status**:
232
+ - **CONFIRMED**: All 5 required criteria met → ENTER LONG
233
+ - **DEVELOPING**: Trough formed, but < 2-3 consecutive increases → WAIT, MONITOR
234
+ - **FAILED**: Trough formed, but 8MA has rolled over and is declining → DO NOT ENTER, WAIT FOR NEXT TROUGH
235
+ - **NO SIGNAL**: No trough formed → WAIT
236
+
237
+ **Check for SELL signal**:
238
+ - Has 200MA formed a peak (red ▲)?
239
+ - Is 200MA near or above 73%?
240
+ - Is this an active sell signal requiring position exit?
241
+
242
+ **Current position determination**:
243
+ - **Long**: BUY signal confirmed, position entered and held
244
+ - **Preparing to Enter**: BUY signal developing (trough formed, watching for confirmation)
245
+ - **WAIT / Flat**: No valid signal OR failed reversal detected
246
+ - **Preparing to Exit**: SELL signal developing (200MA approaching peak)
247
+
248
+ #### 4.5 Develop Scenarios
249
+
250
+ Create 2-3 scenarios with probability estimates:
251
+ - Base case scenario (highest probability)
252
+ - Alternative scenario(s)
253
+ - Each scenario includes: description, supporting factors, strategy implications, key levels
254
+
255
+ ### Step 5: Analyze Chart 2 (Uptrend Stock Ratio)
256
+
257
+ If Chart 2 is provided, conduct systematic analysis:
258
+
259
+ #### 5.1 Extract Current Readings
260
+
261
+ From the chart image, identify:
262
+ - **Current uptrend stock ratio**: Specific percentage
263
+ - **Current color**: Green (uptrend) or Red (downtrend)
264
+ - **Ratio slope**: Rising, falling, or flat
265
+ - **Distance from 10% threshold**: How close to extreme oversold
266
+ - **Distance from 40% threshold**: How close to overbought
267
+ - **Most recent date** visible on the chart
268
+
269
+ #### 5.2 Identify Trend Transitions
270
+
271
+ Look for and document:
272
+ - **Most recent red-to-green transition**: Date and ratio level at transition
273
+ - **Most recent green-to-red transition**: Date and ratio level at transition
274
+ - **Duration of current color phase**: How long in current trend
275
+ - **Days/weeks since most recent transition**
276
+
277
+ #### 5.3 Assess Market Condition
278
+
279
+ Based on current ratio and color, classify as:
280
+ - Extreme Oversold (<10%)
281
+ - Moderate Bearish (10-20%, red)
282
+ - Neutral/Transitional (20-30%)
283
+ - Moderate Bullish (30-37%, green)
284
+ - Extreme Overbought (>37-40%)
285
+
286
+ Support the classification with specific evidence from the chart.
287
+
288
+ #### 5.4 Determine Trading Position
289
+
290
+ Apply the swing trading strategy rules:
291
+
292
+ **Check for ENTER LONG signal**:
293
+ - Has color changed from red to green?
294
+ - Was the transition from an oversold level (<15%)?
295
+ - Is the transition confirmed (2-3 days of green)?
296
+
297
+ **Check for EXIT LONG signal**:
298
+ - Has color changed from green to red?
299
+ - Was the transition from an overbought level (>35%)?
300
+ - Is momentum weakening?
301
+
302
+ **Current position**: Long, Flat, Preparing to Enter, or Preparing to Exit
303
+
304
+ #### 5.5 Develop Scenarios
305
+
306
+ Create 2-3 scenarios with probability estimates:
307
+ - Base case scenario (highest probability)
308
+ - Alternative scenario(s)
309
+ - Each scenario includes: description, supporting factors, trading implications, key levels
310
+
311
+ ### Step 6: Combined Analysis (When Both Charts Provided)
312
+
313
+ If both charts are provided, integrate the strategic and tactical perspectives:
314
+
315
+ #### 6.1 Alignment Assessment
316
+
317
+ Create a positioning matrix:
318
+ - **Chart 1 (Strategic)**: Bullish / Bearish / Neutral + signal status
319
+ - **Chart 2 (Tactical)**: Bullish / Bearish / Neutral + signal status
320
+ - **Combined Implication**: How do they align or conflict?
321
+
322
+ #### 6.2 Scenario Classification
323
+
324
+ Determine which of the four scenarios applies:
325
+
326
+ **Scenario 1: Both Bullish**
327
+ - Chart 1: 8MA rising, 200MA not yet peaked
328
+ - Chart 2: Green (uptrend), ratio rising from oversold
329
+ - Implication: Maximum bullish stance, aggressive positioning
330
+
331
+ **Scenario 2: Strategic Bullish, Tactical Bearish**
332
+ - Chart 1: 8MA rising, 200MA not yet peaked
333
+ - Chart 2: Red (downtrend), ratio falling or elevated
334
+ - Implication: Hold core long positions, wait for tactical entry
335
+
336
+ **Scenario 3: Strategic Bearish, Tactical Bullish**
337
+ - Chart 1: 200MA peaked or declining
338
+ - Chart 2: Green (uptrend), ratio rising
339
+ - Implication: Short-term tactical trades only, tight stops
340
+
341
+ **Scenario 4: Both Bearish**
342
+ - Chart 1: Both MAs declining
343
+ - Chart 2: Red (downtrend), ratio falling
344
+ - Implication: Defensive positioning, cash or shorts
345
+
346
+ #### 6.3 Unified Recommendation
347
+
348
+ Provide integrated positioning guidance for:
349
+ - **Long-term investors** (based primarily on Chart 1)
350
+ - **Swing traders** (based primarily on Chart 2)
351
+ - **Active tactical traders** (based on combination)
352
+
353
+ Address any conflicts between charts and explain resolution.
354
+
355
+ ### Step 7: Generate Analysis Report in English
356
+
357
+ Create a comprehensive markdown report using the template structure:
358
+
359
+ ```
360
+ Read and use as template: assets/breadth_analysis_template.md
361
+ ```
362
+
363
+ **IMPORTANT**: All analysis and output must be in English.
364
+
365
+ The report structure varies based on which chart(s) are analyzed:
366
+
367
+ **If Chart 1 only**:
368
+ - Executive Summary
369
+ - Chart 1 full analysis sections
370
+ - Summary and Conclusion
371
+ - Omit Chart 2 and Combined Analysis sections
372
+
373
+ **If Chart 2 only**:
374
+ - Executive Summary
375
+ - Chart 2 full analysis sections
376
+ - Summary and Conclusion
377
+ - Omit Chart 1 and Combined Analysis sections
378
+
379
+ **If Both Charts**:
380
+ - Executive Summary
381
+ - Chart 1 full analysis sections
382
+ - Chart 2 full analysis sections
383
+ - Combined Analysis section (mandatory)
384
+ - Summary and Conclusion
385
+
386
+ **File Naming Convention**: Save each analysis as:
387
+ - Chart 1 only: `breadth_200ma_analysis_[YYYY-MM-DD].md`
388
+ - Chart 2 only: `uptrend_ratio_analysis_[YYYY-MM-DD].md`
389
+ - Both charts: `breadth_combined_analysis_[YYYY-MM-DD].md`
390
+
391
+ ### Step 8: Quality Assurance
392
+
393
+ Before finalizing the report, verify:
394
+
395
+ 1. ✓ **Language**: All content is in English (thinking and output)
396
+ 2. ✓ **Line Color Verification**: Explicitly confirmed 8MA = ORANGE, 200MA = GREEN before trend analysis
397
+ 3. ✓ **Latest Data Trend Analysis**: Step 4.1.5 was thoroughly completed - the most recent 3-5 data points were analyzed to determine CURRENT trend direction
398
+ 4. ✓ **Trend Direction Accuracy**: The stated 8MA slope (Rising/Falling/Flat) accurately reflects the RIGHTMOST data points, not historical movement
399
+ 5. ✓ **Cross-Check Completed**: MANDATORY CROSS-CHECK questions were answered to confirm trend direction matches visual slope
400
+ 6. ✓ **Death/Golden Cross Check**: If 8MA and 200MA are converging, explicitly identified whether death cross or golden cross is forming
401
+ 7. ✓ **Failed Reversal Check**: If a trough was identified, explicitly verified whether the reversal sustained or failed by analyzing latest trajectory
402
+ 8. ✓ **Specific Values**: All readings include specific percentages/levels, not vague descriptions
403
+ 9. ✓ **Signal Status**: Clear identification of active signals (CONFIRMED BUY / DEVELOPING / FAILED / SELL / WAIT)
404
+ 10. ✓ **Strategy Alignment**: Recommendations align with backtested strategies and confirmation requirements
405
+ 11. ✓ **Probabilities**: Scenario probabilities sum to 100%
406
+ 12. ✓ **Actionable**: Clear positioning recommendations for different trader types
407
+ 13. ✓ **Context**: Historical comparison and reference to similar past situations
408
+ 14. ✓ **Risk Management**: Invalidation levels and risk factors clearly stated
409
+
410
+ **FINAL SANITY CHECK**:
411
+ - [ ] If report claims "BUY signal" or "8MA rising", confirm this doesn't contradict user's chart showing death cross or downtrend
412
+ - [ ] If report claims "bullish", confirm there's no pink background shading or death cross visible
413
+ - [ ] If unsure about ANY trend direction, explicitly state uncertainty rather than guessing
414
+
415
+ ## Quality Standards
416
+
417
+ ### Objectivity Requirements
418
+
419
+ - Base all analysis strictly on observable chart data
420
+ - Do not incorporate external information (news, fundamentals) unless specifically relevant
421
+ - Use precise technical terminology consistently
422
+ - Distinguish clearly between factual observations and probabilistic forecasts
423
+ - Acknowledge uncertainty when signals are ambiguous
424
+
425
+ ### Completeness Requirements
426
+
427
+ - Address all relevant sections of the analysis template
428
+ - Provide specific numerical values for all key metrics
429
+ - Justify probability estimates with technical factors
430
+ - Include invalidation levels for each scenario
431
+ - Compare current readings to historical patterns visible on the charts
432
+
433
+ ### Clarity Requirements
434
+
435
+ - Write in professional, analytical English
436
+ - Use clear section headings and structure
437
+ - Present information in tables where appropriate
438
+ - Make recommendations specific and actionable
439
+ - Avoid jargon without explanation
440
+
441
+ ### Strategy Adherence Requirements
442
+
443
+ - Apply backtested strategy rules correctly
444
+ - Distinguish between strategic (Chart 1) and tactical (Chart 2) signals
445
+ - Provide clear position status (Long/Flat/Entering/Exiting)
446
+ - Include specific entry/exit levels when applicable
447
+ - Address risk management (stop losses, position sizing)
448
+
449
+ ## Example Usage Scenarios
450
+
451
+ ### Example 1: Strategic Breadth Analysis (Chart 1 Only)
452
+
453
+ ```
454
+ User: "Please analyze this S&P 500 breadth chart and tell me where we are in the market cycle."
455
+ [Provides Chart 1 image: 200MA Breadth Index]
456
+
457
+ Breadth Analyst (thinking in English):
458
+ 1. Confirms receipt of Chart 1 (200MA-based breadth index)
459
+ 2. Reads breadth_chart_methodology.md for Chart 1 guidance
460
+ 3. Views sample chart for format reference
461
+ 4. Extracts current readings:
462
+ - 8MA: 68%
463
+ - 200MA: 75%
464
+ - 8MA slope: Flat to slightly declining
465
+ - 200MA slope: Rising but may be forming peak
466
+ - Distance from 73% threshold: +2% (above threshold = overheated)
467
+ 5. Identifies signals:
468
+ - Most recent 8MA trough: 3 months ago at 25%
469
+ - Most recent 200MA peak: None visible yet, but 200MA at 75% suggests potential peak forming
470
+ 6. Assesses regime: Overheated Bull Market approaching Distribution Phase
471
+ 7. Determines strategy position: Long position should prepare to exit; watch for 200MA peak confirmation
472
+ 8. Develops scenarios:
473
+ - Base Case (55%): 200MA forms peak in next 1-2 weeks, sell signal activates
474
+ - Alternative (35%): Further consolidation at elevated levels before eventual peak
475
+ - Bear Case (10%): Immediate rollover without clear peak formation
476
+ 9. Generates comprehensive report in English: breadth_200ma_analysis_2025-11-02.md
477
+ ```
478
+
479
+ ### Example 2: Tactical Uptrend Ratio Analysis (Chart 2 Only)
480
+
481
+ ```
482
+ User: "Should I be buying or selling here? Analyze this uptrend ratio chart."
483
+ [Provides Chart 2 image: Uptrend Stock Ratio]
484
+
485
+ Breadth Analyst (thinking in English):
486
+ 1. Confirms receipt of Chart 2 (Uptrend stock ratio)
487
+ 2. Reads breadth_chart_methodology.md for Chart 2 guidance
488
+ 3. Views sample chart for format reference
489
+ 4. Extracts current readings:
490
+ - Current ratio: 12%
491
+ - Current color: Green (uptrend)
492
+ - Ratio slope: Rising sharply
493
+ - Just transitioned from red to green 3 days ago at 11%
494
+ 5. Identifies transitions:
495
+ - Most recent red-to-green: 3 days ago at 11% (from extreme oversold)
496
+ - Prior green-to-red: 2 weeks ago at 28%
497
+ 6. Assesses condition: Early in new uptrend from extreme oversold
498
+ 7. Determines trading position: ENTER LONG signal active, excellent risk/reward
499
+ 8. Develops scenarios:
500
+ - Base Case (65%): Ratio continues higher to 30-35% over next 2-3 weeks
501
+ - Alternative (25%): Choppy advance, consolidates around 20% before next leg
502
+ - Bear Case (10%): False breakout, returns to red quickly
503
+ 9. Generates tactical report in English: uptrend_ratio_analysis_2025-11-02.md
504
+ ```
505
+
506
+ ### Example 3: Combined Strategic + Tactical Analysis (Both Charts)
507
+
508
+ ```
509
+ User: "Analyze both of these breadth charts and give me your overall market view."
510
+ [Provides both Chart 1 and Chart 2 images]
511
+
512
+ Breadth Analyst (thinking in English):
513
+ 1. Confirms receipt of both charts
514
+ 2. Reads full breadth_chart_methodology.md
515
+ 3. Views both sample charts
516
+ 4. Analyzes Chart 1:
517
+ - 8MA: 55%, rising from trough 2 weeks ago at 30%
518
+ - 200MA: 60%, still rising
519
+ - Regime: Early Recovery to Healthy Bull Market
520
+ - Strategy: Long position, hold
521
+ 5. Analyzes Chart 2:
522
+ - Ratio: 22%, green (uptrend)
523
+ - Transitioned red-to-green 10 days ago from 14%
524
+ - Condition: Moderate Bullish, building momentum
525
+ - Trading: Hold long, entered on transition
526
+ 6. Combined assessment:
527
+ - Scenario 1: Both Bullish ✓
528
+ - Strategic: Bullish (8MA reversal confirmed)
529
+ - Tactical: Bullish (uptrend established from oversold)
530
+ - Alignment: Strong alignment = Maximum conviction
531
+ 7. Unified recommendation:
532
+ - Long-term investors: Aggressive long positioning, core holdings
533
+ - Swing traders: Hold longs entered on red-to-green, target 35%+
534
+ - Active traders: Full position, favorable environment for longs
535
+ 8. Develops integrated scenarios with probabilities
536
+ 9. Generates comprehensive combined report in English: breadth_combined_analysis_2025-11-02.md
537
+ ```
538
+
539
+ ## Common Analysis Errors and How to Avoid Them
540
+
541
+ ### Error 1: Confusing 8MA with 200MA
542
+
543
+ **Symptom**: Report claims 8MA is rising when it's actually the 200MA that's rising
544
+
545
+ **Prevention**:
546
+ - ALWAYS verify: 8MA = ORANGE, 200MA = GREEN
547
+ - Check line volatility: 8MA moves faster with more volatility
548
+ - If unsure, state: "Based on line color, I identify the [orange/green] line as [8MA/200MA]"
549
+
550
+ ### Error 2: Reading Historical Trends Instead of Current Direction
551
+
552
+ **Symptom**: Report describes what happened 1-2 months ago, not what's happening NOW
553
+
554
+ **Prevention**:
555
+ - Focus ONLY on rightmost 3-5 data points
556
+ - Explicitly write: "At the CURRENT rightmost edge, 8MA is at X% and is [rising/falling]"
557
+ - Ignore what happened in September if we're analyzing November
558
+
559
+ ### Error 3: Missing Death Cross or Golden Cross Formation
560
+
561
+ **Symptom**: Report is bullish when 8MA and 200MA are about to death cross (bearish)
562
+
563
+ **Prevention**:
564
+ - ALWAYS check: "Are 8MA and 200MA getting closer (converging) or further apart (diverging)?"
565
+ - If converging with 8MA above 200MA → Potential death cross → BEARISH
566
+ - If converging with 8MA below 200MA → Potential golden cross → BULLISH
567
+ - Explicitly state: "8MA is currently [above/below] 200MA, and they are [converging/diverging]"
568
+
569
+ ### Error 4: Ignoring Pink Background Shading
570
+
571
+ **Symptom**: Report claims bullish setup when chart shows pink downtrend background
572
+
573
+ **Prevention**:
574
+ - Check for pink shading at the rightmost edge
575
+ - Pink background = Downtrend period = Bearish conditions
576
+ - If pink shading present, report MUST acknowledge bearish conditions
577
+
578
+ ### Error 5: Claiming Reversal Too Early
579
+
580
+ **Symptom**: Report says "BUY signal confirmed" after only 1 week of increase
581
+
582
+ **Prevention**:
583
+ - Require 2-3 CONSECUTIVE weeks of 8MA increase for confirmation
584
+ - If only 1 week: Signal is "DEVELOPING", not "CONFIRMED"
585
+ - If 8MA rises then falls again: Signal is "FAILED", not valid
586
+
587
+ ## Resources
588
+
589
+ This skill includes the following bundled resources:
590
+
591
+ ### references/breadth_chart_methodology.md
592
+
593
+ Comprehensive methodology covering:
594
+ - **Chart 1 (200MA Breadth)**: Components, interpretation, market regimes, backtested strategy, analysis checklist
595
+ - **Chart 2 (Uptrend Ratio)**: Components, interpretation, market conditions, swing trading strategy, analysis checklist
596
+ - **Combined Analysis**: Alignment scenarios, integrated decision-making
597
+ - **Common Pitfalls**: Mistakes to avoid for each chart type
598
+
599
+ **Usage**: Read this file before conducting any breadth chart analysis to ensure systematic, accurate interpretation.
600
+
601
+ ### assets/breadth_analysis_template.md
602
+
603
+ Structured template for breadth analysis reports in English:
604
+ - Executive Summary
605
+ - Chart 1 analysis sections (if applicable)
606
+ - Chart 2 analysis sections (if applicable)
607
+ - Combined Analysis section (when both charts analyzed)
608
+ - Summary and Conclusion
609
+ - All sections include tables, checklists, and structured formats
610
+
611
+ **Usage**: Use this template structure for every analysis report. Adapt sections based on which chart(s) are being analyzed.
612
+
613
+ ### assets/SP500_Breadth_Index_200MA_8MA.jpeg
614
+
615
+ Sample Chart 1 image showing:
616
+ - 8-day MA (orange) and 200-day MA (green) lines
617
+ - Threshold levels (73% red dashed, 23% blue dashed)
618
+ - Signal markers (triangles for troughs and peaks)
619
+ - Pink background downtrend shading
620
+ - Historical patterns from 2016-2025
621
+
622
+ **Usage**: Reference this sample to understand Chart 1 visual format and identify similar patterns in user-provided charts.
623
+
624
+ ### assets/US_Stock_Market_Uptrend_Ratio.jpeg
625
+
626
+ Sample Chart 2 image showing:
627
+ - Green and red color-coded trend phases
628
+ - Uptrend ratio percentage on y-axis
629
+ - Threshold levels (~10% and ~40% orange dashed lines)
630
+ - Short-term momentum patterns
631
+ - Historical patterns from 2023-2025
632
+
633
+ **Usage**: Reference this sample to understand Chart 2 visual format and identify similar patterns in user-provided charts.
634
+
635
+ ## Special Notes
636
+
637
+ ### Language Requirement
638
+
639
+ **CRITICAL**: All analysis, thinking, and output MUST be in English. This includes:
640
+ - Internal analysis and reasoning
641
+ - Report generation
642
+ - Tables and data presentation
643
+ - Scenario descriptions
644
+ - Recommendations
645
+
646
+ Do not translate or use any other language. The user expects English output exclusively.
647
+
648
+ ### Strategy Focus
649
+
650
+ This skill emphasizes backtested, systematic strategies rather than discretionary interpretation. Always:
651
+ - Apply the strategy rules as documented
652
+ - Reference historical performance patterns
653
+ - Provide specific entry/exit criteria
654
+ - Include risk management guidance
655
+
656
+ ### Practical Application
657
+
658
+ The goal is actionable intelligence. Every analysis should answer:
659
+ - **Strategic**: Should I be long, flat, or short the market over the medium term?
660
+ - **Tactical**: Should I enter or exit positions in the short term?
661
+ - **Timing**: When should I act, and at what levels?
662
+ - **Risk**: What would invalidate this view, and where should stops be?