Borrowing it
Nothing to install: this file belongs to heurist-network/heurist-finance. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/heurist-network/heurist-finance/main/.claude/skills/fundamental-forensics/SKILL.mdgit clone --depth 1 https://github.com/heurist-network/heurist-financeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/heurist-network/heurist-finance/fundamental-forensics)<a href="https://agentmods.dev/skills/heurist-network/heurist-finance/fundamental-forensics"><img src="https://agentmods.dev/badge/skills/heurist-network/heurist-finance/fundamental-forensics/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/heurist-network/heurist-finance/fundamental-forensics"><img src="https://agentmods.dev/badge/skills/heurist-network/heurist-finance/fundamental-forensics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00102 | $0.01197 |
| Opus 5.5 | $0.00041 | $0.00479 |
| Sonnet 5.5 | $0.00020 | $0.00239 |
| Haiku 4.5 | $0.00010 | $0.00120 |
Grade A, and why
fundamental-forensics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fundamental Forensics
Shared plumbing, integrity rules, and output contract: ../_shared/analyst-core.md. This skill answers one question: are the reported earnings real, and is the market about to find out otherwise?
Why this beats reading the income statement
Reported EPS is the single most managed number in markets. The documented anomalies all live in the gap between earnings and cash: Sloan (1996) found top-decile-accrual firms underperform bottom-decile by ~10% over the next year; Dechow's AAER work shows restatement firms cluster on the same handful of precursors years in advance. A smart agent's edge here is that the inputs are free (XBRL) and most market participants still don't look.
The workflow
- Pull 8–12 quarters of the core facts via
sec xbrl_fact_trends(exact XBRL names; dedupe restatements by period-end):NetIncomeLoss,NetCashProvidedByUsedInOperatingActivities,AccountsReceivableNetCurrent,Revenues(orRevenueFromContractWithCustomerExcludingAssessedTax),InventoryNet,Assets,PaymentsToAcquirePropertyPlantAndEquipment. Cross-check headline figures againstyahoo equity_overview. - Compute the diagnostics (in Python from the pulled JSON, not by eyeball):
- Cash conversion: CFO ÷ NI, trailing 4q. < 0.8 sustained over ~3 years is the classic pre-restatement cluster (Dechow et al. 2011) — especially paired with rising DSO.
- Total accruals / assets = (NI − CFO) ÷ avg assets. Sustained > ~5% is the Sloan red zone. Split working-capital accruals from long-term/investment accruals (capex, acquisitions) — Richardson et al. (2005): the long-term kind predicts underperformance harder.
- DSO trend = AR ÷ (revenue/91). Rising DSO while revenue accelerates = revenue being pulled forward (channel stuffing signature). Same logic for inventory days on product companies.
- Growth-vs-cash test: revenue growth > 30% with CFO/NI < 0.5 for 2+ years is the canonical blow-up profile (this exact pattern preceded most famous frauds).
- NI-vs-OpInc bridge: if net income grows faster than operating income, pull the non-operating lines (
InvestmentIncomeInterest,OtherNonoperatingIncomeExpense) and attribute the gap — interest on a cash pile is real income but not operating leverage, and a thesis priced off the NI line inherits the rate cycle.
- Read the qualitative tripwires via
sec filing_timeline+filing_diffon the last two 10-Ks: auditor change, new related-party disclosures (> ~5% of revenue is serious), CFO departure, changes in revenue-recognition language, growing "unbilled receivables."filing_diffon the risk-factors section is the cheap way to catch what management's lawyers just added. - Check who's acting on it:
sec insider_activity(are officers selling into the growth story?) and short interest context (yahoo equity_screen screen_name=most_shorted_stocks,equity_overview). - For cheap stocks specifically, run the Piotroski F-Score logic (9 binary points: profitability, leverage/liquidity direction, efficiency) — but only after confirming cheapness (bottom-of-range P/B or EV/EBITDA vs the name's own history and sector); Piotroski's spread lives inside the cheap bucket, and F-scoring a richly valued name proves nothing. Piotroski (2000): high-F cheap stocks beat low-F cheap stocks by ~7.5%/yr in-sample. The point isn't the score — it's that cheap + deteriorating = trap, cheap + improving = candidate. Never let "it's cheap on P/E" stand alone.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago First seen · 35 lines · 102 tokens per session scan A 13b4fe0e405d
fundamental-forensics is a skill published in the GitHub repository heurist-network/heurist-finance (11 stars, last pushed 14d ago), licensed MIT. It adds 102 tokens to every session and 1,197 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.
fundamental-forensics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fundamental-forensicsheurist-network/heurist-finance | Skill | 11 | 14d ago | MIT | A | 102 | Claude Code |
| sector-rotationHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 39 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.5k | 2d ago | MIT | A | 110 | Claude Code |
| strategy-pivot-designertradermonty/claude-trading-skills | Skill | 3.7k | 2d ago | MIT | A | 28 | Claude Code, Codex |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.5k | yesterday | Apache-2.0 | A | 93 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| multi-expert-analyzerdigoal/blog | Skill | 8.6k | 2d ago | GPL-2.0 | A | 292 | Codex |