| name | help |
| description | DRIVER overview, available skills, and philosophy explanation |
DRIVERโข Help
What is DRIVERโข?
DRIVERโข is a methodology for building finance and quantitative analysis tools with AI assistance. It guides you from concept to completion through six stages.
The Philosophy: Cognition Mate (่ฎค็ฅไผไผด)
Core principle: ไบๅธฎไบๅฉ๏ผๅ ็ผๅๅ๏ผไบ็ธๆๅฐฑ
| Chinese | Pinyin | Meaning |
|---|
| ไบๅธฎไบๅฉ | hu bang hu zhu | Mutual help, helping each other |
| ๅ ็ผๅๅ | yin yuan he he | Causes and conditions coming together (interdependent arising) |
| ไบ็ธๆๅฐฑ | hu xiang cheng jiu | Accomplishing together, mutual achievement |
What this means in practice:
- AI is not a tool you command โ it's a thinking partner
- You bring vision and domain expertise; AI brings patterns and research
- Neither creates alone โ meaning emerges from interaction
- The relationship is collaborative, not transactional
The Six Stages
DEFINE (ๅผ้ข่ฐ็ )
"What are we building? What already exists?"
ๅผ้ข = Open the topic ่ฐ็ = Research/investigate
โ
REPRESENT
"How do we break this into buildable pieces?"
Roadmap, data model, sections
โ
IMPLEMENT
"Build it, run it, show it"
Show don't tell โ code speaks louder than plans
โ
VALIDATE
"Cross-check your instruments"
Known answers, reasonableness, edges, AI blind spots
โ
EVOLVE
"Package the final deliverable"
Self-contained export, ready for production
โ
REFLECT (Optional)
"What did we learn?"
Capture tech stack lessons, especially failures
Project Structure
DRIVER uses a flat, easy-to-navigate file structure. All project files live in a single folder (default: my-project/, customizable via .driver.json):
Python (Streamlit) โ Recommended for quant/finance:
repo-root/
โโโ .driver.json # Project config
โโโ [project-name]/ # DRIVER docs and specs
โ โโโ README.md # You are here
โ โโโ research.md # Created by /research or /define
โ โโโ product-overview.md # Created by /define (your PRD)
โ โโโ roadmap.md # Created by /represent-roadmap
โ โโโ spec-[section].md # Created by /represent-section
โ โโโ data-model.md # Created by /represent-datamodel
โ โโโ validation.md # Created by /validate
โ โโโ reflect.md # Created by /reflect
โโโ app.py # Main Streamlit entry point
โโโ pages/ # Section pages (auto-discovered by Streamlit)
โโโ calculations/ # Core logic (pure Python, testable)
โโโ data/ # Data loading and samples
React + TypeScript โ For web app UIs:
.driver.json # Project config (folder name, project type)
my-project/
โโโ README.md # Project overview and structure
โโโ research.md # Research findings (ๅๅคด็ ็ฉถ)
โโโ product-overview.md # Product definition (your PRD)
โโโ roadmap.md # 3-5 buildable sections
โโโ data-model.md # Core entities and relationships
โโโ validation.md # Cross-check results (all sections)
โโโ reflect.md # Learnings and retrospective
โโโ spec-[section-name].md # Section specifications
โโโ design/ # Web apps only
โ โโโ tokens.json # Colors and typography
โ โโโ shell.md # Navigation shell spec
โโโ build/ # Implementation artifacts
โโโ [section-id]/
โโโ data.json # Sample data
โโโ types.ts # TypeScript interfaces
Human-readable documents live at the project root. Implementation artifacts live in build/ (React) or at the repo root (Python).
Key Concepts
ๅๅคด็ ็ฉถ (fen tou yan jiu)
"Parallel research" โ Before building anything, research what exists. You focus on your unique needs; AI researches existing libraries, papers, implementations.
ๅพๅฏ่ฝๅทฒ็ปๆ็ฑปไผผ็ไบ = "There's probably something similar already"
Show Don't Tell
Don't explain what you'll build. Build it. Run it. Let them see it.
The fastest feedback loop: See result โ Give feedback โ Iterate โ See updated result
KISS โ Keep It Simple, Structured
- Simple and logical beats elegant and fancy
- Quants need clear data tables, not animations
- A 500-line Python script beats a 50-file TypeScript project
Persistent Artifacts
Every DRIVER stage produces a markdown file โ research.md, product-overview.md, roadmap.md, spec files. These are your shared mutable state:
- They survive context window limits (chat history gets compressed; files don't)
- They enable asynchronous review (read at your own pace, catch mistakes)
- They serve as review surfaces where you annotate corrections
Rule: If research, a plan, or a decision lives only in chat, it will get lost. Write it to a file.
The Annotation Cycle
After AI writes a plan or spec, don't just say "looks good." Review it in your editor:
- AI writes the plan/spec to a markdown file
- You open it and add inline notes (corrections, domain knowledge, rejected approaches)
- Send it back: "Update based on my annotations โ don't implement yet"
- AI revises the document
- Repeat steps 1-4 until the plan is right (typically 1-6 rounds)
This is where the real creative work happens. Implementation should be mechanical.
Mermaid Diagrams
DRIVER uses Mermaid diagrams as standard visual documentation:
- System context โ in product-overview.md (how the tool fits in the workflow)
- Dependencies โ in roadmap.md (build order between sections)
- User flows โ in spec files (step-by-step interaction)
- ER diagrams โ in data-model.md (entity relationships)
- Decision landscapes โ in research.md (comparing options)
Available Skills
| Skill | Stage | Purpose |
|---|
/finance-driver:init | Setup | Initialize project structure |
/finance-driver:status | Any | Check progress, get suggestions |
/finance-driver:help | Any | This help page |
/finance-driver:research | Any | Lightweight ๅๅคด็ ็ฉถ โ research libraries, approaches, references |
/finance-driver:define | DEFINE | Research and define vision |
/finance-driver:represent-roadmap | REPRESENT | Break into sections |
/finance-driver:represent-datamodel | REPRESENT | Define core entities |
/finance-driver:represent-tokens | REPRESENT | Colors/typography (web apps) |
/finance-driver:represent-shell | REPRESENT | Navigation shell (web apps) |
/finance-driver:represent-section | REPRESENT | Spec a section |
/finance-driver:implement-data | IMPLEMENT | Sample data (web apps) |
/finance-driver:implement-screen | IMPLEMENT | Build and run code |
/finance-driver:validate | VALIDATE | Cross-check: known answers, reasonableness, edges, AI risks |
/finance-driver:evolve | EVOLVE | Generate export package |
/finance-driver:reflect | REFLECT | Capture learnings |
Recommended Stack for Finance/Quant
UI: Streamlit (or Dash/Panel)
Backend: FastAPI + Pydantic
Calculations: NumPy, Pandas, SciPy
Finance: numpy-financial, QuantLib
Data Sources: See README for tiered recommendations
LLM-Native: financialdatasets.ai, Alpha Vantage, EODHD
MCP Available: Polygon.io, S&P Global/Kensho
Free (verify): yfinance, FRED
Storage: SQLite โ PostgreSQL, Parquet files
Testing: pytest + Hypothesis
Data Quality Matters: For LLM-driven development, use MCP-native data providers (financialdatasets.ai recommended). Free sources like yfinance may have gaps, delays, or inaccuracies.
Why Python over TypeScript for quant work:
- Vectorized calculations (NumPy) vs manual loops
- Pydantic catches validation errors at boundaries
streamlit run app.py vs npm/webpack complexity
- Division by zero:
np.divide(..., where=b!=0) vs manual guards everywhere
Example Projects
| Project | Style | Key Libraries | Data Source |
|---|
| DCF Valuation Tool | Damodaran | numpy-financial | financialdatasets.ai |
| Portfolio Optimizer | Markowitz | PyPortfolioOpt, scipy.optimize | Professional feed |
| Factor Research | Open Source AP | pandas, statsmodels, alphalens | WRDS, CRSP |
| Risk Dashboard | VaR/CVaR | scipy.stats, matplotlib | Professional feed |
| Data Pipeline | ETL | pandas, SQLAlchemy | Multiple sources |
Getting Started
- New project:
/finance-driver:init or just describe what you want to build
- Existing project:
/finance-driver:status to see where you are
- Stuck? Tell me the finance problem you're solving โ we'll figure it out together
Iron Laws (Never Break These)
| Stage | Iron Law |
|---|
| DEFINE | NO BUILDING WITHOUT ๅๅคด็ ็ฉถ FIRST |
| REPRESENT | PLAN THE UNIQUE PART โ DON'T REINVENT |
| IMPLEMENT | SHOW DON'T TELL โ BUILD AND RUN IT |
| VALIDATE | CROSS-CHECK YOUR INSTRUMENTS โ four checks, every time |
| EVOLVE | SELF-CONTAINED DELIVERABLE |
| REFLECT | CAPTURE WHAT DIDN'T WORK |