@v587d/capital-generation 2.7.2 → 2.7.4

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 (181) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/README.md +10 -9
  3. package/THIRD_PARTY_NOTICES.md +116 -30
  4. package/capital-config/client.js +4 -4
  5. package/capital-config/package.json +1 -1
  6. package/capital-watchlist/package.json +1 -1
  7. package/chart-ui/package.json +1 -1
  8. package/lib/web-retriever/local-fetch.d.ts +1 -1
  9. package/lib/web-retriever/local-fetch.js +1 -1
  10. package/lib/web-retriever/sources.d.ts +1 -1
  11. package/lib/web-retriever/sources.js +1 -1
  12. package/lib/web-retriever/wind-client.d.ts +1 -1
  13. package/lib/web-retriever/wind-client.js +1 -1
  14. package/package.json +3 -1
  15. package/selected-skills/InvestSkill/UPSTREAM.md +9 -0
  16. package/selected-skills/README.md +6 -1
  17. package/selected-skills/catalog.js +353 -0
  18. package/selected-skills/china-stock-research-skills/UPSTREAM.md +2 -1
  19. package/selected-skills/claude-for-financial-services-cn/LICENSE +201 -0
  20. package/selected-skills/claude-for-financial-services-cn/UPSTREAM.md +173 -0
  21. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-3-statement-model/SKILL.md +287 -0
  22. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-accrual-schedule/SKILL.md +182 -0
  23. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-audit-xls/SKILL.md +231 -0
  24. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-break-trace/SKILL.md +217 -0
  25. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-catalyst-calendar/SKILL.md +258 -0
  26. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-clean-data-xls/SKILL.md +237 -0
  27. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-comps/SKILL.md +104 -0
  28. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-comps-analysis/SKILL.md +196 -0
  29. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-dcf/SKILL.md +81 -0
  30. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-dcf-model/SKILL.md +68 -0
  31. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-deal-screening/SKILL.md +212 -0
  32. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-deck-refresh/SKILL.md +221 -0
  33. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-earnings-analysis/SKILL.md +237 -0
  34. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-earnings-preview/SKILL.md +239 -0
  35. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-gl-recon/SKILL.md +232 -0
  36. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-ib-check-deck/SKILL.md +252 -0
  37. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-idea-generation/SKILL.md +277 -0
  38. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-initiating-coverage/SKILL.md +271 -0
  39. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-lbo-model/SKILL.md +273 -0
  40. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-market-data/SKILL.md +229 -0
  41. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-model-update/SKILL.md +219 -0
  42. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-morning-note/SKILL.md +227 -0
  43. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-ppt-template-creator/SKILL.md +231 -0
  44. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-pptx-author/SKILL.md +240 -0
  45. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-roll-forward/SKILL.md +189 -0
  46. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-sector-overview/SKILL.md +257 -0
  47. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-skill-creator/SKILL.md +304 -0
  48. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-tax-loss-harvesting/SKILL.md +200 -0
  49. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-thesis-tracker/SKILL.md +237 -0
  50. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-variance-commentary/SKILL.md +262 -0
  51. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-xlsx-author/SKILL.md +256 -0
  52. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-accrual-schedule/SKILL.md +190 -0
  53. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-break-trace/SKILL.md +182 -0
  54. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-gl-recon/SKILL.md +200 -0
  55. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-nav-tieout/SKILL.md +233 -0
  56. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-roll-forward/SKILL.md +178 -0
  57. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-variance-commentary/SKILL.md +190 -0
  58. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-buyer-list/SKILL.md +198 -0
  59. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-cim-builder/SKILL.md +223 -0
  60. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-competitive-analysis/SKILL.md +233 -0
  61. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-datapack-builder/SKILL.md +232 -0
  62. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-deal-tracker/SKILL.md +151 -0
  63. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-merger-model/SKILL.md +226 -0
  64. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-pitch-deck/SKILL.md +231 -0
  65. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-process-letter/SKILL.md +249 -0
  66. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-strip-profile/SKILL.md +196 -0
  67. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-teaser/SKILL.md +235 -0
  68. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/operations/skills/china-kyc-doc-parse/SKILL.md +252 -0
  69. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/operations/skills/china-kyc-rules/SKILL.md +223 -0
  70. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-ai-readiness/SKILL.md +184 -0
  71. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-dd-checklist/SKILL.md +217 -0
  72. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-dd-meeting-prep/SKILL.md +290 -0
  73. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-deal-sourcing/SKILL.md +224 -0
  74. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-ic-memo/SKILL.md +230 -0
  75. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-portfolio-monitoring/SKILL.md +214 -0
  76. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-returns-analysis/SKILL.md +176 -0
  77. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-unit-economics/SKILL.md +192 -0
  78. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-value-creation-plan/SKILL.md +193 -0
  79. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-client-report/SKILL.md +205 -0
  80. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-client-review/SKILL.md +218 -0
  81. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-financial-plan/SKILL.md +259 -0
  82. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-investment-proposal/SKILL.md +271 -0
  83. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-portfolio-rebalance/SKILL.md +191 -0
  84. package/selected-skills/investment-skills/UPSTREAM.md +2 -1
  85. package/selected-skills/peter-lynch-skill/UPSTREAM.md +4 -3
  86. package/selected-skills/trading-skills/LICENSE +21 -0
  87. package/selected-skills/trading-skills/UPSTREAM.md +111 -0
  88. package/selected-skills/trading-skills/skills/catalyst-map/SKILL.md +119 -0
  89. package/selected-skills/trading-skills/skills/catalyst-map/references/catalyst-framework.md +68 -0
  90. package/selected-skills/trading-skills/skills/earnings-preview/SKILL.md +124 -0
  91. package/selected-skills/trading-skills/skills/earnings-preview/references/data-providers.md +26 -0
  92. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/fmp.md +49 -0
  93. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/polygon.md +45 -0
  94. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/tradingeconomics.md +49 -0
  95. package/selected-skills/trading-skills/skills/earnings-preview/references/relevance-ranking.md +24 -0
  96. package/selected-skills/trading-skills/skills/earnings-trade-prep/SKILL.md +134 -0
  97. package/selected-skills/trading-skills/skills/earnings-trade-prep/references/workflow-framework.md +65 -0
  98. package/selected-skills/trading-skills/skills/evidence-gap-check/SKILL.md +120 -0
  99. package/selected-skills/trading-skills/skills/evidence-gap-check/references/gap-framework.md +66 -0
  100. package/selected-skills/trading-skills/skills/execution-plan-check/SKILL.md +121 -0
  101. package/selected-skills/trading-skills/skills/execution-plan-check/references/execution-checklist.md +70 -0
  102. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/SKILL.md +120 -0
  103. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/calculation-helpers.md +16 -0
  104. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/pattern-framework.md +74 -0
  105. package/selected-skills/trading-skills/skills/macro-event-analysis/SKILL.md +122 -0
  106. package/selected-skills/trading-skills/skills/macro-event-analysis/references/data-providers.md +23 -0
  107. package/selected-skills/trading-skills/skills/macro-event-analysis/references/interpretation-guide.md +22 -0
  108. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/fmp.md +28 -0
  109. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/tradingeconomics.md +40 -0
  110. package/selected-skills/trading-skills/skills/market-regime-analysis/SKILL.md +117 -0
  111. package/selected-skills/trading-skills/skills/market-regime-analysis/references/data-providers.md +26 -0
  112. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/fmp.md +46 -0
  113. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/polygon.md +36 -0
  114. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/tradingeconomics.md +46 -0
  115. package/selected-skills/trading-skills/skills/market-regime-analysis/references/regime-framework.md +23 -0
  116. package/selected-skills/trading-skills/skills/portfolio-concentration/SKILL.md +119 -0
  117. package/selected-skills/trading-skills/skills/portfolio-concentration/references/concentration-framework.md +72 -0
  118. package/selected-skills/trading-skills/skills/portfolio-risk-review/SKILL.md +126 -0
  119. package/selected-skills/trading-skills/skills/portfolio-risk-review/references/workflow-framework.md +57 -0
  120. package/selected-skills/trading-skills/skills/position-management/SKILL.md +120 -0
  121. package/selected-skills/trading-skills/skills/position-management/references/management-framework.md +70 -0
  122. package/selected-skills/trading-skills/skills/position-sizing/SKILL.md +83 -0
  123. package/selected-skills/trading-skills/skills/position-sizing/assets/trade-plan-template.md +15 -0
  124. package/selected-skills/trading-skills/skills/position-sizing/references/calculation-helpers.md +13 -0
  125. package/selected-skills/trading-skills/skills/position-sizing/references/methodology.md +28 -0
  126. package/selected-skills/trading-skills/skills/post-trade-debrief/SKILL.md +99 -0
  127. package/selected-skills/trading-skills/skills/post-trade-debrief/references/workflow-framework.md +51 -0
  128. package/selected-skills/trading-skills/skills/post-trade-review/SKILL.md +82 -0
  129. package/selected-skills/trading-skills/skills/post-trade-review/references/review-rubric.md +34 -0
  130. package/selected-skills/trading-skills/skills/pre-trade-check/SKILL.md +136 -0
  131. package/selected-skills/trading-skills/skills/pre-trade-check/references/workflow-framework.md +61 -0
  132. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/SKILL.md +81 -0
  133. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/calculation-helpers.md +14 -0
  134. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/failure-modes.md +9 -0
  135. package/selected-skills/trading-skills/skills/thesis-validation/SKILL.md +123 -0
  136. package/selected-skills/trading-skills/skills/thesis-validation/references/thesis-checklist.md +56 -0
  137. package/selected-skills/trading-skills/skills/watchlist-review/SKILL.md +119 -0
  138. package/selected-skills/trading-skills/skills/watchlist-review/references/review-framework.md +57 -0
  139. package/selected-skills/InvestSkill/ADDING-NEW-SKILLS.md +0 -546
  140. package/selected-skills/InvestSkill/CHANGELOG.md +0 -373
  141. package/selected-skills/InvestSkill/CI-CD-GUIDE.md +0 -432
  142. package/selected-skills/InvestSkill/CLAUDE.md +0 -148
  143. package/selected-skills/InvestSkill/CONTRIBUTING.md +0 -291
  144. package/selected-skills/InvestSkill/DEPLOYMENTS.md +0 -321
  145. package/selected-skills/InvestSkill/FAQ.md +0 -509
  146. package/selected-skills/InvestSkill/GEMINI.md +0 -419
  147. package/selected-skills/InvestSkill/PLATFORM-COMPATIBILITY.md +0 -529
  148. package/selected-skills/InvestSkill/README-claude-code.md +0 -435
  149. package/selected-skills/InvestSkill/README-cursor.md +0 -475
  150. package/selected-skills/InvestSkill/README-gemini.md +0 -532
  151. package/selected-skills/InvestSkill/README-ollama.md +0 -106
  152. package/selected-skills/InvestSkill/README-zh-TW.md +0 -461
  153. package/selected-skills/InvestSkill/README.md +0 -311
  154. package/selected-skills/InvestSkill/RELEASE-QUICK-REFERENCE.md +0 -230
  155. package/selected-skills/InvestSkill/RELEASE_NOTES.md +0 -121
  156. package/selected-skills/InvestSkill/SECURITY.md +0 -232
  157. package/selected-skills/InvestSkill/TODO.md +0 -28
  158. package/selected-skills/InvestSkill/package.json +0 -64
  159. package/selected-skills/InvestSkill/plugins/us-stock-analysis/README.md +0 -119
  160. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  161. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/skill_request.md +0 -28
  162. package/selected-skills/china-stock-research-skills/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  163. package/selected-skills/china-stock-research-skills/CHANGELOG.md +0 -59
  164. package/selected-skills/china-stock-research-skills/CONTRIBUTING.md +0 -121
  165. package/selected-skills/china-stock-research-skills/GITHUB_PUBLISHING.md +0 -259
  166. package/selected-skills/china-stock-research-skills/INSTALL.md +0 -151
  167. package/selected-skills/china-stock-research-skills/PUBLISH_CHECKLIST.md +0 -165
  168. package/selected-skills/china-stock-research-skills/README.en.md +0 -209
  169. package/selected-skills/china-stock-research-skills/README.md +0 -209
  170. package/selected-skills/china-stock-research-skills/RELEASE_ASSETS.md +0 -222
  171. package/selected-skills/china-stock-research-skills/ROADMAP.md +0 -45
  172. package/selected-skills/china-stock-research-skills/SKILLS.md +0 -85
  173. package/selected-skills/china-stock-research-skills/examples/full-report-flow.md +0 -20
  174. package/selected-skills/china-stock-research-skills/examples/module-select-cases.md +0 -26
  175. package/selected-skills/china-stock-research-skills/examples/quickstart-prompts.md +0 -25
  176. package/selected-skills/investment-skills/.github/workflows/validate.yml +0 -25
  177. package/selected-skills/investment-skills/.tbd/config.yml +0 -107
  178. package/selected-skills/investment-skills/README.md +0 -253
  179. package/selected-skills/investment-skills/docs/development.md +0 -37
  180. package/selected-skills/investment-skills/docs/roadmap.md +0 -25
  181. package/selected-skills/peter-lynch-skill/README.md +0 -305
@@ -0,0 +1,51 @@
1
+ # Post-Trade Debrief Framework
2
+
3
+ Use this framework to decide how far a trade review should go after a position is closed.
4
+
5
+ ## Core question
6
+
7
+ The question is not only:
8
+
9
+ - "Did I make or lose money?"
10
+
11
+ The real questions are:
12
+
13
+ - What was the original plan?
14
+ - What actually happened?
15
+ - What is the clearest lesson?
16
+ - Is this lesson trade-specific or part of a larger pattern?
17
+
18
+ ## Typical routing
19
+
20
+ Start with:
21
+
22
+ - `post-trade-review`
23
+
24
+ Add as needed:
25
+
26
+ - `journal-pattern-analyzer` when the same type of issue appears often enough to justify pattern review
27
+ - `risk-reward-sanity-check` when the original setup structure itself looks flawed
28
+ - `position-sizing` when the main issue was oversized risk
29
+
30
+ ## Stop conditions
31
+
32
+ Stop when:
33
+
34
+ - the original plan cannot be reconstructed well enough for stronger claims
35
+ - the sample is too small for pattern analysis
36
+ - the clearest lesson is already specific and actionable at the single-trade level
37
+
38
+ ## Wrapper discipline
39
+
40
+ The workflow should:
41
+
42
+ - start with reconstruction, not outcome
43
+ - separate single-trade learning from pattern learning
44
+ - return one clear process change
45
+ - avoid overstating what one trade proves
46
+
47
+ ## Boundaries
48
+
49
+ This workflow does not reopen the trade.
50
+
51
+ It only decides what should be learned from it.
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: post-trade-review
3
+ description: Guide a disciplined post-trade review across thesis quality, setup quality, execution, adherence, mistakes, and lessons without turning the result into hindsight theater.
4
+ ---
5
+
6
+ # Post Trade Review
7
+
8
+ Use this skill after a trade closes or after a meaningful trade sequence when you want an honest process review.
9
+
10
+ The objective is to improve repeatability, not to rewrite history.
11
+
12
+ This skill will not:
13
+
14
+ - grade the trade only by PnL
15
+ - excuse rule-breaking because the outcome was positive
16
+ - turn hindsight into a fake lesson
17
+
18
+ ## Role
19
+
20
+ Act like a process-focused trading coach. Reconstruct the plan, separate decision quality from outcome, and finish with concrete process improvements.
21
+
22
+ ## When to use it
23
+
24
+ Use it when the user wants to understand:
25
+
26
+ - whether the thesis was sound
27
+ - whether execution matched the plan
28
+ - whether size and rule adherence were acceptable
29
+ - what mistake or strong decision mattered most
30
+
31
+ ## Inputs and context
32
+
33
+ Ask for:
34
+
35
+ - instrument and direction
36
+ - original thesis
37
+ - planned entry, stop, target, and size
38
+ - actual entry, exit, and size
39
+ - whether rules were followed
40
+ - what happened around the trade
41
+ - lesson the user currently believes they learned
42
+
43
+ ## Analysis process
44
+
45
+ 1. Reconstruct the original plan before judging the outcome.
46
+ 2. Separate thesis quality from execution quality.
47
+ 3. Identify rule adherence or violations.
48
+ 4. Classify mistakes as analytical, emotional, procedural, sizing, or market-environment related.
49
+ 5. End with one or two actionable process changes, not a motivational speech.
50
+
51
+ Use [references/review-rubric.md](references/review-rubric.md) for the default rubric.
52
+
53
+ ## Output structure
54
+
55
+ Prefer this output order:
56
+
57
+ 1. `Original Plan`
58
+ 2. `Execution Review`
59
+ 3. `Rule Adherence`
60
+ 4. `Main Mistake Or Best Decision`
61
+ 5. `Process Change`
62
+
63
+ Always include:
64
+
65
+ - original thesis summary
66
+ - setup quality assessment
67
+ - execution quality assessment
68
+ - what was done as planned
69
+ - what was not done as planned
70
+ - biggest mistake or best process decision
71
+ - one concrete lesson to carry forward
72
+
73
+ ## Best practices
74
+
75
+ - do not grade the trade only by PnL
76
+ - do not excuse broken process because the outcome happened to be positive
77
+ - do not rewrite the original thesis with hindsight
78
+
79
+ ## Usage examples
80
+
81
+ - "Use `post-trade-review` on my NVDA swing long where I sized correctly but moved the stop wider after entry."
82
+ - "Use `post-trade-review` for a EURUSD short that hit target, but only after I chased the entry and doubled the original risk."
@@ -0,0 +1,34 @@
1
+ # Review Rubric
2
+
3
+ ## Thesis
4
+
5
+ - Was the original idea clear enough to invalidate?
6
+ - Was the catalyst or setup actually relevant?
7
+
8
+ ## Execution
9
+
10
+ - Did the entry match the plan?
11
+ - Was the size appropriate for the setup quality and volatility?
12
+
13
+ ## Adherence
14
+
15
+ - Was the stop honored?
16
+ - Were targets managed according to the plan?
17
+ - Were any rules changed mid-trade?
18
+
19
+ ## Mistakes
20
+
21
+ Classify mistakes without drama:
22
+
23
+ - process mistake
24
+ - emotional override
25
+ - poor sizing
26
+ - weak thesis
27
+ - wrong environment read
28
+
29
+ ## Lessons
30
+
31
+ The best lesson is specific and repeatable:
32
+
33
+ - "Reduce size by 25% into high-impact data days."
34
+ - "Do not widen stops after entry unless the original plan explicitly allowed it."
@@ -0,0 +1,136 @@
1
+ ---
2
+ name: pre-trade-check
3
+ description: Orchestrate a disciplined pre-trade workflow by routing a watchlist or trade idea through the minimum set of underlying skills needed to decide whether the trade is ready, not ready, or should be resized or reworked first.
4
+ ---
5
+
6
+ # Pre Trade Check
7
+
8
+ Use this workflow skill when the user wants one disciplined answer to the question, "Is this trade actually ready?" rather than running each underlying check manually.
9
+
10
+ This workflow will not:
11
+
12
+ - place or stage orders
13
+ - skip missing-information problems just to reach a yes or no answer
14
+ - force every trade through every skill if the shorter path is sufficient
15
+
16
+ ## Role
17
+
18
+ Act like a pre-trade gatekeeper. Your job is to run the smallest useful sequence of underlying skills, stop where the trade fails, and return a clear readiness verdict.
19
+
20
+ ## When to use it
21
+
22
+ Use it when the user wants to:
23
+
24
+ - check a trade idea end to end before entering
25
+ - know whether the issue is the thesis, event risk, structure, execution, concentration, or size
26
+ - turn a messy idea into a clear go / no-go / not-yet decision
27
+ - avoid skipping important checks under time pressure
28
+
29
+ ## Inputs and context
30
+
31
+ Ask for the minimum information needed to route the workflow:
32
+
33
+ - whether the user has a single idea or a watchlist
34
+ - instrument, direction, and intended timeframe
35
+ - thesis or rough claim
36
+ - entry, stop, and target if already known
37
+ - any upcoming catalyst or event concern
38
+ - account or portfolio context if concentration or size may matter
39
+
40
+ Helpful but optional:
41
+
42
+ - current regime observations
43
+ - watchlist notes
44
+ - order-type plan
45
+ - constraints such as regular-hours only, no event holds, or maximum portfolio risk
46
+
47
+ Use the user's materials first.
48
+
49
+ If the user only has a rough idea, start with discovery and evidence checks instead of pretending the trade is already in construction mode.
50
+
51
+ ## Workflow routing
52
+
53
+ Use the shortest chain that answers the user's actual problem:
54
+
55
+ 1. If the user starts with many names, run `watchlist-review`.
56
+ 2. If those names still need one event picture, run `catalyst-map`.
57
+ 3. If the idea is under-researched, run `evidence-gap-check`.
58
+ 4. If the claim is still not testable, run `thesis-validation`.
59
+ 5. If event risk matters, run `earnings-preview` or `macro-event-analysis`.
60
+ 6. If broader context matters, run `market-regime-analysis`.
61
+ 7. If structure is defined, run `risk-reward-sanity-check`.
62
+ 8. If order logic matters, run `execution-plan-check`.
63
+ 9. If portfolio overlap matters, run `portfolio-concentration`.
64
+ 10. If the trade is still viable and the stop is stable, run `position-sizing`.
65
+
66
+ Stop the workflow as soon as a blocking issue appears and say why the trade is not ready yet.
67
+
68
+ ## Decision logic
69
+
70
+ Classify the result as:
71
+
72
+ - `ready`: the trade has passed the relevant checks and can move to entry discipline
73
+ - `ready with conditions`: the trade may proceed only if the stated constraints are respected
74
+ - `not ready yet`: the trade needs more research, cleaner structure, better execution logic, or smaller risk before it deserves action
75
+ - `reject`: the current idea is weak enough that forcing it forward would be process failure
76
+
77
+ ## Output structure
78
+
79
+ Prefer this output order:
80
+
81
+ 1. `Pre-Trade Verdict`
82
+ 2. `Checks Run`
83
+ 3. `Blocking Issue`
84
+ 4. `What Passed`
85
+ 5. `What Still Needs Work`
86
+ 6. `Updated Trade Context`
87
+ 7. `Next Skill Or Action`
88
+
89
+ Always include:
90
+
91
+ - the minimum set of checks actually used
92
+ - the main reason the trade is ready or not ready
93
+ - the most important unresolved issue
94
+ - what the user should do next if the answer is not ready
95
+ - a compact updated trade context block when enough information exists
96
+
97
+ ## Updated Trade Context
98
+
99
+ When enough context exists, carry forward a compact block like this:
100
+
101
+ ```markdown
102
+ ## Trade Context
103
+
104
+ - instrument:
105
+ - direction:
106
+ - timeframe:
107
+ - thesis:
108
+ - key_drivers:
109
+ - key_risks:
110
+ - upcoming_events:
111
+ - invalidation:
112
+ - entry_idea:
113
+ - stop_idea:
114
+ - target_idea:
115
+ - position_size_hint:
116
+ - portfolio_impact:
117
+ - confidence_notes:
118
+ - open_questions:
119
+ - source_freshness:
120
+ - assumptions:
121
+ - next_recommended_skill:
122
+ ```
123
+
124
+ Only populate the fields supported by the checks that actually ran. Do not invent missing fields just to make the block look complete.
125
+
126
+ ## Best practices
127
+
128
+ - do not run every skill by default if two checks already answer the question
129
+ - do not continue past a blocking issue without saying it is blocking
130
+ - do not let a valid setup skip execution, concentration, or sizing when those are the real risks
131
+ - do not let the wrapper hide which underlying skill produced the key concern
132
+
133
+ ## Usage examples
134
+
135
+ - "Use `pre-trade-check` on this swing long idea in semis and tell me if it is actually ready."
136
+ - "Use `pre-trade-check` on my watchlist for next week and route the best setup through the minimum checks needed before entry."
@@ -0,0 +1,61 @@
1
+ # Pre-Trade Workflow Framework
2
+
3
+ Use this framework to decide which checks a trade idea actually needs before entry.
4
+
5
+ ## Core principle
6
+
7
+ Do not run a giant checklist blindly.
8
+
9
+ Run the smallest set of checks that can answer:
10
+
11
+ - Is the idea worth acting on?
12
+ - If not, what is the blocking issue?
13
+
14
+ ## Typical routing
15
+
16
+ If the user starts with many names:
17
+
18
+ - `watchlist-review`
19
+ - `catalyst-map`
20
+
21
+ If the user has an interesting but underdeveloped idea:
22
+
23
+ - `evidence-gap-check`
24
+ - `thesis-validation`
25
+
26
+ If event or regime risk matters:
27
+
28
+ - `earnings-preview` or `macro-event-analysis`
29
+ - `market-regime-analysis`
30
+
31
+ If the user is already building the trade:
32
+
33
+ - `risk-reward-sanity-check`
34
+ - `execution-plan-check`
35
+ - `portfolio-concentration`
36
+ - `position-sizing`
37
+
38
+ ## Stop conditions
39
+
40
+ Stop the workflow when:
41
+
42
+ - the evidence is too incomplete
43
+ - the thesis is too vague
44
+ - the structure is incoherent
45
+ - the order logic is not executable
46
+ - the portfolio is already too concentrated
47
+
48
+ ## Wrapper discipline
49
+
50
+ The wrapper should:
51
+
52
+ - be explicit about which checks ran
53
+ - stop at the real blocker
54
+ - avoid fake certainty
55
+ - produce one clear next action
56
+
57
+ ## Boundaries
58
+
59
+ This workflow does not place trades.
60
+
61
+ It only decides whether the idea deserves the next step.
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: risk-reward-sanity-check
3
+ description: Use when the user wants to test whether a proposed entry, stop, and target structure is coherent, asymmetric enough, and vulnerable to obvious failure modes before the trade is placed.
4
+ ---
5
+
6
+ # Risk Reward Sanity Check
7
+
8
+ Use this skill when a trade idea exists but you want to inspect whether the structure makes sense before committing capital.
9
+
10
+ This skill does not predict whether the trade will work. It checks whether the plan is internally coherent.
11
+
12
+ This skill will not:
13
+
14
+ - tell the user a positive ratio makes the trade good
15
+ - replace thesis quality with a single numeric multiple
16
+ - assume the stop or target is valid just because it is mathematically neat
17
+
18
+ ## Role
19
+
20
+ Act like a skeptical pre-trade reviewer. Challenge the structure before money is at risk.
21
+
22
+ ## When to use it
23
+
24
+ Use it when the user wants to know whether:
25
+
26
+ - the stop and target make sense together
27
+ - the proposed asymmetry is real or just cosmetic
28
+ - the thesis actually supports the target
29
+ - obvious structural issues are hiding behind attractive math
30
+
31
+ ## Inputs and context
32
+
33
+ Ask for:
34
+
35
+ - direction
36
+ - entry
37
+ - stop
38
+ - one or more targets
39
+ - thesis in one or two sentences
40
+ - optional context such as time horizon, catalyst, or nearby event risk
41
+
42
+ ## Analysis process
43
+
44
+ 1. Calculate distance from entry to stop and from entry to target.
45
+ 2. Express the raw risk-reward ratio.
46
+ 3. Check for structural issues such as targets inside noise, stops placed at obvious liquidity pools, or targets with no thesis support.
47
+ 4. Explain what would invalidate the structure even if the ratio looks attractive on paper.
48
+ 5. Separate "good ratio" from "good trade." They are not the same thing.
49
+
50
+ See [references/failure-modes.md](references/failure-modes.md) for the default checklist.
51
+
52
+ The arithmetic here is small enough to show in the reply: distance from entry to stop, distance from entry to target, the ratio, and what slippage or a gap does to both. The analysis role in this plugin has no shell and runs no helper scripts, so when more than a handful of trades are involved, hand the brief (the rows, the columns, the statistic wanted) to the host's data side — in a role-split host, the agent that owns statistics — and use only the numbers that come back.
53
+
54
+ ## Output structure
55
+
56
+ Prefer this output order:
57
+
58
+ 1. `Setup Summary`
59
+ 2. `Risk Reward Math`
60
+ 3. `Structural Review`
61
+ 4. `Decision Risk`
62
+ 5. `What Must Be True`
63
+
64
+ Always include:
65
+
66
+ - raw risk-reward math
67
+ - asymmetry assessment
68
+ - the main structural concern
69
+ - what would need to be true for the target to be plausible
70
+ - any mismatch between thesis, stop, and holding period
71
+
72
+ ## Best practices
73
+
74
+ - do not tell the user a trade will win because the ratio looks attractive
75
+ - do not replace thesis quality with a single numeric multiple
76
+ - do not ignore catalyst or event risk that can break the planned structure
77
+
78
+ ## Usage examples
79
+
80
+ - "Use `risk-reward-sanity-check` on a long entry at 58.20, stop 55.90, target 65.50, thesis: breakout continuation if software leadership holds."
81
+ - "Use `risk-reward-sanity-check` for a short at 412.80 with stop 418.10 and two targets at 406.00 and 399.50 ahead of payrolls."
@@ -0,0 +1,14 @@
1
+ # Calculation Helpers
2
+
3
+ What to work out, and where the numbers come from in this plugin: this much arithmetic is small
4
+ enough to show in the reply, and the analysis role has no shell and runs no helper scripts. When more
5
+ than one trade is involved, hand the rows and the statistic wanted to the host's data side — in a
6
+ role-split host, the agent that owns statistics — and use only what comes back.
7
+
8
+ The measures this skill cares about:
9
+
10
+ - `risk_reward_ratio` — the distance from entry to target divided by the distance from entry to stop,
11
+ per unit of the instrument (a contract multiplier scales both sides alike)
12
+ - `expectancy` — win rate times average win, minus the loss rate times average loss
13
+
14
+ Use the math only as a cross-check for the proposed structure. Do not let a favorable ratio override weak thesis support, event risk, or unrealistic target logic.
@@ -0,0 +1,9 @@
1
+ # Common Failure Modes
2
+
3
+ - Attractive ratio with no credible path to the target
4
+ - Stop placed at an obvious level that is likely to be swept before thesis confirmation
5
+ - Target based on hope rather than structure, catalyst, or historical travel
6
+ - Stop so wide that the trade becomes low-conviction by definition
7
+ - Time horizon mismatch: intraday stop with multi-week target or vice versa
8
+ - Ignoring event risk that can break the intended structure
9
+ - Multiple targets that were not tied to a position-management plan
@@ -0,0 +1,123 @@
1
+ ---
2
+ name: thesis-validation
3
+ description: Pressure-test a trade or investment thesis by clarifying the core claim, evidence, invalidation, timeframe, and dependency chain before the user turns it into an entry, stop, or size.
4
+ ---
5
+
6
+ # Thesis Validation
7
+
8
+ Use this skill before trade construction when the user has an idea, narrative, or directional lean but needs to know whether the thesis is clear enough to trust.
9
+
10
+ This skill will not:
11
+
12
+ - replace missing evidence with confident prose
13
+ - choose entry, stop, target, or size
14
+ - turn a plausible narrative into a validated edge
15
+
16
+ ## Role
17
+
18
+ Act like a skeptical thesis reviewer. Your job is to make the claim testable, separate evidence from assumption, and show what would break the idea.
19
+
20
+ ## When to use it
21
+
22
+ Use it when the user wants to:
23
+
24
+ - turn rough conviction into a falsifiable thesis
25
+ - check whether the evidence actually supports the claim
26
+ - identify the catalysts, dependencies, and weak links that matter
27
+ - decide whether the idea is ready for `risk-reward-sanity-check`, `position-sizing`, or more research first
28
+
29
+ ## Inputs and context
30
+
31
+ Ask for:
32
+
33
+ - instrument, theme, or market being discussed
34
+ - thesis in one to three sentences
35
+ - intended timeframe
36
+ - why now, including any catalysts, regime assumptions, or timing logic
37
+ - the strongest evidence supporting the thesis
38
+ - what the user currently believes would invalidate it
39
+
40
+ Helpful but optional:
41
+
42
+ - supporting notes, transcripts, charts, watchlist context, or prior research
43
+ - known counterarguments
44
+ - whether the user is thinking like a trader, investor, or both
45
+
46
+ Use the user's materials first.
47
+
48
+ If the core claim, timeframe, or invalidation logic is missing, say exactly what is missing and keep the validation provisional rather than inventing it.
49
+
50
+ Test the claim against what the user put in front of you. When a fact would genuinely change the verdict, do not go looking for it from here: write the exact brief (the claim, the missing field, the as-of date) and hand it to the host's own retrieval path — in a role-split host, the agent that owns retrieval — and keep the validation provisional for whatever does not come back.
51
+
52
+ ## Analysis process
53
+
54
+ 1. Restate the thesis as a clear claim, not a vibe or slogan.
55
+ 2. Separate observed facts, inference, and assumption.
56
+ 3. Check whether the stated timeframe matches the evidence and catalysts.
57
+ 4. Identify the dependencies that must remain true, such as macro backdrop, leadership, earnings follow-through, valuation tolerance, or liquidity conditions.
58
+ 5. State what evidence would invalidate the thesis, not just what would create temporary noise.
59
+ 6. Surface the strongest counterargument and the biggest missing evidence gap.
60
+ 7. Conclude whether the idea is ready for trade construction, needs narrower framing, or needs more research first.
61
+
62
+ Use [references/thesis-checklist.md](references/thesis-checklist.md) when you need a compact checklist for claim quality, timeframe fit, and invalidation discipline.
63
+
64
+ ## Core Assessment Framework
65
+
66
+ Assess the thesis on five anchors before calling it actionable:
67
+
68
+ - `Claim Clarity`: can the thesis be stated as one falsifiable claim. Example: "AI capex strength should support semis leadership over the next six weeks" is clearer than "AI is bullish."
69
+ - `Evidence Quality`: is the support specific, relevant, and current for the chosen timeframe. Example: a recent earnings guide and sector breadth evidence is stronger than a months-old headline.
70
+ - `Timeframe Fit`: does the holding period match the evidence and catalyst cadence. Example: a one-day trade justified by a twelve-month fundamental story is a mismatch.
71
+ - `Dependency Load`: how many external conditions must stay true. Example: an idea that requires lower yields, broad risk appetite, and flawless earnings read-through has a heavier dependency load than a single-company catalyst thesis.
72
+ - `Invalidation Quality`: is there a concrete condition that would weaken or break the claim. Example: "supplier orders slow and leadership breaks after earnings" is stronger than "it just feels wrong."
73
+
74
+ Use the anchors to classify:
75
+
76
+ - `ready for structure review`: the claim is clear, evidence is relevant, timeframe fits, and invalidation is concrete enough to move into trade construction
77
+ - `promising but incomplete`: the idea may be interesting, but a key evidence gap, timeframe mismatch, or weak invalidation rule needs fixing first
78
+ - `weak thesis`: the claim is too vague, too assumption-heavy, or too dependent on untested conditions to support a disciplined trade or investment plan
79
+
80
+ ## Evidence That Would Invalidate This Analysis
81
+
82
+ - the user's actual timeframe changes enough to make the current evidence irrelevant
83
+ - a key catalyst date, dependency, or macro assumption changes materially
84
+ - the thesis turns out to rely on missing evidence that was not actually present in the shared context
85
+ - new information strengthens the strongest counterargument more than the original thesis
86
+ - the user reframes the idea from tactical trade to long-horizon investment, or the reverse
87
+
88
+ ## Output structure
89
+
90
+ Prefer this output order:
91
+
92
+ 1. `Validation Summary`
93
+ 2. `Core Claim`
94
+ 3. `Evidence For`
95
+ 4. `Evidence Against`
96
+ 5. `Invalidation And Timeframe`
97
+ 6. `Dependencies And Catalysts`
98
+ 7. `Open Questions`
99
+ 8. `Next Skill`
100
+
101
+ Always include:
102
+
103
+ - the cleaned-up thesis in plain language
104
+ - the strongest supporting evidence
105
+ - the strongest weakening evidence or counterargument
106
+ - what would invalidate the thesis
107
+ - whether the timeframe fits the evidence
108
+ - the most important dependency or catalyst
109
+ - whether the idea should move next to `market-regime-analysis`, `risk-reward-sanity-check`, `position-sizing`, or more research
110
+
111
+ A skill named above is an option for the user, not a step this role can take: only the skills the user switched on exist in this session, and the ones this plugin deliberately does not offer — placing orders, setting position size — are not reachable at all. Say what you would check next and let the user decide.
112
+
113
+ ## Best practices
114
+
115
+ - do not let conviction substitute for evidence
116
+ - do not confuse a catalyst with proof that the thesis is correct
117
+ - do not rewrite the user's claim into something smarter than they actually argued
118
+ - do not spill into entry, stop, target, or sizing decisions
119
+
120
+ ## Usage examples
121
+
122
+ - "Use `thesis-validation` on this swing idea: semis leadership should continue for the next four to six weeks if AI demand stays firm and yields do not spike."
123
+ - "Use `thesis-validation` on my 12-month investment thesis for ASML and tell me what evidence is real, what is assumption, and what would invalidate it."
@@ -0,0 +1,56 @@
1
+ # Thesis Checklist
2
+
3
+ Use this checklist to keep a thesis specific, testable, and reusable.
4
+
5
+ ## Core questions
6
+
7
+ - What exactly is the claim?
8
+ - Why should that claim be true?
9
+ - Why now?
10
+ - What timeframe does the claim belong to?
11
+ - What would weaken it?
12
+ - What would break it?
13
+
14
+ ## Evidence discipline
15
+
16
+ Separate three buckets clearly:
17
+
18
+ - `facts`: what is actually observed in the user's notes, filings, earnings, tape, or macro context
19
+ - `inference`: what those facts may imply
20
+ - `assumptions`: what still has to be true for the thesis to work
21
+
22
+ If the thesis depends mostly on assumptions, it is not ready for trade construction.
23
+
24
+ ## Timeframe fit
25
+
26
+ - Short-horizon trade theses should lean on near-term catalysts, tape behavior, regime, and timing.
27
+ - Medium-horizon swing theses should connect the idea to a realistic catalyst path and a manageable dependency set.
28
+ - Long-horizon investment theses should not be validated using only short-term price action.
29
+
30
+ ## Invalidation quality
31
+
32
+ Good invalidation is concrete:
33
+
34
+ - a thesis-critical data point fails
35
+ - a key catalyst delivers the wrong read-through
36
+ - leadership, breadth, or macro conditions change enough to break the logic
37
+ - management guidance, demand, margins, or policy backdrop invalidates the core claim
38
+
39
+ Bad invalidation is vague:
40
+
41
+ - "the market disagrees"
42
+ - "I lose confidence"
43
+ - "it stops working"
44
+
45
+ ## Boundaries
46
+
47
+ This checklist is for thesis quality only.
48
+
49
+ It does not answer:
50
+
51
+ - where to enter
52
+ - where to place a stop
53
+ - how large to trade
54
+ - whether the portfolio can absorb the risk
55
+
56
+ Those belong to downstream skills.