adrianpuiu

Financial Toolkit — Data skill for Claude Code

Data community

A comprehensive Claude Skill for quantitative finance that provides production-ready TypeScript functions for portfolio management, risk analytics, and systematic trading.

How to install Financial Toolkit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open adrianpuiu/financial-toolkit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Financial Toolkit does

A comprehensive Claude Skill for quantitative finance that provides production-ready TypeScript functions for portfolio management, risk analytics, and systematic trading.

Alternatives in Data

README

Project Overview

This is the **RailPath Finance Toolkit Skill** - a comprehensive TypeScript library for quantitative finance, portfolio analysis, and systematic trading infrastructure. This is a Claude Skill package, not a traditional software project.

Architecture

This repository is structured as a Claude Skill with the following key components:

Core Skill Structure

  • SKILL.md - Main skill documentation with YAML frontmatter and usage instructions
  • references/ - Detailed documentation organized by domain:
    • API_REFERENCE.md - Complete function signatures and parameters
    • TYPE_DEFINITIONS.md - TypeScript interfaces for all functions
    • EXAMPLES.md - Practical workflow examples
    • STRATEGIC_TRADING.md - Advanced trading strategies
    • ML_REFINEMENTS.md - Machine learning optimization techniques
    • BACKTESTING_VALIDATION.md - Testing and validation methodologies

Progressive Disclosure Design

The skill uses a three-level loading system:

  1. Metadata (name + description) - Always loaded for skill triggering
  2. SKILL.md body - Core workflows and API organization (<5k words)
  3. Reference materials - Domain-specific docs loaded as needed

Key Capabilities

Portfolio Performance

  • Time-Weighted Return (TWR) and Money-Weighted Return (MWR) calculations
  • Comprehensive metrics: CAGR, Sharpe, Sortino, VaR, Expected Shortfall
  • Performance attribution and factor analysis

Risk Analytics

  • Value at Risk (historical, parametric, Monte Carlo methods)
  • Maximum drawdown analysis
  • Correlation and covariance matrices
  • Alpha/Beta calculations

Technical Indicators

  • Trend: SMA, EMA, MACD
  • Momentum: RSI, Stochastic, Williams %R
  • Volatility: Bollinger Bands, ATR, EWMA volatility

Machine Learning

  • Hidden Markov Model (HMM) regime detection
  • Market state identification (bullish/bearish/neutral)
  • Feature extraction and engineering

Portfolio Optimization

  • Mean-variance optimization
  • Rebalancing cal