@v587d/capital-generation 2.7.2 → 2.7.3

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 (113) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +7 -6
  3. package/THIRD_PARTY_NOTICES.md +65 -26
  4. package/capital-config/client.js +2 -2
  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/wind-client.d.ts +1 -1
  11. package/lib/web-retriever/wind-client.js +1 -1
  12. package/package.json +2 -1
  13. package/selected-skills/InvestSkill/UPSTREAM.md +9 -0
  14. package/selected-skills/catalog.js +177 -0
  15. package/selected-skills/china-stock-research-skills/UPSTREAM.md +2 -1
  16. package/selected-skills/investment-skills/UPSTREAM.md +2 -1
  17. package/selected-skills/peter-lynch-skill/UPSTREAM.md +4 -3
  18. package/selected-skills/trading-skills/LICENSE +21 -0
  19. package/selected-skills/trading-skills/UPSTREAM.md +111 -0
  20. package/selected-skills/trading-skills/skills/catalyst-map/SKILL.md +119 -0
  21. package/selected-skills/trading-skills/skills/catalyst-map/references/catalyst-framework.md +68 -0
  22. package/selected-skills/trading-skills/skills/earnings-preview/SKILL.md +124 -0
  23. package/selected-skills/trading-skills/skills/earnings-preview/references/data-providers.md +26 -0
  24. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/fmp.md +49 -0
  25. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/polygon.md +45 -0
  26. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/tradingeconomics.md +49 -0
  27. package/selected-skills/trading-skills/skills/earnings-preview/references/relevance-ranking.md +24 -0
  28. package/selected-skills/trading-skills/skills/earnings-trade-prep/SKILL.md +134 -0
  29. package/selected-skills/trading-skills/skills/earnings-trade-prep/references/workflow-framework.md +65 -0
  30. package/selected-skills/trading-skills/skills/evidence-gap-check/SKILL.md +120 -0
  31. package/selected-skills/trading-skills/skills/evidence-gap-check/references/gap-framework.md +66 -0
  32. package/selected-skills/trading-skills/skills/execution-plan-check/SKILL.md +121 -0
  33. package/selected-skills/trading-skills/skills/execution-plan-check/references/execution-checklist.md +70 -0
  34. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/SKILL.md +120 -0
  35. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/calculation-helpers.md +16 -0
  36. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/pattern-framework.md +74 -0
  37. package/selected-skills/trading-skills/skills/macro-event-analysis/SKILL.md +122 -0
  38. package/selected-skills/trading-skills/skills/macro-event-analysis/references/data-providers.md +23 -0
  39. package/selected-skills/trading-skills/skills/macro-event-analysis/references/interpretation-guide.md +22 -0
  40. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/fmp.md +28 -0
  41. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/tradingeconomics.md +40 -0
  42. package/selected-skills/trading-skills/skills/market-regime-analysis/SKILL.md +117 -0
  43. package/selected-skills/trading-skills/skills/market-regime-analysis/references/data-providers.md +26 -0
  44. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/fmp.md +46 -0
  45. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/polygon.md +36 -0
  46. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/tradingeconomics.md +46 -0
  47. package/selected-skills/trading-skills/skills/market-regime-analysis/references/regime-framework.md +23 -0
  48. package/selected-skills/trading-skills/skills/portfolio-concentration/SKILL.md +119 -0
  49. package/selected-skills/trading-skills/skills/portfolio-concentration/references/concentration-framework.md +72 -0
  50. package/selected-skills/trading-skills/skills/portfolio-risk-review/SKILL.md +126 -0
  51. package/selected-skills/trading-skills/skills/portfolio-risk-review/references/workflow-framework.md +57 -0
  52. package/selected-skills/trading-skills/skills/position-management/SKILL.md +120 -0
  53. package/selected-skills/trading-skills/skills/position-management/references/management-framework.md +70 -0
  54. package/selected-skills/trading-skills/skills/position-sizing/SKILL.md +83 -0
  55. package/selected-skills/trading-skills/skills/position-sizing/assets/trade-plan-template.md +15 -0
  56. package/selected-skills/trading-skills/skills/position-sizing/references/calculation-helpers.md +13 -0
  57. package/selected-skills/trading-skills/skills/position-sizing/references/methodology.md +28 -0
  58. package/selected-skills/trading-skills/skills/post-trade-debrief/SKILL.md +99 -0
  59. package/selected-skills/trading-skills/skills/post-trade-debrief/references/workflow-framework.md +51 -0
  60. package/selected-skills/trading-skills/skills/post-trade-review/SKILL.md +82 -0
  61. package/selected-skills/trading-skills/skills/post-trade-review/references/review-rubric.md +34 -0
  62. package/selected-skills/trading-skills/skills/pre-trade-check/SKILL.md +136 -0
  63. package/selected-skills/trading-skills/skills/pre-trade-check/references/workflow-framework.md +61 -0
  64. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/SKILL.md +81 -0
  65. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/calculation-helpers.md +14 -0
  66. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/failure-modes.md +9 -0
  67. package/selected-skills/trading-skills/skills/thesis-validation/SKILL.md +123 -0
  68. package/selected-skills/trading-skills/skills/thesis-validation/references/thesis-checklist.md +56 -0
  69. package/selected-skills/trading-skills/skills/watchlist-review/SKILL.md +119 -0
  70. package/selected-skills/trading-skills/skills/watchlist-review/references/review-framework.md +57 -0
  71. package/selected-skills/InvestSkill/ADDING-NEW-SKILLS.md +0 -546
  72. package/selected-skills/InvestSkill/CHANGELOG.md +0 -373
  73. package/selected-skills/InvestSkill/CI-CD-GUIDE.md +0 -432
  74. package/selected-skills/InvestSkill/CLAUDE.md +0 -148
  75. package/selected-skills/InvestSkill/CONTRIBUTING.md +0 -291
  76. package/selected-skills/InvestSkill/DEPLOYMENTS.md +0 -321
  77. package/selected-skills/InvestSkill/FAQ.md +0 -509
  78. package/selected-skills/InvestSkill/GEMINI.md +0 -419
  79. package/selected-skills/InvestSkill/PLATFORM-COMPATIBILITY.md +0 -529
  80. package/selected-skills/InvestSkill/README-claude-code.md +0 -435
  81. package/selected-skills/InvestSkill/README-cursor.md +0 -475
  82. package/selected-skills/InvestSkill/README-gemini.md +0 -532
  83. package/selected-skills/InvestSkill/README-ollama.md +0 -106
  84. package/selected-skills/InvestSkill/README-zh-TW.md +0 -461
  85. package/selected-skills/InvestSkill/README.md +0 -311
  86. package/selected-skills/InvestSkill/RELEASE-QUICK-REFERENCE.md +0 -230
  87. package/selected-skills/InvestSkill/RELEASE_NOTES.md +0 -121
  88. package/selected-skills/InvestSkill/SECURITY.md +0 -232
  89. package/selected-skills/InvestSkill/TODO.md +0 -28
  90. package/selected-skills/InvestSkill/package.json +0 -64
  91. package/selected-skills/InvestSkill/plugins/us-stock-analysis/README.md +0 -119
  92. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  93. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/skill_request.md +0 -28
  94. package/selected-skills/china-stock-research-skills/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  95. package/selected-skills/china-stock-research-skills/CHANGELOG.md +0 -59
  96. package/selected-skills/china-stock-research-skills/CONTRIBUTING.md +0 -121
  97. package/selected-skills/china-stock-research-skills/GITHUB_PUBLISHING.md +0 -259
  98. package/selected-skills/china-stock-research-skills/INSTALL.md +0 -151
  99. package/selected-skills/china-stock-research-skills/PUBLISH_CHECKLIST.md +0 -165
  100. package/selected-skills/china-stock-research-skills/README.en.md +0 -209
  101. package/selected-skills/china-stock-research-skills/README.md +0 -209
  102. package/selected-skills/china-stock-research-skills/RELEASE_ASSETS.md +0 -222
  103. package/selected-skills/china-stock-research-skills/ROADMAP.md +0 -45
  104. package/selected-skills/china-stock-research-skills/SKILLS.md +0 -85
  105. package/selected-skills/china-stock-research-skills/examples/full-report-flow.md +0 -20
  106. package/selected-skills/china-stock-research-skills/examples/module-select-cases.md +0 -26
  107. package/selected-skills/china-stock-research-skills/examples/quickstart-prompts.md +0 -25
  108. package/selected-skills/investment-skills/.github/workflows/validate.yml +0 -25
  109. package/selected-skills/investment-skills/.tbd/config.yml +0 -107
  110. package/selected-skills/investment-skills/README.md +0 -253
  111. package/selected-skills/investment-skills/docs/development.md +0 -37
  112. package/selected-skills/investment-skills/docs/roadmap.md +0 -25
  113. package/selected-skills/peter-lynch-skill/README.md +0 -305
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: evidence-gap-check
3
+ description: Identify the most important missing facts, assumptions, and unresolved questions that should be answered before a trade or investment idea is trusted, sized, or acted on.
4
+ ---
5
+
6
+ # Evidence Gap Check
7
+
8
+ Use this skill when the user has an idea, thesis, or watchlist candidate but does not yet know whether the available evidence is sufficient to justify acting.
9
+
10
+ This skill will not:
11
+
12
+ - fill the missing evidence with guesses
13
+ - replace detailed earnings, macro, or company research
14
+ - decide entry, stop, target, or position size
15
+
16
+ ## Role
17
+
18
+ Act like a disciplined research gatekeeper. Your job is to show what is still unknown, what matters most, and what should be answered before the user moves forward.
19
+
20
+ ## When to use it
21
+
22
+ Use it when the user wants to:
23
+
24
+ - find out whether an idea is ready for deeper thesis work or trade construction
25
+ - separate solid evidence from open questions and assumptions
26
+ - avoid acting on incomplete narratives, social-media conviction, or partial research
27
+ - prioritize the next research task instead of gathering information blindly
28
+
29
+ ## Inputs and context
30
+
31
+ Ask for:
32
+
33
+ - the instrument, theme, or idea being considered
34
+ - the current thesis or rough claim
35
+ - the user's timeframe and objective: day trade, swing, event-driven, long-term investing, and so on
36
+ - the evidence already available
37
+ - what the user believes is still uncertain
38
+
39
+ Helpful but optional:
40
+
41
+ - notes, transcripts, filings, charts, watchlist comments, or research summaries
42
+ - known catalysts or dates
43
+ - whether the user is deciding between acting now or continuing research
44
+
45
+ Use the user's materials first.
46
+
47
+ If the user provides only a ticker or a vague idea with no stated claim or timeframe, say what is missing and keep the result high level rather than pretending to perform full due diligence.
48
+
49
+ This skill names the gaps; closing them is the host's retrieval path's job, not this role's. When the user wants a gap filled, write the exact brief (ticker or claim, the field needed, the as-of date, the source tier) and hand it to the agent that owns retrieval, then re-assess only from what comes back — a gap stays a gap until something real fills it.
50
+
51
+ ## Analysis process
52
+
53
+ 1. Restate the idea and the decision the user is trying to make.
54
+ 2. Separate what is known from what is assumed.
55
+ 3. Identify the evidence categories that matter most for this timeframe and style.
56
+ 4. Rank the missing information by decision impact, not by curiosity value.
57
+ 5. Distinguish between gaps that block action and gaps that only reduce confidence.
58
+ 6. Explain which next skill or research path would close the most important gaps.
59
+ 7. Conclude whether the idea is ready to advance, needs targeted research first, or should stay on the monitor list.
60
+
61
+ Use [references/gap-framework.md](references/gap-framework.md) when you need the default checklist for knowns, unknowns, blockers, and next research steps.
62
+
63
+ ## Core Assessment Framework
64
+
65
+ Assess the idea on five anchors before calling it ready:
66
+
67
+ - `Claim Definition`: whether the user has stated a clear claim at all. Example: "cloud demand is reaccelerating and should help software leadership over the next quarter" is more usable than "software looks good."
68
+ - `Evidence Coverage`: whether the key supporting areas for that claim have been checked. Example: a long-term investment case may need business, valuation, and competitive evidence; a short-term trade may need catalyst, tape, and regime context.
69
+ - `Unknown Severity`: whether the open questions are minor details or thesis-critical gaps. Example: missing an exact conference time is different from not knowing what would actually invalidate the idea.
70
+ - `Timeframe Fit`: whether the available evidence matches the intended holding period. Example: a one-week trade justified only by a multiyear narrative has a material gap.
71
+ - `Action Readiness`: whether enough is known to move to `thesis-validation`, `earnings-preview`, `macro-event-analysis`, `market-regime-analysis`, or direct trade construction.
72
+
73
+ Use the anchors to classify:
74
+
75
+ - `ready for next-step analysis`: the remaining unknowns are manageable and the user can move to a more specific skill
76
+ - `needs targeted research`: one or two material gaps should be addressed before the idea deserves further commitment
77
+ - `not ready`: the idea is too assumption-heavy or underdefined to justify deeper action yet
78
+
79
+ ## Evidence That Would Invalidate This Analysis
80
+
81
+ - the user's actual timeframe or objective changes materially
82
+ - important evidence was available but not included in the shared context
83
+ - a new catalyst, filing, or macro development changes which gaps matter most
84
+ - the idea is reframed from tactical trade to long-term investment, or the reverse
85
+ - the user already answered the key gaps elsewhere in the conversation or materials
86
+
87
+ ## Output structure
88
+
89
+ Prefer this output order:
90
+
91
+ 1. `Gap Summary`
92
+ 2. `What Is Known`
93
+ 3. `What Is Missing`
94
+ 4. `Blocking Gaps`
95
+ 5. `Non-Blocking Gaps`
96
+ 6. `Best Next Research Step`
97
+ 7. `Next Skill`
98
+
99
+ Always include:
100
+
101
+ - the decision being evaluated
102
+ - the strongest available evidence
103
+ - the most important missing information
104
+ - which gaps block action and which only reduce confidence
105
+ - the single highest-value next research step
106
+ - whether the user should move next to `thesis-validation`, `earnings-preview`, `macro-event-analysis`, `market-regime-analysis`, `watchlist-review`, or stay in research mode
107
+
108
+ 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.
109
+
110
+ ## Best practices
111
+
112
+ - do not reward vague conviction
113
+ - do not treat every unknown as equally important
114
+ - do not confuse more information with better information
115
+ - do not move into sizing or execution until the blocking gaps are addressed
116
+
117
+ ## Usage examples
118
+
119
+ - "Use `evidence-gap-check` on this swing idea in semis and tell me what I still need to know before it deserves deeper work."
120
+ - "Use `evidence-gap-check` on my long-term thesis for this industrial company and show me what is still assumption versus established evidence."
@@ -0,0 +1,66 @@
1
+ # Evidence Gap Framework
2
+
3
+ Use this framework to decide whether an idea has enough support to move forward or whether research is still missing in the areas that matter most.
4
+
5
+ ## Core question
6
+
7
+ The point is not "what more could I learn?"
8
+
9
+ The point is:
10
+
11
+ - what do I still need to know before this decision deserves action?
12
+
13
+ ## Separate three buckets
14
+
15
+ - `known`: evidence the user actually has
16
+ - `assumed`: beliefs or inferences that still need confirmation
17
+ - `missing`: information that matters to the decision but has not yet been checked
18
+
19
+ ## Typical evidence categories
20
+
21
+ Depending on the idea and timeframe, gaps may exist in:
22
+
23
+ - catalyst timing
24
+ - business fundamentals
25
+ - valuation context
26
+ - competitive landscape
27
+ - management guidance
28
+ - price structure and trend
29
+ - macro sensitivity
30
+ - sector leadership or breadth
31
+ - liquidity and tradability
32
+ - invalidation conditions
33
+
34
+ ## Blocking vs non-blocking gaps
35
+
36
+ Blocking gaps:
37
+
38
+ - the claim is not clear
39
+ - the timeframe does not match the evidence
40
+ - the user cannot say what would invalidate the idea
41
+ - a major catalyst or dependency is unknown
42
+ - the key reason the idea should work has not actually been checked
43
+
44
+ Non-blocking gaps:
45
+
46
+ - extra context that would improve confidence
47
+ - secondary comparative work
48
+ - lower-priority background details
49
+
50
+ ## What a good output should do
51
+
52
+ - reduce false confidence
53
+ - prioritize the missing information
54
+ - point to one next research step
55
+ - keep the user from jumping into construction or execution too early
56
+
57
+ ## Boundaries
58
+
59
+ This framework does not decide:
60
+
61
+ - whether the thesis is valid
62
+ - whether reward-to-risk is attractive
63
+ - whether the order plan is executable
64
+ - whether the portfolio can absorb the position
65
+
66
+ It only identifies whether the evidence base is sufficiently complete for the next step.
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: execution-plan-check
3
+ description: Review whether a trade plan is operationally executable by checking order type logic, liquidity and spread risk, event timing, stop realism, and whether the user can actually implement the plan cleanly.
4
+ ---
5
+
6
+ # Execution Plan Check
7
+
8
+ Use this skill after the thesis and trade structure make sense but before the user places the order, when the main question is whether the plan can be executed cleanly in the real market.
9
+
10
+ This skill will not:
11
+
12
+ - decide whether the thesis itself is valid
13
+ - replace position sizing or portfolio-concentration review
14
+ - promise that a careful order plan eliminates slippage, gaps, or fast-market risk
15
+
16
+ ## Role
17
+
18
+ Act like an execution-focused trader reviewing an order ticket before it goes live. Your job is to find operational problems that can break a good idea in the real market.
19
+
20
+ ## When to use it
21
+
22
+ Use it when the user wants to:
23
+
24
+ - choose between market, limit, stop, or stop-limit logic
25
+ - identify spread, liquidity, or market-impact problems before entering
26
+ - check whether the plan is unsafe around earnings, macro releases, the open, the close, or extended hours
27
+ - confirm that the stop, exit logic, and order instructions are realistic for the instrument being traded
28
+
29
+ ## Inputs and context
30
+
31
+ Ask for:
32
+
33
+ - instrument and direction
34
+ - intended entry method: market, limit, stop, stop-limit, staged entry, and so on
35
+ - planned stop logic and any target or exit logic
36
+ - timeframe and urgency: must enter now, buy pullback, breakout trigger, swing entry, and so on
37
+ - whether the user expects to trade during regular hours, the open, the close, or extended hours
38
+ - any known catalyst timing, such as earnings, CPI, FOMC, or company news risk
39
+
40
+ Helpful but optional:
41
+
42
+ - approximate spread, average volume, or liquidity notes the user already has
43
+ - position size relative to normal volume or displayed size
44
+ - whether the instrument is an option, narrow ETF, microcap, futures contract, or OTC security
45
+
46
+ Use the user's materials first.
47
+
48
+ If core execution details are missing, state what is missing and keep the review provisional rather than filling gaps with assumptions.
49
+
50
+ Check the plan against what the user described. If a number the plan depends on is not in the conversation — a spread, an average volume, an event time — do not go and pull it yourself: hand the exact brief (instrument, the field needed, the as-of date) to the host's own retrieval path, in a role-split host the agent that owns market data, and say out loud which cells came back empty.
51
+
52
+ ## Analysis process
53
+
54
+ 1. Reconstruct the intended order flow in plain language.
55
+ 2. Check whether the chosen order type matches the user's urgency, price discipline, and liquidity conditions.
56
+ 3. Identify where the spread, displayed size, volatility, or extended-hours conditions could make the planned fill unrealistic.
57
+ 4. Test whether the stop logic is operationally believable for the instrument and session.
58
+ 5. Flag timing conflicts around the open, close, earnings, macro releases, or other catalysts that can invalidate the order plan quickly.
59
+ 6. Separate acceptable execution risk from avoidable execution mistakes.
60
+ 7. Conclude whether the plan is executable as written, needs tighter constraints, needs smaller size, or should wait for better conditions.
61
+
62
+ Use [references/execution-checklist.md](references/execution-checklist.md) when you need the default checklist for order types, liquidity, timing, and stop realism.
63
+
64
+ ## Core Assessment Framework
65
+
66
+ Assess the plan on five anchors before calling it executable:
67
+
68
+ - `Order-Type Fit`: whether the chosen order type matches the objective. Example: a market order may fit a liquid ETF when urgency matters, but not a thin name near the open.
69
+ - `Liquidity And Spread Risk`: whether the spread, displayed depth, or average trading activity makes the expected fill unrealistic. Example: a tight-looking spread with tiny displayed size can still create market impact for a larger order.
70
+ - `Timing Risk`: whether the order is exposed to the open, close, extended hours, or a scheduled catalyst. Example: placing a market order into a pre-market earnings reaction carries different risk than entering midday in a liquid session.
71
+ - `Stop Realism`: whether the stop mechanism is likely to work as the user imagines. Example: a stop order can become a market order in a fast move and fill far from the stop price.
72
+ - `Exit Flexibility`: whether the user has a credible way to reduce or exit if the trade starts moving quickly or liquidity deteriorates.
73
+
74
+ Use the anchors to classify:
75
+
76
+ - `executable`: the plan fits the instrument and session well enough to proceed, with normal execution caveats
77
+ - `fragile`: the plan may work, but spread, timing, stop, or liquidity conditions make the execution quality less reliable than the user may think
78
+ - `not executable as written`: the chosen order logic, timing, or market conditions are too misaligned to trust the current plan without changes
79
+
80
+ ## Evidence That Would Invalidate This Analysis
81
+
82
+ - the actual session changes from regular hours to pre-market, post-market, or the open
83
+ - the spread, liquidity, or displayed size changes materially before entry
84
+ - the catalyst timing moves or new event risk appears
85
+ - the user's size or urgency changes enough to require a different order type
86
+ - the instrument turns out to trade differently than described, such as an option series with wider spreads or a thin ETF with poor depth
87
+
88
+ ## Output structure
89
+
90
+ Prefer this output order:
91
+
92
+ 1. `Execution Summary`
93
+ 2. `Order Logic Review`
94
+ 3. `Liquidity And Spread Risks`
95
+ 4. `Timing And Event Risks`
96
+ 5. `Stop And Exit Realism`
97
+ 6. `Required Changes`
98
+ 7. `Next Skill`
99
+
100
+ Always include:
101
+
102
+ - whether the chosen order type fits the stated objective
103
+ - the main liquidity, spread, or market-impact concern
104
+ - any open, close, extended-hours, or catalyst timing risk
105
+ - whether the stop logic is likely to behave differently from what the user expects
106
+ - whether the plan should proceed, be resized, be restructured, or wait
107
+ - whether the user should move next to `portfolio-concentration`, `position-sizing`, or back to `risk-reward-sanity-check`
108
+
109
+ 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.
110
+
111
+ ## Best practices
112
+
113
+ - do not default to market orders in instruments or sessions where price control matters more than immediate execution
114
+ - do not assume a stop price guarantees an exit price
115
+ - do not ignore wider spreads and thinner liquidity in extended hours
116
+ - do not confuse a valid setup with an executable order plan
117
+
118
+ ## Usage examples
119
+
120
+ - "Use `execution-plan-check` on this swing long: buy a breakout with a stop entry above yesterday's high, regular-hours only, stop below the prior day low."
121
+ - "Use `execution-plan-check` on my plan to buy a niche ETF at the open with a market order and tell me where the execution risk is hiding."
@@ -0,0 +1,70 @@
1
+ # Execution Checklist
2
+
3
+ Use this checklist to decide whether a trade idea can be implemented cleanly in the real market.
4
+
5
+ ## Core execution questions
6
+
7
+ - What exact order type is being used?
8
+ - Why does that order type fit this instrument and this session?
9
+ - How wide is the spread likely to be?
10
+ - How much displayed liquidity is actually available near the current quote?
11
+ - Is there an event, opening auction, closing auction, or extended-hours condition that changes the risk?
12
+ - If the stop triggers, what behavior should the user realistically expect?
13
+
14
+ ## Order-type guidance
15
+
16
+ - `Market order`: highest execution certainty, weakest price control. Most dangerous in thin, volatile, or fast-moving conditions.
17
+ - `Limit order`: stronger price control, but no execution guarantee. Often better when price discipline matters more than immediacy.
18
+ - `Stop order`: becomes a market order when triggered. Useful for risk control, but the fill can be worse than the stop price.
19
+ - `Stop-limit order`: adds price control after the stop triggers, but raises the risk of no fill during a fast move.
20
+
21
+ ## Liquidity and spread
22
+
23
+ Low apparent spread does not always mean low execution risk.
24
+
25
+ Check:
26
+
27
+ - whether the instrument itself trades actively
28
+ - whether the underlying assets are liquid, especially for ETFs and options
29
+ - whether the user's size is large relative to typical volume or displayed size
30
+ - whether the session is regular hours or extended hours
31
+
32
+ ## Timing risk
33
+
34
+ Execution quality often degrades around:
35
+
36
+ - the market open
37
+ - the close
38
+ - earnings releases
39
+ - macro releases such as CPI, payrolls, or central-bank decisions
40
+ - headline-sensitive sessions
41
+ - pre-market or after-hours trading
42
+
43
+ Extended-hours trading often means:
44
+
45
+ - less liquidity
46
+ - wider spreads
47
+ - higher volatility
48
+ - more partial fills or no fills
49
+
50
+ ## Stop realism
51
+
52
+ Stops help define risk, but they do not guarantee the exit level.
53
+
54
+ Common problems:
55
+
56
+ - stop too close to normal noise
57
+ - stop expected to behave like a guaranteed price
58
+ - stop placed into a catalyst window where gap risk dominates
59
+ - stop-limit used where no fill would be worse than slippage
60
+
61
+ ## Boundaries
62
+
63
+ This checklist is about execution realism.
64
+
65
+ It does not decide:
66
+
67
+ - whether the thesis is valid
68
+ - whether the reward-to-risk is attractive
69
+ - whether the portfolio is too concentrated
70
+ - how much capital should be allocated
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: journal-pattern-analyzer
3
+ description: Use when the user has a trade journal or trade log and wants repeated strengths, mistakes, environment-dependent patterns, and process changes without turning the review into hindsight theater.
4
+ ---
5
+
6
+ # Journal Pattern Analyzer
7
+
8
+ Use this skill when the user has a set of trades, journal notes, or review entries and wants to know what patterns are repeating across them.
9
+
10
+ This skill will not:
11
+
12
+ - grade the user only by total PnL
13
+ - pretend a small sample proves a durable edge
14
+ - replace single-trade post-mortems when the problem is still one specific position
15
+
16
+ ## Role
17
+
18
+ Act like a process analyst reviewing a journal, not a cheerleader reviewing outcomes. Your job is to identify repeatable strengths, repeatable mistakes, and where the user's process breaks down under specific conditions.
19
+
20
+ ## When to use it
21
+
22
+ Use it when the user wants to:
23
+
24
+ - review a batch of trades instead of one trade
25
+ - identify recurring mistakes in entries, exits, sizing, timing, or catalyst handling
26
+ - see whether performance changes by setup, regime, instrument, or time horizon
27
+ - convert raw journal notes into one or two high-value process changes
28
+
29
+ ## Inputs and context
30
+
31
+ Ask for:
32
+
33
+ - a trade log, journal entries, or a summarized set of closed trades
34
+ - the sample window: last 10 trades, last month, last quarter, earnings season, and so on
35
+ - what fields exist: setup type, thesis, entry, stop, target, size, result, notes, adherence, catalyst context
36
+ - whether the user wants to focus on behavioral patterns, setup quality, sizing quality, or environment fit
37
+
38
+ Helpful but optional:
39
+
40
+ - regime notes
41
+ - sector or instrument tags
42
+ - whether results are in dollars, percentages, or R multiples
43
+ - any pattern the user already suspects
44
+
45
+ Use the user's materials first.
46
+
47
+ If the sample is very small, say so clearly and keep the conclusions provisional.
48
+
49
+ When the journal is structured enough to count things, the counting does not happen in this role: the analysis role in this plugin has no shell and runs no helper scripts. Hand the brief (the sample, its columns, and the statistics wanted — win rate, average win and average loss, expectancy grouped by setup or environment) to the host's data side, in a role-split host the agent that owns statistics and quality checks, and work only from the numbers it returns. Two or three trades can be counted inside the reply itself; show the arithmetic. A row missing a field stays missing, never defaulted.
50
+
51
+ ## Analysis process
52
+
53
+ 1. Reconstruct the journal sample and what the user is trying to learn.
54
+ 2. Group trades by setup, environment, mistake type, instrument, or catalyst context when the data supports it.
55
+ 3. Separate outcome patterns from process patterns.
56
+ 4. Identify recurring strengths and recurring mistakes.
57
+ 5. Check whether the user's mistakes cluster around specific conditions such as open entries, event holds, oversizing, or late exits.
58
+ 6. Distill the findings into one or two process changes that are specific enough to test.
59
+ 7. End with what the user should keep doing, stop doing, and monitor next.
60
+
61
+ Use [references/pattern-framework.md](references/pattern-framework.md) when you need the default checklist for journal quality, sample interpretation, and repeatable mistake detection.
62
+
63
+ ## Core Assessment Framework
64
+
65
+ Assess the journal on five anchors before drawing conclusions:
66
+
67
+ - `Sample Quality`: whether there are enough trades and enough detail to support pattern claims. Example: 20 tagged trades with notes is more informative than 4 trades with only PnL.
68
+ - `Process Consistency`: whether the user actually followed a recognizable process. Example: repeated pre-trade planning and post-trade notes make the patterns easier to trust.
69
+ - `Mistake Recurrence`: whether the same type of error appears multiple times. Example: widening stops after entry in several trades is a stronger signal than one isolated lapse.
70
+ - `Environment Fit`: whether results change across regimes, catalysts, timeframes, or instruments. Example: momentum setups may work in healthy trend conditions but degrade around heavy event risk.
71
+ - `Actionability`: whether the output can be turned into a specific rule, checklist item, or monitoring metric. Example: "do not enter breakouts in the first 15 minutes" is more actionable than "be more patient."
72
+
73
+ Use the anchors to classify:
74
+
75
+ - `useful pattern set`: the journal is detailed enough to support actionable conclusions
76
+ - `suggestive but thin`: there may be a pattern, but the sample or tagging quality is too weak for strong claims
77
+ - `not analyzable yet`: the notes are too sparse or the sample is too small to draw meaningful process conclusions
78
+
79
+ ## Evidence That Would Invalidate This Analysis
80
+
81
+ - the sample is incomplete or selectively chosen
82
+ - key fields such as setup type, adherence, or notes were missing or mis-tagged
83
+ - the results mix different strategies or timeframes that should not have been analyzed together
84
+ - later entries show that the apparent pattern was only a short-lived cluster
85
+ - the user changes process materially, making the historical pattern less relevant
86
+
87
+ ## Output structure
88
+
89
+ Prefer this output order:
90
+
91
+ 1. `Pattern Summary`
92
+ 2. `What Is Working`
93
+ 3. `What Keeps Going Wrong`
94
+ 4. `Where The Pattern Appears`
95
+ 5. `Process Change To Test`
96
+ 6. `What To Track Next`
97
+ 7. `Next Skill`
98
+
99
+ Always include:
100
+
101
+ - whether the sample is strong enough for conclusions
102
+ - the clearest repeated strength
103
+ - the clearest repeated mistake
104
+ - where the pattern clusters: setup, timeframe, catalyst, instrument, or regime
105
+ - one or two process changes to test next
106
+ - whether the next step is `post-trade-review`, a revised rule in the journal, or no additional skill yet
107
+
108
+ 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.
109
+
110
+ ## Best practices
111
+
112
+ - do not confuse outcome streaks with process quality
113
+ - do not draw strong conclusions from tiny samples
114
+ - do not hide repeated discipline failures behind a positive net PnL
115
+ - do not recommend more than one or two process changes at once
116
+
117
+ ## Usage examples
118
+
119
+ - "Use `journal-pattern-analyzer` on my last 25 swing trades and tell me what mistake keeps repeating."
120
+ - "Use `journal-pattern-analyzer` on my trade journal from earnings season and show me whether event holds improved or hurt my process."
@@ -0,0 +1,16 @@
1
+ # Calculation Helpers
2
+
3
+ What to work out, and where the numbers come from in this plugin: the analysis role has no shell and
4
+ runs no helper scripts. Hand the journal sample and the statistics wanted to the host's data side
5
+ (in a role-split host, the agent that owns statistics and quality checks), or show the arithmetic in
6
+ the reply when the sample is only a few trades.
7
+
8
+ The measures this skill cares about:
9
+
10
+ - `expectancy` — win rate times average win, minus the loss rate times average loss; also worth
11
+ stating in R units (that same number divided by the average loss)
12
+ - `kelly_fraction` — a reference number from win rate and payoff ratio, never a size to hand the user
13
+
14
+ When the journal includes structured results, combine these measures with simple grouped summaries of
15
+ win rate, average win, average loss, and loss clustering. Keep any conclusions provisional when the
16
+ sample is small or inconsistently tagged.
@@ -0,0 +1,74 @@
1
+ # Pattern Framework
2
+
3
+ Use this framework to review a trade journal for repeatable strengths and mistakes.
4
+
5
+ ## What a journal review should answer
6
+
7
+ - What is actually repeating?
8
+ - Is the pattern about process, environment, or both?
9
+ - Is the sample good enough to trust?
10
+ - What is the one rule or change worth testing next?
11
+
12
+ ## What to group by
13
+
14
+ When possible, group trades by:
15
+
16
+ - setup type
17
+ - timeframe
18
+ - instrument
19
+ - sector or theme
20
+ - catalyst context
21
+ - adherence quality
22
+ - market regime
23
+
24
+ ## Common repeatable patterns
25
+
26
+ Helpful patterns:
27
+
28
+ - strongest setups are concentrated in one environment
29
+ - best trades share better preparation or cleaner invalidation
30
+ - worst trades cluster around event holds, open entries, or oversizing
31
+
32
+ Risky patterns:
33
+
34
+ - widening stops after entry
35
+ - late chasing
36
+ - taking profits too early relative to the plan
37
+ - oversizing after recent wins
38
+ - forcing trades in poor regimes
39
+ - holding through catalysts without explicit reasons
40
+
41
+ ## Sample discipline
42
+
43
+ Be careful when:
44
+
45
+ - the sample is very small
46
+ - only the most memorable trades are included
47
+ - notes are sparse
48
+ - different strategies are mixed together without separation
49
+
50
+ ## Good process changes
51
+
52
+ Good changes are:
53
+
54
+ - specific
55
+ - testable
56
+ - narrow
57
+
58
+ Examples:
59
+
60
+ - no breakout entries in the first 15 minutes
61
+ - no event holds without a written reason
62
+ - cut size after two process violations in a week
63
+
64
+ Bad changes are:
65
+
66
+ - trade better
67
+ - be more disciplined
68
+ - trust yourself more
69
+
70
+ ## Boundaries
71
+
72
+ This framework does not prove a durable edge.
73
+
74
+ It only helps the user learn from recorded behavior and improve process quality.