mit einem Klick
api-test
快速验证 Flask API 端点可用性,自动检测改动影响的接口并跑测试
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Menü
快速验证 Flask API 端点可用性,自动检测改动影响的接口并跑测试
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Basierend auf der SOC-Berufsklassifikation
Convert a data question into a dataset-profile plan (overview, schema, or quality). Use when the user asks what the dataset looks like, what columns/types exist, how many rows, or about data quality and missing values.
Convert a data question into a distribution plan for one numeric column (histogram or box plot). Use when the user asks about distribution, spread, outliers, or the shape of a single numeric variable.
Convert a data question into a time-series trend plan. Use when the user asks how a numeric value changes over time, monthly/weekly/daily trends, or seasonality.
Convert a data question into a correlation plan among numeric columns. Use when the user asks about relationships, correlation, or which variables move together.
Convert a data question into a visualization plan (bar/line/scatter/pie) for tabular data. Use when the user asks to compare, rank, trend by category, relate two numbers, or visualize a breakdown.
Convert a data question into a descriptive-statistics plan for tabular data. Use when the user asks for mean, median, variance, std, min, max, count, or grouped descriptive statistics.
| name | api-test |
| description | 快速验证 Flask API 端点可用性,自动检测改动影响的接口并跑测试 |
| disable-model-invocation | true |
用户输入 /api-test 或 /api-test <端点名称> 快速验证接口。
routes/api.py 最近改动,定位可能受影响的端点python -m pytest tests/test_api.py -v --tb=short -k "<关键词>"# 跑全部 API 测试
python -m pytest tests/test_api.py -v --tb=short
# 只跑对话相关端点
python -m pytest tests/test_api.py -v --tb=short -k "chat"
# 只跑图表相关端点
python -m pytest tests/test_api.py -v --tb=short -k "chart"
# 只跑 SSE 流相关端点
python -m pytest tests/test_api.py -v --tb=short -k "stream"
# 快速冒烟(只跑不报细节)
python -m pytest tests/test_api.py -q
| 端点 | 测试关键词 |
|---|---|
| GET /api/ping | ping |
| POST /api/upload | upload |
| GET /api/data/summary | summary |
| GET /api/data/preview | preview |
| GET /api/data/preprocess-report | preprocess |
| GET /api/data/quality | quality |
| GET /api/insights | insight |
| POST /api/chart/generate | chart_generate |
| GET /api/analysis/ | analysis |
| POST /api/chat | chat |
| GET /api/chat/history | history |
| POST /api/chat/reset | reset |
| POST /api/report/generate | report |
| POST /api/plan/generate | plan |
| POST /api/report/story | story |