# trading212-labs/agent-skills architecture

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

- Interactive diagram: https://gitdiagram.com/trading212-labs/agent-skills
- Repository: https://github.com/trading212-labs/agent-skills

## Overview

This is a skills-only Trading 212 API plugin for AI assistants. The user-facing workflow is an assistant using the Trading 212 skill to perform account, trading, instrument, history, or exchange queries against the Trading 212 API. The sampled entry point only logs plugin registration; its comment says skills load from the skills directory. The skill contents were not sampled, so feature-level API wiring and implementation details cannot be verified.

Main entry points: [`plugins/trading212-api/skills/trading212-api/SKILL.md`](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md) (Trading 212 Skill), [`index.ts`](https://github.com/trading212-labs/agent-skills/blob/master/index.ts) (Plugin Registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["Plugin Entry"]
  node_register["Plugin Registration<br/>[index.ts]"]
end

subgraph group_skill["Agent Skill"]
  node_skill["Trading 212 Skill<br/>[SKILL.md]"]
  node_portfolio["Portfolio Management<br/>[SKILL.md]"]
  node_orders["Order Placement<br/>[SKILL.md]"]
  node_positions["Position Monitoring<br/>[SKILL.md]"]
  node_instruments["Instrument Lookup<br/>[SKILL.md]"]
  node_history["Historical Data<br/>[SKILL.md]"]
  node_exchange["Exchange Metadata<br/>[SKILL.md]"]
end

node_assistant(("AI Assistant"))
node_api{{"Trading 212 API"}}

node_assistant -->|"uses skill"| node_skill
node_register -->|"loads skills"| node_skill
node_skill -->|"supports"| node_portfolio
node_skill -->|"supports"| node_orders
node_skill -->|"supports"| node_positions
node_skill -->|"supports"| node_instruments
node_skill -->|"supports"| node_history
node_skill -->|"supports"| node_exchange
node_skill -->|"wraps API"| node_api

click node_register "https://github.com/trading212-labs/agent-skills/blob/master/index.ts"
click node_skill "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md"
click node_portfolio "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md"
click node_orders "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md"
click node_positions "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md"
click node_instruments "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md"
click node_history "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md"
click node_exchange "https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/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_register toneBlue
class node_skill,node_portfolio,node_orders,node_positions,node_instruments,node_history,node_exchange toneAmber
class node_assistant toneIndigo
class node_api toneMint
```

## Components

### Plugin Entry

- [Plugin Registration](https://github.com/trading212-labs/agent-skills/blob/master/index.ts): `index.ts`

### Agent Skill

- [Trading 212 Skill](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`
- [Portfolio Management](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`
- [Order Placement](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`
- [Position Monitoring](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`
- [Instrument Lookup](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`
- [Historical Data](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`
- [Exchange Metadata](https://github.com/trading212-labs/agent-skills/blob/master/plugins/trading212-api/skills/trading212-api/SKILL.md): `plugins/trading212-api/skills/trading212-api/SKILL.md`

### Other components

- **AI Assistant**
- **Trading 212 API**

## Connections

- AI Assistant → Trading 212 Skill: uses skill (evidence: `README.md`)
- Plugin Registration → Trading 212 Skill: loads skills (evidence: `index.ts`)
- Trading 212 Skill → Portfolio Management: supports (evidence: `README.md`)
- Trading 212 Skill → Order Placement: supports (evidence: `README.md`)
- Trading 212 Skill → Position Monitoring: supports (evidence: `README.md`)
- Trading 212 Skill → Instrument Lookup: supports (evidence: `README.md`)
- Trading 212 Skill → Historical Data: supports (evidence: `README.md`)
- Trading 212 Skill → Exchange Metadata: supports (evidence: `README.md`)
- Trading 212 Skill → Trading 212 API: wraps API (evidence: `README.md`)
