원클릭으로
run-stockai
Run StockAI server, smoke-test APIs, verify endpoints. Use when asked to start/run/launch/test the app.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run StockAI server, smoke-test APIs, verify endpoints. Use when asked to start/run/launch/test the app.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Diagnose StockAI issues — API returns empty data, frontend stuck on loading, charts not rendering, server not picking up code changes. Use when something "doesn't work" but no clear error.
Full QA sweep before pushing StockAI code. Run this after making changes — checks all 8 pages, API endpoints, charts, and common failure modes.
| name | run-stockai |
| description | Run StockAI server, smoke-test APIs, verify endpoints. Use when asked to start/run/launch/test the app. |
StockAI is a Python FastAPI backend + static HTML frontend for A-share investment analysis.
# Python 3.11+ with pip
python --version
# On fresh Ubuntu: apt-get install -y python3 python3-pip
The driver launches the server on a temporary port, hits all key API endpoints, and shuts down cleanly:
cd stocks
python .Codex/skills/run-stockai/driver.py
This verifies:
cd backend
pip install -r requirements.txt
python -m uvicorn main:app --host 0.0.0.0 --port 3000 --reload
# Open http://localhost:3000
cd stocks
python -m pytest tests/ -q
# 45 passed, 2 skipped
login success!). This is normal.GET /api/quant/portfolio-risk returns {"error":"无持仓数据"} when the database has no holdings. This is expected — add holdings via the frontend first.