@v587d/capital-generation 2.7.12 → 2.8.1

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 (157) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +10 -6
  3. package/THIRD_PARTY_NOTICES.md +6 -1
  4. package/chart-ui/package.json +1 -1
  5. package/config/index.js +1 -0
  6. package/config/package.json +1 -1
  7. package/lib/agents/bash-guard.d.ts +22 -17
  8. package/lib/agents/bash-guard.js +32 -28
  9. package/lib/agents/root-tool-policy.d.ts +29 -3
  10. package/lib/agents/root-tool-policy.js +100 -14
  11. package/lib/data-collector/dataset-tools.js +9 -0
  12. package/lib/data-collector/tools.js +17 -5
  13. package/lib/index.d.ts +4 -0
  14. package/lib/index.js +27 -8
  15. package/lib/sources/ftshare-rest.d.ts +54 -0
  16. package/lib/sources/ftshare-rest.js +2363 -0
  17. package/lib/time/tools.js +24 -0
  18. package/lib/web-retriever/local-fetch.d.ts +1 -1
  19. package/lib/web-retriever/local-fetch.js +1 -1
  20. package/lib/web-retriever/wind-client.d.ts +1 -1
  21. package/lib/web-retriever/wind-client.js +1 -1
  22. package/package.json +1 -1
  23. package/preset/capital-generation/README.md +22 -15
  24. package/preset/capital-generation/agent.patch.yml +14 -1
  25. package/preset/capital-generation/skills/capital-data-protocol/SKILL.md +4 -1
  26. package/selected-skills/InvestSkill/UPSTREAM.md +17 -0
  27. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/10k-digest/SKILL.md +10 -296
  28. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/10k-digest/references/10-retrieving-the-filing.md +130 -0
  29. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/10k-digest/references/11-key-metrics-table.md +129 -0
  30. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/10k-digest/references/12-language-mode.md +60 -0
  31. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/bear-case/SKILL.md +5 -3
  32. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/catalyst-calendar/SKILL.md +10 -284
  33. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/catalyst-calendar/references/10-persona.md +113 -0
  34. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/catalyst-calendar/references/11-section-c-company-specific.md +108 -0
  35. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/catalyst-calendar/references/12-section-f-90-day.md +85 -0
  36. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/competitor-analysis/SKILL.md +11 -433
  37. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/competitor-analysis/references/10-overview.md +82 -0
  38. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/competitor-analysis/references/11-porter-s-five-forces.md +137 -0
  39. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/competitor-analysis/references/12-innovation-disruption-assessment.md +112 -0
  40. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/competitor-analysis/references/13-input-formats.md +130 -0
  41. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/dividend-analysis/SKILL.md +12 -639
  42. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/dividend-analysis/references/10-analysis-framework.md +138 -0
  43. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/dividend-analysis/references/11-dividend-history-and-reliability.md +131 -0
  44. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/dividend-analysis/references/12-share-buyback-analysis.md +125 -0
  45. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/dividend-analysis/references/13-fcf-deployment-scorecard.md +133 -0
  46. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/dividend-analysis/references/14-output.md +149 -0
  47. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-call-analysis/SKILL.md +10 -411
  48. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-call-analysis/references/10-analysis-framework.md +194 -0
  49. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-call-analysis/references/11-data-sources.md +196 -0
  50. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-call-analysis/references/12-thesis-invalidation.md +43 -0
  51. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-preview/SKILL.md +11 -234
  52. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-preview/references/10-overview.md +86 -0
  53. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-preview/references/11-phase-4-the-implied.md +60 -0
  54. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-preview/references/12-output-format.md +83 -0
  55. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/earnings-preview/references/13-standard-signal-output.md +34 -0
  56. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/economics-analysis/SKILL.md +10 -304
  57. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/economics-analysis/references/10-key-economic-indicators.md +98 -0
  58. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/economics-analysis/references/11-credit-market-indicators.md +114 -0
  59. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/economics-analysis/references/12-recession-probability-scoring.md +114 -0
  60. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/etf-analysis/SKILL.md +11 -236
  61. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/etf-analysis/references/10-overview.md +83 -0
  62. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/etf-analysis/references/11-phase-5-overlap-with.md +69 -0
  63. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/etf-analysis/references/12-output-format.md +79 -0
  64. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/etf-analysis/references/13-standard-signal-output.md +34 -0
  65. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/fact-check/SKILL.md +11 -243
  66. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/fact-check/references/10-overview.md +61 -0
  67. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/fact-check/references/11-phase-2-source-hierarchy.md +54 -0
  68. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/fact-check/references/12-phase-5-consistency.md +90 -0
  69. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/fact-check/references/13-notes.md +68 -0
  70. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/financial-report-analyst/SKILL.md +11 -499
  71. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/financial-report-analyst/references/10-overview.md +143 -0
  72. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/financial-report-analyst/references/11-phase-3-financial-statement.md +167 -0
  73. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/financial-report-analyst/references/12-phase-6-management-tone.md +176 -0
  74. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/financial-report-analyst/references/13-thesis-invalidation.md +43 -0
  75. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/industry-map/SKILL.md +10 -291
  76. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/industry-map/references/10-overview.md +117 -0
  77. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/industry-map/references/11-step-3-position-locator.md +112 -0
  78. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/industry-map/references/12-visualization-support.md +84 -0
  79. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/insider-trading/SKILL.md +10 -457
  80. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/insider-trading/references/10-analysis-framework.md +185 -0
  81. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/insider-trading/references/11-pattern-recognition.md +175 -0
  82. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/insider-trading/references/12-interpretation-guidelines.md +120 -0
  83. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/institutional-ownership/SKILL.md +11 -503
  84. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/institutional-ownership/references/10-analysis-framework.md +132 -0
  85. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/institutional-ownership/references/11-ownership-concentration-analysis.md +166 -0
  86. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/institutional-ownership/references/12-red-flags-warning-signs.md +192 -0
  87. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/institutional-ownership/references/13-thesis-invalidation.md +43 -0
  88. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/learning-coach/SKILL.md +11 -264
  89. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/learning-coach/references/10-overview.md +63 -0
  90. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/learning-coach/references/11-phase-2-explanation-card.md +108 -0
  91. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/learning-coach/references/12-output-format.md +88 -0
  92. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/learning-coach/references/13-standard-signal-output.md +34 -0
  93. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/options-analysis/SKILL.md +11 -448
  94. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/options-analysis/references/10-analysis-framework.md +109 -0
  95. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/options-analysis/references/11-implied-volatility-iv-analysis.md +102 -0
  96. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/options-analysis/references/12-earnings-play-analysis.md +109 -0
  97. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/options-analysis/references/13-data-sources.md +159 -0
  98. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/portfolio-review/SKILL.md +11 -435
  99. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/portfolio-review/references/10-phase-1-portfolio-snapshot.md +124 -0
  100. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/portfolio-review/references/11-phase-6-correlation-diversification.md +124 -0
  101. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/portfolio-review/references/12-phase-9-rebalancing-decision.md +153 -0
  102. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/portfolio-review/references/13-data-verification.md +62 -0
  103. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/position-ladder/SKILL.md +11 -372
  104. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/position-ladder/references/10-overview.md +102 -0
  105. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/position-ladder/references/11-phase-3-the-trim.md +88 -0
  106. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/position-ladder/references/12-phase-6-the-thesis.md +105 -0
  107. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/position-ladder/references/13-input-formats.md +105 -0
  108. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/risk-stress-test/SKILL.md +10 -250
  109. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/risk-stress-test/references/10-overview.md +92 -0
  110. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/risk-stress-test/references/11-phase-4-correlation-spike.md +116 -0
  111. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/risk-stress-test/references/12-notes.md +65 -0
  112. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/sector-analysis/SKILL.md +11 -381
  113. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/sector-analysis/references/10-sector-overview.md +123 -0
  114. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/sector-analysis/references/11-sector-correlation-matrix.md +90 -0
  115. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/sector-analysis/references/12-peer-benchmarking-within-sector.md +92 -0
  116. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/sector-analysis/references/13-consumer-staples.md +105 -0
  117. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/short-interest/SKILL.md +10 -352
  118. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/short-interest/references/10-analysis-framework.md +110 -0
  119. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/short-interest/references/11-bearish-thesis-evaluation.md +118 -0
  120. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/short-interest/references/12-data-sources.md +148 -0
  121. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/SKILL.md +16 -603
  122. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/references/10-analysis-components.md +122 -0
  123. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/references/11-dupont-decomposition.md +121 -0
  124. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/references/12-quality-scoring-framework.md +115 -0
  125. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/references/13-dcf-framework.md +113 -0
  126. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/references/14-analyst-consensus-tracking.md +127 -0
  127. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-eval/references/15-thesis-invalidation.md +43 -0
  128. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-screener/SKILL.md +5 -3
  129. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-valuation/SKILL.md +12 -595
  130. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-valuation/references/10-overview.md +133 -0
  131. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-valuation/references/11-method-2-comparable-company.md +127 -0
  132. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-valuation/references/12-football-field-summary-valuation.md +140 -0
  133. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-valuation/references/13-terminal-value-two-methods.md +121 -0
  134. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/stock-valuation/references/14-when-dcf-is.md +110 -0
  135. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/tax-lens/SKILL.md +12 -304
  136. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/tax-lens/references/10-overview.md +73 -0
  137. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/tax-lens/references/11-phase-3-dividends-qualified.md +67 -0
  138. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/tax-lens/references/12-framework-non-us-module.md +61 -0
  139. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/tax-lens/references/13-scoring-tax-efficiency-score.md +83 -0
  140. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/tax-lens/references/14-thesis-invalidation.md +55 -0
  141. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/SKILL.md +16 -612
  142. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/references/10-chart-pattern-analysis.md +172 -0
  143. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/references/11-chart-visualization-support.md +181 -0
  144. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/references/12-multi-timeframe-analysis-mtf.md +95 -0
  145. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/references/13-advanced-indicators-ichimoku-cloud.md +61 -0
  146. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/references/14-options-flow-integration.md +95 -0
  147. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/technical-analysis/references/15-thesis-invalidation.md +45 -0
  148. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/thesis-tracker/SKILL.md +10 -274
  149. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/thesis-tracker/references/10-overview.md +94 -0
  150. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/thesis-tracker/references/11-phase-5-the-pre.md +113 -0
  151. package/selected-skills/InvestSkill/plugins/us-stock-analysis/skills/thesis-tracker/references/12-example.md +90 -0
  152. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-catalyst-calendar/SKILL.md +5 -3
  153. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-idea-generation/SKILL.md +5 -3
  154. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-sector-overview/SKILL.md +5 -3
  155. package/selected-skills/investment-skills/skills/buffett-investment-framework/SKILL.md +1 -1
  156. package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/SKILL.md +5 -3
  157. package/watchlist/package.json +1 -1
@@ -0,0 +1,116 @@
1
+ # 2. Framework(continued)
2
+
3
+ Part 2 of 3 for `risk-stress-test` — 2. Framework; 3. Output Format; Example
4
+ See `SKILL.md` for what to read and when; this part is procedure, not routing.
5
+
6
+ ### Phase 4 — Correlation spike: the diversification you think you have
7
+
8
+ Diversification is measured on calm days and disappears on the days it is needed. Compute portfolio σ twice:
9
+
10
+ ```
11
+ σ_p² = Σ_i Σ_j w_i w_j σ_i σ_j ρ_ij
12
+
13
+ Normal case : ρ_ij = the pasted / retrieved pairwise correlations
14
+ (if unavailable: 0.6 within sector · 0.35 across sectors · 0.0 vs. cash — mark "assumed")
15
+ Crisis case : ρ_ij = 0.85 for every equity pair (0.95 within sector); bonds vs. equities 0.3
16
+ (2022-style: not the −0.3 the 60/40 model assumes)
17
+
18
+ Diversification benefit = 1 − σ_p / Σ w_i σ_i (report for both cases)
19
+ ```
20
+
21
+ | | Portfolio σ (ann.) | 1-month VaR 99 % | Diversification benefit |
22
+ |---|---|---|---|
23
+ | Normal correlations | | | |
24
+ | Crisis correlations (ρ → 0.85) | | | |
25
+
26
+ The gap between the two rows is the amount of "diversification" the portfolio will lose exactly when it is needed. A portfolio whose crisis σ is more than 1.4× its normal σ is diversified in name only.
27
+
28
+ ### Phase 5 — Factor sensitivities
29
+
30
+ Three exposures that historical beta hides. Score each **Low / Medium / High** with the weight of the portfolio that carries it and the direction of the hit:
31
+
32
+ | Factor | Who gets hurt | Who benefits | Portfolio exposure | Direction of a +1 σ shock |
33
+ |--------|---------------|--------------|--------------------|---------------------------|
34
+ | **Rates ↑** (10Y +100 bp) | Long-duration growth (high P/S, distant cash flows), REITs, utilities, long bonds | Banks (NIM), insurers, cash | % of book in rate-sensitive names | est. % move |
35
+ | **USD ↑** (DXY +5 %) | Multinationals with > 40 % non-US revenue, commodity producers, EM | Domestic small caps, importers | % of book with heavy foreign revenue | |
36
+ | **Oil ↑** (WTI +25 %) | Airlines, chemicals, consumer discretionary, transports | Energy producers, oil services | % energy vs. % oil-consumers | |
37
+
38
+ Use each company's segment / geographic disclosure (10-K) for revenue exposure; use the sector as a proxy only when stated.
39
+
40
+ ### Phase 6 — Liquidity: can it actually be sold?
41
+
42
+ ```
43
+ Days to exit_i = Shares held_i / (0.20 × ADV_i in shares) (selling no more than 20 % of a day's volume)
44
+ Illiquid weight = Σ Weight_i where Days to exit_i > 5
45
+ Portfolio exit = the longest Days-to-exit among positions above 2 % weight
46
+ ```
47
+
48
+ | Position | Shares | ADV (shares) | Days to exit @ 20 % ADV | Flag |
49
+ |----------|--------|--------------|-------------------------|------|
50
+ | … | | | | > 5 days ⚠️ · > 20 days 🔴 |
51
+
52
+ A position that takes more than a month to exit at 20 % of ADV is a private holding with a ticker. Its drawdown in Phase 2 should be widened by an illiquidity haircut (10–25 %) and said so.
53
+
54
+ ### Phase 7 — Risk Budget Score (0–10)
55
+
56
+ The headline number. It measures **how far inside the stated drawdown budget the portfolio sits** — not whether the holdings are attractive.
57
+
58
+ | Component | Weight | 10 looks like | 0 looks like |
59
+ |-----------|--------|---------------|--------------|
60
+ | Worst historical scenario vs. budget | 35 % | Worst replay ≤ 60 % of the budget | Worst replay > 150 % of the budget |
61
+ | 1-month CVaR 99 % vs. budget | 20 % | CVaR ≤ 40 % of the budget | CVaR > budget |
62
+ | Correlation-spike resilience | 15 % | Crisis σ ≤ 1.2× normal σ | Crisis σ > 1.6× normal σ |
63
+ | Concentration (top-3 weight, sector max) | 15 % | Top-3 < 25 %, no sector > 30 % | Top-3 > 50 % or one sector > 50 % |
64
+ | Liquidity | 10 % | Every position exits in ≤ 2 days | > 10 % of the book needs > 20 days |
65
+ | Factor tilt | 5 % | No High exposure on any factor | High on two or more factors, same direction |
66
+
67
+ ```
68
+ Risk Budget Score = Σ component score × weight (each component scored 0–10, linearly between the anchors)
69
+ ```
70
+
71
+ Map — the same bands as the standard Score Guide: **≥ 6.0 → risk within budget** (signal BULLISH; 8.0+ comfortably so) · **4.0–5.9 → at the edge** (NEUTRAL) · **< 4.0 → over budget** (BEARISH). If no budget was supplied, state the one you assumed and show how the score changes at the other two tolerance levels.
72
+
73
+ ---
74
+
75
+ ## 3. Output Format
76
+
77
+ 1. **Data & Sources** header (above) — including the source of every β / σ / ADV and which are proxies
78
+ 2. **Headline** — three lines: what the book is (β_p, largest tilts) · worst scenario in dollars vs. the budget · Risk Budget Score
79
+ 3. **Exposure map** (Phase 1 table)
80
+ 4. **Scenario replay** (Phase 2 table) with proxies marked
81
+ 5. **VaR / CVaR** table (Phase 3) with the normal-distribution caveat stated
82
+ 6. **Correlation spike** (Phase 4) — normal vs. crisis rows
83
+ 7. **Factor sensitivities** (Phase 5)
84
+ 8. **Liquidity** (Phase 6) with the longest exit named
85
+ 9. **Risk Budget Score** table (Phase 7) and the sensitivity to the budget assumed
86
+ 10. **What would bring it inside budget** — the two or three smallest changes (trim X to Y %, add Z % cash, replace A with a lower-β B) with the estimated effect on the worst scenario. Hand the *tax* cost of each to `tax-lens`; hand the *how* to `position-ladder`.
87
+ 11. **Thesis Invalidation** and the **Investment Signal block**
88
+
89
+ ---
90
+
91
+ ## Example
92
+
93
+ ```
94
+ User: Stress-test this portfolio against 2008 and 2022. $400k total. NVDA 22%, AVGO 15%,
95
+ MSFT 15%, TSLA 12%, AMZN 10%, XOM 8%, JPM 8%, cash 10%. I can stomach a 25% drawdown.
96
+ [pastes 1Y betas, σ, and ADV for each]
97
+
98
+ The assistant maps the book first: net β 1.28, 74% technology / consumer-tech, top-3 weight
99
+ 52%, 10% cash. Scenario replay: 2008 ≈ −52% ($−208k, mostly proxy via β — none of the tech
100
+ names' 2008 paths are representative of today's businesses, and it says so); March 2020
101
+ ≈ −41% in five weeks; 2022 rate shock ≈ −38% ($−152k) with TSLA (−65%) and NVDA (−50%) as the
102
+ worst positions; 2025 tariff shock flagged as the regime where AVGO / NVDA China exposure, not
103
+ beta, sets the loss — magnitude left for the reader to confirm. Parametric 1-month VaR 99% is
104
+ $−61k, CVaR 99% $−70k — a third of the 2022 replay, so the assistant tells the user to trust the
105
+ replay, not the VaR. Crisis-correlation σ is 1.5× normal σ: the seven names diversify each
106
+ other on quiet days only. Liquidity is fine (every position exits in under a day). Factor tilt:
107
+ High on rates (long-duration growth), Medium on USD, oil roughly neutral (XOM vs. AMZN/TSLA).
108
+ Risk Budget Score 3.4 / 10 — every historical scenario except a mild one breaches the 25%
109
+ budget. Smallest fixes: trim TSLA 12 → 5% and NVDA 22 → 15% into cash (worst-scenario loss
110
+ falls to ≈ −29%), or accept the tail and restate the budget at 40%. Tax cost of the trims →
111
+ tax-lens; how to execute → position-ladder.
112
+ ```
113
+
114
+ ---
115
+
116
+
@@ -0,0 +1,65 @@
1
+ # Notes
2
+
3
+ Part 3 of 3 for `risk-stress-test` — Notes; Thesis Invalidation; Standard Signal Output
4
+ See `SKILL.md` for what to read and when; this part is procedure, not routing.
5
+
6
+ ## Notes
7
+
8
+ - **This is a report, not a trade list.** The Risk Budget Score says whether the risk fits the budget; deciding what to do about it belongs to `portfolio-review`, `position-ladder`, and the investor.
9
+ - **Every number is only as good as the pasted inputs.** State proxies, assumed correlations, and index magnitudes as such. If more than a third of the risk inputs are proxies, the header's Confidence is LOW regardless of source quality.
10
+ - **Scenario dates and magnitudes are approximate** orientation figures for major indices; the user confirms any that decide the verdict, especially the recent 2025 regime.
11
+ - **Options and hedges**: if the user holds puts or inverse products, model them as a negative-β sleeve with a stated hedge ratio, and note that hedges decay and roll — a hedge's protection is for the period it covers, not forever.
12
+ - **Rebalance the budget, not just the book.** A user who cannot stomach the worst historical scenario for their current book has two honest choices: less risk, or a bigger stated budget. Present both.
13
+ - Run `economics-analysis` first when the question is *which* of the four regimes is nearest; run `thesis-tracker --update` after a drawdown to separate a broken thesis from ordinary volatility.
14
+
15
+ ## Thesis Invalidation
16
+
17
+ After delivering the analysis signal, specify what would reverse it:
18
+
19
+ **If signal is BULLISH (risk within budget) — the verdict breaks if:**
20
+ - Any position drifts above the concentration anchors in Phase 7 (top-3 > 50 % or one sector > 30 %) through price appreciation alone — the book re-rates itself without a trade
21
+ - Realized 30-day correlations between the top holdings rise above 0.7 in calm markets — the crisis case is becoming the base case
22
+ - `economics-analysis` flags a regime shift toward the scenario that produced this book's worst replay (late-cycle → recession, or a renewed rate-hiking path for a long-duration book)
23
+ - ADV of any position above 5 % weight halves — the liquidity assumption no longer holds
24
+
25
+ **If signal is BEARISH (over budget) — the verdict breaks if:**
26
+ - The proposed trims / cash raise are executed and the worst-scenario replay falls inside the budget (re-run to confirm the number, not the intention)
27
+ - The user restates the drawdown budget with a written reason (horizon, income, other assets) — the score is relative to the budget, so an honest larger budget changes it
28
+ - A hedge sleeve is added with a stated ratio and roll plan that brings the crisis-correlation σ inside the anchor
29
+
30
+ **Re-run this analysis when:**
31
+ - [ ] Quarter-end, or any rebalance
32
+ - [ ] Any single position moves ±25 % relative to the portfolio
33
+ - [ ] VIX closes above 30, or the 10-year yield moves ±75 bp in a quarter
34
+ - [ ] A contribution or withdrawal larger than 10 % of portfolio value
35
+ - [ ] The investor's horizon, income needs, or stated drawdown budget change
36
+
37
+ ## Standard Signal Output
38
+
39
+ This skill measures **whether the portfolio's risk fits the investor's budget, not whether its holdings will rise**, so state the mapping: `Signal: BULLISH` means the measured risk is inside the stated drawdown budget with margin; `NEUTRAL` means it sits at the edge; `BEARISH` means the worst plausible scenario breaches it. `Action: BUY` here means "the current risk level is acceptable to hold" — never "buy more." `Action: SELL` means "reduce risk," not that any holding is a short. Read the direction of the individual holdings from `stock-eval` or `bear-case`, not from this block.
40
+
41
+ All analysis concludes with this standardized block:
42
+
43
+ ```
44
+ ╔══════════════════════════════════════════════╗
45
+ ║ INVESTMENT SIGNAL ║
46
+ ╠══════════════════════════════════════════════╣
47
+ ║ Signal: BULLISH / NEUTRAL / BEARISH ║
48
+ ║ Confidence: HIGH / MEDIUM / LOW ║
49
+ ║ Horizon: SHORT / MEDIUM / LONG-TERM ║
50
+ ║ Score: X.X / 10 ║
51
+ ╠══════════════════════════════════════════════╣
52
+ ║ Action: BUY / HOLD / SELL ║
53
+ ║ Conviction: STRONG / MODERATE / WEAK ║
54
+ ╚══════════════════════════════════════════════╝
55
+ ```
56
+
57
+ Score Guide: 8.0–10.0 Strongly Bullish | 6.0–7.9 Moderately Bullish | 4.0–5.9 Neutral | 2.0–3.9 Moderately Bearish | 0.0–1.9 Strongly Bearish
58
+ Confidence: HIGH (strong data, clear signals) | MEDIUM (mixed signals) | LOW (limited data, conflicting signals)
59
+ Horizon: SHORT-TERM (1 week–3 months) | MEDIUM-TERM (3 months–1 year) | LONG-TERM (1+ years)
60
+
61
+ **Note:** The Score above is the Risk Budget Score, mapped onto the standard scale for cross-skill comparability. It rates *how far inside the stated drawdown budget the portfolio sits* — not how attractive the holdings are. Confidence is LOW whenever more than a third of the β / σ / ADV inputs are proxies or assumed correlations were used.
62
+
63
+ **Disclaimer:** Educational analysis only. Not financial advice. VaR, scenario replays, and drawdown estimates are models under stated assumptions; realized losses can and do exceed them.
64
+
65
+
@@ -40,387 +40,17 @@ Data & Sources
40
40
 
41
41
  Analyze US market sectors and identify sector rotation opportunities based on economic cycles.
42
42
 
43
- ## Sector Overview
43
+ ## Read the Parts
44
44
 
45
- Analyze the 11 S&P 500 sectors:
46
- 1. Information Technology
47
- 2. Healthcare
48
- 3. Financials
49
- 4. Consumer Discretionary
50
- 5. Communication Services
51
- 6. Industrials
52
- 7. Consumer Staples
53
- 8. Energy
54
- 9. Utilities
55
- 10. Real Estate
56
- 11. Materials
45
+ Everything below the surface of this file lives in `references/`. **whole, with no line window** — quoting a rule or a template out of a slice of one is how a
46
+ file gets reported as read when it was only skimmed. The file names below are the only
47
+ addressing this entry has.
57
48
 
58
- ## Analysis Framework
49
+ - `references/10-sector-overview.md` — Sector Overview; Analysis Framework; Sector Rotation Strategy; Top Holdings Analysis; Sector Valuation Comparison Table; Sector Seasonality Calendar
50
+ - `references/11-sector-correlation-matrix.md` — Sector Correlation Matrix; Sector Momentum Scoring
51
+ - `references/12-peer-benchmarking-within-sector.md` — Peer Benchmarking Within Sector; Sector-Specific Risk Factors
52
+ - `references/13-consumer-staples.md` — (continued) Sector-Specific Risk Factors; Sector ETF Reference; Output; Standard Signal Output; Thesis Invalidation
59
53
 
60
- 1. **Sector Performance**
61
- - Relative performance vs. S&P 500
62
- - Historical performance trends
63
- - Momentum and trend strength
64
- - Volatility analysis
65
-
66
- 2. **Economic Cycle Positioning**
67
- - Early cycle: Financials, Technology, Industrials
68
- - Mid cycle: Industrials, Materials, Energy
69
- - Late cycle: Energy, Consumer Staples, Healthcare
70
- - Recession: Utilities, Consumer Staples, Healthcare
71
-
72
- 3. **Fundamental Metrics**
73
- - Sector valuation (P/E, P/B vs. historical)
74
- - Earnings growth forecasts
75
- - Profit margin trends
76
- - Revenue growth outlook
77
-
78
- 4. **Macro Drivers**
79
- - Interest rate sensitivity
80
- - Commodity price exposure
81
- - Economic growth correlation
82
- - Currency impact
83
- - Regulatory environment
84
-
85
- 5. **Technical Picture**
86
- - Sector ETF chart patterns
87
- - Relative strength analysis
88
- - Support/resistance levels
89
- - Volume trends
90
-
91
- ## Sector Rotation Strategy
92
-
93
- - Identify current economic cycle phase
94
- - Determine leading and lagging sectors
95
- - Assess rotation timing signals
96
- - Evaluate defensive vs. cyclical positioning
97
- - Consider factor tilts (value, growth, quality)
98
-
99
- ## Top Holdings Analysis
100
-
101
- - Identify sector leaders and laggards
102
- - Analyze top 5-10 stocks per sector
103
- - Evaluate sector concentration risks
104
- - Find emerging opportunities
105
-
106
- ---
107
-
108
- ## Sector Valuation Comparison Table
109
-
110
- Use these ranges as historical context benchmarks. Always verify current figures against live data sources. Ranges reflect long-run averages across full market cycles; individual readings may deviate significantly in extremes.
111
-
112
- | Sector | Typical P/E Range | Typical P/S Range | EV/EBITDA Range | Dividend Yield Range | Historical EPS Growth (10Y CAGR) |
113
- |---|---|---|---|---|---|
114
- | Information Technology | 22–40x | 4–10x | 15–30x | 0.5–1.5% | 12–18% |
115
- | Healthcare | 16–28x | 1.5–4x | 12–20x | 1.5–2.5% | 8–12% |
116
- | Financials | 10–16x | 2–4x (Price/Book 1–2x) | 8–14x | 2.0–3.5% | 7–11% |
117
- | Consumer Discretionary | 18–35x | 0.8–2.5x | 10–20x | 0.5–1.5% | 10–15% |
118
- | Communication Services | 15–28x | 2–5x | 10–18x | 0.5–2.0% | 6–12% |
119
- | Industrials | 16–25x | 1–2.5x | 10–16x | 1.5–2.5% | 7–11% |
120
- | Consumer Staples | 18–26x | 0.8–2x | 12–17x | 2.5–4.0% | 5–8% |
121
- | Energy | 8–18x (volatile) | 0.5–1.5x | 5–12x | 3.0–5.5% | 3–8% (commodity-driven) |
122
- | Utilities | 14–22x | 1.5–3x | 10–15x | 3.0–5.0% | 3–6% |
123
- | Real Estate (REITs) | 30–60x (use P/FFO: 14–22x) | 5–12x | 15–25x | 3.5–6.0% | 4–8% |
124
- | Materials | 12–22x | 0.8–2x | 8–14x | 2.0–3.5% | 5–10% |
125
-
126
- **Notes:**
127
- - P/E for Energy and Financials is highly cyclical — use normalized or through-cycle P/E.
128
- - REITs are best valued on Price/FFO (Funds From Operations) or EV/EBITDA, not standard P/E.
129
- - Dividend yield ranges shift with interest rate regimes; compare to prevailing 10Y Treasury for context.
130
- - P/S is most useful for early-stage growth sectors (Tech, Comm Services) where margins are expanding.
131
-
132
- ---
133
-
134
- ## Sector Seasonality Calendar
135
-
136
- Historical seasonal patterns based on decades of S&P 500 sector returns. These are tendencies, not guarantees — confirm with current macro backdrop and momentum before acting.
137
-
138
- | Month | Historically Strong Sectors | Historically Weak Sectors | Key Seasonal Driver |
139
- |---|---|---|---|
140
- | January | Financials, Small Caps, Industrials | Utilities, Consumer Staples | "January Effect," new year portfolio repositioning |
141
- | February | Healthcare, Technology | Energy, Materials | Earnings season (Q4 reports), defensive rotation |
142
- | March | Energy, Industrials, Materials | Real Estate, Utilities | Spring economic activity pickup, rate expectations reset |
143
- | April | Consumer Discretionary, Technology | Energy | Strong earnings season (Q1), consumer spending uplift |
144
- | May | Consumer Staples, Healthcare, Utilities | Industrials, Materials | "Sell in May" defensive rotation begins |
145
- | June | Energy (early summer driving demand) | Consumer Discretionary, Financials | Fed meeting seasonality, summer slowdown |
146
- | July | Technology, Consumer Discretionary | Energy | Q2 earnings beats, summer consumer activity |
147
- | August | Consumer Staples, Utilities | Technology, Industrials | Thin liquidity, risk-off tendency, vacation season |
148
- | September | Energy | Technology, Consumer Discretionary | Historically worst month for equities overall |
149
- | October | Financials, Industrials, Technology | Real Estate | Q3 earnings season begins, year-end setup |
150
- | November | Consumer Discretionary, Technology, Industrials | Utilities, Energy | Pre-holiday retail strength, "Santa rally" setup |
151
- | December | Consumer Discretionary, Consumer Staples | Financials | Holiday spending, tax-loss harvesting, year-end flows |
152
-
153
- **Cycle-Overlay Seasonality:**
154
- - Recession entry: Utilities, Consumer Staples, Healthcare outperform regardless of month.
155
- - Early recovery: Financials, Technology, and Consumer Discretionary lead — often most pronounced in Q1/Q2 post-trough.
156
- - Commodity supercycles: Energy and Materials seasonal patterns amplify vs. normal years.
157
-
158
- ---
159
-
160
- ## Sector Correlation Matrix
161
-
162
- Use this matrix to understand diversification benefits and macro sensitivity when constructing multi-sector portfolios. Correlations are approximate long-run averages; they compress toward 1.0 during market stress.
163
-
164
- ### Inter-Sector Correlation (approximate, long-run)
165
-
166
- | | Tech | Health | Fin | Disc | Comm | Ind | Staples | Energy | Util | RE | Mats |
167
- |---|---|---|---|---|---|---|---|---|---|---|---|
168
- | **Tech** | — | Low+ | Low+ | Med+ | Med+ | Low+ | Low- | Low- | Low- | Low- | Low- |
169
- | **Healthcare** | Low+ | — | Low- | Low- | Low+ | Low- | Med+ | Low- | Med+ | Low- | Low- |
170
- | **Financials** | Low+ | Low- | — | Med+ | Low+ | Med+ | Low- | Low+ | Low- | Med+ | Low+ |
171
- | **Disc** | Med+ | Low- | Med+ | — | Med+ | Med+ | Low- | Low- | Low- | Low- | Low+ |
172
- | **Comm Svcs** | Med+ | Low+ | Low+ | Med+ | — | Low+ | Low+ | Low- | Low+ | Low- | Low- |
173
- | **Industrials** | Low+ | Low- | Med+ | Med+ | Low+ | — | Low- | Med+ | Low- | Low- | Med+ |
174
- | **Staples** | Low- | Med+ | Low- | Low- | Low+ | Low- | — | Low- | Med+ | Low+ | Low- |
175
- | **Energy** | Low- | Low- | Low+ | Low- | Low- | Med+ | Low- | — | Low- | Low- | Med+ |
176
- | **Utilities** | Low- | Med+ | Low- | Low- | Low+ | Low- | Med+ | Low- | — | Med+ | Low- |
177
- | **Real Estate** | Low- | Low- | Med+ | Low- | Low- | Low- | Low+ | Low- | Med+ | — | Low- |
178
- | **Materials** | Low- | Low- | Low+ | Low+ | Low- | Med+ | Low- | Med+ | Low- | Low- | — |
179
-
180
- **Key:** Med+ = moderate positive correlation (0.4–0.7) | Low+ = low positive (0.1–0.4) | Low- = low negative or near-zero (-0.2–0.1)
181
-
182
- ### Sector Sensitivity to Key Macro Variables
183
-
184
- | Macro Variable | Strong Positive | Moderate Positive | Neutral | Moderate Negative | Strong Negative |
185
- |---|---|---|---|---|---|
186
- | Rising interest rates | Financials | Energy, Materials | Industrials, Tech | Consumer Disc, Comm Svcs | Utilities, Real Estate |
187
- | Falling interest rates | Utilities, Real Estate | Tech, Healthcare | Staples | Financials | — |
188
- | Rising oil/energy prices | Energy | Materials, Industrials | Healthcare | Consumer Disc, Staples | Airlines (Disc) |
189
- | Falling oil prices | Consumer Disc, Airlines | Staples, Tech | Financials | Energy | Materials |
190
- | USD strengthening | Domestic Staples, Utilities | Financials | Healthcare | Tech (exports), Industrials | Materials, Energy |
191
- | USD weakening | Tech (multinationals), Materials | Energy, Industrials | Healthcare | Domestic Utilities | — |
192
- | GDP acceleration | Industrials, Materials, Energy | Tech, Financials, Disc | Comm Svcs | — | Utilities, Staples |
193
- | Recession / GDP contraction | Utilities, Staples, Healthcare | — | Comm Svcs | Financials, Industrials | Energy, Materials, Disc |
194
- | Inflation rising | Energy, Materials | Real Estate | Industrials | Tech (multiple compression) | Utilities, Staples |
195
- | Inflation falling | Utilities, Real Estate, Tech | Healthcare, Disc | Financials | Energy | Materials |
196
- | Credit spread widening | Utilities, Staples, Healthcare | — | Tech | Financials, Real Estate | Disc, Industrials |
197
-
198
- ---
199
-
200
- ## Sector Momentum Scoring
201
-
202
- Rank all 11 sectors on a 1–11 scale (1 = strongest, 11 = weakest) across four dimensions, then produce a composite rank. Update this scoring monthly or after significant macro events.
203
-
204
- ### Scoring Dimensions
205
-
206
- | Dimension | How to Score | Data Source |
207
- |---|---|---|
208
- | **3M Price Return** | Rank sectors by 3-month total return vs. each other | Bloomberg, ETF returns (XLK, XLV, etc.) |
209
- | **Earnings Revision Trend** | % of analysts raising forward EPS estimates (breadth) | FactSet, Bloomberg consensus |
210
- | **Forward P/E vs. 10Y Historical Average** | Discount = high score; premium = low score | FactSet, LSEG |
211
- | **Analyst Sentiment** | Net buy ratings minus sell ratings as % of total | Bloomberg, Refinitiv |
212
-
213
- ### Momentum Scorecard Template
214
-
215
- ```
216
- Sector 3M Return EPS Revisions Fwd P/E vs Hist Analyst Sent. Composite Rank
217
- Information Technology [1-11] [1-11] [1-11] [1-11] [avg rank]
218
- Healthcare [1-11] [1-11] [1-11] [1-11] [avg rank]
219
- Financials [1-11] [1-11] [1-11] [1-11] [avg rank]
220
- Consumer Discretionary [1-11] [1-11] [1-11] [1-11] [avg rank]
221
- Communication Services [1-11] [1-11] [1-11] [1-11] [avg rank]
222
- Industrials [1-11] [1-11] [1-11] [1-11] [avg rank]
223
- Consumer Staples [1-11] [1-11] [1-11] [1-11] [avg rank]
224
- Energy [1-11] [1-11] [1-11] [1-11] [avg rank]
225
- Utilities [1-11] [1-11] [1-11] [1-11] [avg rank]
226
- Real Estate [1-11] [1-11] [1-11] [1-11] [avg rank]
227
- Materials [1-11] [1-11] [1-11] [1-11] [avg rank]
228
- ```
229
-
230
- ### Composite Rank Interpretation
231
-
232
- | Composite Rank | Action |
233
- |---|---|
234
- | 1–3 | Strong overweight — broad-based positive momentum |
235
- | 4–5 | Moderate overweight — mostly positive signals |
236
- | 6–7 | Neutral weight — mixed signals |
237
- | 8–9 | Underweight — mostly negative signals |
238
- | 10–11 | Avoid / underweight significantly — broad deterioration |
239
-
240
- **Weighting Suggestion:** Equal-weight all four dimensions as a starting point. Tilt to 40% price return + 30% EPS revisions + 20% valuation + 10% sentiment for a momentum-focused strategy.
241
-
242
- ---
243
-
244
- ## Peer Benchmarking Within Sector
245
-
246
- When analyzing a specific stock, compare it against its sector median to identify relative attractiveness. Use this template for every individual stock recommendation within a sector rotation context.
247
-
248
- ### Single Stock vs. Sector Median Template
249
-
250
- ```
251
- Stock: [TICKER] — [Company Name]
252
- Sector: [GICS Sector]
253
- Comparison Date: [Date] | Source: [FactSet / Bloomberg / Company Filings]
254
-
255
- DIMENSION STOCK VALUE SECTOR MEDIAN PREMIUM / DISCOUNT SCORE (1-5)
256
- ─────────────────────────────────────────────────────────────────────────────────────────
257
- VALUATION
258
- Forward P/E [x.x]x [x.x]x [+/- x%] [1-5]
259
- EV/EBITDA [x.x]x [x.x]x [+/- x%] [1-5]
260
- Price/Sales [x.x]x [x.x]x [+/- x%] [1-5]
261
- Price/Book [x.x]x [x.x]x [+/- x%] [1-5]
262
- Dividend Yield [x.x]% [x.x]% [+/- x bps] [1-5]
263
-
264
- GROWTH
265
- Revenue Growth (TTM) [x.x]% [x.x]% [+/- x%] [1-5]
266
- EPS Growth (FY est.) [x.x]% [x.x]% [+/- x%] [1-5]
267
- Revenue Growth (3Y) [x.x]% [x.x]% [+/- x%] [1-5]
268
-
269
- MARGINS & QUALITY
270
- Gross Margin [x.x]% [x.x]% [+/- x bps] [1-5]
271
- EBITDA Margin [x.x]% [x.x]% [+/- x bps] [1-5]
272
- Net Margin [x.x]% [x.x]% [+/- x bps] [1-5]
273
- ROIC [x.x]% [x.x]% [+/- x bps] [1-5]
274
- ROE [x.x]% [x.x]% [+/- x bps] [1-5]
275
- Debt/EBITDA [x.x]x [x.x]x [+/- x%] [1-5]
276
- FCF Yield [x.x]% [x.x]% [+/- x bps] [1-5]
277
- ─────────────────────────────────────────────────────────────────────────────────────────
278
- COMPOSITE QUALITY SCORE [avg/5]
279
- ```
280
-
281
- ### Quality Score Interpretation
282
-
283
- | Score | Interpretation |
284
- |---|---|
285
- | 4.5–5.0 | Sector leader — significant premium justified |
286
- | 3.5–4.4 | Above-sector-average quality — moderate premium justified |
287
- | 2.5–3.4 | In-line with sector — valuation should be at-market |
288
- | 1.5–2.4 | Below-sector quality — discount warranted |
289
- | 1.0–1.4 | Sector laggard — avoid unless deep value thesis exists |
290
-
291
- **Scoring Convention:** For valuation metrics, cheaper = higher score (a stock trading at a discount to peers on P/E scores 5, a premium scores 1). For growth, margins, and quality metrics, higher is better.
292
-
293
- ---
294
-
295
- ## Sector-Specific Risk Factors
296
-
297
- Each sector carries idiosyncratic risks beyond broad market beta. Always assess these in the context of the current macro and regulatory environment before establishing a position.
298
-
299
- ### Information Technology
300
- - **Regulatory / Antitrust Risk:** Large-cap platforms (search, social, cloud) face ongoing EU Digital Markets Act enforcement, DOJ antitrust cases, and potential structural remedies. Headline risk can compress multiples even without earnings impact.
301
- - **AI Disruption / Obsolescence Risk:** Generative AI rapidly changes competitive positioning — incumbents may be disrupted faster than traditional product cycles. Evaluate whether a company is a beneficiary or a target.
302
- - **Semiconductor Supply Chain & Export Controls:** TSMC concentration, US-China export restrictions on advanced chips (EAR controls), and geopolitical risk in Taiwan can cause severe supply shocks.
303
-
304
- ### Healthcare
305
- - **FDA Approval Risk / Clinical Trial Binary Events:** Drug pipeline stocks carry binary event risk at Phase 2/3 readouts and FDA PDUFA dates; a single rejection can cause 40–70% drawdowns.
306
- - **Patent Cliff Risk:** Major pharmaceuticals face loss of exclusivity (LOE) on blockbuster drugs — revenue can fall 80%+ within 2 years of generic entry; assess pipeline coverage vs. patent expiry schedule.
307
- - **Drug Pricing / CMS Negotiation:** IRA Medicare drug price negotiation and political pressure on list prices compress revenue visibility for large pharma and biotech.
308
-
309
- ### Financials
310
- - **Interest Rate Sensitivity (NIM Compression):** Banks' net interest margins expand with rate hikes but compress when rates fall or the yield curve inverts; this is the single largest driver of bank earnings variability.
311
- - **Credit Cycle Risk:** Loan loss provisions surge in recessions; commercial real estate (CRE) exposure is a persistent concern for regional banks. Monitor non-performing loan (NPL) ratios closely.
312
- - **Regulatory Capital Requirements (Basel III/IV):** Evolving capital adequacy rules (CET1 requirements, stress test results) constrain buyback capacity and ROE generation for large banks.
313
-
314
- ### Consumer Discretionary
315
- - **Consumer Balance Sheet Health:** This sector is most exposed to rising consumer debt, declining savings rates, and credit tightening — especially for big-ticket items (autos, appliances, travel).
316
- - **Tariff and Import Cost Risk:** Heavy reliance on offshore manufacturing (apparel, electronics, footwear) means tariff escalation directly compresses margins before pricing power can respond.
317
- - **Secular Shift in Spending (Physical vs. Digital):** Traditional retail faces ongoing structural displacement from e-commerce; under-differentiated brick-and-mortar operators face secular decline.
318
-
319
- ### Communication Services
320
- - **Streaming Profitability Inflection Risk:** Media/streaming companies face pressure to convert subscriber growth to sustained free cash flow; content cost inflation and competition from tech giants compress margins.
321
- - **Advertising Cyclicality:** Digital ad revenue is highly correlated with GDP growth and corporate spending budgets — falls sharply in recessions (Google, Meta ad revenue dropped 15–25% in prior downturns).
322
- - **Spectrum Allocation and Infrastructure Costs:** Telecom operators face large, lumpy capex cycles tied to 5G and fiber buildouts, with uncertain return timelines and regulatory pricing constraints.
323
-
324
- ### Industrials
325
- - **Government Defense/Infrastructure Budget Dependency:** Defense contractors and infrastructure-linked industrials are highly sensitive to Congressional appropriations, sequestration risk, and multi-year contract cancellations.
326
- - **Supply Chain Disruption and Input Cost Inflation:** Aerospace and industrial machinery have long production cycles — shortages in specialty materials (titanium, rare earth components) or labor can cause years-long delivery delays.
327
- - **Labor Cost Pressure and Union Risk:** Heavily unionized manufacturing sectors (aerospace, auto, rail) face periodic strike risk and multi-year wage escalation that can compress margins durably.
328
-
329
- ### Consumer Staples
330
- - **Private Label / Retailer Margin Squeeze:** In cost-of-living crisis periods, consumers trade down to retailer own-brand products, reducing branded CPG companies' pricing power and volume.
331
- - **Input Cost Volatility (Commodities, Packaging):** Agricultural commodity inputs (wheat, corn, sugar, palm oil) and energy-intensive packaging are subject to price spikes that compress gross margins with a lag.
332
- - **Emerging Market Currency and Political Risk:** Many staples companies derive 30–50% of revenue from EM; local currency depreciation and political instability can materially impact reported earnings.
333
-
334
- ### Energy
335
- - **Commodity Price Cycle Risk:** Oil and gas earnings are almost entirely driven by the WTI/Brent/Henry Hub price — a 20% oil price decline can eliminate 40–60% of sector earnings in a single quarter.
336
- - **Energy Transition / Stranded Asset Risk:** Long-duration upstream assets (offshore fields, oil sands) carry the risk of becoming stranded as renewable penetration accelerates and carbon pricing expands.
337
- - **Geopolitical Supply Disruption:** OPEC+ production decisions, Middle East conflict, Russian supply constraints, and US shale production responses create persistent supply uncertainty that makes earnings forecasting highly uncertain.
338
-
339
- ### Utilities
340
- - **Interest Rate / Bond Proxy Risk:** Utilities are priced as bond proxies — rising 10Y Treasury yields directly compress valuations as yield-seeking capital rotates to risk-free alternatives; every 100bps rate rise compresses sector P/E by 1–2 turns historically.
341
- - **Regulatory Rate Case Risk:** Utility earnings are set by state/federal regulators through rate cases; adverse rulings can cap ROE and delay capital recovery for large infrastructure investments.
342
- - **Renewable Build-Out Execution Risk:** Ambitious clean energy transition capex (solar, wind, grid modernization) carries construction delay risk, cost overruns, and financing risk in a volatile rate environment.
343
-
344
- ### Real Estate (REITs)
345
- - **Interest Rate Sensitivity and Refinancing Risk:** REITs use significant leverage; rising rates increase interest expense and cap rate expansion reduces property valuations. Floating-rate debt exposure is a critical variable.
346
- - **Property-Type Secular Trends:** Office REITs face structural demand destruction from hybrid work; retail REITs face e-commerce headwinds. Not all REIT sub-sectors face the same structural forces.
347
- - **Credit Market Access:** REITs must access capital markets regularly to fund growth; credit spread widening and bank lending tightness during stress periods can trap overleveraged operators.
348
-
349
- ### Materials
350
- - **Commodity Price Volatility:** Earnings are almost entirely driven by copper, aluminum, gold, steel, or chemical feedstock prices — these are globally set and subject to large cyclical swings.
351
- - **China Demand Dependency:** China accounts for 50–60% of global demand for base metals; property sector weakness, infrastructure slowdown, or trade tensions in China have outsized effects on global Materials earnings.
352
- - **Environmental Regulation and Mine Permitting:** Mining and chemical companies face increasingly stringent environmental standards, permitting delays (often 5–10 years for new mines), and carbon pricing that raises operating costs durably.
353
-
354
- ---
355
-
356
- ## Sector ETF Reference
357
-
358
- | Sector | SPDR ETF | Alternative |
359
- |---|---|---|
360
- | Information Technology | XLK | VGT, QQQ |
361
- | Healthcare | XLV | VHT |
362
- | Financials | XLF | VFH |
363
- | Consumer Discretionary | XLY | VCR |
364
- | Communication Services | XLC | VOX |
365
- | Industrials | XLI | VIS |
366
- | Consumer Staples | XLP | VDC |
367
- | Energy | XLE | VDE |
368
- | Utilities | XLU | VPU |
369
- | Real Estate | XLRE | VNQ |
370
- | Materials | XLB | VAW |
371
-
372
- ## Output
373
-
374
- Provide sector analysis with:
375
- - Current sector rankings and momentum
376
- - Economic cycle assessment
377
- - Sector rotation recommendations
378
- - Top stock picks within favored sectors
379
- - Sectors to underweight/avoid
380
- - Risk considerations by sector
381
- - Expected catalysts and timeframes
382
- - Implementation strategy (ETFs vs. individual stocks)
383
-
384
- Keep recommendations aligned with macro outlook and risk management principles.
385
-
386
- ## Standard Signal Output
387
-
388
- All analysis concludes with this standardized block:
389
-
390
- ```
391
- ## Thesis Invalidation
392
-
393
- After delivering the analysis signal, specify what would reverse it:
394
-
395
- **If signal is BULLISH — thesis breaks if:**
396
- - sector underperforms S&P 500 by >10% over 3 months AND rate regime turns unfavorable
397
- - [One or two more triggers drawn from this analysis's own drivers, each with a threshold]
398
-
399
- **If signal is BEARISH — thesis breaks if:**
400
- - sector rotates into leadership AND sector P/E discount to S&P closes
401
- - [One or two more triggers drawn from this analysis's own drivers, each with a threshold]
402
-
403
- **Re-run this analysis when:**
404
- - [ ] Next earnings release
405
- - [ ] Price moves ±15% from current level
406
- - [ ] 60 days have elapsed
407
- - [ ] Material news event (acquisition, leadership change, regulatory decision)
408
-
409
- ╔══════════════════════════════════════════════╗
410
- ║ INVESTMENT SIGNAL ║
411
- ╠══════════════════════════════════════════════╣
412
- ║ Signal: BULLISH / NEUTRAL / BEARISH ║
413
- ║ Confidence: HIGH / MEDIUM / LOW ║
414
- ║ Horizon: SHORT / MEDIUM / LONG-TERM ║
415
- ║ Score: X.X / 10 ║
416
- ╠══════════════════════════════════════════════╣
417
- ║ Action: BUY / HOLD / SELL ║
418
- ║ Conviction: STRONG / MODERATE / WEAK ║
419
- ╚══════════════════════════════════════════════╝
420
- ```
421
-
422
- **Score Guide**: 8.0–10.0 Strongly Bullish | 6.0–7.9 Moderately Bullish | 4.0–5.9 Neutral | 2.0–3.9 Moderately Bearish | 0.0–1.9 Strongly Bearish
423
- **Confidence**: HIGH (strong data, clear signals) | MEDIUM (mixed signals) | LOW (limited data, conflicting signals)
424
- **Horizon**: SHORT-TERM (1 week–3 months) | MEDIUM-TERM (3 months–1 year) | LONG-TERM (1+ years)
425
-
426
- **Disclaimer:** Educational analysis only. Not financial advice.
54
+ Loading this file is not reading the skill: the steps, templates, and thresholds exist only
55
+ in the parts above. Say which parts you opened, name the ones you did not, and never report a
56
+ step or a template you have not read in this session.