From 734462a3b9f7ddf9988f882b1366f4f6428f2706 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Thu, 7 May 2026 00:44:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20CLAUDE.md=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E7=AB=A0=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 明确工作目录、前端/后端端口、中文 commit 强制规则、npm/python 工具链偏好。 配套代码风格与质量门禁章节形成完整的开发行为约束。 Directive: 后续所有会话必须遵守此环境配置 Tested: ruff + tsc 全过 --- CLAUDE.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index bbf66721..58f912cb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,6 +6,26 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co PolyWeather Pro — a production weather-intelligence stack for temperature settlement markets. Aggregates observations and forecasts for 52 monitored cities globally, blends multi-model highs using DEB (Dynamic Error Balancing), generates calibrated probability buckets for settlement, maps weather to Polymarket quotes for mispricing scans, and serves both a Next.js dashboard (Vercel) and a Telegram bot. +## Environment & Preferences (ALWAYS follow) + +### Working Directory +- All commands run from the repo root: `E:/web/PolyWeather` +- Frontend dev server: `cd frontend && npm run dev` → http://localhost:3000 +- Backend API server: `uvicorn web.app:app --reload --host 0.0.0.0 --port 8000` → http://localhost:8000 +- When I say "start the server", assume the correct working directory is `E:/web/PolyWeather` + +### Git Conventions +- **Commit language: Chinese (简体中文) ONLY** +- Format: Lore Commit Protocol — intent line in Chinese, trailers in English +- Examples: `重构城市决策卡 hero 布局` or `统一 DEB 数据源为单一计算路径` +- **NEVER** use English for commit subject lines + +### Tooling +- Package manager: **npm** (not yarn/pnpm) +- Python: `python` (not python3), venv at `venv/` +- Lint: `ruff check .` (Python) + `npx tsc --noEmit` (TypeScript) +- NEVER ask me about these preferences again — commit to memory + ## Architecture ```