# CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Project overview 愈心谷 (YuXinGu) — a digital mental health platform. The codebase is a collection of standalone, mobile-first HTML pages with no build step, no framework, no package.json, and no JavaScript dependencies. The product vision is detailed in `立项文档.md` (Chinese): combine digital psychology (numerology-based personality analysis) with TCM constitution theory (中医体质) to create a "test → report → subscribe → consult" funnel. Target audience is Chinese-speaking; all UI text is Chinese (zh-CN). ## Running the app ```bash python3 server.py [port] # default port 8001 ``` The server serves static files from the project root and exposes two JSON API endpoints: - `GET /load` — returns mindmap data from `mindmap_data.json` - `POST /save` — persists mindmap data to `mindmap_data.json` (validates JSON before writing) There are no tests, no linters, and no build pipeline. To verify changes, run the server and open the relevant HTML file in a browser. ## File map | File | Purpose | |---|---| | `index.html` | Landing page linking to all sections | | `yuxingu.html` | Main app shell — hero, service cards, activity center, bottom nav | | `shuzi.html` | Digital psychology calculator — life-number triangle, bagua, liuren, zodiac, wuxing modules | | `mindmap.html` | Canvas-based mind-map editor with multi-map management | | `yangsheng.html` | AI Eastern wellness — bazi/wuxing constitution analysis, weekly/daily reports | | `manual.html` | Static "life manual" poster with pyramid triangle charts rendered via inline SVG | | `yuxingu_v1.html` | Earlier iteration of the main page (kept for reference, not linked from index) | | `server.py` | Minimal HTTP server (Python stdlib, no dependencies) | | `立项文档.md` | Product requirements doc — market analysis, business model, pricing, MVP scope | ### Unrelated files These files are not part of the 愈心谷 app — they belong to a separate crypto trading visualization project that happens to share the repo: - `link_regime_chart.html` — LINK token HMM regime K-line chart - `l2_LINK_*.json` (3 files) — market data and signals for the above ## Architecture notes - **Every HTML file is self-contained.** All CSS and JS are embedded in `