用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/L71615/stockai --skill run-stockai命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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.