# marian2js/trading-skills architecture

> Architecture diagram of the GitHub repository marian2js/trading-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/marian2js/trading-skills
- Repository: https://github.com/marian2js/trading-skills

## Overview

Trading Skills is a portable collection of markdown-defined AI capabilities for trade research, risk planning, position oversight, and learning—not a trading execution engine. A user starts with a suitable atomic skill or workflow; documented workflows combine only the atomic capabilities needed for the task. The repository also includes shared quantitative helpers and an optional provider-specific live-trade skill. The README establishes these layers and broad capabilities, but sampled source does not show individual skill prompts or their exact compositions, so those internal links are omitted.

Main entry points: [`skills/idea-discovery/watchlist-review/SKILL.md`](https://github.com/marian2js/trading-skills/blob/main/skills/idea-discovery/watchlist-review/SKILL.md) (Watchlist review), [`skills/thesis-validation/thesis-validation/SKILL.md`](https://github.com/marian2js/trading-skills/blob/main/skills/thesis-validation/thesis-validation/SKILL.md) (Thesis validation), [`skills/trade-construction/position-sizing/SKILL.md`](https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/position-sizing/SKILL.md) (Position sizing), [`skills/trade-construction/execution-plan-check/SKILL.md`](https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/execution-plan-check/SKILL.md) (Execution plan)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_context["Market Context"]
  node_macro["Macro events<br/>[SKILL.md]"]
  node_earnings["Earnings preview<br/>[SKILL.md]"]
  node_regime["Market regime<br/>[SKILL.md]"]
end

subgraph group_analysis["Idea Analysis"]
  node_watchlist["Watchlist review<br/>[SKILL.md]"]
  node_catalyst["Catalyst map<br/>[SKILL.md]"]
  node_thesis["Thesis validation<br/>[SKILL.md]"]
  node_evidence["Evidence gaps<br/>[SKILL.md]"]
end

subgraph group_planning["Trade Construction"]
  node_riskreward["Risk-reward check<br/>[SKILL.md]"]
  node_concentration["Portfolio concentration<br/>[SKILL.md]"]
  node_sizing["Position sizing<br/>[SKILL.md]"]
  node_execution["Execution plan<br/>[SKILL.md]"]
  node_calculations["Quant helpers<br/>[calculations.py]"]
end

subgraph group_lifecycle["Trade Lifecycle"]
  node_management["Position management<br/>[SKILL.md]"]
  node_postreview["Post-trade review<br/>[SKILL.md]"]
  node_journal["Journal patterns<br/>[SKILL.md]"]
  node_etoro["eToro integration<br/>[SKILL.md]"]
end

subgraph group_workflows["Workflow Skills"]
  node_pretrade["Pre-trade check<br/>[SKILL.md]"]
  node_earningsprep["Earnings trade prep<br/>[SKILL.md]"]
  node_portfolioreview["Portfolio risk review<br/>[SKILL.md]"]
  node_debrief["Post-trade debrief<br/>[SKILL.md]"]
  node_pretradeworkflow["Pre-trade check workflow<br/>[SKILL.md]"]
end

node_trader(("Trader / investor"))

node_trader -->|"starts with"| node_pretrade
node_trader -->|"starts with"| node_earningsprep
node_trader -->|"starts with"| node_portfolioreview
node_trader -->|"starts with"| node_debrief
node_trader -->|"starts with"| node_watchlist
node_trader -->|"starts with"| node_thesis
node_trader -->|"starts with"| node_execution
node_trader -->|"starts with"| node_sizing
node_trader -->|"starts with"| node_management
node_trader -.->|"optionally uses"| node_etoro

click node_macro "https://github.com/marian2js/trading-skills/blob/main/skills/market-context/macro-event-analysis/SKILL.md"
click node_earnings "https://github.com/marian2js/trading-skills/blob/main/skills/market-context/earnings-preview/SKILL.md"
click node_regime "https://github.com/marian2js/trading-skills/blob/main/skills/market-context/market-regime-analysis/SKILL.md"
click node_watchlist "https://github.com/marian2js/trading-skills/blob/main/skills/idea-discovery/watchlist-review/SKILL.md"
click node_catalyst "https://github.com/marian2js/trading-skills/blob/main/skills/idea-discovery/catalyst-map/SKILL.md"
click node_thesis "https://github.com/marian2js/trading-skills/blob/main/skills/thesis-validation/thesis-validation/SKILL.md"
click node_evidence "https://github.com/marian2js/trading-skills/blob/main/skills/thesis-validation/evidence-gap-check/SKILL.md"
click node_riskreward "https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/risk-reward-sanity-check/SKILL.md"
click node_concentration "https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/portfolio-concentration/SKILL.md"
click node_sizing "https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/position-sizing/SKILL.md"
click node_execution "https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/execution-plan-check/SKILL.md"
click node_management "https://github.com/marian2js/trading-skills/blob/main/skills/position-oversight/position-management/SKILL.md"
click node_postreview "https://github.com/marian2js/trading-skills/blob/main/skills/review-learning/post-trade-review/SKILL.md"
click node_journal "https://github.com/marian2js/trading-skills/blob/main/skills/review-learning/journal-pattern-analyzer/SKILL.md"
click node_pretrade "https://github.com/marian2js/trading-skills/blob/main/skills/workflows/pre-trade-check/SKILL.md"
click node_earningsprep "https://github.com/marian2js/trading-skills/blob/main/skills/workflows/earnings-trade-prep/SKILL.md"
click node_portfolioreview "https://github.com/marian2js/trading-skills/blob/main/skills/workflows/portfolio-risk-review/SKILL.md"
click node_debrief "https://github.com/marian2js/trading-skills/blob/main/skills/workflows/post-trade-debrief/SKILL.md"
click node_pretradeworkflow "https://github.com/marian2js/trading-skills/blob/main/skills/workflows/pre-trade-check/SKILL.md"
click node_calculations "https://github.com/marian2js/trading-skills/blob/main/skills/_lib/calculations.py"
click node_etoro "https://github.com/marian2js/trading-skills/blob/main/skills/live-trade/etoro/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_macro,node_earnings,node_regime toneBlue
class node_watchlist,node_catalyst,node_thesis,node_evidence toneAmber
class node_riskreward,node_concentration,node_sizing,node_execution,node_calculations toneMint
class node_management,node_postreview,node_journal,node_etoro toneRose
class node_pretrade,node_earningsprep,node_portfolioreview,node_debrief,node_pretradeworkflow,node_trader toneIndigo
```

## Components

### Market Context

- [Macro events](https://github.com/marian2js/trading-skills/blob/main/skills/market-context/macro-event-analysis/SKILL.md): `skills/market-context/macro-event-analysis/SKILL.md`
- [Earnings preview](https://github.com/marian2js/trading-skills/blob/main/skills/market-context/earnings-preview/SKILL.md): `skills/market-context/earnings-preview/SKILL.md`
- [Market regime](https://github.com/marian2js/trading-skills/blob/main/skills/market-context/market-regime-analysis/SKILL.md): `skills/market-context/market-regime-analysis/SKILL.md`

### Idea Analysis

- [Watchlist review](https://github.com/marian2js/trading-skills/blob/main/skills/idea-discovery/watchlist-review/SKILL.md): `skills/idea-discovery/watchlist-review/SKILL.md`
- [Catalyst map](https://github.com/marian2js/trading-skills/blob/main/skills/idea-discovery/catalyst-map/SKILL.md): `skills/idea-discovery/catalyst-map/SKILL.md`
- [Thesis validation](https://github.com/marian2js/trading-skills/blob/main/skills/thesis-validation/thesis-validation/SKILL.md): `skills/thesis-validation/thesis-validation/SKILL.md`
- [Evidence gaps](https://github.com/marian2js/trading-skills/blob/main/skills/thesis-validation/evidence-gap-check/SKILL.md): `skills/thesis-validation/evidence-gap-check/SKILL.md`

### Trade Construction

- [Risk-reward check](https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/risk-reward-sanity-check/SKILL.md): `skills/trade-construction/risk-reward-sanity-check/SKILL.md`
- [Portfolio concentration](https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/portfolio-concentration/SKILL.md): `skills/trade-construction/portfolio-concentration/SKILL.md`
- [Position sizing](https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/position-sizing/SKILL.md): `skills/trade-construction/position-sizing/SKILL.md`
- [Execution plan](https://github.com/marian2js/trading-skills/blob/main/skills/trade-construction/execution-plan-check/SKILL.md): `skills/trade-construction/execution-plan-check/SKILL.md`
- [Quant helpers](https://github.com/marian2js/trading-skills/blob/main/skills/_lib/calculations.py): `skills/_lib/calculations.py`

### Trade Lifecycle

- [Position management](https://github.com/marian2js/trading-skills/blob/main/skills/position-oversight/position-management/SKILL.md): `skills/position-oversight/position-management/SKILL.md`
- [Post-trade review](https://github.com/marian2js/trading-skills/blob/main/skills/review-learning/post-trade-review/SKILL.md): `skills/review-learning/post-trade-review/SKILL.md`
- [Journal patterns](https://github.com/marian2js/trading-skills/blob/main/skills/review-learning/journal-pattern-analyzer/SKILL.md): `skills/review-learning/journal-pattern-analyzer/SKILL.md`
- [eToro integration](https://github.com/marian2js/trading-skills/blob/main/skills/live-trade/etoro/SKILL.md): `skills/live-trade/etoro/SKILL.md`

### Workflow Skills

- [Pre-trade check](https://github.com/marian2js/trading-skills/blob/main/skills/workflows/pre-trade-check/SKILL.md): `skills/workflows/pre-trade-check/SKILL.md`
- [Earnings trade prep](https://github.com/marian2js/trading-skills/blob/main/skills/workflows/earnings-trade-prep/SKILL.md): `skills/workflows/earnings-trade-prep/SKILL.md`
- [Portfolio risk review](https://github.com/marian2js/trading-skills/blob/main/skills/workflows/portfolio-risk-review/SKILL.md): `skills/workflows/portfolio-risk-review/SKILL.md`
- [Post-trade debrief](https://github.com/marian2js/trading-skills/blob/main/skills/workflows/post-trade-debrief/SKILL.md): `skills/workflows/post-trade-debrief/SKILL.md`
- [Pre-trade check workflow](https://github.com/marian2js/trading-skills/blob/main/skills/workflows/pre-trade-check/SKILL.md): `skills/workflows/pre-trade-check/SKILL.md`

### Other components

- **Trader / investor**

## Connections

- Trader / investor → Pre-trade check: starts with (evidence: `README.md`)
- Trader / investor → Earnings trade prep: starts with (evidence: `README.md`)
- Trader / investor → Portfolio risk review: starts with (evidence: `README.md`)
- Trader / investor → Post-trade debrief: starts with (evidence: `README.md`)
- Trader / investor → Watchlist review: starts with (evidence: `README.md`)
- Trader / investor → Thesis validation: starts with (evidence: `README.md`)
- Trader / investor → Execution plan: starts with (evidence: `README.md`)
- Trader / investor → Position sizing: starts with (evidence: `README.md`)
- Trader / investor → Position management: starts with (evidence: `README.md`)
- Trader / investor → eToro integration: optionally uses (evidence: `README.md`)
