# Model JSON Generator

> Extracts the WACC, assumptions, and DCF projections from the markdown metadata file and converts them into a clean, structured JSON file for the frontend interactive viewer.

- Skill: `ruinius/model-json-generator` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add ruinius/model-json-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ruinius/model-json-generator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: Ruinius (https://skillmd.com/u/ruinius)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ruinius/model-json-generator

---


# Model JSON Generator (Phase 7)

This skill reads the completed `TICKER_metadata.md` file and converts the financial modeling tables into `TICKER_financial_model.json`. 

1. Execute the script: `python skills/model_json_generator/scripts/generate_json.py {TICKER} {TICKER_metadata_path}`
2. Verify it threw no errors.

## What the Script Does

- Reads `TICKER_metadata.md`
- Parses tables for Financial History, WACC, DCF Assumptions, DCF Model Projections, and Intrinsic Value.
- Transforms the flat table data into a nested JSON structure.
- Writes to `output_data/TICKER/TICKER_financial_model.json` for consumption by the interactive viewer.

## Prerequisites

- Phase 6 (Financial Modeling) must have already run and populated the WACC, DCF Assumptions, and DCF Model sections in the metadata.

