Skip to content
joellewis avatar

Fixed Income Sovereign

Analytics for US Treasury bond pricing, yield curves, duration, convexity, and TIPS, excluding sovereign credit risk.

CCM score
64 of 100
skills.sh installs
760
GitHub stars
270
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bond pricing, YTM, spot and forward curves, bootstrapping, Macaulay and modified duration, DV01, and convexity
  • Includes TIPS real yields and breakeven inflation, plus key rate duration for non-parallel curve shifts
  • Notes pitfalls such as day count conventions, clean versus dirty prices, and duration overstating losses without convexity
  • Runs a demo and --verify mode via scripts/fixed_income_sovereign.py, with cross-references to corporate and municipal fixed income skills

Install

$ npx -y skills add joellewis/finance_skills --skill fixed-income-sovereign -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Fixed Income — Sovereign

Scope: US Treasuries and rates analytics. Sovereign credit risk — emerging market debt, default analysis, country risk spreads — is out of scope for this skill.

Core Concepts

Bond Pricing

The price of a bond is the present value of its future cash flows:

P = sum(t=1 to n) [C / (1+y)^t] + F / (1+y)^n

where C = coupon payment per period, y = yield to maturity per period, F = face value, n = total number of periods. For semi-annual bonds, divide the annual coupon by 2 and the annual yield by 2, and double the number of years to get n.

Yield to Maturity (YTM)

The discount rate y that solves the bond pricing equation — the single rate that equates the bond's market price to the present value of all future cash flows. Assumes reinvestment of coupons at the YTM rate. It is the standard yield measure for bonds.

Current Yield

Current Yield = Annual Coupon / Price. A simple income measure that ignores capital gains/losses and the time value of money.

Details

Repository
github.com/joellewis/finance_skills
Categories
Finance & Trading, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the fixed-income-sovereign skill do?

The fixed-income-sovereign skill analyzes US Treasury securities and interest rate risk, covering bond pricing, yield curve construction, duration, convexity, TIPS, and forward and spot rate analysis. It works on questions about Treasury bonds, inverted yield curves, DV01, real yields and breakeven inflation rates. Sovereign credit risk such as emerging market debt is outside its scope.

How do I install the fixed-income-sovereign skill?

Run npx -y skills add joellewis/finance_skills --skill fixed-income-sovereign -y in a project to install it. Once installed, the fixed-income-sovereign skill lets the agent price bonds, build yield curves and estimate rate sensitivity for US Treasuries.

Who is the fixed-income-sovereign skill for?

The fixed-income-sovereign skill suits developers and analysts who need Treasury bond pricing, duration and convexity calculations inside an agent workflow. It also helps anyone asking how bonds react to interest rate changes, using the worked examples in its SKILL.md. It has no listed API keys or accounts.

Does the fixed-income-sovereign skill include a runnable script?

Yes, the fixed-income-sovereign skill ships a Python script, run with uv run scripts/fixed_income_sovereign.py or python3 after installing numpy and scipy. Its demo prints the calculations and matches the worked examples, and a --verify flag checks those outputs.

More from joellewis/finance_skills

All 84

Similar to Fixed Income Sovereign

More Finance & Trading