@v587d/capital-generation 2.7.1 → 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.
- package/CHANGELOG.md +80 -0
- package/README.md +9 -7
- package/THIRD_PARTY_NOTICES.md +65 -24
- package/capital-config/client.js +2 -2
- 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/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/catalog.js +200 -0
- package/selected-skills/china-stock-research-skills/UPSTREAM.md +2 -1
- package/selected-skills/investment-skills/UPSTREAM.md +2 -1
- package/selected-skills/peter-lynch-skill/LICENSE +21 -0
- package/selected-skills/peter-lynch-skill/UPSTREAM.md +72 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/SKILL.md +142 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/deep/methodology.md +587 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/deep/system-prompt.md +102 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/deep/web-research.md +471 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/disclaimer.md +2 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/filing-rules.md +64 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/quick/methodology.md +195 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/quick/system-prompt.md +72 -0
- package/selected-skills/peter-lynch-skill/skills/peter-lynch-skill/references/quick/web-research.md +379 -0
- 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
|
@@ -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."
|
package/selected-skills/trading-skills/skills/post-trade-debrief/references/workflow-framework.md
ADDED
|
@@ -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."
|
package/selected-skills/trading-skills/skills/pre-trade-check/references/workflow-framework.md
ADDED
|
@@ -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."
|