360 Secure SkillHub
360 安全技能中心

Model Healthcheck

通过 gateway 读取已配置的 provider/model 列表,并发用 sessions_spawn 让每个模型回复固定文本,收集状态、耗时与错误信息,输出逐项结果及通过/失败统计;跳过当前使用中的模型,可只测指定模型,结果以列表而非表格呈现。

xmanrui
xmanrui
热度 80.00
最近更新 2026-05-11 17:26:52
分类:自动化依赖:MCP 服务 / 内部调用大模型应用场景:DevOps / 工作流 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add model-healthcheck
Metadata
name
model-healthcheck
description
Test all configured models for availability. Activate when user says "test models", "check models", "model healthcheck", "测试模型", "测试所有模型", "检查模型", or "模型健康检查".

Model Healthcheck Skill

When the user requests a model test, follow these steps:

Steps

  1. Get all model list Use gateway config.get to read the current config and extract all provider/model combinations from models.providers.

  2. Test all models concurrently For each model, use sessions_spawn to run a test:

    • task: "Reply with exactly: model ok. Only reply these two words."
    • model: the corresponding provider/model-id
    • runTimeoutSeconds: 30
    • cleanup: "delete"

    Fire all tests concurrently (multiple sessions_spawn calls at once), do not test sequentially.

  3. Collect results and summarize Wait for all tests to complete, then summarize as a list:

    • provider/model-id — ✅ OK / ❌ Failed (Xs) — error message if any

    Fields:

    • Status: normal reply = ✅, timeout or error = ❌
    • Duration: time from spawn to result
    • Error: if failed, show the specific error (API error, timeout, auth failure, etc.)
  4. Output results Send the summary to the user, with a final tally:

    • Total models tested: X
    • Passed: X
    • Failed: X (list failed model names and reasons)

Notes

  • Skip the model currently in use (no need to test yourself)
  • If the user specifies a particular model, only test that one
  • Feishu/WhatsApp and similar platforms don't support markdown tables — use list format instead