relative-valuation-toolkit

Prices firms on multiples, peer regressions, and sum-of-the-parts using a pure-Python engine.

Updated Sep 9, 2026
One-click install
npx skills add https://github.com/lyndonkl/hermesworld --skill relative-valuation-toolkit-lyndonkl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: relative-valuation-toolkit
Source: https://github.com/lyndonkl/hermesworld/tree/main/packages/capital-structure-analyst/skills/corporate-finance/relative-valuation-toolkit
Command: npx skills add https://github.com/lyndonkl/hermesworld --skill relative-valuation-toolkit-lyndonkl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Comparable-company analysis often reduces to picking a multiple and calling a stock cheap, ignoring claimholder mismatches, skewed distributions, and fundamental differences between firms. This Skill enforces Damodaran's four-test framework (definitional, descriptive, analytical, application) so every relative valuation verdict is controlled for growth, risk, and reinvestment rather than asserted. ## Core Features & Use Cases - Consistency-checked multiples: Computes PE, PBV, EV/EBITDA, EV/Sales, EV/IC and more, refusing mismatched pairings like EV/Net Income and negative denominators instead of returning meaningless numbers. - Distribution and regression analysis: Generates peer medians, quartiles and drop-out counts, locates a multiple in bundled market distributions, and fits OLS regressions in pure Python with t-statistics, R-squared, and multicollinearity warnings. - Sum-of-the-parts and cross-holdings: Prices conglomerate divisions against their own sector multiples, capitalizes unallocated corporate overhead, and values minority stakes and minority interests at market rather than book. - Use Case: Ask whether a stock trading at 8.9x earnings is cheap. The engine fits the sector regression of PE on growth and emerging-market risk, predicts 8.35, and reports the stock as 6.6% expensive despite its low headline multiple. ## Quick Start Ask the agent to price a company against its peers by running the multiples engine with the firm's market cap, debt, cash, and EBITDA, then control for fundamentals with a sector regression.

Frequently Asked Questions about relative-valuation-toolkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a comparable company analysis with multiples?

Pass each firm's market cap, debt, cash, and denominators like EBITDA or net income as JSON to the multiples subcommand. It computes consistent multiples, refuses mismatched pairings such as EV/Net Income, and flags firms that drop out due to negative denominators.

How to tell if a stock is cheap on its PE ratio?

A low PE alone is not evidence. Compare it against the peer median rather than the mean, then regress PE on growth, payout, and risk across the sample and check whether the actual multiple sits below the predicted one.

Does the multiples script need any Python packages installed?

No. The engine is pure standard library Python with no third-party dependencies, so it runs anywhere python3 is available. Every subcommand reads JSON from stdin or a file and prints JSON.

Why does the engine refuse to compute some multiples?

It refuses pairings where numerator and denominator belong to different claimholders, like Price/EBITDA, and any multiple with a non-positive denominator. A PE on a loss carries no ordering, so the firm drops out of that sample instead of producing a meaningless number.

When should I use a regression instead of comparing multiples directly?

Use direct comparison only when firms are true twins, and a modified multiple like PEG when they differ on one dimension. Once firms differ on several fundamentals, regress the multiple on those fundamentals and compare actual versus predicted values.

How do I value a conglomerate with sum-of-the-parts analysis?

Price each division against its own sector multiple or regression, then declare a treatment for unallocated corporate overhead by allocating it or letting the engine capitalize it. Pass the market enterprise value to observe the conglomerate discount rather than assuming one.