templeton
A Claude Code plugin for investing at the point of maximum pessimism. It ranks an index's
constituents by multi-year CAGR to find the stocks the market has punished hardest, then
interrogates each from four adversarial angles before a judge returns one verdict:
TEMPORARY, PERMANENT, or UNCLEAR. The screen is deterministic Python (yfinance, no
API keys); the interrogation is agentic, so no single narrative goes unchallenged.
Commands
| Command | What it does |
|---|
/templeton:hunt | Screen → four-persona panel → judge → dated HTML report + verdicts.json |
/templeton:screen | The ranked candidate table only, in seconds |
Natural language, not flags — /templeton:hunt 3 years, analyze the 5 worst. Bare invocation
means S&P 500, 5 years, scan the worst 100, deep-dive the worst 10. A hard hit is CAGR
≤ -20%/yr; worst performers that miss the bar are listed as near-misses, so a calm market
still yields a useful report.
Panel agents
Each ships with the plugin and runs standalone too (Use the forensic-accountant agent on WOLF):
| Agent | Question | Returns |
|---|
forensic-accountant | Does it survive long enough for a recovery to matter? | SURVIVES / DIES |
moat-analyst | Structurally broken, or cyclically depressed? | TEMPORARY / PERMANENT |
short-seller | Steelmans permanent impairment, then says where it lands | TEMPORARY / PERMANENT |
contrarian | Steelmans the maximum-pessimism buy, then says where it lands | TEMPORARY / PERMANENT |
judge | Synthesizes the four | TEMPORARY / PERMANENT / UNCLEAR |
All return JSON matching docs/verdict-schema.md — stance,
confidence, thesis, prose case, evidence with real source URLs. Only the judge may say
UNCLEAR. The accountant's DIES is a veto forcing PERMANENT: a business that runs out of
money before the cycle turns never delivers the recovery to today's shareholders.
The bar on TEMPORARY
The three verdicts are not symmetric. A stock down 20%/yr for five years was sold by people who
read the filings, so the null hypothesis is that they were right: TEMPORARY is the claim
that has to be proven, PERMANENT the claim that has to be shown, and UNCLEAR the honest
place a thin record lands. Absence of evidence of impairment is not evidence of cyclicality — a
panel that went looking for the break and did not find it has produced an UNCLEAR, not a buy
case. Expect most runs to return none, which is the point: the tool is for the rare one, not a
watchlist of plausible turnarounds.
Five gates, all of which must hold before the judge may say TEMPORARY:
| Gate | Holds when |
|---|
accountant_survives | the accountant returned SURVIVES |
moat_intact | the moat analyst — the seat that argues no brief — returned TEMPORARY |
catalyst_named | the evidence names a recovery mechanism and roughly when |
bear_case_answered | the short-seller's strongest claim is met by evidence, not outweighed |
margin_of_safety | the evidence puts a figure on normalised value and today's price is a discount to it |
They are necessary, not sufficient; the judge may still decline. The report shows all five for
every stock, so a PERMANENT or UNCLEAR says which test it failed. confidence is assigned
by a countable rubric — evidence entries, how many are primary sources, how stale — rather than
by feel, and the renderer refuses records that overstate their own support: a TEMPORARY above
the lower of the moat analyst's and the contrarian's confidence, a high-confidence persona on
one or two citations, a gate asserted against the panel that owns it.
TEMPORARY is not a buy signal. The first four gates are all statements about the
business, and a reader acts on the shares — so the fifth exists because a company can be
solvent, structurally intact and visibly recovering with every bit of that already in the
price. The contrarian owns the valuation figure, the short-seller is asked whether the price
already discounts its own bear case, and a sound business at a full price lands as UNCLEAR
— the specific kind worth re-running after a further fall. Even a passing verdict says only
that the panel found a recoverable decline at a discount on the day of the run; it carries no
view on sizing, on what else you own, or on what the shares do next.
Install
git clone https://github.com/ccomkhj/stock_interogation
claude plugin marketplace add ./stock_interogation
claude plugin install templeton@templeton --scope user
Sessions started inside the repo need none of this — .claude/settings.json enables it at
project scope. Scripts run via uv with inline (PEP 723) dependencies: no environment to
manage, no keys to configure.
How a hunt runs