quantlib-index

quantlib-index is a skill for Claude Code, Codex from HKUDS/Vibe-Trading. It costs 32 tokens per session (17,109 once invoked), scanned A, original, MIT.

A read-only function index for QuantLib, a software library used for financial mathematics. It lists available calculations and their inputs so a tool can call them without repeatedly discovering their definitions.

In plain words
What is it for?
Use it to find and call functions for portfolio attribution and other indexed QuantLib calculations, or inspect a function’s signature when the index lacks it.
Why use it?
It reduces repeated lookup work before running supported financial calculations. The tool does not fetch market data or write files, so its results come from computation only.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find and call functions for portfolio attribution and other indexed QuantLib calculations, or inspect a function’s signature when the index lacks it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/vibe-trading/quantlib-index
About the project

Vibe-Trading is a personal trading agent that gives an AI system tools for market analysis, algorithmic trading, backtesting, and related workflows. It is for users who want an agent to research and evaluate trading strategies or manage simulated and other trading activities. The catalogue contains skills that expose these trading capabilities to compatible agents.

HKUDS/Vibe-Trading · 39,317 stars · on GitHub · vibetrading.wiki

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HKUDS/Vibe-Trading --skill quantlib-index
Clone the repo
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quantlib-index

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/vibe-trading/quantlib-index/github.svg)](https://agentmods.dev/skills/hkuds/vibe-trading/quantlib-index)
Your own site
<a href="https://agentmods.dev/skills/hkuds/vibe-trading/quantlib-index"><img src="https://agentmods.dev/badge/skills/hkuds/vibe-trading/quantlib-index/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quantlib-index

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/vibe-trading/quantlib-index"><img src="https://agentmods.dev/badge/skills/hkuds/vibe-trading/quantlib-index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 17,109 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.17109
Opus 5.5 $0.00013 $0.06844
Sonnet 5.5 $0.00006 $0.03422
Haiku 4.5 $0.00003 $0.01711

Measured yesterday against content hash e89f171bf345, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quantlib-index scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent/src/skills/quantlib-index/SKILL.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

quantlib_call function index

Use quantlib_call(action="call", module="...", function="...", kwargs={...}) with a short module name below. The tool is pure computation and does not fetch network data or write files. Use action="describe" only when the function signature or docstring is missing from this index. action="list" is a fallback for a module added after this skill was published.

attribution

  • BrinsonResult(sectors: 'tuple[SectorEffect, ...]', portfolio_return: 'float', benchmark_return: 'float', active_return: 'float', allocation: 'float', selection: 'float', interaction: 'float') -> None — Single-period attribution for a whole portfolio.
  • LinkedAttribution(sectors: 'tuple[LinkedSectorEffect, ...]', portfolio_return: 'float', benchmark_return: 'float', active_return: 'float', allocation: 'float', selection: 'float', interaction: 'float', scaling_factors: 'tuple[float, ...]') -> None — Multi-period attribution produced by Carino linking.
  • LinkedSectorEffect(sector: 'str', allocation: 'float', selection: 'float', interaction: 'float') -> None — One sector's Carino-linked effects across every period.
  • SectorEffect(sector: 'str', portfolio_weight: 'float', benchmark_weight: 'float', portfolio_return: 'float', benchmark_return: 'float', allocation: 'float', selection: 'float', interaction: 'float') -> None — One sector's single-period Brinson-Fachler decomposition.
  • brinson_fachler(portfolio_weights: 'Mapping[str, float]', benchmark_weights: 'Mapping[str, float]', portfolio_returns: 'Mapping[str, float]', benchmark_returns: 'Mapping[str, float]', weight_sum_tolerance: 'float' = 1e-09) -> 'BrinsonResult' — Decompose one period's active return into allocation, selection and interaction.
  • carino_factor(portfolio_return: 'float', benchmark_return: 'float') -> 'float' — Return the Carino logarithmic scaling factor for one return pair.
  • carino_link(periods: 'Sequence[BrinsonResult]') -> 'LinkedAttribution' — Link single-period Brinson results into a residual-free multi-period attribution.

Read the full file on GitHub · 299 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 299 lines · 32 tokens per session scan A e89f171bf345

Subscribe to this mod's changes

quantlib-index is a skill published in the GitHub repository HKUDS/Vibe-Trading (39,317 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 17,109 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

quantlib-index compared with skills from other repositories

quantlib-index next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
quantlib-indexHKUDS/Vibe-TradingSkill39kyesterdayMITA32Claude Code, Codex
options-tradingLumiwealth/lumibotSkill2.3kyesterdayGPL-3.0A71Codex
web-documentsLumiwealth/lumibotSkill2.3kyesterdayGPL-3.0A40Codex
research-dataLumiwealth/lumibotSkill2.3kyesterdayGPL-3.0A53Codex
hyperliquidSuperior-Trade/superior-skillsSkill2352mo agoMITA64Claude Code
polymarketSuperior-Trade/superior-skillsSkill2352mo agoMITA68Claude Code
backtestingSuperior-Trade/superior-skillsSkill2352mo agoMITA73Claude Code