heurist-finance: Skill for Claude Code

.claude/skills/fundamental-forensics/SKILL.md

fundamental-forensics is a skill for Claude Code from heurist-network/heurist-finance. It costs 102 tokens per session (1,197 once invoked), scanned A, original, MIT.

A guide to checking whether a company's reported earnings are supported by cash generation and other accounting evidence. It uses company filings and standard warning signs such as growing receivables, auditor changes, or related-party revenue.

In plain words
What is it for?
Use it to compare profit with operating cash flow, review receivables, inventory, sales, assets, and capital spending, and apply accrual, restatement-risk, and financial-strength checks.
Why use it?
Reported profit can look healthy while cash flow weakens or accounting risks build. Comparing several quarters of filings helps identify possible earnings quality problems before a restatement or other correction.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is heurist-network/heurist-finance's own configuration. It tells Claude Code how to work on heurist-finance itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything heurist-finance configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/heurist-network/heurist-finance/main/.claude/skills/fundamental-forensics/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/heurist-network/heurist-finance

Made for: Claude Code.

Wrote 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.

agentmods badge for fundamental-forensics

README.md
[![agentmods](https://agentmods.dev/badge/skills/heurist-network/heurist-finance/fundamental-forensics/github.svg)](https://agentmods.dev/skills/heurist-network/heurist-finance/fundamental-forensics)
Your own site
<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.

agentmods 80×15 button for fundamental-forensics

Your own site · 80×15
<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>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 13d ago against content hash 13b4fe0e405d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/fundamental-forensics/SKILL.md · 35 lines

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

  1. 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 (or RevenueFromContractWithCustomerExcludingAssessedTax), InventoryNet, Assets, PaymentsToAcquirePropertyPlantAndEquipment. Cross-check headline figures against yahoo equity_overview.
  2. 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.
  3. Read the qualitative tripwires via sec filing_timeline + filing_diff on 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_diff on the risk-factors section is the cheap way to catch what management's lawyers just added.
  4. 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).
  5. 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.

Read the full file on GitHub · 35 lines

Changes

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.

  1. 13d ago First seen · 35 lines · 102 tokens per session scan A 13b4fe0e405d

Subscribe to this mod's changes

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.

Related

fundamental-forensics compared with skills from other repositories

fundamental-forensics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fundamental-forensicsheurist-network/heurist-financeSkill1114d agoMITA102Claude Code
sector-rotationHKUDS/Vibe-TradingSkill38kyesterdayMITA39Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.5k2d agoMITA110Claude Code
strategy-pivot-designertradermonty/claude-trading-skillsSkill3.7k2d agoMITA28Claude Code, Codex
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill269yesterdayApache-2.0A54Claude Code, Codex
multi-expert-analyzerdigoal/blogSkill8.6k2d agoGPL-2.0A292Codex