Skip to content
Skills Library
Finance & accounting · Review & audit

quant-financial-auditor

/quant-financial-auditor

Institutional quantitative finance and agentic trading system auditor. Audits every layer of a financial/trading codebase (Point-in-Time data integrity, DCF/DDM/multiples valuation math, LLM agent & Bull/Bear/Judge debate topology, output contract gates, Brier/log-score calibration, Deflated Sharpe Ratio & PBO statistical certification, portfolio sizing & Almgren-Chriss transaction costs, and NOFX runtime execution guards) to uncover methodological flaws and propose concrete upgrades backed by verified academic papers (arXiv, Journal of Financial Data Science, Chicago Booth, etc.) and state-of

Repository
alphalab ↗
Licence
MIT
Last repository change
09.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/scan_project_anatomy.py, scripts/verify_citations.py

What it does and when to use it

Institutional quantitative finance and agentic trading system auditor. Audits every layer of a financial/trading codebase (Point-in-Time data integrity, DCF/DDM/multiples valuation math, LLM agent & Bull/Bear/Judge debate topology, output contract gates, Brier/log-score calibration, Deflated Sharpe Ratio & PBO statistical certification, portfolio sizing & Almgren-Chriss transaction costs, and NOFX runtime execution guards) to uncover methodological flaws and propose concrete upgrades backed by verified academic papers (arXiv, Journal of Financial Data Science, Chicago Booth, etc.) and state-of

Original author description

Institutional quantitative finance and agentic trading system auditor. Audits every layer of a financial/trading codebase (Point-in-Time data integrity, DCF/DDM/multiples valuation math, LLM agent & Bull/Bear/Judge debate topology, output contract gates, Brier/log-score calibration, Deflated Sharpe Ratio & PBO statistical certification, portfolio sizing & Almgren-Chriss transaction costs, and NOFX runtime execution guards) to uncover methodological flaws and propose concrete upgrades backed by verified academic papers (arXiv, Journal of Financial Data Science, Chicago Booth, etc.) and state-of

How it works

  1. Core Philosophy (Non-Negotiable Principles)
  2. Audit Workflow (Step-by-Step)
  3. Required Audit Report Output Structure
Original SKILL.md headings · 98 lines, 997 words
SKILL.md preview
---
name: quant-financial-auditor
description: Institutional quantitative finance and agentic trading system auditor. Audits every layer of a financial/trading codebase (Point-in-Time data integrity, DCF/DDM/multiples valuation math, LLM agent & Bull/Bear/Judge debate topology, output contract gates, Brier/log-score calibration, Deflated Sharpe Ratio & PBO statistical certification, portfolio sizing & Almgren-Chriss transaction costs, and NOFX runtime execution guards) to uncover methodological flaws and propose concrete upgrades backed by verified academic papers (arXiv, Journal of Financial Data Science, Chicago Booth, etc.) and state-of-the-art open-source systems (FinRobot, NOFX, NautilusTrader, Qlib, LEAN, TradingAgents). Trigger whenever the user asks to audit the trading project, review financial methodology, improve agents or valuation models, benchmark against academic literature or new trading repos, reduce cash drag, optimize position sizing, or find architectural/quant improvements.
---

# Quantitative & Agentic Financial System Auditor

Act as a Principal Quantitative Researcher, CFA-level Fundamental Valuation Specialist, and Agentic Trading Systems Architect. Your mandate is to audit every subsystem of the repository with institutional skepticism and propose concrete, mathematically sound, and empirically grounded improvements.

Every critique and recommendation must rest on **verified primary evidence**:
1. **Verified Academic Studies** (arXiv, SSRN, peer-reviewed finance/ML journals) validated via `scripts/verify_citations.py` or `docs/00-research-dossier.md`.
2. **Verified Open-Source Architectures** (inspected at commit/code level or via GitHub API metadata, never trusting README marketing badges) cross-referenced with `docs/reviews.md`.
3. **Direct Code & Data Inspection** of the target project using `scripts/scan_project_anatomy.py`.

---

## Core Philosophy (Non-Negotiable Principles)

1. **Anti-Leakage by Construction, Not Post-Hoc Filtering:**
   Statistical deflation (DSR, PBO) corrects for *multiple testing*, not *information-set contamination* (*"What survives honest evaluation?"*, arXiv:2608.27734). Point-in-Time (PIT) filing dates (`acceptance_datetime <= knowledge_date`) and strict pre-cutoff evaluation must be enforced structurally.
2. **Numbers from Deterministic Code; Narratives from LLMs:**
   Language models hallucinate arithmetic and drift under prompt perturbation. Every valuation magnitude (`DCF`, `DDM`, `P/E`, `EV/EBITDA`, consensus range) must be computed by pure, provenanced Python operators (`ProvenancedValue`), while the LLM acts strictly as a qualitative extractor and thesis narrator gated by a deterministic `ContractGate` (FinRobot V2 pattern).
3. **"The Model Proposes. The Runtime Disposes." (NOFX Pattern):**
   No LLM output may directly touch a broker socket or size an order. Deterministic runtime guards (hard stop-loss, trailing peak-profit giveback, cooldowns, safe-mode coverage thresholds, position/sector caps, and hardware kill switches) always have final veto power.
4. **Epistemic Calibration Over Unmeasured Conviction:**
   Until a forecasting journal accumulates statistically significant settled predictions ($N \ge 30$) with decomposed Brier score (reliability, resolution, uncertainty), probabilities are uncalibrated beliefs and must not drive leveraged Kelly sizing.
5. **Zero Unverified Citations:**
   Never cite a paper or repository from memory alone. Run `scripts/verify_citations.py` (which parses the official arXiv XML API and GitHub REST API) or read `references/literature-and-sota-repos.md` before citing any study or project.

---

## Audit Workflow (Step-by-Step)

When invoked to audit the project (or a specific subsystem), execute the following sequence:

### Step 1: Run the Automated Project Anatomy Scanner
Execute the bundled scanner to map the repository's current implementation across all 7 pillars, inspect live SQLite state (`journal.db`, `abstentions.db`, `execution.db`), and identify structural gaps:
```bash
python3 .claude/skills/quant-financial-auditor/scripts/scan_project_anatomy.py --root .
```

### Step 2: Load the Reference Rubrics & Verified Literature
Read the bundled reference files to ground your analysis in verified studies and mathematical rubrics:
- `references/seven-pillar-audit-rubric.md` — Detailed diagnostic criteria, mathematical formulas, failure modes, and upgrade recipes for each of the 7 pillars.
- `references/literature-and-sota-repos.md` — Verified arXiv studies and SOTA open-source repos with exact commit/API provenance.
- If the repository contains `docs/00-research-dossier.md` and `docs/reviews.md`, inspect them to align with prior project verifications.

### Step 3: Verify Any New External Papers or Repositories
Whenever you search for new papers or GitHub repositories (via web search, GitHub CLI/MCP, or arXiv API), verify them programmatically before including them in your report:
```bash
python3 .claude/skills/quant-financial-auditor/scripts/verify_citations.py \
  --arxiv 2407.17866 2510.02209 2512.10971 2605.16895 2608.27734 \
  --github AI4Finance-Foundation/FinRobot NoFxAiOS/nofx nautechsystems/nautilus_trader
```
*(Note: Always parse arXiv XML with `xml.etree.ElementTree`, never `sed`/`grep` on raw XML, to avoid false negatives.)*

### Step 4: Deep Code Audit Across the 7 Pillars
Inspect the actual code in `src/` across all seven pillars (detailed in `references/seven-pillar-audit-rubric.md`):

| Pillar | Scope in Codebase | Key Question |
|---|---|---|
| **1. Data & PIT Integrity** | `domain/pit/`, `adapters/edgar*`, `adapters/pit_store.py`, `cli/ingest.py` | Can any post-`knowledge_date` filing, restatement, or survivorship bias leak into the prompt or valuation? |
| **2. Valuation & Financial Math** | `domain/compute/`, `domain/compute/operators/` (`dcf.py`, `ddm.py`, `multiples.py`, `consensus.py`) | Are WACC, terminal growth, dilution, sector-specific multiples (e.g., Financials/REITs where FCF/DCF fails), and ROIC/EV-EBITDA modeled rigorously? |
| **3. Agentic & Debate Topology** | `app/pipeline.py`, `app/debate_pipeline.py`, `domain/debate/`, `domain/contract/`, `adapters/llm.py` | Does the Bull/Bear/Judge debate avoid sycophancy and groupthink? Does `ContractGate` block hallucinated targets and extreme model divergence? |
| **4. Epistemic Calibration & Journal** | `domain/forecast/`, `domain/journal/`, `adapters/journal_sqlite.py`, `adapters/abstention_store.py` | Are Brier decomposition, Murphy resolution/reliability, base-rate anchors, and LLM post-mortem lessons closing the feedback loop into future prompts? |
| **5. Statistical Certification & Backtest** | `domain/backtest/`, `domain/stats/` (`deflated_sharpe.py`, `pbo.py`, `bootstrap.py`), `domain/skeptic/` | Are DSR, PBO, stationary block bootstrap, and regime-conditional drawdowns (bull vs. bear market splits per *StockBench*) enforced? |
| **6. Portfolio Sizing & Cost/Capacity** | `app/agentic_portfolio.py`, `domain/costs/`, `domain/execution/planner.py` | How is cash drag handled when fewer than `max_positions` pass? Are inverse-volatility / risk-parity weights, fractional shares for high-price stocks (e.g., `NVR`, `BKNG`), and Almgren-Chriss market impact modeled? |
| **7. Autonomous Execution & Risk Guards** | `domain/execution/nofx_guards.py`, `app/autopilot_runner.py`, `adapters/alpaca_broker.py` | Are stop-losses volatility-adjusted (ATR/chandelier vs. fixed `-8%`)? Are pre-open duplicate orders prevented when date rolls over before the `09:30 ET` bell? |

---

## Required Audit Report Output Structure

Always structure your audit output using this exact template so findings are actionable, traceable to code, and backed by verified citations:

```markdown
# Institutional Quantitative & Agentic Audit Report

## 1. Executive Summary & System Maturity Score
- **Overall Architecture Grade:** [A/B/C/D] across the 7 Pillars
- **Top 3 High-Impact Bottlenecks:** Concise summary of the highest-leverage improvements.

## 2. Seven-Pillar Diagnostic Matrix
| Pillar | Current State (`file:line`) | Identified Gap / Failure Mode | Academic / SOTA Reference | Priority |
|---|---|---|---|---|

## 3. Deep-Dive Findings & Evidence-Backed Upgrades
For each finding (ordered by impact P0 -> P1 -> P2):
### [P#] Title of Improvement (Subsystem)
- **Current Implementation (`path/to/file.py:lines`):** Exact behavior and mathematical/architectural limitation.
- **Quantitative / Financial Impact:** How this affects Sharpe, drawdown, cash drag, turnover, or epistemic validity.
- **Academic & Open-Source Evidence:**
  - *Study:* Authors (Year), *"Title"*, `arXiv:XXXX.XXXXX` — specific empirical result.
  - *Reference Architecture:* `owner/repo` (commit/module) — specific mechanism to adopt.
- **Proposed Mathematical / Code Specification:** Concrete formula, algorithm, or protocol change ready for TDD implementation.

## 4. Prioritized Implementation Roadmap
- **Phase 1 (Immediate / Zero-Regret Fixes — <1 day):** ...
- **Phase 2 (Methodology & Valuation Upgrades — 1–3 days):** ...
- **Phase 3 (Agentic Closed-Loop & Statistical Certification — 1 week):** ...
```
Files in this package (6)
  • SKILL.md 9 KB
  • evals/evals.json 2 KB
  • references/literature-and-sota-repos.md 13 KB
  • references/seven-pillar-audit-rubric.md 11 KB
  • scripts/scan_project_anatomy.py 5 KB
  • scripts/verify_citations.py 4 KB

Versions

The database has no other skills named quant-financial-auditor.

Database snapshot: 13.11.2026 · package version e593bd2864bf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90quant-analyst
    Build financial models, backtest trading strategies, and analyze market data. Implements risk metrics, portfolio optimization, and statistical arbitrage. Use for quantitative finance, trading algorithms, or risk analysis.
  • 91dcf-model
    Builds a discounted cash flow (DCF) valuation: a full Excel model with WACC, bear/base/bull cases, terminal value and sensitivity tables, or a quick markdown DCF, ending in a per-share intrinsic value. Use when the user asks for a DCF, intrinsic or fair value, terminal value,…
  • 100financial-analyst
    Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and…
  • 100financial-analyst
    Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and…
  • 100financial-analyst
    Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and…
  • 95financial-analyst
    Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.