@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.
- package/CHANGELOG.md +119 -0
- package/README.md +10 -9
- package/THIRD_PARTY_NOTICES.md +116 -30
- package/capital-config/client.js +4 -4
- package/capital-config/package.json +1 -1
- package/capital-watchlist/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/sources.d.ts +1 -1
- package/lib/web-retriever/sources.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +3 -1
- package/selected-skills/InvestSkill/UPSTREAM.md +9 -0
- package/selected-skills/README.md +6 -1
- package/selected-skills/catalog.js +353 -0
- package/selected-skills/china-stock-research-skills/UPSTREAM.md +2 -1
- package/selected-skills/claude-for-financial-services-cn/LICENSE +201 -0
- package/selected-skills/claude-for-financial-services-cn/UPSTREAM.md +173 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-3-statement-model/SKILL.md +287 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-accrual-schedule/SKILL.md +182 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-audit-xls/SKILL.md +231 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-break-trace/SKILL.md +217 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-catalyst-calendar/SKILL.md +258 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-clean-data-xls/SKILL.md +237 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-comps/SKILL.md +104 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-comps-analysis/SKILL.md +196 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-dcf/SKILL.md +81 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-dcf-model/SKILL.md +68 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-deal-screening/SKILL.md +212 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-deck-refresh/SKILL.md +221 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-earnings-analysis/SKILL.md +237 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-earnings-preview/SKILL.md +239 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-gl-recon/SKILL.md +232 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-ib-check-deck/SKILL.md +252 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-idea-generation/SKILL.md +277 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-initiating-coverage/SKILL.md +271 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-lbo-model/SKILL.md +273 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-market-data/SKILL.md +229 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-model-update/SKILL.md +219 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-morning-note/SKILL.md +227 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-ppt-template-creator/SKILL.md +231 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-pptx-author/SKILL.md +240 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-roll-forward/SKILL.md +189 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-sector-overview/SKILL.md +257 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-skill-creator/SKILL.md +304 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-tax-loss-harvesting/SKILL.md +200 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-thesis-tracker/SKILL.md +237 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-variance-commentary/SKILL.md +262 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-xlsx-author/SKILL.md +256 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-accrual-schedule/SKILL.md +190 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-break-trace/SKILL.md +182 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-gl-recon/SKILL.md +200 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-nav-tieout/SKILL.md +233 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-roll-forward/SKILL.md +178 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-variance-commentary/SKILL.md +190 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-buyer-list/SKILL.md +198 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-cim-builder/SKILL.md +223 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-competitive-analysis/SKILL.md +233 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-datapack-builder/SKILL.md +232 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-deal-tracker/SKILL.md +151 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-merger-model/SKILL.md +226 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-pitch-deck/SKILL.md +231 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-process-letter/SKILL.md +249 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-strip-profile/SKILL.md +196 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-teaser/SKILL.md +235 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/operations/skills/china-kyc-doc-parse/SKILL.md +252 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/operations/skills/china-kyc-rules/SKILL.md +223 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-ai-readiness/SKILL.md +184 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-dd-checklist/SKILL.md +217 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-dd-meeting-prep/SKILL.md +290 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-deal-sourcing/SKILL.md +224 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-ic-memo/SKILL.md +230 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-portfolio-monitoring/SKILL.md +214 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-returns-analysis/SKILL.md +176 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-unit-economics/SKILL.md +192 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-value-creation-plan/SKILL.md +193 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-client-report/SKILL.md +205 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-client-review/SKILL.md +218 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-financial-plan/SKILL.md +259 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-investment-proposal/SKILL.md +271 -0
- package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-portfolio-rebalance/SKILL.md +191 -0
- package/selected-skills/investment-skills/UPSTREAM.md +2 -1
- package/selected-skills/peter-lynch-skill/UPSTREAM.md +4 -3
- package/selected-skills/trading-skills/LICENSE +21 -0
- package/selected-skills/trading-skills/UPSTREAM.md +111 -0
- package/selected-skills/trading-skills/skills/catalyst-map/SKILL.md +119 -0
- package/selected-skills/trading-skills/skills/catalyst-map/references/catalyst-framework.md +68 -0
- package/selected-skills/trading-skills/skills/earnings-preview/SKILL.md +124 -0
- package/selected-skills/trading-skills/skills/earnings-preview/references/data-providers.md +26 -0
- package/selected-skills/trading-skills/skills/earnings-preview/references/providers/fmp.md +49 -0
- package/selected-skills/trading-skills/skills/earnings-preview/references/providers/polygon.md +45 -0
- package/selected-skills/trading-skills/skills/earnings-preview/references/providers/tradingeconomics.md +49 -0
- package/selected-skills/trading-skills/skills/earnings-preview/references/relevance-ranking.md +24 -0
- package/selected-skills/trading-skills/skills/earnings-trade-prep/SKILL.md +134 -0
- package/selected-skills/trading-skills/skills/earnings-trade-prep/references/workflow-framework.md +65 -0
- package/selected-skills/trading-skills/skills/evidence-gap-check/SKILL.md +120 -0
- package/selected-skills/trading-skills/skills/evidence-gap-check/references/gap-framework.md +66 -0
- package/selected-skills/trading-skills/skills/execution-plan-check/SKILL.md +121 -0
- package/selected-skills/trading-skills/skills/execution-plan-check/references/execution-checklist.md +70 -0
- package/selected-skills/trading-skills/skills/journal-pattern-analyzer/SKILL.md +120 -0
- package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/calculation-helpers.md +16 -0
- package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/pattern-framework.md +74 -0
- package/selected-skills/trading-skills/skills/macro-event-analysis/SKILL.md +122 -0
- package/selected-skills/trading-skills/skills/macro-event-analysis/references/data-providers.md +23 -0
- package/selected-skills/trading-skills/skills/macro-event-analysis/references/interpretation-guide.md +22 -0
- package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/fmp.md +28 -0
- package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/tradingeconomics.md +40 -0
- package/selected-skills/trading-skills/skills/market-regime-analysis/SKILL.md +117 -0
- package/selected-skills/trading-skills/skills/market-regime-analysis/references/data-providers.md +26 -0
- package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/fmp.md +46 -0
- package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/polygon.md +36 -0
- package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/tradingeconomics.md +46 -0
- package/selected-skills/trading-skills/skills/market-regime-analysis/references/regime-framework.md +23 -0
- package/selected-skills/trading-skills/skills/portfolio-concentration/SKILL.md +119 -0
- package/selected-skills/trading-skills/skills/portfolio-concentration/references/concentration-framework.md +72 -0
- package/selected-skills/trading-skills/skills/portfolio-risk-review/SKILL.md +126 -0
- package/selected-skills/trading-skills/skills/portfolio-risk-review/references/workflow-framework.md +57 -0
- package/selected-skills/trading-skills/skills/position-management/SKILL.md +120 -0
- package/selected-skills/trading-skills/skills/position-management/references/management-framework.md +70 -0
- package/selected-skills/trading-skills/skills/position-sizing/SKILL.md +83 -0
- package/selected-skills/trading-skills/skills/position-sizing/assets/trade-plan-template.md +15 -0
- package/selected-skills/trading-skills/skills/position-sizing/references/calculation-helpers.md +13 -0
- package/selected-skills/trading-skills/skills/position-sizing/references/methodology.md +28 -0
- package/selected-skills/trading-skills/skills/post-trade-debrief/SKILL.md +99 -0
- package/selected-skills/trading-skills/skills/post-trade-debrief/references/workflow-framework.md +51 -0
- package/selected-skills/trading-skills/skills/post-trade-review/SKILL.md +82 -0
- package/selected-skills/trading-skills/skills/post-trade-review/references/review-rubric.md +34 -0
- package/selected-skills/trading-skills/skills/pre-trade-check/SKILL.md +136 -0
- package/selected-skills/trading-skills/skills/pre-trade-check/references/workflow-framework.md +61 -0
- package/selected-skills/trading-skills/skills/risk-reward-sanity-check/SKILL.md +81 -0
- package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/calculation-helpers.md +14 -0
- package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/failure-modes.md +9 -0
- package/selected-skills/trading-skills/skills/thesis-validation/SKILL.md +123 -0
- package/selected-skills/trading-skills/skills/thesis-validation/references/thesis-checklist.md +56 -0
- package/selected-skills/trading-skills/skills/watchlist-review/SKILL.md +119 -0
- package/selected-skills/trading-skills/skills/watchlist-review/references/review-framework.md +57 -0
- package/selected-skills/InvestSkill/ADDING-NEW-SKILLS.md +0 -546
- package/selected-skills/InvestSkill/CHANGELOG.md +0 -373
- package/selected-skills/InvestSkill/CI-CD-GUIDE.md +0 -432
- package/selected-skills/InvestSkill/CLAUDE.md +0 -148
- package/selected-skills/InvestSkill/CONTRIBUTING.md +0 -291
- package/selected-skills/InvestSkill/DEPLOYMENTS.md +0 -321
- package/selected-skills/InvestSkill/FAQ.md +0 -509
- package/selected-skills/InvestSkill/GEMINI.md +0 -419
- package/selected-skills/InvestSkill/PLATFORM-COMPATIBILITY.md +0 -529
- package/selected-skills/InvestSkill/README-claude-code.md +0 -435
- package/selected-skills/InvestSkill/README-cursor.md +0 -475
- package/selected-skills/InvestSkill/README-gemini.md +0 -532
- package/selected-skills/InvestSkill/README-ollama.md +0 -106
- package/selected-skills/InvestSkill/README-zh-TW.md +0 -461
- package/selected-skills/InvestSkill/README.md +0 -311
- package/selected-skills/InvestSkill/RELEASE-QUICK-REFERENCE.md +0 -230
- package/selected-skills/InvestSkill/RELEASE_NOTES.md +0 -121
- package/selected-skills/InvestSkill/SECURITY.md +0 -232
- package/selected-skills/InvestSkill/TODO.md +0 -28
- package/selected-skills/InvestSkill/package.json +0 -64
- package/selected-skills/InvestSkill/plugins/us-stock-analysis/README.md +0 -119
- package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
- package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/skill_request.md +0 -28
- package/selected-skills/china-stock-research-skills/.github/PULL_REQUEST_TEMPLATE.md +0 -15
- package/selected-skills/china-stock-research-skills/CHANGELOG.md +0 -59
- package/selected-skills/china-stock-research-skills/CONTRIBUTING.md +0 -121
- package/selected-skills/china-stock-research-skills/GITHUB_PUBLISHING.md +0 -259
- package/selected-skills/china-stock-research-skills/INSTALL.md +0 -151
- package/selected-skills/china-stock-research-skills/PUBLISH_CHECKLIST.md +0 -165
- package/selected-skills/china-stock-research-skills/README.en.md +0 -209
- package/selected-skills/china-stock-research-skills/README.md +0 -209
- package/selected-skills/china-stock-research-skills/RELEASE_ASSETS.md +0 -222
- package/selected-skills/china-stock-research-skills/ROADMAP.md +0 -45
- package/selected-skills/china-stock-research-skills/SKILLS.md +0 -85
- package/selected-skills/china-stock-research-skills/examples/full-report-flow.md +0 -20
- package/selected-skills/china-stock-research-skills/examples/module-select-cases.md +0 -26
- package/selected-skills/china-stock-research-skills/examples/quickstart-prompts.md +0 -25
- package/selected-skills/investment-skills/.github/workflows/validate.yml +0 -25
- package/selected-skills/investment-skills/.tbd/config.yml +0 -107
- package/selected-skills/investment-skills/README.md +0 -253
- package/selected-skills/investment-skills/docs/development.md +0 -37
- package/selected-skills/investment-skills/docs/roadmap.md +0 -25
- package/selected-skills/peter-lynch-skill/README.md +0 -305
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Concentration Framework
|
|
2
|
+
|
|
3
|
+
Use this framework to judge whether a portfolio is less diversified than the raw ticker count suggests.
|
|
4
|
+
|
|
5
|
+
## What concentration risk actually means
|
|
6
|
+
|
|
7
|
+
Concentration risk is not only "one giant stock position."
|
|
8
|
+
|
|
9
|
+
It can also come from:
|
|
10
|
+
|
|
11
|
+
- multiple holdings tied to the same issuer
|
|
12
|
+
- sector overlap
|
|
13
|
+
- thematic overlap
|
|
14
|
+
- benchmark overlap
|
|
15
|
+
- employer stock
|
|
16
|
+
- illiquid positions that cannot be reduced easily
|
|
17
|
+
- partial portfolio views that hide true exposures
|
|
18
|
+
|
|
19
|
+
## Source-informed heuristics
|
|
20
|
+
|
|
21
|
+
These are practical review thresholds, not universal laws:
|
|
22
|
+
|
|
23
|
+
- A single position at roughly `5%` of total portfolio value deserves review.
|
|
24
|
+
- A single issuer above roughly `10%` is often already an elevated concentration case for many investors.
|
|
25
|
+
- Employer stock above roughly `10-20%` is a notable overconcentration risk because income and portfolio value may depend on the same company.
|
|
26
|
+
- Two or three concentrated single-name positions can create concentration risk even if no single holding looks extreme by itself.
|
|
27
|
+
|
|
28
|
+
These heuristics are informed by retail-investor guidance and portfolio tools from FINRA, Fidelity, and Schwab. Use them as prompts for review, not mechanical rules.
|
|
29
|
+
|
|
30
|
+
## Direct vs indirect concentration
|
|
31
|
+
|
|
32
|
+
Direct concentration:
|
|
33
|
+
|
|
34
|
+
- one stock
|
|
35
|
+
- one bond issuer
|
|
36
|
+
- one narrow ETF
|
|
37
|
+
|
|
38
|
+
Indirect concentration:
|
|
39
|
+
|
|
40
|
+
- individual semiconductor names plus a semiconductor ETF
|
|
41
|
+
- multiple AI or cloud names with the same demand driver
|
|
42
|
+
- broad indexes that already have large weights in the same mega-cap holdings
|
|
43
|
+
- company stock plus compensation, restricted stock, or career exposure to the same issuer
|
|
44
|
+
|
|
45
|
+
## What to look for
|
|
46
|
+
|
|
47
|
+
Ask:
|
|
48
|
+
|
|
49
|
+
- What are the top three positions?
|
|
50
|
+
- What are the top three correlated clusters?
|
|
51
|
+
- If one thesis fails, how many holdings fail with it?
|
|
52
|
+
- Could the user reduce the exposure quickly?
|
|
53
|
+
- Is this the full portfolio or just one sleeve?
|
|
54
|
+
|
|
55
|
+
## Typical caution cases
|
|
56
|
+
|
|
57
|
+
- employer stock paired with salary dependence
|
|
58
|
+
- narrow sector ETFs layered on top of the same underlying single names
|
|
59
|
+
- thematic baskets that look diversified by label but share the same catalyst chain
|
|
60
|
+
- portfolios tied closely to cap-weighted indexes during periods of heavy mega-cap concentration
|
|
61
|
+
- illiquid or tax-constrained winners that grew into oversized positions
|
|
62
|
+
|
|
63
|
+
## Boundaries
|
|
64
|
+
|
|
65
|
+
This framework does not decide:
|
|
66
|
+
|
|
67
|
+
- whether the thesis is valid
|
|
68
|
+
- where to enter
|
|
69
|
+
- where the stop belongs
|
|
70
|
+
- how large the position should be
|
|
71
|
+
|
|
72
|
+
It only answers whether the portfolio is already too dependent on a small set of exposures.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: portfolio-risk-review
|
|
3
|
+
description: Orchestrate a whole-book risk review by checking concentration, correlated exposure, catalyst clustering, market-context sensitivity, and live-position fragility before the user adds, holds, or reduces portfolio risk.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Portfolio Risk Review
|
|
7
|
+
|
|
8
|
+
Use this workflow skill when the user wants a portfolio-level answer to the question, "Where is my real risk right now?" rather than a single-position analysis.
|
|
9
|
+
|
|
10
|
+
This workflow will not:
|
|
11
|
+
|
|
12
|
+
- build a long-term strategic financial plan
|
|
13
|
+
- replace tax, legal, or retirement-planning advice
|
|
14
|
+
- assume a portfolio is safe just because no single holding looks extreme in isolation
|
|
15
|
+
|
|
16
|
+
## Role
|
|
17
|
+
|
|
18
|
+
Act like a portfolio risk reviewer. Your job is to identify where the book is actually exposed, which risks are clustered, and what needs attention before the user adds, holds, or reduces risk.
|
|
19
|
+
|
|
20
|
+
## When to use it
|
|
21
|
+
|
|
22
|
+
Use it when the user wants to:
|
|
23
|
+
|
|
24
|
+
- review portfolio risk before adding a new position
|
|
25
|
+
- understand where concentration or overlap is hiding
|
|
26
|
+
- assess whether upcoming catalysts create too much clustered exposure
|
|
27
|
+
- know whether the current book needs trimming, hedging, smaller adds, or closer monitoring
|
|
28
|
+
|
|
29
|
+
## Inputs and context
|
|
30
|
+
|
|
31
|
+
Ask for:
|
|
32
|
+
|
|
33
|
+
- the portfolio or account snapshot, including approximate weights or position sizes
|
|
34
|
+
- whether the snapshot is the full portfolio, one account, or only the active risk sleeve
|
|
35
|
+
- any planned new add or reduction
|
|
36
|
+
- upcoming catalysts the user already knows about
|
|
37
|
+
- whether the focus is tactical trading capital, swing capital, or longer-term investing capital
|
|
38
|
+
|
|
39
|
+
Helpful but optional:
|
|
40
|
+
|
|
41
|
+
- sector, theme, or factor tags
|
|
42
|
+
- current regime view or macro concern
|
|
43
|
+
- which positions are already under pressure or near key catalysts
|
|
44
|
+
- any known liquidity or execution constraints
|
|
45
|
+
|
|
46
|
+
Use the user's materials first.
|
|
47
|
+
|
|
48
|
+
If the snapshot is partial, say so clearly and keep the result provisional.
|
|
49
|
+
|
|
50
|
+
## Workflow routing
|
|
51
|
+
|
|
52
|
+
Use the smallest useful chain:
|
|
53
|
+
|
|
54
|
+
1. Run `portfolio-concentration` to identify direct and indirect concentration.
|
|
55
|
+
2. If catalyst clustering matters, run `catalyst-map`.
|
|
56
|
+
3. If broad market context matters, run `market-regime-analysis`.
|
|
57
|
+
4. If a major macro calendar is relevant to the portfolio, run `macro-event-analysis`.
|
|
58
|
+
5. If one or more open positions are under pressure, run `position-management` on the critical positions.
|
|
59
|
+
6. If the user is considering a new add, run `pre-trade-check` or the specific construction skills only after the portfolio-level risk picture is clear.
|
|
60
|
+
|
|
61
|
+
Stop the workflow when the book is already too concentrated or too catalyst-heavy for the user's stated objective.
|
|
62
|
+
|
|
63
|
+
## Decision logic
|
|
64
|
+
|
|
65
|
+
Classify the result as:
|
|
66
|
+
|
|
67
|
+
- `portfolio risk acceptable`: the book appears aligned with the user's objective and no immediate portfolio-level change is necessary
|
|
68
|
+
- `portfolio risk elevated`: the book is still manageable, but concentration, overlap, or catalyst clustering needs active monitoring or smaller adds
|
|
69
|
+
- `portfolio risk too high`: the book is too dependent on a limited set of exposures, events, or fragile positions to justify adding risk without changes
|
|
70
|
+
|
|
71
|
+
## Output structure
|
|
72
|
+
|
|
73
|
+
Prefer this output order:
|
|
74
|
+
|
|
75
|
+
1. `Portfolio Risk Verdict`
|
|
76
|
+
2. `Checks Run`
|
|
77
|
+
3. `Main Risk Sources`
|
|
78
|
+
4. `Catalyst And Regime Pressure`
|
|
79
|
+
5. `What To Reduce, Watch, Or Avoid Adding`
|
|
80
|
+
6. `Updated Portfolio Context`
|
|
81
|
+
7. `Next Skill Or Action`
|
|
82
|
+
|
|
83
|
+
Always include:
|
|
84
|
+
|
|
85
|
+
- whether the snapshot was full or partial
|
|
86
|
+
- the main risk sources in the current book
|
|
87
|
+
- where exposures overlap or cluster
|
|
88
|
+
- whether upcoming catalysts or macro conditions increase portfolio fragility
|
|
89
|
+
- whether the right action is hold, trim, avoid adding, or review specific positions more closely
|
|
90
|
+
- a compact updated portfolio context block when enough information exists
|
|
91
|
+
|
|
92
|
+
## Updated Portfolio Context
|
|
93
|
+
|
|
94
|
+
When enough context exists, carry forward a compact block like this:
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
## Portfolio Context
|
|
98
|
+
|
|
99
|
+
- objective:
|
|
100
|
+
- snapshot_scope:
|
|
101
|
+
- top_exposures:
|
|
102
|
+
- overlap_clusters:
|
|
103
|
+
- key_catalysts:
|
|
104
|
+
- regime_pressure:
|
|
105
|
+
- fragile_positions:
|
|
106
|
+
- planned_add:
|
|
107
|
+
- portfolio_constraints:
|
|
108
|
+
- risk_summary:
|
|
109
|
+
- open_questions:
|
|
110
|
+
- assumptions:
|
|
111
|
+
- next_recommended_skill:
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Only populate the fields supported by the checks that actually ran.
|
|
115
|
+
|
|
116
|
+
## Best practices
|
|
117
|
+
|
|
118
|
+
- do not treat issuer count as diversification by itself
|
|
119
|
+
- do not ignore shared catalyst risk across several names
|
|
120
|
+
- do not review a partial snapshot as if it were the whole book
|
|
121
|
+
- do not continue into a new trade workflow before the portfolio-level blocker is explicit
|
|
122
|
+
|
|
123
|
+
## Usage examples
|
|
124
|
+
|
|
125
|
+
- "Use `portfolio-risk-review` on my current book before I add more semis."
|
|
126
|
+
- "Use `portfolio-risk-review` on this account for the next two weeks and tell me where the real risk is concentrated."
|
package/selected-skills/trading-skills/skills/portfolio-risk-review/references/workflow-framework.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Portfolio Risk Review Framework
|
|
2
|
+
|
|
3
|
+
Use this framework to decide whether portfolio-level risk is acceptable before adding or maintaining more exposure.
|
|
4
|
+
|
|
5
|
+
## Core question
|
|
6
|
+
|
|
7
|
+
The question is not only:
|
|
8
|
+
|
|
9
|
+
- "What is my biggest position?"
|
|
10
|
+
|
|
11
|
+
The real questions are:
|
|
12
|
+
|
|
13
|
+
- Where are my exposures clustered?
|
|
14
|
+
- Which catalysts matter to the portfolio as a whole?
|
|
15
|
+
- Which positions are fragile right now?
|
|
16
|
+
- Is the current book aligned with my objective and timeframe?
|
|
17
|
+
|
|
18
|
+
## Typical routing
|
|
19
|
+
|
|
20
|
+
Start with:
|
|
21
|
+
|
|
22
|
+
- `portfolio-concentration`
|
|
23
|
+
|
|
24
|
+
Add as needed:
|
|
25
|
+
|
|
26
|
+
- `catalyst-map` when several positions share event risk
|
|
27
|
+
- `market-regime-analysis` when broad tape conditions matter
|
|
28
|
+
- `macro-event-analysis` when the macro calendar can pressure the whole book
|
|
29
|
+
- `position-management` when one or more live positions are under pressure
|
|
30
|
+
|
|
31
|
+
If the user still wants a new trade after the review:
|
|
32
|
+
|
|
33
|
+
- `pre-trade-check`
|
|
34
|
+
|
|
35
|
+
## Stop conditions
|
|
36
|
+
|
|
37
|
+
Stop when:
|
|
38
|
+
|
|
39
|
+
- concentration is already too high
|
|
40
|
+
- several positions share the same catalyst cluster
|
|
41
|
+
- the macro or regime backdrop makes the current book too fragile
|
|
42
|
+
- the portfolio snapshot is too incomplete to review honestly
|
|
43
|
+
|
|
44
|
+
## Wrapper discipline
|
|
45
|
+
|
|
46
|
+
The workflow should:
|
|
47
|
+
|
|
48
|
+
- surface the biggest risk sources fast
|
|
49
|
+
- separate portfolio-level risk from single-name conviction
|
|
50
|
+
- avoid pretending the portfolio is diversified when the drivers are the same
|
|
51
|
+
- return one clear next portfolio action
|
|
52
|
+
|
|
53
|
+
## Boundaries
|
|
54
|
+
|
|
55
|
+
This workflow does not perform full financial planning.
|
|
56
|
+
|
|
57
|
+
It only reviews current portfolio risk and what should happen next.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: position-management
|
|
3
|
+
description: Review an open position and decide whether to hold, trim, tighten risk, close, or wait by comparing current behavior against the original thesis, invalidation logic, catalyst calendar, and execution constraints.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Position Management
|
|
7
|
+
|
|
8
|
+
Use this skill after a position is open when the user needs a disciplined decision about holding, trimming, tightening risk, or exiting without drifting into improvisation.
|
|
9
|
+
|
|
10
|
+
This skill will not:
|
|
11
|
+
|
|
12
|
+
- justify staying in a broken trade because the user wants it to work
|
|
13
|
+
- replace pre-trade sizing or portfolio-concentration review
|
|
14
|
+
- guarantee that stop adjustments or trailing logic will lock in a specific outcome
|
|
15
|
+
|
|
16
|
+
## Role
|
|
17
|
+
|
|
18
|
+
Act like a disciplined live-risk manager. Your job is to compare the open position against the original plan, current market behavior, and upcoming catalysts, then recommend the next management decision clearly.
|
|
19
|
+
|
|
20
|
+
## When to use it
|
|
21
|
+
|
|
22
|
+
Use it when the user wants to:
|
|
23
|
+
|
|
24
|
+
- decide whether to hold, trim, tighten risk, or exit an open position
|
|
25
|
+
- manage a winner without turning it into a round trip
|
|
26
|
+
- handle a loser without widening risk impulsively
|
|
27
|
+
- decide whether holding through earnings, macro releases, or other catalysts still makes sense
|
|
28
|
+
|
|
29
|
+
## Inputs and context
|
|
30
|
+
|
|
31
|
+
Ask for:
|
|
32
|
+
|
|
33
|
+
- instrument and direction
|
|
34
|
+
- original thesis, timeframe, entry, stop, target, and size
|
|
35
|
+
- current price behavior or status: near target, stalling, breaking down, gapping, and so on
|
|
36
|
+
- current stop logic or trailing logic
|
|
37
|
+
- any upcoming catalyst or event risk
|
|
38
|
+
- whether the user is trying to protect gains, reduce loss, hold through a catalyst, or simply avoid emotional decision-making
|
|
39
|
+
|
|
40
|
+
Helpful but optional:
|
|
41
|
+
|
|
42
|
+
- unrealized PnL or R multiple
|
|
43
|
+
- partial exits already taken
|
|
44
|
+
- whether the position sits in a concentrated portfolio or highly correlated cluster
|
|
45
|
+
- order or liquidity constraints that affect exits
|
|
46
|
+
|
|
47
|
+
Use the user's materials first.
|
|
48
|
+
|
|
49
|
+
If the original plan is missing, say that clearly and manage the position provisionally rather than inventing a clean prior plan.
|
|
50
|
+
|
|
51
|
+
Do not fetch live data unless the user explicitly asks to pair this skill with another market-context or event-risk skill.
|
|
52
|
+
|
|
53
|
+
## Analysis process
|
|
54
|
+
|
|
55
|
+
1. Reconstruct the original plan and the current position status.
|
|
56
|
+
2. Compare current behavior against the thesis and invalidation logic.
|
|
57
|
+
3. Separate normal noise from evidence that the trade or investment is weakening.
|
|
58
|
+
4. Evaluate whether an upcoming catalyst changes the holding decision materially.
|
|
59
|
+
5. Check whether the current stop, trailing logic, or target handling is still coherent.
|
|
60
|
+
6. Distinguish between thesis-based management and emotion-based improvisation.
|
|
61
|
+
7. End with one clear next action: hold, trim, tighten risk, close, or wait for a defined condition.
|
|
62
|
+
|
|
63
|
+
Use [references/management-framework.md](references/management-framework.md) when you need the default checklist for open-risk decisions, trailing logic, and catalyst-aware management.
|
|
64
|
+
|
|
65
|
+
## Core Assessment Framework
|
|
66
|
+
|
|
67
|
+
Assess the open position on five anchors before recommending a change:
|
|
68
|
+
|
|
69
|
+
- `Thesis Integrity`: whether the original reason for holding still looks intact. Example: a breakout that loses leadership and closes back into the prior range has weaker thesis integrity than one consolidating above the breakout area.
|
|
70
|
+
- `Reward Realization`: whether the trade has already traveled enough that the management problem changes from "is the idea valid?" to "how do I avoid giving too much back?" Example: a position near target may justify different management than a new entry still proving itself.
|
|
71
|
+
- `Risk Drift`: whether the user has widened risk, delayed exits, or let the position drift away from the original plan. Example: moving the stop wider after entry without a new thesis is usually risk drift, not strategy.
|
|
72
|
+
- `Catalyst Exposure`: whether earnings, macro releases, or other scheduled events make the current holding plan materially more fragile. Example: a swing long near target ahead of earnings may deserve a different decision than the same setup in a quiet calendar.
|
|
73
|
+
- `Exit Practicality`: whether liquidity, spread, session timing, or order constraints affect the ability to trim or exit cleanly. Example: a thin option or extended-hours position may require more conservative management.
|
|
74
|
+
|
|
75
|
+
Use the anchors to classify:
|
|
76
|
+
|
|
77
|
+
- `hold with plan intact`: the position still fits the original logic and current management rules
|
|
78
|
+
- `manage actively`: the thesis may still be alive, but trimming, tightening risk, or updating the hold plan is warranted
|
|
79
|
+
- `exit or reduce decisively`: the thesis, catalyst profile, or risk discipline has degraded enough that passive holding is no longer defensible
|
|
80
|
+
|
|
81
|
+
## Evidence That Would Invalidate This Analysis
|
|
82
|
+
|
|
83
|
+
- the original plan was remembered incorrectly or new plan details appear
|
|
84
|
+
- the catalyst timing changes materially
|
|
85
|
+
- the user's timeframe changes from tactical trade to longer-term hold, or the reverse
|
|
86
|
+
- the current position size or partial exits differ from what was described
|
|
87
|
+
- the session, liquidity, or execution conditions change enough to alter the practicality of the suggested action
|
|
88
|
+
|
|
89
|
+
## Output structure
|
|
90
|
+
|
|
91
|
+
Prefer this output order:
|
|
92
|
+
|
|
93
|
+
1. `Management Summary`
|
|
94
|
+
2. `Original Plan Versus Now`
|
|
95
|
+
3. `Thesis And Risk Review`
|
|
96
|
+
4. `Catalyst Decision`
|
|
97
|
+
5. `Best Next Action`
|
|
98
|
+
6. `What Would Change That Decision`
|
|
99
|
+
7. `Next Skill`
|
|
100
|
+
|
|
101
|
+
Always include:
|
|
102
|
+
|
|
103
|
+
- whether the original thesis still looks intact
|
|
104
|
+
- whether the current stop or trailing logic is coherent
|
|
105
|
+
- whether upcoming catalysts change the hold decision
|
|
106
|
+
- the clearest next action: hold, trim, tighten risk, close, or wait
|
|
107
|
+
- what specific condition would change that action
|
|
108
|
+
- whether the next step is `post-trade-review`, `macro-event-analysis`, `earnings-preview`, or no additional skill yet
|
|
109
|
+
|
|
110
|
+
## Best practices
|
|
111
|
+
|
|
112
|
+
- do not widen risk casually after entry
|
|
113
|
+
- do not manage only from unrealized PnL
|
|
114
|
+
- do not hold through a catalyst by inertia
|
|
115
|
+
- do not tighten stops so aggressively that the plan stops matching the thesis
|
|
116
|
+
|
|
117
|
+
## Usage examples
|
|
118
|
+
|
|
119
|
+
- "Use `position-management` on this NVDA swing long. I am up about 1.8R, earnings are next week, and I need to decide whether to trim or hold."
|
|
120
|
+
- "Use `position-management` on this losing EURUSD short. The thesis is not fully broken, but price is stalling and I do not want to widen the stop emotionally."
|
package/selected-skills/trading-skills/skills/position-management/references/management-framework.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Position Management Framework
|
|
2
|
+
|
|
3
|
+
Use this framework to manage an open position without drifting into improvisation.
|
|
4
|
+
|
|
5
|
+
## Core question
|
|
6
|
+
|
|
7
|
+
The question is not only:
|
|
8
|
+
|
|
9
|
+
- "Am I up or down?"
|
|
10
|
+
|
|
11
|
+
The real questions are:
|
|
12
|
+
|
|
13
|
+
- Is the thesis still intact?
|
|
14
|
+
- Has the risk profile changed?
|
|
15
|
+
- Does a catalyst change the holding decision?
|
|
16
|
+
- What is the next clean action?
|
|
17
|
+
|
|
18
|
+
## Common management actions
|
|
19
|
+
|
|
20
|
+
- `hold`: thesis and management plan still fit
|
|
21
|
+
- `trim`: realize part of the gain or reduce event exposure
|
|
22
|
+
- `tighten risk`: reduce giveback or adapt to weakening conditions
|
|
23
|
+
- `close`: thesis broken, catalyst risk too high, or discipline deteriorating
|
|
24
|
+
- `wait for condition`: no change yet, but only if the condition is explicit
|
|
25
|
+
|
|
26
|
+
## Typical mistakes
|
|
27
|
+
|
|
28
|
+
- widening stops after entry without a new thesis
|
|
29
|
+
- refusing to trim because of fear of missing out
|
|
30
|
+
- tightening stops purely because unrealized PnL feels uncomfortable
|
|
31
|
+
- holding through earnings or macro catalysts by default
|
|
32
|
+
- treating a temporary bounce as proof the thesis is restored
|
|
33
|
+
|
|
34
|
+
## Winners versus losers
|
|
35
|
+
|
|
36
|
+
For winners:
|
|
37
|
+
|
|
38
|
+
- ask whether the position has already delivered enough to justify different management
|
|
39
|
+
- protect against turning a good trade into a round trip
|
|
40
|
+
- avoid trimming only because of emotion if the thesis and trend are still strong
|
|
41
|
+
|
|
42
|
+
For losers:
|
|
43
|
+
|
|
44
|
+
- check whether the invalidation condition is already near or already hit
|
|
45
|
+
- do not widen risk casually
|
|
46
|
+
- separate temporary noise from genuine thesis deterioration
|
|
47
|
+
|
|
48
|
+
## Catalyst-aware management
|
|
49
|
+
|
|
50
|
+
Upcoming catalysts can change the right action even if price has not moved much yet.
|
|
51
|
+
|
|
52
|
+
Review:
|
|
53
|
+
|
|
54
|
+
- earnings dates
|
|
55
|
+
- macro releases
|
|
56
|
+
- central-bank events
|
|
57
|
+
- policy decisions
|
|
58
|
+
- company-specific milestones
|
|
59
|
+
|
|
60
|
+
If the event can materially compress the decision window, management should become more explicit, not less.
|
|
61
|
+
|
|
62
|
+
## Boundaries
|
|
63
|
+
|
|
64
|
+
This framework does not decide:
|
|
65
|
+
|
|
66
|
+
- whether the original entry was good
|
|
67
|
+
- how much size should have been taken initially
|
|
68
|
+
- whether the portfolio was too concentrated before entry
|
|
69
|
+
|
|
70
|
+
It only helps manage the position that already exists.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: position-sizing
|
|
3
|
+
description: Use when the user needs a conservative position size from account equity, risk budget, entry, stop, and trading friction before entering a trade.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Position Sizing
|
|
7
|
+
|
|
8
|
+
Use this skill before entering a trade when you need a defensible size instead of a gut-feel size.
|
|
9
|
+
|
|
10
|
+
This skill will not:
|
|
11
|
+
|
|
12
|
+
- tell the user whether the trade thesis is good
|
|
13
|
+
- override liquidity, gap, or event-risk judgment with a formula
|
|
14
|
+
- turn an aggressive stop or oversized conviction into a safe trade
|
|
15
|
+
|
|
16
|
+
## Role
|
|
17
|
+
|
|
18
|
+
Act like a conservative risk manager. Survival comes before conviction.
|
|
19
|
+
|
|
20
|
+
## When to use it
|
|
21
|
+
|
|
22
|
+
Use it when the user has a trade idea and needs to know:
|
|
23
|
+
|
|
24
|
+
- how many shares, units, or contracts fit the risk budget
|
|
25
|
+
- how slippage, fees, or contract multipliers change the math
|
|
26
|
+
- whether the planned stop makes the size impractical
|
|
27
|
+
- whether the trade is arithmetically small enough before asking whether it is strategically worth taking
|
|
28
|
+
|
|
29
|
+
## Inputs and context
|
|
30
|
+
|
|
31
|
+
Ask for:
|
|
32
|
+
|
|
33
|
+
- account size or equity
|
|
34
|
+
- max risk as percent or cash amount
|
|
35
|
+
- entry price
|
|
36
|
+
- stop price
|
|
37
|
+
- instrument type if it affects contract value
|
|
38
|
+
- optional slippage, commission, or "extra buffer" assumptions
|
|
39
|
+
|
|
40
|
+
If any key input is missing, state what is missing and stop rather than invent it.
|
|
41
|
+
|
|
42
|
+
## Analysis process
|
|
43
|
+
|
|
44
|
+
1. Compute the per-unit risk from entry to stop.
|
|
45
|
+
2. Add user-provided friction assumptions if they materially increase realized risk.
|
|
46
|
+
3. Compute the maximum position size that stays inside the risk budget.
|
|
47
|
+
4. Report the rounded-down size, estimated total risk, and any caveats.
|
|
48
|
+
5. Flag cases where the stop is too tight, too wide, or structurally unclear.
|
|
49
|
+
|
|
50
|
+
Use [references/methodology.md](references/methodology.md) for sizing conventions and caveats. Use [assets/trade-plan-template.md](assets/trade-plan-template.md) when the user wants a reusable planning format.
|
|
51
|
+
|
|
52
|
+
For agents that support code execution, use [references/calculation-helpers.md](references/calculation-helpers.md) for the shared helper functions that cover fixed-fractional sizing, volatility-adjusted sizing, Kelly fraction context, and futures contract math.
|
|
53
|
+
|
|
54
|
+
## Output structure
|
|
55
|
+
|
|
56
|
+
Prefer this output order:
|
|
57
|
+
|
|
58
|
+
1. `Inputs Used`
|
|
59
|
+
2. `Sizing Method`
|
|
60
|
+
3. `Sizing Math`
|
|
61
|
+
4. `Position Recommendation`
|
|
62
|
+
5. `Risk Caveats`
|
|
63
|
+
|
|
64
|
+
Always include:
|
|
65
|
+
|
|
66
|
+
- position size
|
|
67
|
+
- total dollar risk
|
|
68
|
+
- percent of account at risk
|
|
69
|
+
- assumptions used
|
|
70
|
+
- caveats about slippage, gaps, leverage, or contract multipliers
|
|
71
|
+
|
|
72
|
+
Do not imply the size is "safe" just because it fits the arithmetic.
|
|
73
|
+
|
|
74
|
+
## Best practices
|
|
75
|
+
|
|
76
|
+
- do not promise that a mathematically valid size is strategically appropriate
|
|
77
|
+
- do not ignore contract multipliers or event risk when they materially change exposure
|
|
78
|
+
- do not replace the need for liquidation planning in fast or illiquid markets
|
|
79
|
+
|
|
80
|
+
## Usage examples
|
|
81
|
+
|
|
82
|
+
- "Use `position-sizing` for a $150,000 account risking 0.4% on a long entry at 84.20 with a stop at 81.90 and 0.10 slippage."
|
|
83
|
+
- "Use `position-sizing` on ES futures with account size $80,000, max loss $500, long entry 5210.25, and stop 5199.75."
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Trade Plan Template
|
|
2
|
+
|
|
3
|
+
- Instrument:
|
|
4
|
+
- Direction:
|
|
5
|
+
- Account size:
|
|
6
|
+
- Max risk (% or cash):
|
|
7
|
+
- Entry:
|
|
8
|
+
- Stop:
|
|
9
|
+
- Profit target:
|
|
10
|
+
- Expected slippage:
|
|
11
|
+
- Commission or fees:
|
|
12
|
+
- Event risk notes:
|
|
13
|
+
- Final size:
|
|
14
|
+
- Total planned risk:
|
|
15
|
+
- Reasons to reduce size further:
|
package/selected-skills/trading-skills/skills/position-sizing/references/calculation-helpers.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Calculation Helpers
|
|
2
|
+
|
|
3
|
+
For code-execution environments, reuse the shared repo helper at `skills/_lib/calculations.py`.
|
|
4
|
+
|
|
5
|
+
Relevant functions for this skill:
|
|
6
|
+
|
|
7
|
+
- `fixed_fractional_position_size`
|
|
8
|
+
- `volatility_adjusted_position_size`
|
|
9
|
+
- `kelly_fraction`
|
|
10
|
+
- `futures_contract_risk`
|
|
11
|
+
- `price_risk_per_unit`
|
|
12
|
+
|
|
13
|
+
Keep the skill output grounded in the user's stated risk budget, friction assumptions, and contract details rather than defaulting missing values.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Position Sizing Methodology
|
|
2
|
+
|
|
3
|
+
## Base formula
|
|
4
|
+
|
|
5
|
+
The conservative core formula is:
|
|
6
|
+
|
|
7
|
+
`position size = allowed trade risk / per-unit realized risk`
|
|
8
|
+
|
|
9
|
+
Where:
|
|
10
|
+
|
|
11
|
+
- allowed trade risk is either a cash number or a percentage of equity converted to cash
|
|
12
|
+
- per-unit realized risk is not just entry minus stop if trading friction is meaningful
|
|
13
|
+
|
|
14
|
+
## Friction matters
|
|
15
|
+
|
|
16
|
+
When it is realistic, add:
|
|
17
|
+
|
|
18
|
+
- expected slippage on entry and exit
|
|
19
|
+
- spread cost for illiquid instruments
|
|
20
|
+
- commission if it is large relative to the stop distance
|
|
21
|
+
- a gap-risk buffer when the stop may not fill at the intended level
|
|
22
|
+
|
|
23
|
+
## Practical cautions
|
|
24
|
+
|
|
25
|
+
- Tight stops can create oversized positions that are fragile in real execution.
|
|
26
|
+
- Wide stops can produce tiny positions that may not justify the trade.
|
|
27
|
+
- Futures and options require multiplier awareness. Do not reuse equity math blindly.
|
|
28
|
+
- A mathematically valid size can still be inappropriate if event risk is elevated.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: post-trade-debrief
|
|
3
|
+
description: Orchestrate a disciplined post-trade workflow by reconstructing the original plan, reviewing execution and rule adherence, and deciding whether the lesson is trade-specific or part of a larger repeatable pattern.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Post Trade Debrief
|
|
7
|
+
|
|
8
|
+
Use this workflow skill when a trade has closed and the user wants one clear learning process instead of manually deciding whether to do a single-trade review, a pattern review, or both.
|
|
9
|
+
|
|
10
|
+
This workflow will not:
|
|
11
|
+
|
|
12
|
+
- grade the trade only by PnL
|
|
13
|
+
- skip the original plan reconstruction just because the user remembers the outcome vividly
|
|
14
|
+
- force pattern analysis when the sample is still too small
|
|
15
|
+
|
|
16
|
+
## Role
|
|
17
|
+
|
|
18
|
+
Act like a post-trade learning gatekeeper. Your job is to reconstruct what happened, identify the real lesson, and decide whether the issue belongs in a single-trade debrief or a broader journal pattern review.
|
|
19
|
+
|
|
20
|
+
## When to use it
|
|
21
|
+
|
|
22
|
+
Use it when the user wants to:
|
|
23
|
+
|
|
24
|
+
- review a closed trade end to end
|
|
25
|
+
- convert one trade outcome into a concrete lesson
|
|
26
|
+
- decide whether a mistake is isolated or part of a recurring pattern
|
|
27
|
+
- route the result into journal analysis only when the sample supports it
|
|
28
|
+
|
|
29
|
+
## Inputs and context
|
|
30
|
+
|
|
31
|
+
Ask for:
|
|
32
|
+
|
|
33
|
+
- instrument and direction
|
|
34
|
+
- original thesis, entry, stop, target, and size
|
|
35
|
+
- actual entry, exit, and result
|
|
36
|
+
- whether rules were followed
|
|
37
|
+
- what happened around the trade, including catalyst or regime context
|
|
38
|
+
- whether the user suspects this trade reflects a recurring issue
|
|
39
|
+
|
|
40
|
+
Helpful but optional:
|
|
41
|
+
|
|
42
|
+
- prior review notes
|
|
43
|
+
- whether similar trades exist in the journal
|
|
44
|
+
- setup tags, timeframe tags, or catalyst tags
|
|
45
|
+
|
|
46
|
+
Use the user's materials first.
|
|
47
|
+
|
|
48
|
+
If the original plan is missing, say that clearly and keep the debrief provisional rather than inventing it.
|
|
49
|
+
|
|
50
|
+
## Workflow routing
|
|
51
|
+
|
|
52
|
+
Use the smallest useful chain:
|
|
53
|
+
|
|
54
|
+
1. Run `post-trade-review` on the closed trade.
|
|
55
|
+
2. If the review exposes a recurring-looking mistake and the user has enough history, run `journal-pattern-analyzer`.
|
|
56
|
+
3. If the review shows a structural flaw in the original setup, run `risk-reward-sanity-check` on the original structure.
|
|
57
|
+
4. If the review shows oversizing or poor risk budgeting, run `position-sizing` on what the size should have been.
|
|
58
|
+
|
|
59
|
+
Stop the workflow once the clearest lesson and next process change are established.
|
|
60
|
+
|
|
61
|
+
## Decision logic
|
|
62
|
+
|
|
63
|
+
Classify the result as:
|
|
64
|
+
|
|
65
|
+
- `single-trade lesson`: the issue is important, but it belongs to this trade only for now
|
|
66
|
+
- `pattern worth tracking`: the issue may recur and should be monitored in future reviews
|
|
67
|
+
- `pattern confirmed`: the issue is strong enough to justify immediate journal-level rule changes
|
|
68
|
+
|
|
69
|
+
## Output structure
|
|
70
|
+
|
|
71
|
+
Prefer this output order:
|
|
72
|
+
|
|
73
|
+
1. `Debrief Verdict`
|
|
74
|
+
2. `Checks Run`
|
|
75
|
+
3. `What Happened`
|
|
76
|
+
4. `Main Lesson`
|
|
77
|
+
5. `Is This A Pattern`
|
|
78
|
+
6. `Process Change`
|
|
79
|
+
7. `Next Skill Or Action`
|
|
80
|
+
|
|
81
|
+
Always include:
|
|
82
|
+
|
|
83
|
+
- the minimum set of checks actually used
|
|
84
|
+
- the clearest lesson from the trade
|
|
85
|
+
- whether the issue is isolated or part of a broader pattern
|
|
86
|
+
- the next process change to test
|
|
87
|
+
- whether the user should stop at this debrief or escalate to journal-level analysis
|
|
88
|
+
|
|
89
|
+
## Best practices
|
|
90
|
+
|
|
91
|
+
- do not let the workflow jump straight to pattern claims from one trade
|
|
92
|
+
- do not skip reconstructing the original plan
|
|
93
|
+
- do not turn the debrief into a motivational speech
|
|
94
|
+
- do not recommend more than one or two process changes at once
|
|
95
|
+
|
|
96
|
+
## Usage examples
|
|
97
|
+
|
|
98
|
+
- "Use `post-trade-debrief` on this closed swing trade and tell me the real lesson."
|
|
99
|
+
- "Use `post-trade-debrief` on this loss and tell me whether it is just one mistake or part of a pattern I need to address."
|