Skip to main content
skill CX Codex

llmquant-portfolio-lab — Claude Code skill: exposure maps and what-if

A router skill for portfolio work: exposure maps, scenario states and virtual portfolio comparisons for real or hypothetical holdings.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add LLMQuant/skills --skill llmquant-portfolio-lab -a claude-code
Open on GitHub

What llmquant-portfolio-lab does

The skill pulls apart a request into portfolio ID, holdings list, benchmark, scenario and the output you want. Then it picks one of two workflows and opens only that one plus the local assets and scripts it needs. The first workflow maps exposure by holdings, sectors, factors, geography, ETF look-through and concentration. The second runs simulations: adds, trims, hedges, shocks and virtual portfolio states.

Data comes from LLMQuant Data — positions, prices, factor exposures, risk model outputs, scenarios. If the portfolio APIs are not reachable, the skill asks for a holdings table or builds a structured input template. It will not make up weights, holdings, factor exposures or scenario returns; the instructions say so outright.

Reports carry as-of dates, model dates, the benchmark, missing holdings and unsupported asset types. That matters in practice: a date mismatch or a gap in the holdings list shows up before the numbers reach a deck. Worth installing if you already have LLMQuant Data access or a holdings table ready to hand.

What it helps with

  • map portfolio exposure by sector and factor
  • work out ETF look-through and find overlapping names
  • simulate an add or trim in a virtual portfolio
  • compare current and pro forma portfolio states
  • spot holdings missing from the source data

Example prompts for the agent

  • map the exposure of my portfolio by sector and factor
  • what happens if I add 5% to this ETF and trim the tech sleeve
  • compare the current portfolio with the virtual one after the hedge

How to install llmquant-portfolio-lab

1Skills CLI (Vercel)

npx skills add LLMQuant/skills --skill llmquant-portfolio-lab -a claude-code

2Manually: put the files in place

~/.claude/skills/llmquant-portfolio-lab/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/llmquant-portfolio-lab/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about llmquant-portfolio-lab

How do I install llmquant-portfolio-lab in Claude?

Run npx skills add LLMQuant/skills --skill llmquant-portfolio-lab -a claude-code. The skill lands in ~/.claude/skills/llmquant-portfolio-lab/SKILL.md.

What does llmquant-portfolio-lab do?

It routes portfolio requests to one of two workflows: an exposure map or a what-if simulator. Calculations run through LLMQuant Data, and it asks for a holdings table when the APIs are unavailable.

What data does the skill need?

Holdings, weights, a benchmark and an as-of date at minimum. Factor breakdowns and scenarios need risk model outputs and simulation results from LLMQuant Data.

Source text

SKILL.md · MIT
---
name: llmquant-portfolio-lab
description: Router skill for LLMQuant portfolio-lab workflows. Use when the user needs portfolio exposure maps, what-if simulations, scenario states, or virtual portfolio comparisons.
input_data_source: LLMQuant Data
category: portfolio-lab
---

# LLMQuant Portfolio Lab

This category routes portfolio virtualization workflows: exposure maps, scenario states, and what-if simulations for real or hypothetical portfolios.

## Routing Rules

1. Identify portfolio ID, holdings list, benchmark, scenario, and requested visualization/output.
2. Select the closest workflow below.
3. Open only that workflow and relevant local assets/scripts.
4. Use LLMQuant Data for positions, prices, ETF look-through, factors, scenarios, and risk model outputs.
5. Report as-of dates, model dates, benchmark, missing holdings, and unsupported asset types.

## Workflow Index

| User intent | Workflow |
|---|---|
| Map portfolio exposure by holdings, sectors, factors, geography, ETF look-through, and concentration. | [`workflows/portfolio-exposure-map.md`](workflows/portfolio-exposure-map.md) |
| Simulate adds, trims, hedges, shocks, and virtual portfolio states. | [`workflows/portfolio-what-if-simulator.md`](workflows/portfolio-what-if-simulator.md) |

## LLMQuant Data Contract

Prefer LLMQuant Data when available. The workflows may need these data capabilities:
- Retrieve portfolio holdings, weights, cost basis, asset types, benchmarks, and as-of dates.
- Retrieve factor exposures, sector/geography exposures, ETF look-through holdings, risk model outputs, and scenario simulation results.
- Retrieve prices, correlations, drawdowns, volatility, option Greeks, and hedge context when relevant.
- Compare current, pro forma, and hypothetical portfolio states.

Fallback:
- If portfolio APIs are unavailable, ask for a holdings table or build a structured portfolio input template.
- Do not invent weights, holdings, factor exposures, or scenario returns.

© LLMQuant · MIT · LLMQuant/skills

Similar skills

All skills for Finance and business →

From the same set17

llmquant-prediction-markets A router skill for prediction-market work: event odds, settlement criteria, cross-venue arbitrage and options-implied probabilities. CX Codex +1 496installs llmquant-market-intelligence Routes requests across LLMQuant macro views and sentiment dashboards. It helps traders evaluate event probabilities before making portfolio moves. CX Codex +1 493installs llmquant-options A router skill for options work: ranks contracts, computes Greeks, builds strategies and simulates P&L. Useful when you trade IV and hedges. CX Codex +1 488installs llmquant-events A router skill for event-driven research: it picks the right workflow for earnings, M&A or regulatory risk and keeps the rest out of context. CX Codex +1 488installs llmquant-commodities Routes commodity market briefs, futures curves, roll yields, and inventory workflows. Keeps quantitative commodity analysis grounded in verified data. CX Codex +1 479installs llmquant-rates-fx A router skill for rates and FX analysis: it picks the right workflow for curve shape, duration, central-bank divergence or FX carry and pulls LLMQuant data. CX Codex +1 471installs llmquant-equity-derivatives Router skill for single-stock derivatives: convertibles, warrants, structured payoffs. It picks the right workflow instead of letting the agent improvise. CX Codex +1 468installs llmquant-credit Routes issuer credit reviews, spread-regime analysis, and high-yield stress checks. Use it for debt, ratings, covenant, and default-risk work. CX Codex +1 464installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor