بنقرة واحدة
lmeterx-http-loadtest
对业务 HTTP API(REST/GraphQL 等)执行压力测试,自动预检连通性并创建 LMeterX 压测任务。适用于非 LLM、非网页的普通 API 接口。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
对业务 HTTP API(REST/GraphQL 等)执行压力测试,自动预检连通性并创建 LMeterX 压测任务。适用于非 LLM、非网页的普通 API 接口。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
对 LLM API(OpenAI/Claude 兼容接口)执行压力测试,自动预检连通性并创建 LMeterX 压测任务。URL 必须以 /v1/chat/completions 或 /v1/messages 结尾。
对网站/网页执行压力测试,自动分析页面 API、预检连通性并批量创建 LMeterX 压测任务。输入浏览器可访问的网页 URL 即可。
LMeterX Web Load test tool。When a user provides a **webpage/website URL**, the script executes immediately to perform: Page Analysis + API Pre-checks + Batch Creation of Load Testing Tasks. No health checks are required.
LMeterX HTTP API Load Test tool. When a user provides a **business/regular API endpoint URL** or a curl command targeting a non-LLM HTTP API, this skill executes a script to pre-check connectivity and create a load testing task. For REST APIs, GraphQL, and any HTTP endpoints that are NOT LLM model APIs.
LMeterX LLM API Load Test tool. When a user provides an **LLM API endpoint URL** (ending with `/v1/chat/completions` or `/v1/messages`) or a curl command targeting an LLM API, this skill executes a script to pre-check connectivity and create a load testing task. Supports OpenAI-compatible and Claude-compatible APIs.
| name | lmeterx-http-loadtest |
| description | 对业务 HTTP API(REST/GraphQL 等)执行压力测试,自动预检连通性并创建 LMeterX 压测任务。适用于非 LLM、非网页的普通 API 接口。 |
| allowed_tools | ["Bash","Read"] |
| triggers | ["/http-loadtest","/lmeterx-http","/压测API"] |
对普通业务 HTTP API 端点执行负载测试。支持 REST、GraphQL 和任何非 LLM 的 HTTP 接口。
/api/users、/api/orders、/graphql)| 场景 | 应使用 |
|---|---|
URL 以 /v1/chat/completions 或 /v1/messages 结尾 | /llm-loadtest |
| 用户提到 "LLM"、"大模型"、"OpenAI"、"Claude" | /llm-loadtest |
URL 是网页(如 https://www.baidu.com) | /web-loadtest |
| 用户说 "网站/网页/页面" | /web-loadtest |
必须通过 Bash 执行脚本,禁止手动构造 HTTP 请求。
export LMETERX_AUTH_TOKEN="${LMETERX_AUTH_TOKEN:-lmeterx}"
python ~/.claude/skills/lmeterx-http-loadtest/scripts/run.py \
--url "<API URL>" \
--method GET
export LMETERX_AUTH_TOKEN="${LMETERX_AUTH_TOKEN:-lmeterx}"
python ~/.claude/skills/lmeterx-http-loadtest/scripts/run.py \
--curl '<完整 curl 命令>'
export LMETERX_AUTH_TOKEN="${LMETERX_AUTH_TOKEN:-lmeterx}"
python ~/.claude/skills/lmeterx-http-loadtest/scripts/run.py \
--url "<API URL>" \
--method POST \
--header "Authorization: Bearer <token>" \
--body '{"key": "value"}' \
--concurrent-users 100 \
--duration 600 \
--spawn-rate 50
| 参数 | 默认值 | 说明 |
|---|---|---|
--url | (必填,或用 --curl) | API 端点 URL |
--curl | (必填,或用 --url) | 完整 curl 命令字符串 |
--method | POST(有body)/GET(无body) | HTTP 方法 |
--header | [] | 请求头(可重复,格式 Key: Value) |
--body | "" | 请求体字符串 |
--cookie | [] | Cookie(可重复,格式 Key=Value) |
--concurrent-users | 50 | 并发用户数 (1-5000) |
--duration | 300 | 持续时间/秒 (1-172800) |
--spawn-rate | 30 | 用户生成速率 |
--name | (自动生成) | 任务名称 |
执行完成后向用户报告:
{LMETERX_BASE_URL}/http-results/{task_id}| 变量 | 默认值 | 说明 |
|---|---|---|
LMETERX_BASE_URL | <YOUR_LMETERX_BASE_URL> | LMeterX 后端地址 |
LMETERX_AUTH_TOKEN | <YOUR_AUTH_TOKEN> | Service Token(X-Authorization 头) |