Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Investment Math Toolkit

    1

    Language models are good at explaining finance and bad at arithmetic.

    $3

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Investment Math Toolkit

    Investment Math Toolkit

    Example session with this skill installed

    How much does a 20-year, 4% semiannual bond yielding 5% lose if rates jump 2%?

    • Read your context and instructions
    • Compiled the investment math toolkit

    Price $874.49, modified duration 13.14, convexity 226.6.
    If yields rise 2%: duration alone says -26.3%; duration + convexity says -21.8%; exact reprice is -22.3%.
    Duration overstates the loss on a move this big; the convexity correction gets within half a point.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Language models are good at explaining finance and bad at arithmetic. This skill splits the work: the script computes, you explain. Never compute a duration, an option price or a DCF in your head when the script can do it.

    scripts/invest_math.py needs only Python 3.9+. There's nothing to install, and it uses no network or API keys.

    • All rates are decimals: 5% is 0.05, a 20% volatility is 0.2, a 1% rate rise is 0.01.
    • Output is JSON: the results, the formula used, any warnings, and the inputs echoed back. Check the echoed inputs match what the user said.
    • python scripts/invest_math.py <command> -h lists every option.
    The user asksCommandKey inputs
    "Is this fund actually good?" / "Compare these managers"perf--rp --sdp --beta --rf --rm --sdm (+ --benchmark --te for IR)
    "What return should this stock earn?"capm--beta --rf --rm
    "What's this bond worth?" / "What's its yield?"bond--coupon --years --freq and --ytm or --price
    "How much does it lose if rates rise 1%?"bond ... --shock 0.01adds the duration estimate, the convexity-corrected one, and an exact reprice
    "What's this option worth?" / "What are the Greeks?"option--type --S --K --r --sigma --T (+ --q dividend yield)
    "What volatility is the market pricing?"impliedvolsame, with --price instead of --sigma
    "Are these call and put prices consistent?"parity--call --put --S --K --r --T
    "What's the stock worth on its dividends?"ddm--d1 --k --g (+ --eps1 for PVGO), or --g1 --years1 --g2 for two stages
    "What's the company worth on its cash flows?"dcf--fcff --wacc --g (+ --g-high --years --net-debt --shares)
    "How much should I put in stocks vs cash?"allocate--er --sd --rf --A (risk aversion, usually 2-6)
    "What's the best mix of these two assets?"tangency--e1 --s1 --e2 --s2 --rho --rf

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    European options only (no early exercise). Bonds assume fixed coupons and level yield, no call features. Valuation models are only as good as the growth and discount rates you give them. Textbooks differ on compounding conventions; match your course's.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python 3.9+

    No API keys, no internet, nothing to install. One standard-library Python script.

    Permissions

    Terminal / Shell

    Runs one local Python script. No network access, reads and writes no files.

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    AI models explain finance well but make arithmetic slips on things like duration or Black-Scholes. The script does the math exactly; the AI explains it.

    It's checked against published Black-Scholes reference values, finite-difference checks for duration, convexity and the Greeks, and round-trip tests for yield and implied volatility (38 checks, all passing).

    Yes, to check your work. It explains the steps and reminds you to match your course's compounding convention.